@nexgencloud/hyperstack-sdk-javascript 1.22.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 +640 -0
- package/dist/ApiClient.js +710 -0
- package/dist/api/AliveApi.js +75 -0
- package/dist/api/ApiKeyApi.js +209 -0
- package/dist/api/AssigningMemberRoleApi.js +136 -0
- package/dist/api/AuthApi.js +79 -0
- package/dist/api/BillingApi.js +974 -0
- package/dist/api/CalculateApi.js +94 -0
- package/dist/api/CallbacksApi.js +318 -0
- package/dist/api/ClusterEventsApi.js +85 -0
- package/dist/api/ClustersApi.js +269 -0
- package/dist/api/ComplianceApi.js +202 -0
- package/dist/api/CreditApi.js +77 -0
- package/dist/api/CustomerContractApi.js +183 -0
- package/dist/api/DashboardApi.js +79 -0
- package/dist/api/DeploymentApi.js +195 -0
- package/dist/api/EnvironmentApi.js +264 -0
- package/dist/api/FirewallAttachmentApi.js +92 -0
- package/dist/api/FirewallsApi.js +317 -0
- package/dist/api/FlavorApi.js +86 -0
- package/dist/api/FloatingIpApi.js +128 -0
- package/dist/api/GpuApi.js +79 -0
- package/dist/api/ImageApi.js +231 -0
- package/dist/api/InviteApi.js +162 -0
- package/dist/api/KeypairApi.js +224 -0
- package/dist/api/OrganizationApi.js +161 -0
- package/dist/api/PaymentApi.js +116 -0
- package/dist/api/PermissionApi.js +79 -0
- package/dist/api/PolicyApi.js +79 -0
- package/dist/api/PricebookApi.js +75 -0
- package/dist/api/ProfileApi.js +203 -0
- package/dist/api/RbacRoleApi.js +251 -0
- package/dist/api/RegionApi.js +79 -0
- package/dist/api/SecurityRulesApi.js +79 -0
- package/dist/api/SnapshotEventsApi.js +85 -0
- package/dist/api/SnapshotsApi.js +316 -0
- package/dist/api/StockApi.js +79 -0
- package/dist/api/TemplateApi.js +280 -0
- package/dist/api/UserApi.js +153 -0
- package/dist/api/UserDetailChoiceApi.js +79 -0
- package/dist/api/UserPermissionApi.js +120 -0
- package/dist/api/VirtualMachineApi.js +861 -0
- package/dist/api/VirtualMachineEventsApi.js +87 -0
- package/dist/api/VncUrlApi.js +132 -0
- package/dist/api/VolumeApi.js +295 -0
- package/dist/api/VolumeAttachmentApi.js +143 -0
- package/dist/index.js +2729 -0
- package/dist/model/AddUpdateFlavorOrganizationPayload.js +242 -0
- package/dist/model/AddUserInfoSuccessResponseModel.js +111 -0
- package/dist/model/AllocatedGPUCountGraph.js +97 -0
- package/dist/model/ApiKeyFields.js +129 -0
- package/dist/model/ApiKeyVerifyFields.js +117 -0
- package/dist/model/AssignRbacRolePayload.js +108 -0
- package/dist/model/AttachCallbackPayload.js +112 -0
- package/dist/model/AttachCallbackResponse.js +109 -0
- package/dist/model/AttachFirewallWithVM.js +112 -0
- package/dist/model/AttachFirewallsToVMPayload.js +113 -0
- package/dist/model/AttachVolumeFields.js +121 -0
- package/dist/model/AttachVolumes.js +130 -0
- package/dist/model/AttachVolumesPayload.js +89 -0
- package/dist/model/AuthGetTokenResponseModel.js +119 -0
- package/dist/model/AuthRequestLoginFields.js +101 -0
- package/dist/model/AuthRequestLoginResponseModel.js +111 -0
- package/dist/model/AuthUserFields.js +121 -0
- package/dist/model/AuthUserInfoResponseModel.js +111 -0
- package/dist/model/BillingImmuneResourcesResponse.js +111 -0
- package/dist/model/BillingResponse.js +130 -0
- package/dist/model/Billingmetricesfields.js +173 -0
- package/dist/model/Billingmetricesresponse.js +130 -0
- package/dist/model/ClusterEvents.js +130 -0
- package/dist/model/ClusterEventsFields.js +165 -0
- package/dist/model/ClusterFields.js +211 -0
- package/dist/model/ClusterListResponse.js +130 -0
- package/dist/model/ClusterResponse.js +111 -0
- package/dist/model/ClusterVersions.js +109 -0
- package/dist/model/CommonResponseModel.js +97 -0
- package/dist/model/ComplianceFields.js +125 -0
- package/dist/model/ComplianceModelFields.js +141 -0
- package/dist/model/CompliancePayload.js +166 -0
- package/dist/model/ComplianceResponse.js +111 -0
- package/dist/model/ContainerOverviewFields.js +117 -0
- package/dist/model/Contract.js +158 -0
- package/dist/model/ContractBillingHistory.js +105 -0
- package/dist/model/ContractBillingHistoryResponseAttributes.js +149 -0
- package/dist/model/ContractBillingHistoryResponseModel.js +111 -0
- package/dist/model/ContractChangePayload.js +166 -0
- package/dist/model/ContractDiscountPlanFields.js +165 -0
- package/dist/model/ContractEligibleInstanceFields.js +153 -0
- package/dist/model/ContractEligibleInstancesResponse.js +138 -0
- package/dist/model/ContractEventCreateModel.js +143 -0
- package/dist/model/ContractGPUAllocationGraphResponse.js +111 -0
- package/dist/model/ContractInstanceFields.js +153 -0
- package/dist/model/ContractInstancesResponse.js +130 -0
- package/dist/model/ContractResourcePayload.js +146 -0
- package/dist/model/ContractlBillingHistoryResponseMetrics.js +85 -0
- package/dist/model/CreateClusterPayload.js +206 -0
- package/dist/model/CreateContractFields.js +170 -0
- package/dist/model/CreateContractPayload.js +178 -0
- package/dist/model/CreateDiscountResponse.js +111 -0
- package/dist/model/CreateDiscountsPayload.js +192 -0
- package/dist/model/CreateEnvironment.js +128 -0
- package/dist/model/CreateFirewallPayload.js +137 -0
- package/dist/model/CreateFirewallRulePayload.js +314 -0
- package/dist/model/CreateGPU.js +137 -0
- package/dist/model/CreateImage.js +105 -0
- package/dist/model/CreateImagePayload.js +126 -0
- package/dist/model/CreateInstancesPayload.js +320 -0
- package/dist/model/CreateInstancesResponse.js +130 -0
- package/dist/model/CreateProfilePayload.js +139 -0
- package/dist/model/CreateProfileResponse.js +111 -0
- package/dist/model/CreateSecurityRulePayload.js +312 -0
- package/dist/model/CreateSnapshotPayload.js +152 -0
- package/dist/model/CreateSnapshotResponse.js +111 -0
- package/dist/model/CreateUpdateComplianceResponse.js +111 -0
- package/dist/model/CreateUpdatePermissionPayload.js +154 -0
- package/dist/model/CreateUpdatePermissionResponseModel.js +111 -0
- package/dist/model/CreateUpdatePolicyPayload.js +150 -0
- package/dist/model/CreateUpdatePolicyResponseModel.js +111 -0
- package/dist/model/CreateUpdateRbacRolePayload.js +152 -0
- package/dist/model/CreateVolumePayload.js +189 -0
- package/dist/model/Creditrechargelimitfield.js +109 -0
- package/dist/model/Creditrechargelimitresponse.js +130 -0
- package/dist/model/Creditrequestresponse.js +130 -0
- package/dist/model/Creditrequests.js +125 -0
- package/dist/model/CustomerContractDetailResponseModel.js +111 -0
- package/dist/model/CustomerContractFields.js +182 -0
- package/dist/model/CustomerFields.js +97 -0
- package/dist/model/CustomerPayload.js +122 -0
- package/dist/model/DashboardInfoResponse.js +111 -0
- package/dist/model/Data.js +108 -0
- package/dist/model/DeploymentFields.js +141 -0
- package/dist/model/DeploymentFieldsforstartdeployments.js +153 -0
- package/dist/model/Deployments.js +130 -0
- package/dist/model/DetachVolumes.js +130 -0
- package/dist/model/DetachVolumesPayload.js +89 -0
- package/dist/model/DiscountEntityModel.js +122 -0
- package/dist/model/DiscountFields.js +149 -0
- package/dist/model/DiscountPlanFields.js +181 -0
- package/dist/model/DiscountResourceFields.js +113 -0
- package/dist/model/DiscountResourcePayload.js +142 -0
- package/dist/model/EditlabelofanexistingVMPayload.js +90 -0
- package/dist/model/Environment.js +111 -0
- package/dist/model/EnvironmentFeatures.js +85 -0
- package/dist/model/EnvironmentFields.js +131 -0
- package/dist/model/EnvironmentFieldsforVolume.js +89 -0
- package/dist/model/Environments.js +154 -0
- package/dist/model/ErrorResponseModel.js +112 -0
- package/dist/model/ExcludeBillingPostPayload.js +135 -0
- package/dist/model/ExcludeBillingPostResponse.js +91 -0
- package/dist/model/ExportBillingDataRequest.js +186 -0
- package/dist/model/ExportBillingDataResponse.js +101 -0
- package/dist/model/FieldChange.js +116 -0
- package/dist/model/FirewallAttachmentModel.js +119 -0
- package/dist/model/FirewallAttachmentVMModel.js +141 -0
- package/dist/model/FirewallDetailFields.js +206 -0
- package/dist/model/FirewallDetailResponse.js +111 -0
- package/dist/model/FirewallEnvironmentFields.js +109 -0
- package/dist/model/FirewallFields.js +143 -0
- package/dist/model/FirewallResponse.js +111 -0
- package/dist/model/FirewallRule.js +111 -0
- package/dist/model/FirewallsListResponse.js +154 -0
- package/dist/model/FlavorFields.js +222 -0
- package/dist/model/FlavorItemGetResponse.js +134 -0
- package/dist/model/FlavorListResponse.js +130 -0
- package/dist/model/FlavorObjectFields.js +121 -0
- package/dist/model/FlavorPayload.js +190 -0
- package/dist/model/FlavorResponse.js +111 -0
- package/dist/model/FlavorVMFields.js +149 -0
- package/dist/model/FlavorVMsResponse.js +130 -0
- package/dist/model/FutureNodeModel.js +171 -0
- package/dist/model/FutureNodeResponseModel.js +122 -0
- package/dist/model/FutureNodeStockModel.js +128 -0
- package/dist/model/FutureNodeUpdateModel.js +152 -0
- package/dist/model/FutureNodesStockModel.js +110 -0
- package/dist/model/GPU.js +111 -0
- package/dist/model/GPUFields.js +158 -0
- package/dist/model/GPUList.js +130 -0
- package/dist/model/GPURegionFields.js +97 -0
- package/dist/model/GenerateUpdateApiKeyPayload.js +124 -0
- package/dist/model/GenerateUpdateApiKeyResponseModel.js +111 -0
- package/dist/model/GetAllContractFields.js +137 -0
- package/dist/model/GetAllContractsResponseModel.js +130 -0
- package/dist/model/GetAllDiscountForAllOrganizationResponse.js +130 -0
- package/dist/model/GetAllDiscountsFields.js +158 -0
- package/dist/model/GetApiKeysResponseModel.js +130 -0
- package/dist/model/GetCustomerContractsListResponseModel.js +138 -0
- package/dist/model/GetDiscountDetailResponse.js +111 -0
- package/dist/model/GetDiscountResponse.js +130 -0
- package/dist/model/GetEntityDiscountDetailResponse.js +159 -0
- package/dist/model/GetInvitesResponseModel.js +130 -0
- package/dist/model/GetOrganizationResponseModel.js +111 -0
- package/dist/model/GetPermissionsResponseModel.js +130 -0
- package/dist/model/GetPoliciesResponseModel.js +130 -0
- package/dist/model/GetRbacRolesResponseModel.js +130 -0
- package/dist/model/GetTokenPayload.js +126 -0
- package/dist/model/GetUserPermissionsResponseModel.js +130 -0
- package/dist/model/GetVersionResponse.js +109 -0
- package/dist/model/Getcreditandthresholdinfo.js +101 -0
- package/dist/model/Getcreditandthresholdinfoinresponse.js +111 -0
- package/dist/model/GraphDatetimeValueModel.js +97 -0
- package/dist/model/HistoricalInstance.js +138 -0
- package/dist/model/HistoricalInstancesFields.js +201 -0
- package/dist/model/Image.js +91 -0
- package/dist/model/ImageFields.js +206 -0
- package/dist/model/ImageGetResponse.js +146 -0
- package/dist/model/ImageLogos.js +130 -0
- package/dist/model/Images.js +130 -0
- package/dist/model/ImportKeypairPayload.js +143 -0
- package/dist/model/ImportKeypairResponse.js +111 -0
- package/dist/model/InfrahubResourceObjectResponse.js +222 -0
- package/dist/model/InfrahubResourceObjectResponseForCustomer.js +182 -0
- package/dist/model/InsertDiscountPlanFields.js +168 -0
- package/dist/model/Instance.js +111 -0
- package/dist/model/InstanceEnvironmentFields.js +131 -0
- package/dist/model/InstanceEvents.js +130 -0
- package/dist/model/InstanceEventsFields.js +157 -0
- package/dist/model/InstanceFields.js +368 -0
- package/dist/model/InstanceFlavorFields.js +149 -0
- package/dist/model/InstanceImageFields.js +89 -0
- package/dist/model/InstanceKeypairFields.js +89 -0
- package/dist/model/InstanceOverviewFields.js +117 -0
- package/dist/model/InstanceResizePayload.js +103 -0
- package/dist/model/Instances.js +154 -0
- package/dist/model/InstancesSummaryFields.js +249 -0
- package/dist/model/InternalEnvironmentFields.js +117 -0
- package/dist/model/InternalInstanceFields.js +344 -0
- package/dist/model/InternalInstanceFlavorFields.js +161 -0
- package/dist/model/InternalInstanceImageFields.js +133 -0
- package/dist/model/InternalInstanceKeypairFields.js +141 -0
- package/dist/model/InternalInstancesResponse.js +130 -0
- package/dist/model/InternalSecurityRulesFieldsForInstance.js +169 -0
- package/dist/model/InternalVolumeAttachmentFields.js +123 -0
- package/dist/model/InternalVolumeFields.js +129 -0
- package/dist/model/InternalVolumesResponse.js +130 -0
- package/dist/model/InviteFields.js +117 -0
- package/dist/model/InviteUserPayload.js +113 -0
- package/dist/model/InviteUserResponseModel.js +111 -0
- package/dist/model/KeypairFields.js +141 -0
- package/dist/model/Keypairs.js +154 -0
- package/dist/model/LableResonse.js +97 -0
- package/dist/model/Lastdaycostfields.js +109 -0
- package/dist/model/Lastdaycostresponse.js +111 -0
- package/dist/model/LogoGetResponse.js +109 -0
- package/dist/model/LogoutPayload.js +112 -0
- package/dist/model/MetricItemFields.js +113 -0
- package/dist/model/MetricsFields.js +156 -0
- package/dist/model/NameAvailableModel.js +109 -0
- package/dist/model/NewConfigurationsResponse.js +117 -0
- package/dist/model/NewModelResponse.js +151 -0
- package/dist/model/NewStockResponse.js +134 -0
- package/dist/model/NewStockRetriveResponse.js +110 -0
- package/dist/model/NewStockUpdateResponseModel.js +97 -0
- package/dist/model/NodeModel.js +230 -0
- package/dist/model/NodePayloadModel.js +122 -0
- package/dist/model/NodePowerUsageModel.js +244 -0
- package/dist/model/NodeResponseModel.js +122 -0
- package/dist/model/NodeStockPayloadModel.js +110 -0
- package/dist/model/NodeStockResponseModel.js +110 -0
- package/dist/model/NodeStocksPayload.js +144 -0
- package/dist/model/OrganizationFields.js +208 -0
- package/dist/model/OrganizationLevelBillingHistory.js +126 -0
- package/dist/model/OrganizationLevelBillingHistoryResources.js +105 -0
- package/dist/model/OrganizationLevelBillingHistoryResponseAttributes.js +89 -0
- package/dist/model/OrganizationLevelBillingHistoryResponseMetrics.js +125 -0
- package/dist/model/OrganizationLevelBillingHistoryResponseModel.js +111 -0
- package/dist/model/OrganizationObjectResponse.js +118 -0
- package/dist/model/OrganizationThresholdfields.js +125 -0
- package/dist/model/OrganizationUserResponseModel.js +194 -0
- package/dist/model/Organizationcreditrechargelimitresponse.js +111 -0
- package/dist/model/Organizationthresholdsresponse.js +130 -0
- package/dist/model/Organizationthresholdupdateresponse.js +111 -0
- package/dist/model/OverviewInfo.js +119 -0
- package/dist/model/PaginationData.js +101 -0
- package/dist/model/PaymentDetailsFields.js +185 -0
- package/dist/model/PaymentDetailsResponse.js +111 -0
- package/dist/model/PaymentInitiateFields.js +89 -0
- package/dist/model/PaymentInitiatePayload.js +85 -0
- package/dist/model/PaymentInitiateResponse.js +111 -0
- package/dist/model/PermissionFields.js +141 -0
- package/dist/model/PolicyFields.js +150 -0
- package/dist/model/PolicyPermissionFields.js +109 -0
- package/dist/model/PowerUsageModel.js +122 -0
- package/dist/model/PricebookModel.js +137 -0
- package/dist/model/PricebookResourceObjectResponse.js +173 -0
- package/dist/model/PricebookResourceObjectResponseForCustomer.js +141 -0
- package/dist/model/ProfileFields.js +129 -0
- package/dist/model/ProfileListResponse.js +130 -0
- package/dist/model/ProfileObjectFields.js +124 -0
- package/dist/model/RbacRoleDetailResponseModel.js +111 -0
- package/dist/model/RbacRoleDetailResponseModelFixed.js +111 -0
- package/dist/model/RbacRoleField.js +89 -0
- package/dist/model/RbacRoleFields.js +180 -0
- package/dist/model/RefreshTokenPayload.js +126 -0
- package/dist/model/RegionFields.js +109 -0
- package/dist/model/RegionPayload.js +124 -0
- package/dist/model/RegionResponse.js +111 -0
- package/dist/model/Regions.js +130 -0
- package/dist/model/RemoveMemberFromOrganizationResponseModel.js +97 -0
- package/dist/model/RemoveMemberPayload.js +113 -0
- package/dist/model/RequestConsole.js +109 -0
- package/dist/model/ResourceBillingEventsHistoryMetrics.js +125 -0
- package/dist/model/ResourceBillingEventsHistoryResponse.js +130 -0
- package/dist/model/ResourceBillingResponseForCustomer.js +111 -0
- package/dist/model/ResourceLevelBillingDetailsAttributes.js +109 -0
- package/dist/model/ResourceLevelBillingDetailsMetrics.js +141 -0
- package/dist/model/ResourceLevelBillingDetailsVM.js +126 -0
- package/dist/model/ResourceLevelBillingDetailsVolume.js +126 -0
- package/dist/model/ResourceLevelBillingDetailsVolumeAttributes.js +129 -0
- package/dist/model/ResourceLevelBillingDetailsVolumeMetrics.js +117 -0
- package/dist/model/ResourceLevelBillingHistory.js +140 -0
- package/dist/model/ResourceLevelBillingHistoryResources.js +105 -0
- package/dist/model/ResourceLevelBillingHistoryResponseAttributes.js +121 -0
- package/dist/model/ResourceLevelBillingHistoryResponseMetrics.js +101 -0
- package/dist/model/ResourceLevelBillingVMDetailsResources.js +105 -0
- package/dist/model/ResourceLevelBillingVolumeDetailsResources.js +105 -0
- package/dist/model/ResourceLevelGraphBillingDetailVolume.js +134 -0
- package/dist/model/ResourceLevelGraphBillingDetailsAttributes.js +109 -0
- package/dist/model/ResourceLevelGraphBillingDetailsMetrics.js +118 -0
- package/dist/model/ResourceLevelGraphBillingDetailsVM.js +134 -0
- package/dist/model/ResourceLevelGraphBillingVMDetailsResources.js +105 -0
- package/dist/model/ResourceLevelGraphBillingVolumeDetailsResources.js +105 -0
- package/dist/model/ResourceLevelVMBillingDetailsResponseModel.js +111 -0
- package/dist/model/ResourceLevelVmBillingHistoryResponseModel.js +111 -0
- package/dist/model/ResourceLevelVmGraphBillingDetailsResponseModel.js +111 -0
- package/dist/model/ResourceLevelVolumeBillingDetailsResponseModel.js +111 -0
- package/dist/model/ResourceLevelVolumeBillingHistoryResponseModel.js +111 -0
- package/dist/model/ResourceLevelVolumeGraphBillingDetailsResponseModel.js +111 -0
- package/dist/model/ResourceObjectResponseForCustomer.js +99 -0
- package/dist/model/ResponseModel.js +97 -0
- package/dist/model/RolePermissionFields.js +109 -0
- package/dist/model/RolePolicyFields.js +109 -0
- package/dist/model/SecurityGroupRule.js +111 -0
- package/dist/model/SecurityGroupRuleFields.js +169 -0
- package/dist/model/SecurityRulesFieldsforInstance.js +169 -0
- package/dist/model/SecurityRulesProtocolFields.js +109 -0
- package/dist/model/SetDefaultsPayload.js +126 -0
- package/dist/model/SingleVisibilityUserResponse.js +128 -0
- package/dist/model/SnapshotFields.js +220 -0
- package/dist/model/SnapshotRestoreRequest.js +122 -0
- package/dist/model/SnapshotRetrieve.js +111 -0
- package/dist/model/SnapshotRetrieveFields.js +207 -0
- package/dist/model/Snapshots.js +154 -0
- package/dist/model/StartDeployment.js +111 -0
- package/dist/model/StartDeploymentPayload.js +146 -0
- package/dist/model/StockVisibilityUserListResponse.js +130 -0
- package/dist/model/StockVisibilityUserPayload.js +112 -0
- package/dist/model/SubResourceGraphBillingDetailsMetrics.js +303 -0
- package/dist/model/SubResourcesCostsResponseModel.js +134 -0
- package/dist/model/SubResourcesGraphBillingHistoryFields.js +105 -0
- package/dist/model/SubResourcesGraphResponseModel.js +111 -0
- package/dist/model/Subscribeorunsubscribeupdatepayload.js +109 -0
- package/dist/model/SuccessResponseModel.js +100 -0
- package/dist/model/Template.js +111 -0
- package/dist/model/TemplateFields.js +137 -0
- package/dist/model/Templates.js +130 -0
- package/dist/model/TokenFields.js +113 -0
- package/dist/model/UpdateContractPayload.js +168 -0
- package/dist/model/UpdateDiscountsPayload.js +160 -0
- package/dist/model/UpdateDiscountsStatusPayload.js +112 -0
- package/dist/model/UpdateEnvironment.js +113 -0
- package/dist/model/UpdateGPU.js +114 -0
- package/dist/model/UpdateKeypairName.js +113 -0
- package/dist/model/UpdateKeypairnameresponse.js +111 -0
- package/dist/model/UpdateOrganizationPayload.js +113 -0
- package/dist/model/UpdateOrganizationResponseModel.js +97 -0
- package/dist/model/UpdateTemplate.js +109 -0
- package/dist/model/UserDefaultChoiceForUserFields.js +101 -0
- package/dist/model/UserDefaultChoicesForUserResponse.js +130 -0
- package/dist/model/UserPermissionFields.js +109 -0
- package/dist/model/UserTransferPayload.js +122 -0
- package/dist/model/Userinfopostpayload.js +232 -0
- package/dist/model/UsersInfoFields.js +229 -0
- package/dist/model/UsersInfoListResponse.js +111 -0
- package/dist/model/VMUsageRequestPayload.js +113 -0
- package/dist/model/VMUsageResponse.js +138 -0
- package/dist/model/VNCURL.js +111 -0
- package/dist/model/VNCURLFields.js +97 -0
- package/dist/model/VerifyApiKeyPayload.js +113 -0
- package/dist/model/VerifyApiKeyResponseModel.js +111 -0
- package/dist/model/VirtualMachineUsage.js +117 -0
- package/dist/model/Volume.js +111 -0
- package/dist/model/VolumeAttachmentFields.js +123 -0
- package/dist/model/VolumeFields.js +211 -0
- package/dist/model/VolumeFieldsforInstance.js +137 -0
- package/dist/model/VolumeOverviewFields.js +101 -0
- package/dist/model/VolumeStatusChangeFields.js +125 -0
- package/dist/model/VolumeTypes.js +109 -0
- package/dist/model/Volumes.js +130 -0
- package/dist/model/VolumesLastStatusChangeResponse.js +130 -0
- package/dist/model/WarningMailLogFields.js +149 -0
- package/dist/model/WarningMailLogResponse.js +138 -0
- package/package.json +46 -0
|
@@ -0,0 +1,974 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _Billingmetricesresponse = _interopRequireDefault(require("../model/Billingmetricesresponse"));
|
|
9
|
+
var _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
|
|
10
|
+
var _Lastdaycostresponse = _interopRequireDefault(require("../model/Lastdaycostresponse"));
|
|
11
|
+
var _OrganizationLevelBillingHistoryResponseModel = _interopRequireDefault(require("../model/OrganizationLevelBillingHistoryResponseModel"));
|
|
12
|
+
var _Organizationthresholdsresponse = _interopRequireDefault(require("../model/Organizationthresholdsresponse"));
|
|
13
|
+
var _Organizationthresholdupdateresponse = _interopRequireDefault(require("../model/Organizationthresholdupdateresponse"));
|
|
14
|
+
var _ResourceBillingEventsHistoryResponse = _interopRequireDefault(require("../model/ResourceBillingEventsHistoryResponse"));
|
|
15
|
+
var _ResourceLevelVMBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelVMBillingDetailsResponseModel"));
|
|
16
|
+
var _ResourceLevelVmBillingHistoryResponseModel = _interopRequireDefault(require("../model/ResourceLevelVmBillingHistoryResponseModel"));
|
|
17
|
+
var _ResourceLevelVmGraphBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelVmGraphBillingDetailsResponseModel"));
|
|
18
|
+
var _ResourceLevelVolumeBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelVolumeBillingDetailsResponseModel"));
|
|
19
|
+
var _ResourceLevelVolumeBillingHistoryResponseModel = _interopRequireDefault(require("../model/ResourceLevelVolumeBillingHistoryResponseModel"));
|
|
20
|
+
var _ResourceLevelVolumeGraphBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelVolumeGraphBillingDetailsResponseModel"));
|
|
21
|
+
var _SubResourcesCostsResponseModel = _interopRequireDefault(require("../model/SubResourcesCostsResponseModel"));
|
|
22
|
+
var _SubResourcesGraphResponseModel = _interopRequireDefault(require("../model/SubResourcesGraphResponseModel"));
|
|
23
|
+
var _Subscribeorunsubscribeupdatepayload = _interopRequireDefault(require("../model/Subscribeorunsubscribeupdatepayload"));
|
|
24
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
25
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
26
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
27
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
28
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
29
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
30
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
31
|
+
* Infrahub-API
|
|
32
|
+
* Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
|
|
33
|
+
*
|
|
34
|
+
* The version of the OpenAPI document: 1.0
|
|
35
|
+
*
|
|
36
|
+
*
|
|
37
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
38
|
+
* https://openapi-generator.tech
|
|
39
|
+
* Do not edit the class manually.
|
|
40
|
+
*
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* Billing service.
|
|
44
|
+
* @module api/BillingApi
|
|
45
|
+
* @version v1.22.0-alpha
|
|
46
|
+
*/
|
|
47
|
+
var BillingApi = exports["default"] = /*#__PURE__*/function () {
|
|
48
|
+
/**
|
|
49
|
+
* Constructs a new BillingApi.
|
|
50
|
+
* @alias module:api/BillingApi
|
|
51
|
+
* @class
|
|
52
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
53
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
54
|
+
*/
|
|
55
|
+
function BillingApi(apiClient) {
|
|
56
|
+
_classCallCheck(this, BillingApi);
|
|
57
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* GET: All Thresholds for Organization
|
|
62
|
+
* Retrieve all the notification thresholds for an organization.
|
|
63
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Organizationthresholdsresponse} and HTTP response
|
|
64
|
+
*/
|
|
65
|
+
return _createClass(BillingApi, [{
|
|
66
|
+
key: "getAllThresholdsForOrganizationWithHttpInfo",
|
|
67
|
+
value: function getAllThresholdsForOrganizationWithHttpInfo() {
|
|
68
|
+
var postBody = null;
|
|
69
|
+
var pathParams = {};
|
|
70
|
+
var queryParams = {};
|
|
71
|
+
var headerParams = {};
|
|
72
|
+
var formParams = {};
|
|
73
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
74
|
+
var contentTypes = [];
|
|
75
|
+
var accepts = ['application/json'];
|
|
76
|
+
var returnType = _Organizationthresholdsresponse["default"];
|
|
77
|
+
return this.apiClient.callApi('/billing/billing/threshold', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* GET: All Thresholds for Organization
|
|
82
|
+
* Retrieve all the notification thresholds for an organization.
|
|
83
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Organizationthresholdsresponse}
|
|
84
|
+
*/
|
|
85
|
+
}, {
|
|
86
|
+
key: "getAllThresholdsForOrganization",
|
|
87
|
+
value: function getAllThresholdsForOrganization() {
|
|
88
|
+
return this.getAllThresholdsForOrganizationWithHttpInfo().then(function (response_and_data) {
|
|
89
|
+
return response_and_data.data;
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* GET: Billing usage
|
|
95
|
+
* Retrieve active billing metrics for the organization's resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](https://infrahub-doc.nexgencloud.com/docs/billing-and-payment/billing-features#view-usage-costs-for-all-resources)
|
|
96
|
+
* @param {Object} opts Optional parameters
|
|
97
|
+
* @param {String} [deleted] `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
|
|
98
|
+
* @param {String} [environment] Filter resources by environment ID or Name
|
|
99
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Billingmetricesresponse} and HTTP response
|
|
100
|
+
*/
|
|
101
|
+
}, {
|
|
102
|
+
key: "getBillingUsageWithHttpInfo",
|
|
103
|
+
value: function getBillingUsageWithHttpInfo(opts) {
|
|
104
|
+
opts = opts || {};
|
|
105
|
+
var postBody = null;
|
|
106
|
+
var pathParams = {};
|
|
107
|
+
var queryParams = {
|
|
108
|
+
'deleted': opts['deleted'],
|
|
109
|
+
'environment': opts['environment']
|
|
110
|
+
};
|
|
111
|
+
var headerParams = {};
|
|
112
|
+
var formParams = {};
|
|
113
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
114
|
+
var contentTypes = [];
|
|
115
|
+
var accepts = ['application/json'];
|
|
116
|
+
var returnType = _Billingmetricesresponse["default"];
|
|
117
|
+
return this.apiClient.callApi('/billing/billing/usage', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* GET: Billing usage
|
|
122
|
+
* Retrieve active billing metrics for the organization's resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](https://infrahub-doc.nexgencloud.com/docs/billing-and-payment/billing-features#view-usage-costs-for-all-resources)
|
|
123
|
+
* @param {Object} opts Optional parameters
|
|
124
|
+
* @param {String} opts.deleted `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
|
|
125
|
+
* @param {String} opts.environment Filter resources by environment ID or Name
|
|
126
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Billingmetricesresponse}
|
|
127
|
+
*/
|
|
128
|
+
}, {
|
|
129
|
+
key: "getBillingUsage",
|
|
130
|
+
value: function getBillingUsage(opts) {
|
|
131
|
+
return this.getBillingUsageWithHttpInfo(opts).then(function (response_and_data) {
|
|
132
|
+
return response_and_data.data;
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* GET: Last Day Cost
|
|
138
|
+
* Retrieve the previous day's costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/billing-resources/last-day-usage/)
|
|
139
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Lastdaycostresponse} and HTTP response
|
|
140
|
+
*/
|
|
141
|
+
}, {
|
|
142
|
+
key: "getLastDayCostWithHttpInfo",
|
|
143
|
+
value: function getLastDayCostWithHttpInfo() {
|
|
144
|
+
var postBody = null;
|
|
145
|
+
var pathParams = {};
|
|
146
|
+
var queryParams = {};
|
|
147
|
+
var headerParams = {};
|
|
148
|
+
var formParams = {};
|
|
149
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
150
|
+
var contentTypes = [];
|
|
151
|
+
var accepts = ['application/json'];
|
|
152
|
+
var returnType = _Lastdaycostresponse["default"];
|
|
153
|
+
return this.apiClient.callApi('/billing/billing/last-day-cost', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* GET: Last Day Cost
|
|
158
|
+
* Retrieve the previous day's costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/billing-resources/last-day-usage/)
|
|
159
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Lastdaycostresponse}
|
|
160
|
+
*/
|
|
161
|
+
}, {
|
|
162
|
+
key: "getLastDayCost",
|
|
163
|
+
value: function getLastDayCost() {
|
|
164
|
+
return this.getLastDayCostWithHttpInfo().then(function (response_and_data) {
|
|
165
|
+
return response_and_data.data;
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Retrieve Billing History for a specific Billing Cycle
|
|
171
|
+
* User will recieve billing history for the specified billing cycle. This data will include 'incurred_bill', 'non_discounted_bill', 'vm_cost', 'volume_cost'
|
|
172
|
+
* @param {Object} opts Optional parameters
|
|
173
|
+
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
174
|
+
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
175
|
+
* @param {String} [graph] Set this value to \"true\" for getting graph value
|
|
176
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationLevelBillingHistoryResponseModel} and HTTP response
|
|
177
|
+
*/
|
|
178
|
+
}, {
|
|
179
|
+
key: "retrieveBillingHistoryForASpecificBillingCycleWithHttpInfo",
|
|
180
|
+
value: function retrieveBillingHistoryForASpecificBillingCycleWithHttpInfo(opts) {
|
|
181
|
+
opts = opts || {};
|
|
182
|
+
var postBody = null;
|
|
183
|
+
var pathParams = {};
|
|
184
|
+
var queryParams = {
|
|
185
|
+
'start_date': opts['startDate'],
|
|
186
|
+
'end_date': opts['endDate'],
|
|
187
|
+
'graph': opts['graph']
|
|
188
|
+
};
|
|
189
|
+
var headerParams = {};
|
|
190
|
+
var formParams = {};
|
|
191
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
192
|
+
var contentTypes = [];
|
|
193
|
+
var accepts = ['application/json'];
|
|
194
|
+
var returnType = _OrganizationLevelBillingHistoryResponseModel["default"];
|
|
195
|
+
return this.apiClient.callApi('/billing/billing/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Retrieve Billing History for a specific Billing Cycle
|
|
200
|
+
* User will recieve billing history for the specified billing cycle. This data will include 'incurred_bill', 'non_discounted_bill', 'vm_cost', 'volume_cost'
|
|
201
|
+
* @param {Object} opts Optional parameters
|
|
202
|
+
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
203
|
+
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
204
|
+
* @param {String} opts.graph Set this value to \"true\" for getting graph value
|
|
205
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationLevelBillingHistoryResponseModel}
|
|
206
|
+
*/
|
|
207
|
+
}, {
|
|
208
|
+
key: "retrieveBillingHistoryForASpecificBillingCycle",
|
|
209
|
+
value: function retrieveBillingHistoryForASpecificBillingCycle(opts) {
|
|
210
|
+
return this.retrieveBillingHistoryForASpecificBillingCycleWithHttpInfo(opts).then(function (response_and_data) {
|
|
211
|
+
return response_and_data.data;
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
|
|
217
|
+
* Retrieve billing history of a specific Snapshot for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
|
|
218
|
+
* @param {Number} snapshotId
|
|
219
|
+
* @param {Object} opts Optional parameters
|
|
220
|
+
* @param {String} [startDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
221
|
+
* @param {String} [endDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
222
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel} and HTTP response
|
|
223
|
+
*/
|
|
224
|
+
}, {
|
|
225
|
+
key: "retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo",
|
|
226
|
+
value: function retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo(snapshotId, opts) {
|
|
227
|
+
opts = opts || {};
|
|
228
|
+
var postBody = null;
|
|
229
|
+
// verify the required parameter 'snapshotId' is set
|
|
230
|
+
if (snapshotId === undefined || snapshotId === null) {
|
|
231
|
+
throw new Error("Missing the required parameter 'snapshotId' when calling retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle");
|
|
232
|
+
}
|
|
233
|
+
var pathParams = {
|
|
234
|
+
'snapshot_id': snapshotId
|
|
235
|
+
};
|
|
236
|
+
var queryParams = {
|
|
237
|
+
'start_date': opts['startDate'],
|
|
238
|
+
'end_date': opts['endDate']
|
|
239
|
+
};
|
|
240
|
+
var headerParams = {};
|
|
241
|
+
var formParams = {};
|
|
242
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
243
|
+
var contentTypes = [];
|
|
244
|
+
var accepts = ['application/json'];
|
|
245
|
+
var returnType = _ResourceLevelVolumeBillingDetailsResponseModel["default"];
|
|
246
|
+
return this.apiClient.callApi('/billing/billing/history/snapshot/{snapshot_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
|
|
251
|
+
* Retrieve billing history of a specific Snapshot for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
|
|
252
|
+
* @param {Number} snapshotId
|
|
253
|
+
* @param {Object} opts Optional parameters
|
|
254
|
+
* @param {String} opts.startDate Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
255
|
+
* @param {String} opts.endDate Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
256
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel}
|
|
257
|
+
*/
|
|
258
|
+
}, {
|
|
259
|
+
key: "retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle",
|
|
260
|
+
value: function retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle(snapshotId, opts) {
|
|
261
|
+
return this.retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo(snapshotId, opts).then(function (response_and_data) {
|
|
262
|
+
return response_and_data.data;
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
|
|
268
|
+
* User will recieve billing history of a specific Virtual Machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'
|
|
269
|
+
* @param {Number} vmId
|
|
270
|
+
* @param {Object} opts Optional parameters
|
|
271
|
+
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
272
|
+
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
273
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVMBillingDetailsResponseModel} and HTTP response
|
|
274
|
+
*/
|
|
275
|
+
}, {
|
|
276
|
+
key: "retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo",
|
|
277
|
+
value: function retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo(vmId, opts) {
|
|
278
|
+
opts = opts || {};
|
|
279
|
+
var postBody = null;
|
|
280
|
+
// verify the required parameter 'vmId' is set
|
|
281
|
+
if (vmId === undefined || vmId === null) {
|
|
282
|
+
throw new Error("Missing the required parameter 'vmId' when calling retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle");
|
|
283
|
+
}
|
|
284
|
+
var pathParams = {
|
|
285
|
+
'vm_id': vmId
|
|
286
|
+
};
|
|
287
|
+
var queryParams = {
|
|
288
|
+
'start_date': opts['startDate'],
|
|
289
|
+
'end_date': opts['endDate']
|
|
290
|
+
};
|
|
291
|
+
var headerParams = {};
|
|
292
|
+
var formParams = {};
|
|
293
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
294
|
+
var contentTypes = [];
|
|
295
|
+
var accepts = ['application/json'];
|
|
296
|
+
var returnType = _ResourceLevelVMBillingDetailsResponseModel["default"];
|
|
297
|
+
return this.apiClient.callApi('/billing/billing/history/virtual-machine/{vm_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
|
|
302
|
+
* User will recieve billing history of a specific Virtual Machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'
|
|
303
|
+
* @param {Number} vmId
|
|
304
|
+
* @param {Object} opts Optional parameters
|
|
305
|
+
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
306
|
+
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
307
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVMBillingDetailsResponseModel}
|
|
308
|
+
*/
|
|
309
|
+
}, {
|
|
310
|
+
key: "retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle",
|
|
311
|
+
value: function retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle(vmId, opts) {
|
|
312
|
+
return this.retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo(vmId, opts).then(function (response_and_data) {
|
|
313
|
+
return response_and_data.data;
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Retrieve Billing History of a Specific Volume for a specific Billing Cycle
|
|
319
|
+
* Retrieve billing history of a specific Volume for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
|
|
320
|
+
* @param {Number} volumeId
|
|
321
|
+
* @param {Object} opts Optional parameters
|
|
322
|
+
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
323
|
+
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
324
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel} and HTTP response
|
|
325
|
+
*/
|
|
326
|
+
}, {
|
|
327
|
+
key: "retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycleWithHttpInfo",
|
|
328
|
+
value: function retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycleWithHttpInfo(volumeId, opts) {
|
|
329
|
+
opts = opts || {};
|
|
330
|
+
var postBody = null;
|
|
331
|
+
// verify the required parameter 'volumeId' is set
|
|
332
|
+
if (volumeId === undefined || volumeId === null) {
|
|
333
|
+
throw new Error("Missing the required parameter 'volumeId' when calling retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle");
|
|
334
|
+
}
|
|
335
|
+
var pathParams = {
|
|
336
|
+
'volume_id': volumeId
|
|
337
|
+
};
|
|
338
|
+
var queryParams = {
|
|
339
|
+
'start_date': opts['startDate'],
|
|
340
|
+
'end_date': opts['endDate']
|
|
341
|
+
};
|
|
342
|
+
var headerParams = {};
|
|
343
|
+
var formParams = {};
|
|
344
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
345
|
+
var contentTypes = [];
|
|
346
|
+
var accepts = ['application/json'];
|
|
347
|
+
var returnType = _ResourceLevelVolumeBillingDetailsResponseModel["default"];
|
|
348
|
+
return this.apiClient.callApi('/billing/billing/history/volume/{volume_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Retrieve Billing History of a Specific Volume for a specific Billing Cycle
|
|
353
|
+
* Retrieve billing history of a specific Volume for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
|
|
354
|
+
* @param {Number} volumeId
|
|
355
|
+
* @param {Object} opts Optional parameters
|
|
356
|
+
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
357
|
+
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
358
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel}
|
|
359
|
+
*/
|
|
360
|
+
}, {
|
|
361
|
+
key: "retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle",
|
|
362
|
+
value: function retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle(volumeId, opts) {
|
|
363
|
+
return this.retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycleWithHttpInfo(volumeId, opts).then(function (response_and_data) {
|
|
364
|
+
return response_and_data.data;
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Retrieve Billing History of Contract for a specific Billing Cycle
|
|
370
|
+
* User will recieve billing history of contracts for the specified billing cycle. This data will include 'description', gpu_type','infrahub_id', 'status', 'incurred_bill', 'price_per_hour'
|
|
371
|
+
* @param {Object} opts Optional parameters
|
|
372
|
+
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
373
|
+
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
374
|
+
* @param {String} [search] Search by Contract \"Description\" or \"ID\"
|
|
375
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
376
|
+
*/
|
|
377
|
+
}, {
|
|
378
|
+
key: "retrieveBillingHistoryOfContractForASpecificBillingCycleWithHttpInfo",
|
|
379
|
+
value: function retrieveBillingHistoryOfContractForASpecificBillingCycleWithHttpInfo(opts) {
|
|
380
|
+
opts = opts || {};
|
|
381
|
+
var postBody = null;
|
|
382
|
+
var pathParams = {};
|
|
383
|
+
var queryParams = {
|
|
384
|
+
'start_date': opts['startDate'],
|
|
385
|
+
'end_date': opts['endDate'],
|
|
386
|
+
'search': opts['search']
|
|
387
|
+
};
|
|
388
|
+
var headerParams = {};
|
|
389
|
+
var formParams = {};
|
|
390
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
391
|
+
var contentTypes = [];
|
|
392
|
+
var accepts = ['application/json'];
|
|
393
|
+
var returnType = null;
|
|
394
|
+
return this.apiClient.callApi('/billing/billing/history/contract', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Retrieve Billing History of Contract for a specific Billing Cycle
|
|
399
|
+
* User will recieve billing history of contracts for the specified billing cycle. This data will include 'description', gpu_type','infrahub_id', 'status', 'incurred_bill', 'price_per_hour'
|
|
400
|
+
* @param {Object} opts Optional parameters
|
|
401
|
+
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
402
|
+
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
403
|
+
* @param {String} opts.search Search by Contract \"Description\" or \"ID\"
|
|
404
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
405
|
+
*/
|
|
406
|
+
}, {
|
|
407
|
+
key: "retrieveBillingHistoryOfContractForASpecificBillingCycle",
|
|
408
|
+
value: function retrieveBillingHistoryOfContractForASpecificBillingCycle(opts) {
|
|
409
|
+
return this.retrieveBillingHistoryOfContractForASpecificBillingCycleWithHttpInfo(opts).then(function (response_and_data) {
|
|
410
|
+
return response_and_data.data;
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Retrieve Billing History of Snapshot for a specific Billing Cycle
|
|
416
|
+
* User will recieve billing history of snapshots for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
|
|
417
|
+
* @param {Object} opts Optional parameters
|
|
418
|
+
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
419
|
+
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
420
|
+
* @param {String} [search] Search by Volume \"Name\" or \"ID\"
|
|
421
|
+
* @param {String} [page] Page number
|
|
422
|
+
* @param {String} [perPage] Number of items to return per page
|
|
423
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel} and HTTP response
|
|
424
|
+
*/
|
|
425
|
+
}, {
|
|
426
|
+
key: "retrieveBillingHistoryOfSnapshotForASpecificBillingCycleWithHttpInfo",
|
|
427
|
+
value: function retrieveBillingHistoryOfSnapshotForASpecificBillingCycleWithHttpInfo(opts) {
|
|
428
|
+
opts = opts || {};
|
|
429
|
+
var postBody = null;
|
|
430
|
+
var pathParams = {};
|
|
431
|
+
var queryParams = {
|
|
432
|
+
'start_date': opts['startDate'],
|
|
433
|
+
'end_date': opts['endDate'],
|
|
434
|
+
'search': opts['search'],
|
|
435
|
+
'page': opts['page'],
|
|
436
|
+
'per_page': opts['perPage']
|
|
437
|
+
};
|
|
438
|
+
var headerParams = {};
|
|
439
|
+
var formParams = {};
|
|
440
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
441
|
+
var contentTypes = [];
|
|
442
|
+
var accepts = ['application/json'];
|
|
443
|
+
var returnType = _ResourceLevelVolumeBillingHistoryResponseModel["default"];
|
|
444
|
+
return this.apiClient.callApi('/billing/billing/history/snapshot', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Retrieve Billing History of Snapshot for a specific Billing Cycle
|
|
449
|
+
* User will recieve billing history of snapshots for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
|
|
450
|
+
* @param {Object} opts Optional parameters
|
|
451
|
+
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
452
|
+
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
453
|
+
* @param {String} opts.search Search by Volume \"Name\" or \"ID\"
|
|
454
|
+
* @param {String} opts.page Page number
|
|
455
|
+
* @param {String} opts.perPage Number of items to return per page
|
|
456
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel}
|
|
457
|
+
*/
|
|
458
|
+
}, {
|
|
459
|
+
key: "retrieveBillingHistoryOfSnapshotForASpecificBillingCycle",
|
|
460
|
+
value: function retrieveBillingHistoryOfSnapshotForASpecificBillingCycle(opts) {
|
|
461
|
+
return this.retrieveBillingHistoryOfSnapshotForASpecificBillingCycleWithHttpInfo(opts).then(function (response_and_data) {
|
|
462
|
+
return response_and_data.data;
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Retrieve Billing History of Virtual Machine for a specific Billing Cycle
|
|
468
|
+
* User will recieve billing history of virtual machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
|
|
469
|
+
* @param {Object} opts Optional parameters
|
|
470
|
+
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
471
|
+
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
472
|
+
* @param {String} [search] Search by Virtual Machine \"Name\" or \"ID\"
|
|
473
|
+
* @param {String} [perPage] Number of items to return per page
|
|
474
|
+
* @param {String} [page] Page number
|
|
475
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVmBillingHistoryResponseModel} and HTTP response
|
|
476
|
+
*/
|
|
477
|
+
}, {
|
|
478
|
+
key: "retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycleWithHttpInfo",
|
|
479
|
+
value: function retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycleWithHttpInfo(opts) {
|
|
480
|
+
opts = opts || {};
|
|
481
|
+
var postBody = null;
|
|
482
|
+
var pathParams = {};
|
|
483
|
+
var queryParams = {
|
|
484
|
+
'start_date': opts['startDate'],
|
|
485
|
+
'end_date': opts['endDate'],
|
|
486
|
+
'search': opts['search'],
|
|
487
|
+
'per_page': opts['perPage'],
|
|
488
|
+
'page': opts['page']
|
|
489
|
+
};
|
|
490
|
+
var headerParams = {};
|
|
491
|
+
var formParams = {};
|
|
492
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
493
|
+
var contentTypes = [];
|
|
494
|
+
var accepts = ['application/json'];
|
|
495
|
+
var returnType = _ResourceLevelVmBillingHistoryResponseModel["default"];
|
|
496
|
+
return this.apiClient.callApi('/billing/billing/history/virtual-machine', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Retrieve Billing History of Virtual Machine for a specific Billing Cycle
|
|
501
|
+
* User will recieve billing history of virtual machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
|
|
502
|
+
* @param {Object} opts Optional parameters
|
|
503
|
+
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
504
|
+
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
505
|
+
* @param {String} opts.search Search by Virtual Machine \"Name\" or \"ID\"
|
|
506
|
+
* @param {String} opts.perPage Number of items to return per page
|
|
507
|
+
* @param {String} opts.page Page number
|
|
508
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVmBillingHistoryResponseModel}
|
|
509
|
+
*/
|
|
510
|
+
}, {
|
|
511
|
+
key: "retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle",
|
|
512
|
+
value: function retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle(opts) {
|
|
513
|
+
return this.retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycleWithHttpInfo(opts).then(function (response_and_data) {
|
|
514
|
+
return response_and_data.data;
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Retrieve Billing History of Volume for a specific Billing Cycle
|
|
520
|
+
* User will recieve billing history of volumes for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
|
|
521
|
+
* @param {Object} opts Optional parameters
|
|
522
|
+
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
523
|
+
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
524
|
+
* @param {String} [search] Search by Volume \"Name\" or \"ID\"
|
|
525
|
+
* @param {String} [perPage] Number of items to return per page
|
|
526
|
+
* @param {String} [page] Page number
|
|
527
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel} and HTTP response
|
|
528
|
+
*/
|
|
529
|
+
}, {
|
|
530
|
+
key: "retrieveBillingHistoryOfVolumeForASpecificBillingCycleWithHttpInfo",
|
|
531
|
+
value: function retrieveBillingHistoryOfVolumeForASpecificBillingCycleWithHttpInfo(opts) {
|
|
532
|
+
opts = opts || {};
|
|
533
|
+
var postBody = null;
|
|
534
|
+
var pathParams = {};
|
|
535
|
+
var queryParams = {
|
|
536
|
+
'start_date': opts['startDate'],
|
|
537
|
+
'end_date': opts['endDate'],
|
|
538
|
+
'search': opts['search'],
|
|
539
|
+
'per_page': opts['perPage'],
|
|
540
|
+
'page': opts['page']
|
|
541
|
+
};
|
|
542
|
+
var headerParams = {};
|
|
543
|
+
var formParams = {};
|
|
544
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
545
|
+
var contentTypes = [];
|
|
546
|
+
var accepts = ['application/json'];
|
|
547
|
+
var returnType = _ResourceLevelVolumeBillingHistoryResponseModel["default"];
|
|
548
|
+
return this.apiClient.callApi('/billing/billing/history/volume', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
/**
|
|
552
|
+
* Retrieve Billing History of Volume for a specific Billing Cycle
|
|
553
|
+
* User will recieve billing history of volumes for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
|
|
554
|
+
* @param {Object} opts Optional parameters
|
|
555
|
+
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
556
|
+
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
557
|
+
* @param {String} opts.search Search by Volume \"Name\" or \"ID\"
|
|
558
|
+
* @param {String} opts.perPage Number of items to return per page
|
|
559
|
+
* @param {String} opts.page Page number
|
|
560
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel}
|
|
561
|
+
*/
|
|
562
|
+
}, {
|
|
563
|
+
key: "retrieveBillingHistoryOfVolumeForASpecificBillingCycle",
|
|
564
|
+
value: function retrieveBillingHistoryOfVolumeForASpecificBillingCycle(opts) {
|
|
565
|
+
return this.retrieveBillingHistoryOfVolumeForASpecificBillingCycleWithHttpInfo(opts).then(function (response_and_data) {
|
|
566
|
+
return response_and_data.data;
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
|
|
572
|
+
* User will recieve hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
|
|
573
|
+
* @param {Number} snapshotId
|
|
574
|
+
* @param {Object} opts Optional parameters
|
|
575
|
+
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
576
|
+
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
577
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel} and HTTP response
|
|
578
|
+
*/
|
|
579
|
+
}, {
|
|
580
|
+
key: "retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo",
|
|
581
|
+
value: function retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo(snapshotId, opts) {
|
|
582
|
+
opts = opts || {};
|
|
583
|
+
var postBody = null;
|
|
584
|
+
// verify the required parameter 'snapshotId' is set
|
|
585
|
+
if (snapshotId === undefined || snapshotId === null) {
|
|
586
|
+
throw new Error("Missing the required parameter 'snapshotId' when calling retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle");
|
|
587
|
+
}
|
|
588
|
+
var pathParams = {
|
|
589
|
+
'snapshot_id': snapshotId
|
|
590
|
+
};
|
|
591
|
+
var queryParams = {
|
|
592
|
+
'start_date': opts['startDate'],
|
|
593
|
+
'end_date': opts['endDate']
|
|
594
|
+
};
|
|
595
|
+
var headerParams = {};
|
|
596
|
+
var formParams = {};
|
|
597
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
598
|
+
var contentTypes = [];
|
|
599
|
+
var accepts = ['application/json'];
|
|
600
|
+
var returnType = _ResourceLevelVolumeGraphBillingDetailsResponseModel["default"];
|
|
601
|
+
return this.apiClient.callApi('/billing/billing/history/snapshot/{snapshot_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
|
|
606
|
+
* User will recieve hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
|
|
607
|
+
* @param {Number} snapshotId
|
|
608
|
+
* @param {Object} opts Optional parameters
|
|
609
|
+
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
610
|
+
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
611
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel}
|
|
612
|
+
*/
|
|
613
|
+
}, {
|
|
614
|
+
key: "retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle",
|
|
615
|
+
value: function retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle(snapshotId, opts) {
|
|
616
|
+
return this.retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo(snapshotId, opts).then(function (response_and_data) {
|
|
617
|
+
return response_and_data.data;
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
|
|
623
|
+
* User will recieve hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
|
|
624
|
+
* @param {Number} vmId
|
|
625
|
+
* @param {Object} opts Optional parameters
|
|
626
|
+
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
627
|
+
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
628
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVmGraphBillingDetailsResponseModel} and HTTP response
|
|
629
|
+
*/
|
|
630
|
+
}, {
|
|
631
|
+
key: "retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo",
|
|
632
|
+
value: function retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo(vmId, opts) {
|
|
633
|
+
opts = opts || {};
|
|
634
|
+
var postBody = null;
|
|
635
|
+
// verify the required parameter 'vmId' is set
|
|
636
|
+
if (vmId === undefined || vmId === null) {
|
|
637
|
+
throw new Error("Missing the required parameter 'vmId' when calling retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle");
|
|
638
|
+
}
|
|
639
|
+
var pathParams = {
|
|
640
|
+
'vm_id': vmId
|
|
641
|
+
};
|
|
642
|
+
var queryParams = {
|
|
643
|
+
'start_date': opts['startDate'],
|
|
644
|
+
'end_date': opts['endDate']
|
|
645
|
+
};
|
|
646
|
+
var headerParams = {};
|
|
647
|
+
var formParams = {};
|
|
648
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
649
|
+
var contentTypes = [];
|
|
650
|
+
var accepts = ['application/json'];
|
|
651
|
+
var returnType = _ResourceLevelVmGraphBillingDetailsResponseModel["default"];
|
|
652
|
+
return this.apiClient.callApi('/billing/billing/history/virtual-machine/{vm_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
|
|
657
|
+
* User will recieve hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
|
|
658
|
+
* @param {Number} vmId
|
|
659
|
+
* @param {Object} opts Optional parameters
|
|
660
|
+
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
661
|
+
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
662
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVmGraphBillingDetailsResponseModel}
|
|
663
|
+
*/
|
|
664
|
+
}, {
|
|
665
|
+
key: "retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle",
|
|
666
|
+
value: function retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle(vmId, opts) {
|
|
667
|
+
return this.retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo(vmId, opts).then(function (response_and_data) {
|
|
668
|
+
return response_and_data.data;
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
|
|
674
|
+
* User will recieve hourly cost datapoints for a Volume for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
|
|
675
|
+
* @param {Number} volumeId
|
|
676
|
+
* @param {Object} opts Optional parameters
|
|
677
|
+
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
678
|
+
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
679
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel} and HTTP response
|
|
680
|
+
*/
|
|
681
|
+
}, {
|
|
682
|
+
key: "retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycleWithHttpInfo",
|
|
683
|
+
value: function retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycleWithHttpInfo(volumeId, opts) {
|
|
684
|
+
opts = opts || {};
|
|
685
|
+
var postBody = null;
|
|
686
|
+
// verify the required parameter 'volumeId' is set
|
|
687
|
+
if (volumeId === undefined || volumeId === null) {
|
|
688
|
+
throw new Error("Missing the required parameter 'volumeId' when calling retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle");
|
|
689
|
+
}
|
|
690
|
+
var pathParams = {
|
|
691
|
+
'volume_id': volumeId
|
|
692
|
+
};
|
|
693
|
+
var queryParams = {
|
|
694
|
+
'start_date': opts['startDate'],
|
|
695
|
+
'end_date': opts['endDate']
|
|
696
|
+
};
|
|
697
|
+
var headerParams = {};
|
|
698
|
+
var formParams = {};
|
|
699
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
700
|
+
var contentTypes = [];
|
|
701
|
+
var accepts = ['application/json'];
|
|
702
|
+
var returnType = _ResourceLevelVolumeGraphBillingDetailsResponseModel["default"];
|
|
703
|
+
return this.apiClient.callApi('/billing/billing/history/volume/{volume_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
|
|
708
|
+
* User will recieve hourly cost datapoints for a Volume for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
|
|
709
|
+
* @param {Number} volumeId
|
|
710
|
+
* @param {Object} opts Optional parameters
|
|
711
|
+
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
712
|
+
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
713
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel}
|
|
714
|
+
*/
|
|
715
|
+
}, {
|
|
716
|
+
key: "retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle",
|
|
717
|
+
value: function retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle(volumeId, opts) {
|
|
718
|
+
return this.retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycleWithHttpInfo(volumeId, opts).then(function (response_and_data) {
|
|
719
|
+
return response_and_data.data;
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Retrieve Sub-Resources Historical Cost datapoints of a Virtual
|
|
725
|
+
* User will recieve sub-resources historical cost datapoints for a VM sub resources for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. Machine sub resources for a specific billing cycle
|
|
726
|
+
* @param {Number} vmId
|
|
727
|
+
* @param {Object} opts Optional parameters
|
|
728
|
+
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
729
|
+
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
730
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubResourcesGraphResponseModel} and HTTP response
|
|
731
|
+
*/
|
|
732
|
+
}, {
|
|
733
|
+
key: "retrieveSubResourcesHistoricalCostDatapointsOfAVirtualWithHttpInfo",
|
|
734
|
+
value: function retrieveSubResourcesHistoricalCostDatapointsOfAVirtualWithHttpInfo(vmId, opts) {
|
|
735
|
+
opts = opts || {};
|
|
736
|
+
var postBody = null;
|
|
737
|
+
// verify the required parameter 'vmId' is set
|
|
738
|
+
if (vmId === undefined || vmId === null) {
|
|
739
|
+
throw new Error("Missing the required parameter 'vmId' when calling retrieveSubResourcesHistoricalCostDatapointsOfAVirtual");
|
|
740
|
+
}
|
|
741
|
+
var pathParams = {
|
|
742
|
+
'vm_id': vmId
|
|
743
|
+
};
|
|
744
|
+
var queryParams = {
|
|
745
|
+
'start_date': opts['startDate'],
|
|
746
|
+
'end_date': opts['endDate']
|
|
747
|
+
};
|
|
748
|
+
var headerParams = {};
|
|
749
|
+
var formParams = {};
|
|
750
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
751
|
+
var contentTypes = [];
|
|
752
|
+
var accepts = ['application/json'];
|
|
753
|
+
var returnType = _SubResourcesGraphResponseModel["default"];
|
|
754
|
+
return this.apiClient.callApi('/billing/billing/virtual-machine/{vm_id}/sub-resource/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Retrieve Sub-Resources Historical Cost datapoints of a Virtual
|
|
759
|
+
* User will recieve sub-resources historical cost datapoints for a VM sub resources for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. Machine sub resources for a specific billing cycle
|
|
760
|
+
* @param {Number} vmId
|
|
761
|
+
* @param {Object} opts Optional parameters
|
|
762
|
+
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
763
|
+
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
764
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubResourcesGraphResponseModel}
|
|
765
|
+
*/
|
|
766
|
+
}, {
|
|
767
|
+
key: "retrieveSubResourcesHistoricalCostDatapointsOfAVirtual",
|
|
768
|
+
value: function retrieveSubResourcesHistoricalCostDatapointsOfAVirtual(vmId, opts) {
|
|
769
|
+
return this.retrieveSubResourcesHistoricalCostDatapointsOfAVirtualWithHttpInfo(vmId, opts).then(function (response_and_data) {
|
|
770
|
+
return response_and_data.data;
|
|
771
|
+
});
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Retrieve Total Costs and Non Discount Costs for Sub Resources
|
|
776
|
+
* User will get total costs and non_discount costs of sub resources on a specific Virtual Machine for the specified billing cycle. on a Specific VM for the Specified Billing Cycle
|
|
777
|
+
* @param {Number} vmId
|
|
778
|
+
* @param {Object} opts Optional parameters
|
|
779
|
+
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
780
|
+
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
781
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubResourcesCostsResponseModel} and HTTP response
|
|
782
|
+
*/
|
|
783
|
+
}, {
|
|
784
|
+
key: "retrieveTotalCostsAndNonDiscountCostsForSubResourcesWithHttpInfo",
|
|
785
|
+
value: function retrieveTotalCostsAndNonDiscountCostsForSubResourcesWithHttpInfo(vmId, opts) {
|
|
786
|
+
opts = opts || {};
|
|
787
|
+
var postBody = null;
|
|
788
|
+
// verify the required parameter 'vmId' is set
|
|
789
|
+
if (vmId === undefined || vmId === null) {
|
|
790
|
+
throw new Error("Missing the required parameter 'vmId' when calling retrieveTotalCostsAndNonDiscountCostsForSubResources");
|
|
791
|
+
}
|
|
792
|
+
var pathParams = {
|
|
793
|
+
'vm_id': vmId
|
|
794
|
+
};
|
|
795
|
+
var queryParams = {
|
|
796
|
+
'start_date': opts['startDate'],
|
|
797
|
+
'end_date': opts['endDate']
|
|
798
|
+
};
|
|
799
|
+
var headerParams = {};
|
|
800
|
+
var formParams = {};
|
|
801
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
802
|
+
var contentTypes = [];
|
|
803
|
+
var accepts = ['application/json'];
|
|
804
|
+
var returnType = _SubResourcesCostsResponseModel["default"];
|
|
805
|
+
return this.apiClient.callApi('/billing/billing/virtual-machine/{vm_id}/sub-resource', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Retrieve Total Costs and Non Discount Costs for Sub Resources
|
|
810
|
+
* User will get total costs and non_discount costs of sub resources on a specific Virtual Machine for the specified billing cycle. on a Specific VM for the Specified Billing Cycle
|
|
811
|
+
* @param {Number} vmId
|
|
812
|
+
* @param {Object} opts Optional parameters
|
|
813
|
+
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
814
|
+
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
815
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubResourcesCostsResponseModel}
|
|
816
|
+
*/
|
|
817
|
+
}, {
|
|
818
|
+
key: "retrieveTotalCostsAndNonDiscountCostsForSubResources",
|
|
819
|
+
value: function retrieveTotalCostsAndNonDiscountCostsForSubResources(vmId, opts) {
|
|
820
|
+
return this.retrieveTotalCostsAndNonDiscountCostsForSubResourcesWithHttpInfo(vmId, opts).then(function (response_and_data) {
|
|
821
|
+
return response_and_data.data;
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Retrieve VM billing events history
|
|
827
|
+
* User will receive vm billing events history
|
|
828
|
+
* @param {Number} vmId
|
|
829
|
+
* @param {Object} opts Optional parameters
|
|
830
|
+
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
831
|
+
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
832
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceBillingEventsHistoryResponse} and HTTP response
|
|
833
|
+
*/
|
|
834
|
+
}, {
|
|
835
|
+
key: "retrieveVmBillingEventsHistoryWithHttpInfo",
|
|
836
|
+
value: function retrieveVmBillingEventsHistoryWithHttpInfo(vmId, opts) {
|
|
837
|
+
opts = opts || {};
|
|
838
|
+
var postBody = null;
|
|
839
|
+
// verify the required parameter 'vmId' is set
|
|
840
|
+
if (vmId === undefined || vmId === null) {
|
|
841
|
+
throw new Error("Missing the required parameter 'vmId' when calling retrieveVmBillingEventsHistory");
|
|
842
|
+
}
|
|
843
|
+
var pathParams = {
|
|
844
|
+
'vm_id': vmId
|
|
845
|
+
};
|
|
846
|
+
var queryParams = {
|
|
847
|
+
'start_date': opts['startDate'],
|
|
848
|
+
'end_date': opts['endDate']
|
|
849
|
+
};
|
|
850
|
+
var headerParams = {};
|
|
851
|
+
var formParams = {};
|
|
852
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
853
|
+
var contentTypes = [];
|
|
854
|
+
var accepts = ['application/json'];
|
|
855
|
+
var returnType = _ResourceBillingEventsHistoryResponse["default"];
|
|
856
|
+
return this.apiClient.callApi('/billing/billing/virtual-machine/{vm_id}/billing-events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* Retrieve VM billing events history
|
|
861
|
+
* User will receive vm billing events history
|
|
862
|
+
* @param {Number} vmId
|
|
863
|
+
* @param {Object} opts Optional parameters
|
|
864
|
+
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
865
|
+
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
866
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceBillingEventsHistoryResponse}
|
|
867
|
+
*/
|
|
868
|
+
}, {
|
|
869
|
+
key: "retrieveVmBillingEventsHistory",
|
|
870
|
+
value: function retrieveVmBillingEventsHistory(vmId, opts) {
|
|
871
|
+
return this.retrieveVmBillingEventsHistoryWithHttpInfo(vmId, opts).then(function (response_and_data) {
|
|
872
|
+
return response_and_data.data;
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Retrieve Volume billing events history
|
|
878
|
+
* User will receive volume billing events history
|
|
879
|
+
* @param {Number} volumeId
|
|
880
|
+
* @param {Object} opts Optional parameters
|
|
881
|
+
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
882
|
+
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
883
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceBillingEventsHistoryResponse} and HTTP response
|
|
884
|
+
*/
|
|
885
|
+
}, {
|
|
886
|
+
key: "retrieveVolumeBillingEventsHistoryWithHttpInfo",
|
|
887
|
+
value: function retrieveVolumeBillingEventsHistoryWithHttpInfo(volumeId, opts) {
|
|
888
|
+
opts = opts || {};
|
|
889
|
+
var postBody = null;
|
|
890
|
+
// verify the required parameter 'volumeId' is set
|
|
891
|
+
if (volumeId === undefined || volumeId === null) {
|
|
892
|
+
throw new Error("Missing the required parameter 'volumeId' when calling retrieveVolumeBillingEventsHistory");
|
|
893
|
+
}
|
|
894
|
+
var pathParams = {
|
|
895
|
+
'volume_id': volumeId
|
|
896
|
+
};
|
|
897
|
+
var queryParams = {
|
|
898
|
+
'start_date': opts['startDate'],
|
|
899
|
+
'end_date': opts['endDate']
|
|
900
|
+
};
|
|
901
|
+
var headerParams = {};
|
|
902
|
+
var formParams = {};
|
|
903
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
904
|
+
var contentTypes = [];
|
|
905
|
+
var accepts = ['application/json'];
|
|
906
|
+
var returnType = _ResourceBillingEventsHistoryResponse["default"];
|
|
907
|
+
return this.apiClient.callApi('/billing/billing/volume/{volume_id}/billing-events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* Retrieve Volume billing events history
|
|
912
|
+
* User will receive volume billing events history
|
|
913
|
+
* @param {Number} volumeId
|
|
914
|
+
* @param {Object} opts Optional parameters
|
|
915
|
+
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
916
|
+
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
|
|
917
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceBillingEventsHistoryResponse}
|
|
918
|
+
*/
|
|
919
|
+
}, {
|
|
920
|
+
key: "retrieveVolumeBillingEventsHistory",
|
|
921
|
+
value: function retrieveVolumeBillingEventsHistory(volumeId, opts) {
|
|
922
|
+
return this.retrieveVolumeBillingEventsHistoryWithHttpInfo(volumeId, opts).then(function (response_and_data) {
|
|
923
|
+
return response_and_data.data;
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* Update: Subscribe or Unsubscribe Notification Threshold
|
|
929
|
+
* By default, you are subscribed to all the threshold values and you will be receiving the email notification for these default thresholds values. `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails.
|
|
930
|
+
* @param {Number} thresholdId
|
|
931
|
+
* @param {module:model/Subscribeorunsubscribeupdatepayload} payload
|
|
932
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Organizationthresholdupdateresponse} and HTTP response
|
|
933
|
+
*/
|
|
934
|
+
}, {
|
|
935
|
+
key: "updateSubscribeOrUnsubscribeNotificationThresholdWithHttpInfo",
|
|
936
|
+
value: function updateSubscribeOrUnsubscribeNotificationThresholdWithHttpInfo(thresholdId, payload) {
|
|
937
|
+
var postBody = payload;
|
|
938
|
+
// verify the required parameter 'thresholdId' is set
|
|
939
|
+
if (thresholdId === undefined || thresholdId === null) {
|
|
940
|
+
throw new Error("Missing the required parameter 'thresholdId' when calling updateSubscribeOrUnsubscribeNotificationThreshold");
|
|
941
|
+
}
|
|
942
|
+
// verify the required parameter 'payload' is set
|
|
943
|
+
if (payload === undefined || payload === null) {
|
|
944
|
+
throw new Error("Missing the required parameter 'payload' when calling updateSubscribeOrUnsubscribeNotificationThreshold");
|
|
945
|
+
}
|
|
946
|
+
var pathParams = {
|
|
947
|
+
'threshold_id': thresholdId
|
|
948
|
+
};
|
|
949
|
+
var queryParams = {};
|
|
950
|
+
var headerParams = {};
|
|
951
|
+
var formParams = {};
|
|
952
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
953
|
+
var contentTypes = ['application/json'];
|
|
954
|
+
var accepts = ['application/json'];
|
|
955
|
+
var returnType = _Organizationthresholdupdateresponse["default"];
|
|
956
|
+
return this.apiClient.callApi('/billing/billing/threshold/{threshold_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* Update: Subscribe or Unsubscribe Notification Threshold
|
|
961
|
+
* By default, you are subscribed to all the threshold values and you will be receiving the email notification for these default thresholds values. `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails.
|
|
962
|
+
* @param {Number} thresholdId
|
|
963
|
+
* @param {module:model/Subscribeorunsubscribeupdatepayload} payload
|
|
964
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Organizationthresholdupdateresponse}
|
|
965
|
+
*/
|
|
966
|
+
}, {
|
|
967
|
+
key: "updateSubscribeOrUnsubscribeNotificationThreshold",
|
|
968
|
+
value: function updateSubscribeOrUnsubscribeNotificationThreshold(thresholdId, payload) {
|
|
969
|
+
return this.updateSubscribeOrUnsubscribeNotificationThresholdWithHttpInfo(thresholdId, payload).then(function (response_and_data) {
|
|
970
|
+
return response_and_data.data;
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
}]);
|
|
974
|
+
}();
|