@nexgencloud/hyperstack-sdk-javascript 1.25.0-alpha → 1.48.0-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +268 -245
- package/dist/ApiClient.js +2 -7
- package/dist/api/AccessKeysApi.js +168 -0
- package/dist/api/AliveApi.js +33 -2
- package/dist/api/ApiKeyApi.js +33 -33
- package/dist/api/AssigningMemberRoleApi.js +20 -20
- package/dist/api/AuthApi.js +146 -6
- package/dist/api/BetaAccessApi.js +161 -0
- package/dist/api/BillingApi.js +1394 -465
- package/dist/api/BucketsApi.js +180 -0
- package/dist/api/CalculateApi.js +9 -9
- package/dist/api/CallbacksApi.js +87 -87
- package/dist/api/ClusterEventsApi.js +8 -8
- package/dist/api/ClustersApi.js +531 -23
- package/dist/api/ComplianceApi.js +24 -24
- package/dist/api/CreditApi.js +13 -11
- package/dist/api/CustomerContractApi.js +71 -71
- package/dist/api/DashboardApi.js +9 -9
- package/dist/api/DeploymentApi.js +11 -11
- package/dist/api/EnvironmentApi.js +83 -41
- package/dist/api/FIPExclusionsApi.js +85 -0
- package/dist/api/FirewallAttachmentApi.js +11 -9
- package/dist/api/FirewallsApi.js +82 -82
- package/dist/api/FlavorApi.js +4 -4
- package/dist/api/FloatingIpApi.js +31 -31
- package/dist/api/GpuApi.js +7 -7
- package/dist/api/HealthApi.js +76 -0
- package/dist/api/ImageApi.js +25 -25
- package/dist/api/InviteApi.js +53 -12
- package/dist/api/KeypairApi.js +17 -17
- package/dist/api/OrganizationApi.js +10 -10
- package/dist/api/PartnerConfigApi.js +117 -0
- package/dist/api/PaymentApi.js +66 -21
- package/dist/api/PermissionApi.js +4 -4
- package/dist/api/PolicyApi.js +4 -4
- package/dist/api/PricebookApi.js +9 -7
- package/dist/api/ProfileApi.js +43 -43
- package/dist/api/RbacRoleApi.js +46 -46
- package/dist/api/RegionApi.js +6 -6
- package/dist/api/RegionsApi.js +76 -0
- package/dist/api/SecurityRulesApi.js +2 -2
- package/dist/api/SnapshotEventsApi.js +8 -8
- package/dist/api/SnapshotsApi.js +73 -73
- package/dist/api/StockApi.js +9 -9
- package/dist/api/TemplateApi.js +50 -50
- package/dist/api/UserApi.js +53 -47
- package/dist/api/UserDetailChoiceApi.js +9 -9
- package/dist/api/UserPermissionApi.js +7 -7
- package/dist/api/VirtualMachineApi.js +464 -355
- package/dist/api/VirtualMachineEventsApi.js +16 -16
- package/dist/api/VncUrlApi.js +32 -28
- package/dist/api/VolumeApi.js +108 -59
- package/dist/api/VolumeAttachmentApi.js +79 -33
- package/dist/api/VouchersApi.js +86 -0
- package/dist/index.js +525 -714
- package/dist/model/{EnvironmentFieldsforVolume.js → AccessTokenField.js} +23 -23
- package/dist/model/AddUserInfoSuccessResponseModel.js +1 -1
- package/dist/model/AllocatedGPUCountGraph.js +1 -1
- package/dist/model/ApiKeyFields.js +1 -1
- package/dist/model/AssignRbacRolePayload.js +1 -1
- package/dist/model/AttachCallbackPayload.js +1 -1
- package/dist/model/AttachCallbackResponse.js +1 -1
- package/dist/model/AttachFirewallWithVM.js +1 -1
- package/dist/model/AttachFirewallsToVMPayload.js +1 -1
- package/dist/model/AttachVolumeFields.js +21 -1
- package/dist/model/AttachVolumes.js +1 -1
- package/dist/model/AttachVolumesPayload.js +13 -2
- package/dist/model/{InternalVolumeAttachmentFields.js → AttachmentsFieldsForVolume.js} +39 -37
- package/dist/model/{VirtualMachineUsage.js → Attributes.js} +68 -34
- package/dist/model/AuthGetTokenResponseModel.js +5 -13
- package/dist/model/AuthUserFields.js +1 -1
- package/dist/model/AuthUserInfoResponseModel.js +1 -1
- package/dist/model/{FlavorVMFields.js → BetaAccessRequestFields.js} +68 -50
- package/dist/model/BetaAccessRequestPayload.js +122 -0
- package/dist/model/{CreateDiscountResponse.js → BetaAccessRequestResponseModel.js} +27 -27
- package/dist/model/{Creditrequests.js → BetaAccessStatusItem.js} +57 -42
- package/dist/model/{VolumesLastStatusChangeResponse.js → BetaAccessStatusResponseModel.js} +38 -37
- package/dist/model/BillingHistory.js +99 -0
- package/dist/model/{WarningMailLogResponse.js → BillingHistoryDataSynthesisDetails.js} +48 -43
- package/dist/model/{VMUsageResponse.js → BillingHistoryFineTuning.js} +46 -41
- package/dist/model/BillingHistoryModelEvalutationDetails.js +143 -0
- package/dist/model/{ContractEligibleInstancesResponse.js → BillingHistoryServerlessInference.js} +48 -43
- package/dist/model/{GetAllDiscountForAllOrganizationResponse.js → BillingHistoryServerlessInferenceDetails.js} +52 -39
- package/dist/model/{Billingmetricesfields.js → BillingMetricesFields.js} +28 -28
- package/dist/model/{Billingmetricesresponse.js → BillingMetricesResponse.js} +24 -24
- package/dist/model/ClusterEvents.js +1 -1
- package/dist/model/ClusterEventsFields.js +1 -1
- package/dist/model/ClusterFields.js +76 -13
- package/dist/model/{FlavorPayload.js → ClusterFlavorFields.js} +74 -74
- package/dist/model/ClusterListResponse.js +1 -1
- package/dist/model/{InternalSecurityRulesFieldsForInstance.js → ClusterNodeFields.js} +76 -58
- package/dist/model/{InternalInstanceKeypairFields.js → ClusterNodeGroupFields.js} +65 -43
- package/dist/model/{StockVisibilityUserListResponse.js → ClusterNodeGroupsCreateResponse.js} +46 -32
- package/dist/model/{CreateUpdatePolicyResponseModel.js → ClusterNodeGroupsGetResponse.js} +27 -27
- package/dist/model/{InternalInstancesResponse.js → ClusterNodeGroupsListResponse.js} +36 -36
- package/dist/model/{ContractEligibleInstanceFields.js → ClusterNodeInstanceFields.js} +53 -45
- package/dist/model/{ImageLogos.js → ClusterNodesListResponse.js} +36 -36
- package/dist/model/ClusterResponse.js +1 -1
- package/dist/model/{GetVersionResponse.js → ClusterVersion.js} +54 -30
- package/dist/model/ClusterVersions.js +27 -6
- package/dist/model/Colors.js +105 -0
- package/dist/model/CommonResponseModel.js +1 -1
- package/dist/model/ComplianceFields.js +1 -1
- package/dist/model/ComplianceModelFields.js +1 -1
- package/dist/model/CompliancePayload.js +1 -1
- package/dist/model/ComplianceResponse.js +1 -1
- package/dist/model/ContainerOverviewFields.js +1 -1
- package/dist/model/Contract.js +1 -1
- package/dist/model/ContractDiscountPlanFields.js +9 -1
- package/dist/model/ContractGPUAllocationGraphResponse.js +1 -1
- package/dist/model/ContractInstanceFields.js +15 -1
- package/dist/model/ContractInstancesResponse.js +1 -1
- package/dist/model/{ApiKeyVerifyFields.js → CreateClusterNodeFields.js} +48 -38
- package/dist/model/{CreateUpdatePolicyPayload.js → CreateClusterNodeGroupPayload.js} +72 -44
- package/dist/model/CreateClusterPayload.js +74 -22
- package/dist/model/CreateEnvironment.js +3 -3
- package/dist/model/CreateFirewallPayload.js +1 -1
- package/dist/model/CreateFirewallRulePayload.js +1 -1
- package/dist/model/CreateImage.js +1 -1
- package/dist/model/CreateImagePayload.js +1 -1
- package/dist/model/CreateInstancesPayload.js +11 -11
- package/dist/model/CreateInstancesResponse.js +1 -1
- package/dist/model/CreateProfilePayload.js +3 -3
- package/dist/model/CreateProfileResponse.js +1 -1
- package/dist/model/CreateSecurityRulePayload.js +1 -1
- package/dist/model/CreateSnapshotPayload.js +5 -16
- package/dist/model/CreateSnapshotResponse.js +1 -1
- package/dist/model/CreateUpdateComplianceResponse.js +1 -1
- package/dist/model/CreateUpdateRbacRolePayload.js +1 -1
- package/dist/model/CreateVolumePayload.js +3 -3
- package/dist/model/CustomerContractDetailResponseModel.js +1 -1
- package/dist/model/CustomerContractFields.js +1 -1
- package/dist/model/DashboardInfoResponse.js +1 -1
- package/dist/model/{ContractBillingHistoryResponseModel.js → DataSynthesisBillingHistoryDetailsResponseSchema.js} +29 -27
- package/dist/model/{ContractlBillingHistoryResponseMetrics.js → DeleteClusterNodesFields.js} +25 -21
- package/dist/model/DeploymentFields.js +1 -1
- package/dist/model/{DeploymentFieldsforstartdeployments.js → DeploymentFieldsForStartDeployments.js} +24 -24
- package/dist/model/Deployments.js +1 -1
- package/dist/model/DetachVolumes.js +1 -1
- package/dist/model/DetachVolumesPayload.js +1 -1
- package/dist/model/{EditlabelofanexistingVMPayload.js → EditLabelOfAnExistingVMPayload.js} +18 -18
- package/dist/model/Environment.js +1 -1
- package/dist/model/EnvironmentFeatures.js +36 -1
- package/dist/model/EnvironmentFields.js +1 -1
- package/dist/model/{InternalEnvironmentFields.js → EnvironmentFieldsForVolume.js} +23 -31
- package/dist/model/Environments.js +1 -1
- package/dist/model/ErrorResponseModel.js +1 -1
- package/dist/model/FirewallAttachmentModel.js +1 -1
- package/dist/model/FirewallAttachmentVMModel.js +1 -1
- package/dist/model/FirewallDetailFields.js +1 -1
- package/dist/model/FirewallDetailResponse.js +1 -1
- package/dist/model/FirewallEnvironmentFields.js +1 -1
- package/dist/model/FirewallFields.js +1 -1
- package/dist/model/FirewallResponse.js +1 -1
- package/dist/model/FirewallRule.js +1 -1
- package/dist/model/FirewallsListResponse.js +1 -1
- package/dist/model/FlavorFields.js +9 -1
- package/dist/model/FlavorItemGetResponse.js +1 -1
- package/dist/model/{CustomerFields.js → FlavorLabelFields.js} +26 -24
- package/dist/model/FlavorListResponse.js +1 -1
- package/dist/model/FlavorObjectFields.js +1 -1
- package/dist/model/GPUFields.js +1 -1
- package/dist/model/GPUList.js +1 -1
- package/dist/model/GPURegionFields.js +1 -1
- package/dist/model/GenerateUpdateApiKeyPayload.js +1 -1
- package/dist/model/GenerateUpdateApiKeyResponseModel.js +1 -1
- package/dist/model/GetApiKeysResponseModel.js +1 -1
- package/dist/model/{Getcreditandthresholdinfo.js → GetCreditAndThresholdInfo.js} +20 -20
- package/dist/model/{Getcreditandthresholdinfoinresponse.js → GetCreditAndThresholdInfoInResponse.js} +24 -24
- package/dist/model/GetCustomerContractsListResponseModel.js +1 -1
- package/dist/model/GetInstanceLogsResponse.js +89 -0
- package/dist/model/GetInvitesResponseModel.js +1 -1
- package/dist/model/GetOrganizationResponseModel.js +1 -1
- package/dist/model/GetPermissionsResponseModel.js +1 -1
- package/dist/model/GetPoliciesResponseModel.js +1 -1
- package/dist/model/GetRbacRolesResponseModel.js +1 -1
- package/dist/model/GetUserPermissionsResponseModel.js +1 -1
- package/dist/model/GraphDatetimeValueModel.js +1 -1
- package/dist/model/Image.js +1 -1
- package/dist/model/ImageFields.js +1 -1
- package/dist/model/ImageGetResponse.js +1 -1
- package/dist/model/Images.js +1 -1
- package/dist/model/ImportKeypairPayload.js +1 -1
- package/dist/model/ImportKeypairResponse.js +1 -1
- package/dist/model/InfrahubResourceObjectResponseForCustomer.js +1 -1
- package/dist/model/Instance.js +1 -1
- package/dist/model/InstanceEnvironmentFields.js +1 -1
- package/dist/model/InstanceEvents.js +1 -1
- package/dist/model/InstanceEventsFields.js +1 -1
- package/dist/model/InstanceFields.js +21 -5
- package/dist/model/InstanceFlavorFields.js +42 -1
- package/dist/model/InstanceImageFields.js +1 -1
- package/dist/model/InstanceKeypairFields.js +1 -1
- package/dist/model/InstanceOverviewFields.js +1 -1
- package/dist/model/InstanceResizePayload.js +1 -1
- package/dist/model/Instances.js +1 -1
- package/dist/model/InviteFields.js +1 -1
- package/dist/model/InviteUserPayload.js +1 -1
- package/dist/model/InviteUserResponseModel.js +1 -1
- package/dist/model/KeypairEnvironmentFeatures.js +120 -0
- package/dist/model/{InternalVolumeFields.js → KeypairEnvironmentFields.js} +41 -39
- package/dist/model/KeypairFields.js +8 -6
- package/dist/model/Keypairs.js +1 -1
- package/dist/model/LableResonse.js +1 -1
- package/dist/model/{Lastdaycostfields.js → LastDayCostFields.js} +21 -21
- package/dist/model/{Lastdaycostresponse.js → LastDayCostResponse.js} +24 -24
- package/dist/model/{TokenFields.js → Logos.js} +47 -35
- package/dist/model/{LogoutPayload.js → MFAStatusFields.js} +27 -30
- package/dist/model/{GPU.js → MFAStatusResponse.js} +31 -31
- package/dist/model/{VerifyApiKeyResponseModel.js → ManualReconciliationModel.js} +33 -29
- package/dist/model/{Creditrequestresponse.js → MasterFlavorsResponse.js} +30 -30
- package/dist/model/MetricItemFields.js +1 -1
- package/dist/model/MetricsFields.js +1 -1
- package/dist/model/ModelEvaluationBillingHistoryDetailsResponseSchema.js +113 -0
- package/dist/model/NameAvailableModel.js +1 -1
- package/dist/model/NewConfigurationsResponse.js +1 -1
- package/dist/model/NewModelResponse.js +1 -1
- package/dist/model/NewStockResponse.js +1 -1
- package/dist/model/NewStockRetriveResponse.js +1 -1
- package/dist/model/ObjectStorageAccessKeyCreateRequest.js +117 -0
- package/dist/model/{FutureNodeModel.js → ObjectStorageAccessKeyCreateResponse.js} +70 -66
- package/dist/model/{ContractChangePayload.js → ObjectStorageAccessKeyListResponse.js} +44 -64
- package/dist/model/{FutureNodeUpdateModel.js → ObjectStorageAccessKeyResponse.js} +60 -51
- package/dist/model/{SetDefaultsPayload.js → ObjectStorageBucketListResponse.js} +53 -37
- package/dist/model/{CreateUpdatePermissionPayload.js → ObjectStorageBucketResponse.js} +75 -49
- package/dist/model/{PowerUsageModel.js → ObjectStorageDeleteResponse.js} +28 -38
- package/dist/model/{ContractEventCreateModel.js → ObjectStorageErrorResponse.js} +40 -47
- package/dist/model/{VerifyApiKeyPayload.js → ObjectStorageHealthResponse.js} +28 -29
- package/dist/model/{SingleVisibilityUserResponse.js → ObjectStoragePaginationMeta.js} +38 -38
- package/dist/model/{CreateGPU.js → ObjectStorageRegionListResponse.js} +46 -53
- package/dist/model/{RegionPayload.js → ObjectStorageRegionResponse.js} +20 -32
- package/dist/model/ObjectStorageRegionsEnum.js +53 -0
- package/dist/model/OrganizationFields.js +1 -1
- package/dist/model/OrganizationLevelBillingHistory.js +1 -1
- package/dist/model/OrganizationLevelBillingHistoryResources.js +1 -1
- package/dist/model/OrganizationLevelBillingHistoryResponseAttributes.js +1 -1
- package/dist/model/OrganizationLevelBillingHistoryResponseMetrics.js +1 -1
- package/dist/model/OrganizationLevelBillingHistoryResponseModel.js +1 -1
- package/dist/model/{OrganizationThresholdfields.js → OrganizationThresholdFields.js} +22 -22
- package/dist/model/{Organizationthresholdupdateresponse.js → OrganizationThresholdUpdateResponse.js} +24 -24
- package/dist/model/{Organizationthresholdsresponse.js → OrganizationThresholdsResponse.js} +24 -24
- package/dist/model/OrganizationUserResponseModel.js +1 -1
- package/dist/model/OverviewInfo.js +1 -1
- package/dist/model/Pagination.js +104 -0
- package/dist/model/PaginationData.js +1 -1
- package/dist/model/PartnerConfig.js +192 -0
- package/dist/model/PaymentDetailsFields.js +21 -1
- package/dist/model/PaymentDetailsResponse.js +1 -1
- package/dist/model/PaymentInitiateFields.js +1 -1
- package/dist/model/PaymentInitiatePayload.js +1 -1
- package/dist/model/PaymentInitiateResponse.js +1 -1
- package/dist/model/PermissionFields.js +1 -1
- package/dist/model/PolicyFields.js +1 -1
- package/dist/model/PolicyPermissionFields.js +1 -1
- package/dist/model/PricebookModel.js +1 -1
- package/dist/model/PricebookResourceObjectResponseForCustomer.js +1 -1
- package/dist/model/{NewStockUpdateResponseModel.js → PrimaryColor.js} +31 -27
- package/dist/model/ProfileFields.js +1 -1
- package/dist/model/ProfileListResponse.js +1 -1
- package/dist/model/ProfileObjectFields.js +1 -1
- package/dist/model/RbacRoleDetailResponseModel.js +1 -1
- package/dist/model/RbacRoleDetailResponseModelFixed.js +1 -1
- package/dist/model/RbacRoleField.js +1 -1
- package/dist/model/RbacRoleFields.js +1 -1
- package/dist/model/{CustomerPayload.js → RedeemVoucherPayload.js} +29 -38
- package/dist/model/RegionFields.js +49 -1
- package/dist/model/Regions.js +1 -1
- package/dist/model/RemoveMemberFromOrganizationResponseModel.js +1 -1
- package/dist/model/RemoveMemberPayload.js +1 -1
- package/dist/model/RequestConsole.js +1 -1
- package/dist/model/{ExcludeBillingPostResponse.js → RequestInstanceLogsPayload.js} +22 -27
- package/dist/model/RequestInstanceLogsResponse.js +85 -0
- package/dist/model/ResourceBillingEventsHistoryMetrics.js +1 -1
- package/dist/model/ResourceBillingEventsHistoryResponse.js +1 -1
- package/dist/model/ResourceBillingResponseForCustomer.js +1 -1
- package/dist/model/{ContractBillingHistory.js → ResourceLevelBillingBucketDetailsResources.js} +27 -27
- package/dist/model/ResourceLevelBillingDetailsAttributes.js +1 -1
- package/dist/model/ResourceLevelBillingDetailsMetrics.js +1 -1
- package/dist/model/ResourceLevelBillingDetailsVM.js +1 -1
- package/dist/model/ResourceLevelBillingDetailsVolume.js +1 -1
- package/dist/model/ResourceLevelBillingDetailsVolumeAttributes.js +1 -1
- package/dist/model/ResourceLevelBillingDetailsVolumeMetrics.js +1 -1
- package/dist/model/ResourceLevelBillingHistory.js +1 -1
- package/dist/model/ResourceLevelBillingHistoryResources.js +1 -1
- package/dist/model/{NodeResponseModel.js → ResourceLevelBillingHistoryResourcesCluster.js} +47 -31
- package/dist/model/ResourceLevelBillingHistoryResponseAttributes.js +9 -1
- package/dist/model/ResourceLevelBillingHistoryResponseMetrics.js +1 -1
- package/dist/model/ResourceLevelBillingVMDetailsResources.js +1 -1
- package/dist/model/ResourceLevelBillingVolumeDetailsResources.js +1 -1
- package/dist/model/{AuthRequestLoginResponseModel.js → ResourceLevelBucketBillingDetailsResponseModel.js} +27 -27
- package/dist/model/{CreateUpdatePermissionResponseModel.js → ResourceLevelBucketBillingHistoryResponseModel.js} +31 -31
- package/dist/model/ResourceLevelClusterBillingDetailsResponseModel.js +111 -0
- package/dist/model/ResourceLevelClusterBillingHistoryResponseModel.js +111 -0
- package/dist/model/ResourceLevelClusterGraphBillingDetailsResponseModel.js +111 -0
- package/dist/model/ResourceLevelGraphBillingDetailVolume.js +1 -1
- package/dist/model/ResourceLevelGraphBillingDetailsAttributes.js +1 -1
- package/dist/model/{OrganizationObjectResponse.js → ResourceLevelGraphBillingDetailsBucket.js} +45 -29
- package/dist/model/ResourceLevelGraphBillingDetailsMetrics.js +1 -1
- package/dist/model/ResourceLevelGraphBillingDetailsVM.js +1 -1
- package/dist/model/ResourceLevelGraphBillingVMDetailsResources.js +1 -1
- package/dist/model/ResourceLevelGraphBillingVolumeDetailsResources.js +1 -1
- package/dist/model/ResourceLevelVMBillingDetailsResponseModel.js +1 -1
- package/dist/model/ResourceLevelVmBillingHistoryResponseModel.js +1 -1
- package/dist/model/ResourceLevelVmGraphBillingDetailsResponseModel.js +1 -1
- package/dist/model/ResourceLevelVolumeBillingDetailsResponseModel.js +1 -1
- package/dist/model/ResourceLevelVolumeBillingHistoryResponseModel.js +1 -1
- package/dist/model/ResourceLevelVolumeGraphBillingDetailsResponseModel.js +1 -1
- package/dist/model/ResourceObjectResponseForCustomer.js +1 -1
- package/dist/model/ResponseModel.js +1 -1
- package/dist/model/RolePermissionFields.js +1 -1
- package/dist/model/RolePolicyFields.js +1 -1
- package/dist/model/{Data.js → SecondaryColor.js} +31 -38
- package/dist/model/SecurityGroupRule.js +1 -1
- package/dist/model/SecurityGroupRuleFields.js +1 -1
- package/dist/model/{SecurityRulesFieldsforInstance.js → SecurityRulesFieldsForInstance.js} +26 -26
- package/dist/model/SecurityRulesProtocolFields.js +1 -1
- package/dist/model/{Organizationcreditrechargelimitresponse.js → ServerlessInferencedBillingHistoryDetailsResponseSchema.js} +29 -27
- package/dist/model/SnapshotFields.js +27 -5
- package/dist/model/SnapshotRestoreRequest.js +1 -1
- package/dist/model/SnapshotRetrieve.js +1 -1
- package/dist/model/SnapshotRetrieveFields.js +170 -5
- package/dist/model/Snapshots.js +1 -1
- package/dist/model/StartDeployment.js +5 -5
- package/dist/model/StartDeploymentPayload.js +1 -1
- package/dist/model/SubResourceGraphBillingDetailsMetrics.js +1 -1
- package/dist/model/SubResourcesCostsResponseModel.js +1 -1
- package/dist/model/SubResourcesGraphBillingHistoryFields.js +1 -1
- package/dist/model/SubResourcesGraphResponseModel.js +1 -1
- package/dist/model/{Subscribeorunsubscribeupdatepayload.js → SubscribeOrUnsubscribeUpdatePayload.js} +20 -20
- package/dist/model/Template.js +1 -1
- package/dist/model/TemplateFields.js +1 -1
- package/dist/model/Templates.js +1 -1
- package/dist/model/TokenBasedBillingHistoryResponse.js +113 -0
- package/dist/model/URIs.js +161 -0
- package/dist/model/UpdateClusterNodeGroupPayload.js +93 -0
- package/dist/model/UpdateEnvironment.js +1 -1
- package/dist/model/UpdateKeypairName.js +1 -1
- package/dist/model/{UpdateKeypairnameresponse.js → UpdateKeypairNameResponse.js} +20 -20
- package/dist/model/UpdateOrganizationPayload.js +1 -1
- package/dist/model/UpdateOrganizationResponseModel.js +1 -1
- package/dist/model/UpdateTemplate.js +1 -1
- package/dist/model/UpdateVolumeAttachmentPayload.js +85 -0
- package/dist/model/{UserTransferPayload.js → UpdateVolumePayload.js} +29 -38
- package/dist/model/{FlavorResponse.js → UpdateVolumeResponse.js} +41 -32
- package/dist/model/UserDefaultChoiceForUserFields.js +1 -1
- package/dist/model/UserDefaultChoicesForUserResponse.js +1 -1
- package/dist/model/{Userinfopostpayload.js → UserInfoPostPayload.js} +30 -30
- package/dist/model/{FutureNodesStockModel.js → UserOrganizationsResponse.js} +28 -28
- package/dist/model/UserPermissionFields.js +1 -1
- package/dist/model/UsersInfoFields.js +13 -1
- package/dist/model/UsersInfoListResponse.js +1 -1
- package/dist/model/VNCURL.js +1 -1
- package/dist/model/VNCURLFields.js +1 -1
- package/dist/model/Volume.js +1 -1
- package/dist/model/VolumeAttachmentFields.js +21 -5
- package/dist/model/VolumeFields.js +38 -5
- package/dist/model/{VolumeFieldsforInstance.js → VolumeFieldsForInstance.js} +23 -23
- package/dist/model/VolumeOverviewFields.js +1 -1
- package/dist/model/VolumeTypes.js +1 -1
- package/dist/model/Volumes.js +36 -12
- package/dist/model/{InfrahubResourceObjectResponse.js → VolumesFields.js} +95 -85
- package/dist/model/{FutureNodeStockModel.js → Voucher.js} +44 -33
- package/dist/model/{Creditrechargelimitresponse.js → VoucherRedeemResponseSchema.js} +56 -47
- package/dist/model/WorkloadBillingHistoryResponse.js +113 -0
- package/package.json +1 -1
- package/dist/model/AddUpdateFlavorOrganizationPayload.js +0 -242
- package/dist/model/AuthRequestLoginFields.js +0 -101
- package/dist/model/BillingImmuneResourcesResponse.js +0 -111
- package/dist/model/BillingResponse.js +0 -130
- package/dist/model/ContractBillingHistoryResponseAttributes.js +0 -149
- package/dist/model/ContractResourcePayload.js +0 -146
- package/dist/model/CreateContractFields.js +0 -170
- package/dist/model/CreateContractPayload.js +0 -178
- package/dist/model/CreateDiscountsPayload.js +0 -192
- package/dist/model/Creditrechargelimitfield.js +0 -109
- package/dist/model/DiscountEntityModel.js +0 -122
- package/dist/model/DiscountFields.js +0 -149
- package/dist/model/DiscountPlanFields.js +0 -181
- package/dist/model/DiscountResourceFields.js +0 -113
- package/dist/model/DiscountResourcePayload.js +0 -142
- package/dist/model/ExcludeBillingPostPayload.js +0 -135
- package/dist/model/ExportBillingDataRequest.js +0 -186
- package/dist/model/ExportBillingDataResponse.js +0 -101
- package/dist/model/FieldChange.js +0 -116
- package/dist/model/FlavorVMsResponse.js +0 -130
- package/dist/model/FutureNodeResponseModel.js +0 -122
- package/dist/model/GetAllContractFields.js +0 -137
- package/dist/model/GetAllContractsResponseModel.js +0 -130
- package/dist/model/GetAllDiscountsFields.js +0 -158
- package/dist/model/GetDiscountDetailResponse.js +0 -111
- package/dist/model/GetDiscountResponse.js +0 -130
- package/dist/model/GetEntityDiscountDetailResponse.js +0 -159
- package/dist/model/GetTokenPayload.js +0 -126
- package/dist/model/HistoricalInstance.js +0 -138
- package/dist/model/HistoricalInstancesFields.js +0 -201
- package/dist/model/InsertDiscountPlanFields.js +0 -168
- package/dist/model/InstancesSummaryFields.js +0 -249
- package/dist/model/InternalInstanceFields.js +0 -344
- package/dist/model/InternalInstanceFlavorFields.js +0 -161
- package/dist/model/InternalInstanceImageFields.js +0 -133
- package/dist/model/InternalVolumesResponse.js +0 -130
- package/dist/model/LogoGetResponse.js +0 -109
- package/dist/model/NodeModel.js +0 -230
- package/dist/model/NodePayloadModel.js +0 -122
- package/dist/model/NodePowerUsageModel.js +0 -244
- package/dist/model/NodeStockPayloadModel.js +0 -110
- package/dist/model/NodeStockResponseModel.js +0 -110
- package/dist/model/NodeStocksPayload.js +0 -144
- package/dist/model/PricebookResourceObjectResponse.js +0 -173
- package/dist/model/RefreshTokenPayload.js +0 -126
- package/dist/model/RegionResponse.js +0 -111
- package/dist/model/StockVisibilityUserPayload.js +0 -112
- package/dist/model/SuccessResponseModel.js +0 -100
- package/dist/model/UpdateContractPayload.js +0 -168
- package/dist/model/UpdateDiscountsPayload.js +0 -160
- package/dist/model/UpdateDiscountsStatusPayload.js +0 -112
- package/dist/model/UpdateGPU.js +0 -114
- package/dist/model/VMUsageRequestPayload.js +0 -113
- package/dist/model/VolumeStatusChangeFields.js +0 -125
- package/dist/model/WarningMailLogFields.js +0 -149
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* VirtualMachineEvents service.
|
|
30
30
|
* @module api/VirtualMachineEventsApi
|
|
31
|
-
* @version v1.
|
|
31
|
+
* @version v1.48.0-alpha
|
|
32
32
|
*/
|
|
33
33
|
var VirtualMachineEventsApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -45,41 +45,41 @@ var VirtualMachineEventsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
47
|
* List virtual machine events
|
|
48
|
-
* Retrieves a list of all events in a virtual machine's history, which records actions performed on the specified virtual machine. Include the virtual machine ID in the path to retrieve the history of events. For more details on virtual machine events history, [**click here**](https://
|
|
49
|
-
* @param {
|
|
48
|
+
* Retrieves a list of all events in a virtual machine's history, which records actions performed on the specified virtual machine. Include the virtual machine ID in the path to retrieve the history of events. For more details on virtual machine events history, [**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/vm-performance-metrics-and-events-history#events-history).
|
|
49
|
+
* @param {Number} vmId
|
|
50
50
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InstanceEvents} and HTTP response
|
|
51
51
|
*/
|
|
52
52
|
return _createClass(VirtualMachineEventsApi, [{
|
|
53
|
-
key: "
|
|
54
|
-
value: function
|
|
53
|
+
key: "listVMEventsWithHttpInfo",
|
|
54
|
+
value: function listVMEventsWithHttpInfo(vmId) {
|
|
55
55
|
var postBody = null;
|
|
56
|
-
// verify the required parameter '
|
|
57
|
-
if (
|
|
58
|
-
throw new Error("Missing the required parameter '
|
|
56
|
+
// verify the required parameter 'vmId' is set
|
|
57
|
+
if (vmId === undefined || vmId === null) {
|
|
58
|
+
throw new Error("Missing the required parameter 'vmId' when calling listVMEvents");
|
|
59
59
|
}
|
|
60
60
|
var pathParams = {
|
|
61
|
-
'
|
|
61
|
+
'vm_id': vmId
|
|
62
62
|
};
|
|
63
63
|
var queryParams = {};
|
|
64
64
|
var headerParams = {};
|
|
65
65
|
var formParams = {};
|
|
66
|
-
var authNames = ['apiKey'
|
|
66
|
+
var authNames = ['apiKey'];
|
|
67
67
|
var contentTypes = [];
|
|
68
68
|
var accepts = ['application/json'];
|
|
69
69
|
var returnType = _InstanceEvents["default"];
|
|
70
|
-
return this.apiClient.callApi('/core/virtual-machines/{
|
|
70
|
+
return this.apiClient.callApi('/core/virtual-machines/{vm_id}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* List virtual machine events
|
|
75
|
-
* Retrieves a list of all events in a virtual machine's history, which records actions performed on the specified virtual machine. Include the virtual machine ID in the path to retrieve the history of events. For more details on virtual machine events history, [**click here**](https://
|
|
76
|
-
* @param {
|
|
75
|
+
* Retrieves a list of all events in a virtual machine's history, which records actions performed on the specified virtual machine. Include the virtual machine ID in the path to retrieve the history of events. For more details on virtual machine events history, [**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/vm-performance-metrics-and-events-history#events-history).
|
|
76
|
+
* @param {Number} vmId
|
|
77
77
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InstanceEvents}
|
|
78
78
|
*/
|
|
79
79
|
}, {
|
|
80
|
-
key: "
|
|
81
|
-
value: function
|
|
82
|
-
return this.
|
|
80
|
+
key: "listVMEvents",
|
|
81
|
+
value: function listVMEvents(vmId) {
|
|
82
|
+
return this.listVMEventsWithHttpInfo(vmId).then(function (response_and_data) {
|
|
83
83
|
return response_and_data.data;
|
|
84
84
|
});
|
|
85
85
|
}
|
package/dist/api/VncUrlApi.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* VncUrl service.
|
|
31
31
|
* @module api/VncUrlApi
|
|
32
|
-
* @version v1.
|
|
32
|
+
* @version v1.48.0-alpha
|
|
33
33
|
*/
|
|
34
34
|
var VncUrlApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -46,85 +46,89 @@ var VncUrlApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* Get VNC Console Link
|
|
49
|
-
*
|
|
49
|
+
* Retrieves the URL to access the VNC console for a specified virtual machine by providing the virtual machine ID and the job ID in the path. For more information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-vnc-url).
|
|
50
|
+
* @param {Number} vmId
|
|
50
51
|
* @param {Number} jobId
|
|
51
52
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VNCURL} and HTTP response
|
|
52
53
|
*/
|
|
53
54
|
return _createClass(VncUrlApi, [{
|
|
54
|
-
key: "
|
|
55
|
-
value: function
|
|
55
|
+
key: "getVNCURLWithHttpInfo",
|
|
56
|
+
value: function getVNCURLWithHttpInfo(vmId, jobId) {
|
|
56
57
|
var postBody = null;
|
|
57
|
-
// verify the required parameter '
|
|
58
|
-
if (
|
|
59
|
-
throw new Error("Missing the required parameter '
|
|
58
|
+
// verify the required parameter 'vmId' is set
|
|
59
|
+
if (vmId === undefined || vmId === null) {
|
|
60
|
+
throw new Error("Missing the required parameter 'vmId' when calling getVNCURL");
|
|
60
61
|
}
|
|
61
62
|
// verify the required parameter 'jobId' is set
|
|
62
63
|
if (jobId === undefined || jobId === null) {
|
|
63
|
-
throw new Error("Missing the required parameter 'jobId' when calling
|
|
64
|
+
throw new Error("Missing the required parameter 'jobId' when calling getVNCURL");
|
|
64
65
|
}
|
|
65
66
|
var pathParams = {
|
|
66
|
-
'
|
|
67
|
+
'vm_id': vmId,
|
|
67
68
|
'job_id': jobId
|
|
68
69
|
};
|
|
69
70
|
var queryParams = {};
|
|
70
71
|
var headerParams = {};
|
|
71
72
|
var formParams = {};
|
|
72
|
-
var authNames = ['apiKey'
|
|
73
|
+
var authNames = ['apiKey'];
|
|
73
74
|
var contentTypes = [];
|
|
74
75
|
var accepts = ['application/json'];
|
|
75
76
|
var returnType = _VNCURL["default"];
|
|
76
|
-
return this.apiClient.callApi('/core/virtual-machines/{
|
|
77
|
+
return this.apiClient.callApi('/core/virtual-machines/{vm_id}/console/{job_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
/**
|
|
80
81
|
* Get VNC Console Link
|
|
81
|
-
*
|
|
82
|
+
* Retrieves the URL to access the VNC console for a specified virtual machine by providing the virtual machine ID and the job ID in the path. For more information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-vnc-url).
|
|
83
|
+
* @param {Number} vmId
|
|
82
84
|
* @param {Number} jobId
|
|
83
85
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VNCURL}
|
|
84
86
|
*/
|
|
85
87
|
}, {
|
|
86
|
-
key: "
|
|
87
|
-
value: function
|
|
88
|
-
return this.
|
|
88
|
+
key: "getVNCURL",
|
|
89
|
+
value: function getVNCURL(vmId, jobId) {
|
|
90
|
+
return this.getVNCURLWithHttpInfo(vmId, jobId).then(function (response_and_data) {
|
|
89
91
|
return response_and_data.data;
|
|
90
92
|
});
|
|
91
93
|
}
|
|
92
94
|
|
|
93
95
|
/**
|
|
94
96
|
* Request Instance Console
|
|
95
|
-
*
|
|
97
|
+
* Retrieves the path of the VNC console for the given virtual machine ID by providing the virtual machine ID in the path. For more information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-console-path).
|
|
98
|
+
* @param {Number} vmId
|
|
96
99
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RequestConsole} and HTTP response
|
|
97
100
|
*/
|
|
98
101
|
}, {
|
|
99
|
-
key: "
|
|
100
|
-
value: function
|
|
102
|
+
key: "requestVMConsoleWithHttpInfo",
|
|
103
|
+
value: function requestVMConsoleWithHttpInfo(vmId) {
|
|
101
104
|
var postBody = null;
|
|
102
|
-
// verify the required parameter '
|
|
103
|
-
if (
|
|
104
|
-
throw new Error("Missing the required parameter '
|
|
105
|
+
// verify the required parameter 'vmId' is set
|
|
106
|
+
if (vmId === undefined || vmId === null) {
|
|
107
|
+
throw new Error("Missing the required parameter 'vmId' when calling requestVMConsole");
|
|
105
108
|
}
|
|
106
109
|
var pathParams = {
|
|
107
|
-
'
|
|
110
|
+
'vm_id': vmId
|
|
108
111
|
};
|
|
109
112
|
var queryParams = {};
|
|
110
113
|
var headerParams = {};
|
|
111
114
|
var formParams = {};
|
|
112
|
-
var authNames = ['apiKey'
|
|
115
|
+
var authNames = ['apiKey'];
|
|
113
116
|
var contentTypes = [];
|
|
114
117
|
var accepts = ['application/json'];
|
|
115
118
|
var returnType = _RequestConsole["default"];
|
|
116
|
-
return this.apiClient.callApi('/core/virtual-machines/{
|
|
119
|
+
return this.apiClient.callApi('/core/virtual-machines/{vm_id}/request-console', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
117
120
|
}
|
|
118
121
|
|
|
119
122
|
/**
|
|
120
123
|
* Request Instance Console
|
|
121
|
-
*
|
|
124
|
+
* Retrieves the path of the VNC console for the given virtual machine ID by providing the virtual machine ID in the path. For more information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-console-path).
|
|
125
|
+
* @param {Number} vmId
|
|
122
126
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RequestConsole}
|
|
123
127
|
*/
|
|
124
128
|
}, {
|
|
125
|
-
key: "
|
|
126
|
-
value: function
|
|
127
|
-
return this.
|
|
129
|
+
key: "requestVMConsole",
|
|
130
|
+
value: function requestVMConsole(vmId) {
|
|
131
|
+
return this.requestVMConsoleWithHttpInfo(vmId).then(function (response_and_data) {
|
|
128
132
|
return response_and_data.data;
|
|
129
133
|
});
|
|
130
134
|
}
|
package/dist/api/VolumeApi.js
CHANGED
|
@@ -9,6 +9,8 @@ var _CreateVolumePayload = _interopRequireDefault(require("../model/CreateVolume
|
|
|
9
9
|
var _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
|
|
10
10
|
var _NameAvailableModel = _interopRequireDefault(require("../model/NameAvailableModel"));
|
|
11
11
|
var _ResponseModel = _interopRequireDefault(require("../model/ResponseModel"));
|
|
12
|
+
var _UpdateVolumePayload = _interopRequireDefault(require("../model/UpdateVolumePayload"));
|
|
13
|
+
var _UpdateVolumeResponse = _interopRequireDefault(require("../model/UpdateVolumeResponse"));
|
|
12
14
|
var _Volume = _interopRequireDefault(require("../model/Volume"));
|
|
13
15
|
var _VolumeTypes = _interopRequireDefault(require("../model/VolumeTypes"));
|
|
14
16
|
var _Volumes = _interopRequireDefault(require("../model/Volumes"));
|
|
@@ -33,7 +35,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
35
|
/**
|
|
34
36
|
* Volume service.
|
|
35
37
|
* @module api/VolumeApi
|
|
36
|
-
* @version v1.
|
|
38
|
+
* @version v1.48.0-alpha
|
|
37
39
|
*/
|
|
38
40
|
var VolumeApi = exports["default"] = /*#__PURE__*/function () {
|
|
39
41
|
/**
|
|
@@ -50,7 +52,7 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
50
52
|
|
|
51
53
|
/**
|
|
52
54
|
* Create volume
|
|
53
|
-
* Creates a volume that can be attached to a virtual machine, expanding its storage capacity. Specify the volume type and custom configuration in the request body. For additional details on volumes, [**click here**](
|
|
55
|
+
* Creates a volume that can be attached to a virtual machine, expanding its storage capacity. Specify the volume type and custom configuration in the request body. For additional details on volumes, [**click here**]({Config.INFRAHUB_DOCS_BASE}/docs/api-reference/core-resources/volumes/create-volume).
|
|
54
56
|
* @param {module:model/CreateVolumePayload} payload
|
|
55
57
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Volume} and HTTP response
|
|
56
58
|
*/
|
|
@@ -66,7 +68,7 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
66
68
|
var queryParams = {};
|
|
67
69
|
var headerParams = {};
|
|
68
70
|
var formParams = {};
|
|
69
|
-
var authNames = ['apiKey'
|
|
71
|
+
var authNames = ['apiKey'];
|
|
70
72
|
var contentTypes = ['application/json'];
|
|
71
73
|
var accepts = ['application/json'];
|
|
72
74
|
var returnType = _Volume["default"];
|
|
@@ -75,7 +77,7 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
75
77
|
|
|
76
78
|
/**
|
|
77
79
|
* Create volume
|
|
78
|
-
* Creates a volume that can be attached to a virtual machine, expanding its storage capacity. Specify the volume type and custom configuration in the request body. For additional details on volumes, [**click here**](
|
|
80
|
+
* Creates a volume that can be attached to a virtual machine, expanding its storage capacity. Specify the volume type and custom configuration in the request body. For additional details on volumes, [**click here**]({Config.INFRAHUB_DOCS_BASE}/docs/api-reference/core-resources/volumes/create-volume).
|
|
79
81
|
* @param {module:model/CreateVolumePayload} payload
|
|
80
82
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Volume}
|
|
81
83
|
*/
|
|
@@ -90,122 +92,122 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
90
92
|
/**
|
|
91
93
|
* Delete volume
|
|
92
94
|
* Deletes a volume permanently. Provide the volume ID in the path to specify the volume to be deleted.
|
|
93
|
-
* @param {Number}
|
|
95
|
+
* @param {Number} volumeId
|
|
94
96
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
|
|
95
97
|
*/
|
|
96
98
|
}, {
|
|
97
99
|
key: "deleteVolumeWithHttpInfo",
|
|
98
|
-
value: function deleteVolumeWithHttpInfo(
|
|
100
|
+
value: function deleteVolumeWithHttpInfo(volumeId) {
|
|
99
101
|
var postBody = null;
|
|
100
|
-
// verify the required parameter '
|
|
101
|
-
if (
|
|
102
|
-
throw new Error("Missing the required parameter '
|
|
102
|
+
// verify the required parameter 'volumeId' is set
|
|
103
|
+
if (volumeId === undefined || volumeId === null) {
|
|
104
|
+
throw new Error("Missing the required parameter 'volumeId' when calling deleteVolume");
|
|
103
105
|
}
|
|
104
106
|
var pathParams = {
|
|
105
|
-
'
|
|
107
|
+
'volume_id': volumeId
|
|
106
108
|
};
|
|
107
109
|
var queryParams = {};
|
|
108
110
|
var headerParams = {};
|
|
109
111
|
var formParams = {};
|
|
110
|
-
var authNames = ['apiKey'
|
|
112
|
+
var authNames = ['apiKey'];
|
|
111
113
|
var contentTypes = [];
|
|
112
114
|
var accepts = ['application/json'];
|
|
113
115
|
var returnType = _ResponseModel["default"];
|
|
114
|
-
return this.apiClient.callApi('/core/volumes/{
|
|
116
|
+
return this.apiClient.callApi('/core/volumes/{volume_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
115
117
|
}
|
|
116
118
|
|
|
117
119
|
/**
|
|
118
120
|
* Delete volume
|
|
119
121
|
* Deletes a volume permanently. Provide the volume ID in the path to specify the volume to be deleted.
|
|
120
|
-
* @param {Number}
|
|
122
|
+
* @param {Number} volumeId
|
|
121
123
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
|
|
122
124
|
*/
|
|
123
125
|
}, {
|
|
124
126
|
key: "deleteVolume",
|
|
125
|
-
value: function deleteVolume(
|
|
126
|
-
return this.deleteVolumeWithHttpInfo(
|
|
127
|
+
value: function deleteVolume(volumeId) {
|
|
128
|
+
return this.deleteVolumeWithHttpInfo(volumeId).then(function (response_and_data) {
|
|
127
129
|
return response_and_data.data;
|
|
128
130
|
});
|
|
129
131
|
}
|
|
130
132
|
|
|
131
133
|
/**
|
|
132
|
-
* Fetch
|
|
133
|
-
*
|
|
134
|
-
* @param {
|
|
135
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
134
|
+
* Fetch volume name availability
|
|
135
|
+
* Check if a Volume name is available
|
|
136
|
+
* @param {String} name
|
|
137
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NameAvailableModel} and HTTP response
|
|
136
138
|
*/
|
|
137
139
|
}, {
|
|
138
|
-
key: "
|
|
139
|
-
value: function
|
|
140
|
+
key: "fetchVolumeNameAvailabilityWithHttpInfo",
|
|
141
|
+
value: function fetchVolumeNameAvailabilityWithHttpInfo(name) {
|
|
140
142
|
var postBody = null;
|
|
141
|
-
// verify the required parameter '
|
|
142
|
-
if (
|
|
143
|
-
throw new Error("Missing the required parameter '
|
|
143
|
+
// verify the required parameter 'name' is set
|
|
144
|
+
if (name === undefined || name === null) {
|
|
145
|
+
throw new Error("Missing the required parameter 'name' when calling fetchVolumeNameAvailability");
|
|
144
146
|
}
|
|
145
147
|
var pathParams = {
|
|
146
|
-
'
|
|
148
|
+
'name': name
|
|
147
149
|
};
|
|
148
150
|
var queryParams = {};
|
|
149
151
|
var headerParams = {};
|
|
150
152
|
var formParams = {};
|
|
151
|
-
var authNames = ['apiKey'
|
|
153
|
+
var authNames = ['apiKey'];
|
|
152
154
|
var contentTypes = [];
|
|
153
155
|
var accepts = ['application/json'];
|
|
154
|
-
var returnType =
|
|
155
|
-
return this.apiClient.callApi('/core/volume/{
|
|
156
|
+
var returnType = _NameAvailableModel["default"];
|
|
157
|
+
return this.apiClient.callApi('/core/volume/name-availability/{name}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
156
158
|
}
|
|
157
159
|
|
|
158
160
|
/**
|
|
159
|
-
* Fetch
|
|
160
|
-
*
|
|
161
|
-
* @param {
|
|
162
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
161
|
+
* Fetch volume name availability
|
|
162
|
+
* Check if a Volume name is available
|
|
163
|
+
* @param {String} name
|
|
164
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NameAvailableModel}
|
|
163
165
|
*/
|
|
164
166
|
}, {
|
|
165
|
-
key: "
|
|
166
|
-
value: function
|
|
167
|
-
return this.
|
|
167
|
+
key: "fetchVolumeNameAvailability",
|
|
168
|
+
value: function fetchVolumeNameAvailability(name) {
|
|
169
|
+
return this.fetchVolumeNameAvailabilityWithHttpInfo(name).then(function (response_and_data) {
|
|
168
170
|
return response_and_data.data;
|
|
169
171
|
});
|
|
170
172
|
}
|
|
171
173
|
|
|
172
174
|
/**
|
|
173
|
-
* Fetch
|
|
174
|
-
*
|
|
175
|
-
* @param {
|
|
176
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
175
|
+
* Fetch Volume Details
|
|
176
|
+
* Fetch volume details for specific volume. This endpoint returns id, name, volume size, volume type, status, description, image_id, os_image, created_at, updated_at etc.
|
|
177
|
+
* @param {Number} volumeId
|
|
178
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Volume} and HTTP response
|
|
177
179
|
*/
|
|
178
180
|
}, {
|
|
179
|
-
key: "
|
|
180
|
-
value: function
|
|
181
|
+
key: "getVolumeWithHttpInfo",
|
|
182
|
+
value: function getVolumeWithHttpInfo(volumeId) {
|
|
181
183
|
var postBody = null;
|
|
182
|
-
// verify the required parameter '
|
|
183
|
-
if (
|
|
184
|
-
throw new Error("Missing the required parameter '
|
|
184
|
+
// verify the required parameter 'volumeId' is set
|
|
185
|
+
if (volumeId === undefined || volumeId === null) {
|
|
186
|
+
throw new Error("Missing the required parameter 'volumeId' when calling getVolume");
|
|
185
187
|
}
|
|
186
188
|
var pathParams = {
|
|
187
|
-
'
|
|
189
|
+
'volume_id': volumeId
|
|
188
190
|
};
|
|
189
191
|
var queryParams = {};
|
|
190
192
|
var headerParams = {};
|
|
191
193
|
var formParams = {};
|
|
192
|
-
var authNames = ['apiKey'
|
|
194
|
+
var authNames = ['apiKey'];
|
|
193
195
|
var contentTypes = [];
|
|
194
196
|
var accepts = ['application/json'];
|
|
195
|
-
var returnType =
|
|
196
|
-
return this.apiClient.callApi('/core/
|
|
197
|
+
var returnType = _Volume["default"];
|
|
198
|
+
return this.apiClient.callApi('/core/volumes/{volume_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
197
199
|
}
|
|
198
200
|
|
|
199
201
|
/**
|
|
200
|
-
* Fetch
|
|
201
|
-
*
|
|
202
|
-
* @param {
|
|
203
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
202
|
+
* Fetch Volume Details
|
|
203
|
+
* Fetch volume details for specific volume. This endpoint returns id, name, volume size, volume type, status, description, image_id, os_image, created_at, updated_at etc.
|
|
204
|
+
* @param {Number} volumeId
|
|
205
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Volume}
|
|
204
206
|
*/
|
|
205
207
|
}, {
|
|
206
|
-
key: "
|
|
207
|
-
value: function
|
|
208
|
-
return this.
|
|
208
|
+
key: "getVolume",
|
|
209
|
+
value: function getVolume(volumeId) {
|
|
210
|
+
return this.getVolumeWithHttpInfo(volumeId).then(function (response_and_data) {
|
|
209
211
|
return response_and_data.data;
|
|
210
212
|
});
|
|
211
213
|
}
|
|
@@ -223,7 +225,7 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
223
225
|
var queryParams = {};
|
|
224
226
|
var headerParams = {};
|
|
225
227
|
var formParams = {};
|
|
226
|
-
var authNames = ['apiKey'
|
|
228
|
+
var authNames = ['apiKey'];
|
|
227
229
|
var contentTypes = [];
|
|
228
230
|
var accepts = ['application/json'];
|
|
229
231
|
var returnType = _VolumeTypes["default"];
|
|
@@ -245,7 +247,7 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
245
247
|
|
|
246
248
|
/**
|
|
247
249
|
* List volumes
|
|
248
|
-
* Returns a list of your existing volumes, providing details for each. For more information on volumes, [**click here**](
|
|
250
|
+
* Returns a list of your existing volumes, providing details for each. For more information on volumes, [**click here**]({Config.INFRAHUB_DOCS_BASE}/docs/api-reference/core-resources/volumes/).
|
|
249
251
|
* @param {Object} opts Optional parameters
|
|
250
252
|
* @param {String} [page] Page Number
|
|
251
253
|
* @param {String} [pageSize] Data Per Page
|
|
@@ -267,7 +269,7 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
267
269
|
};
|
|
268
270
|
var headerParams = {};
|
|
269
271
|
var formParams = {};
|
|
270
|
-
var authNames = ['apiKey'
|
|
272
|
+
var authNames = ['apiKey'];
|
|
271
273
|
var contentTypes = [];
|
|
272
274
|
var accepts = ['application/json'];
|
|
273
275
|
var returnType = _Volumes["default"];
|
|
@@ -276,7 +278,7 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
276
278
|
|
|
277
279
|
/**
|
|
278
280
|
* List volumes
|
|
279
|
-
* Returns a list of your existing volumes, providing details for each. For more information on volumes, [**click here**](
|
|
281
|
+
* Returns a list of your existing volumes, providing details for each. For more information on volumes, [**click here**]({Config.INFRAHUB_DOCS_BASE}/docs/api-reference/core-resources/volumes/).
|
|
280
282
|
* @param {Object} opts Optional parameters
|
|
281
283
|
* @param {String} opts.page Page Number
|
|
282
284
|
* @param {String} opts.pageSize Data Per Page
|
|
@@ -291,5 +293,52 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
291
293
|
return response_and_data.data;
|
|
292
294
|
});
|
|
293
295
|
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Update volume fields
|
|
299
|
+
* Update volume properties. Currently supports updating the environment by providing 'environment_name'. The volume must not be attached to any instance when changing environments, and the target environment must be in the same region.
|
|
300
|
+
* @param {Number} volumeId
|
|
301
|
+
* @param {module:model/UpdateVolumePayload} payload
|
|
302
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateVolumeResponse} and HTTP response
|
|
303
|
+
*/
|
|
304
|
+
}, {
|
|
305
|
+
key: "updateVolumeWithHttpInfo",
|
|
306
|
+
value: function updateVolumeWithHttpInfo(volumeId, payload) {
|
|
307
|
+
var postBody = payload;
|
|
308
|
+
// verify the required parameter 'volumeId' is set
|
|
309
|
+
if (volumeId === undefined || volumeId === null) {
|
|
310
|
+
throw new Error("Missing the required parameter 'volumeId' when calling updateVolume");
|
|
311
|
+
}
|
|
312
|
+
// verify the required parameter 'payload' is set
|
|
313
|
+
if (payload === undefined || payload === null) {
|
|
314
|
+
throw new Error("Missing the required parameter 'payload' when calling updateVolume");
|
|
315
|
+
}
|
|
316
|
+
var pathParams = {
|
|
317
|
+
'volume_id': volumeId
|
|
318
|
+
};
|
|
319
|
+
var queryParams = {};
|
|
320
|
+
var headerParams = {};
|
|
321
|
+
var formParams = {};
|
|
322
|
+
var authNames = ['apiKey'];
|
|
323
|
+
var contentTypes = ['application/json'];
|
|
324
|
+
var accepts = ['application/json'];
|
|
325
|
+
var returnType = _UpdateVolumeResponse["default"];
|
|
326
|
+
return this.apiClient.callApi('/core/volumes/{volume_id}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Update volume fields
|
|
331
|
+
* Update volume properties. Currently supports updating the environment by providing 'environment_name'. The volume must not be attached to any instance when changing environments, and the target environment must be in the same region.
|
|
332
|
+
* @param {Number} volumeId
|
|
333
|
+
* @param {module:model/UpdateVolumePayload} payload
|
|
334
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateVolumeResponse}
|
|
335
|
+
*/
|
|
336
|
+
}, {
|
|
337
|
+
key: "updateVolume",
|
|
338
|
+
value: function updateVolume(volumeId, payload) {
|
|
339
|
+
return this.updateVolumeWithHttpInfo(volumeId, payload).then(function (response_and_data) {
|
|
340
|
+
return response_and_data.data;
|
|
341
|
+
});
|
|
342
|
+
}
|
|
294
343
|
}]);
|
|
295
344
|
}();
|