@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,161 @@
|
|
|
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 _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
|
|
9
|
+
var _GetOrganizationResponseModel = _interopRequireDefault(require("../model/GetOrganizationResponseModel"));
|
|
10
|
+
var _RemoveMemberFromOrganizationResponseModel = _interopRequireDefault(require("../model/RemoveMemberFromOrganizationResponseModel"));
|
|
11
|
+
var _RemoveMemberPayload = _interopRequireDefault(require("../model/RemoveMemberPayload"));
|
|
12
|
+
var _UpdateOrganizationPayload = _interopRequireDefault(require("../model/UpdateOrganizationPayload"));
|
|
13
|
+
var _UpdateOrganizationResponseModel = _interopRequireDefault(require("../model/UpdateOrganizationResponseModel"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
+
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); }
|
|
16
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
17
|
+
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); } }
|
|
18
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
19
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
20
|
+
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); } /**
|
|
21
|
+
* Infrahub-API
|
|
22
|
+
* 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.
|
|
23
|
+
*
|
|
24
|
+
* The version of the OpenAPI document: 1.0
|
|
25
|
+
*
|
|
26
|
+
*
|
|
27
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
28
|
+
* https://openapi-generator.tech
|
|
29
|
+
* Do not edit the class manually.
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Organization service.
|
|
34
|
+
* @module api/OrganizationApi
|
|
35
|
+
* @version v1.22.0-alpha
|
|
36
|
+
*/
|
|
37
|
+
var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
38
|
+
/**
|
|
39
|
+
* Constructs a new OrganizationApi.
|
|
40
|
+
* @alias module:api/OrganizationApi
|
|
41
|
+
* @class
|
|
42
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
43
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
44
|
+
*/
|
|
45
|
+
function OrganizationApi(apiClient) {
|
|
46
|
+
_classCallCheck(this, OrganizationApi);
|
|
47
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Remove Organization Member
|
|
52
|
+
* Removes a member from your organization. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/remove-member).
|
|
53
|
+
* @param {module:model/RemoveMemberPayload} payload
|
|
54
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemoveMemberFromOrganizationResponseModel} and HTTP response
|
|
55
|
+
*/
|
|
56
|
+
return _createClass(OrganizationApi, [{
|
|
57
|
+
key: "removeOrganizationMemberWithHttpInfo",
|
|
58
|
+
value: function removeOrganizationMemberWithHttpInfo(payload) {
|
|
59
|
+
var postBody = payload;
|
|
60
|
+
// verify the required parameter 'payload' is set
|
|
61
|
+
if (payload === undefined || payload === null) {
|
|
62
|
+
throw new Error("Missing the required parameter 'payload' when calling removeOrganizationMember");
|
|
63
|
+
}
|
|
64
|
+
var pathParams = {};
|
|
65
|
+
var queryParams = {};
|
|
66
|
+
var headerParams = {};
|
|
67
|
+
var formParams = {};
|
|
68
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
69
|
+
var contentTypes = ['application/json'];
|
|
70
|
+
var accepts = ['application/json'];
|
|
71
|
+
var returnType = _RemoveMemberFromOrganizationResponseModel["default"];
|
|
72
|
+
return this.apiClient.callApi('/auth/organizations/remove-member', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Remove Organization Member
|
|
77
|
+
* Removes a member from your organization. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/remove-member).
|
|
78
|
+
* @param {module:model/RemoveMemberPayload} payload
|
|
79
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemoveMemberFromOrganizationResponseModel}
|
|
80
|
+
*/
|
|
81
|
+
}, {
|
|
82
|
+
key: "removeOrganizationMember",
|
|
83
|
+
value: function removeOrganizationMember(payload) {
|
|
84
|
+
return this.removeOrganizationMemberWithHttpInfo(payload).then(function (response_and_data) {
|
|
85
|
+
return response_and_data.data;
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Retrieve Organization Information
|
|
91
|
+
* Retrieves detailed information about your organization, including current credit, threshold, number of instances, and number of volumes. For additional information on organizations, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/retrieve-org-details).
|
|
92
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetOrganizationResponseModel} and HTTP response
|
|
93
|
+
*/
|
|
94
|
+
}, {
|
|
95
|
+
key: "retrieveOrganizationInformationWithHttpInfo",
|
|
96
|
+
value: function retrieveOrganizationInformationWithHttpInfo() {
|
|
97
|
+
var postBody = null;
|
|
98
|
+
var pathParams = {};
|
|
99
|
+
var queryParams = {};
|
|
100
|
+
var headerParams = {};
|
|
101
|
+
var formParams = {};
|
|
102
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
103
|
+
var contentTypes = [];
|
|
104
|
+
var accepts = ['application/json'];
|
|
105
|
+
var returnType = _GetOrganizationResponseModel["default"];
|
|
106
|
+
return this.apiClient.callApi('/auth/organizations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Retrieve Organization Information
|
|
111
|
+
* Retrieves detailed information about your organization, including current credit, threshold, number of instances, and number of volumes. For additional information on organizations, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/retrieve-org-details).
|
|
112
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetOrganizationResponseModel}
|
|
113
|
+
*/
|
|
114
|
+
}, {
|
|
115
|
+
key: "retrieveOrganizationInformation",
|
|
116
|
+
value: function retrieveOrganizationInformation() {
|
|
117
|
+
return this.retrieveOrganizationInformationWithHttpInfo().then(function (response_and_data) {
|
|
118
|
+
return response_and_data.data;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Update Organization Information
|
|
124
|
+
* Updates the name of the organization. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/update-org-name).
|
|
125
|
+
* @param {module:model/UpdateOrganizationPayload} payload
|
|
126
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateOrganizationResponseModel} and HTTP response
|
|
127
|
+
*/
|
|
128
|
+
}, {
|
|
129
|
+
key: "updateOrganizationInformationWithHttpInfo",
|
|
130
|
+
value: function updateOrganizationInformationWithHttpInfo(payload) {
|
|
131
|
+
var postBody = payload;
|
|
132
|
+
// verify the required parameter 'payload' is set
|
|
133
|
+
if (payload === undefined || payload === null) {
|
|
134
|
+
throw new Error("Missing the required parameter 'payload' when calling updateOrganizationInformation");
|
|
135
|
+
}
|
|
136
|
+
var pathParams = {};
|
|
137
|
+
var queryParams = {};
|
|
138
|
+
var headerParams = {};
|
|
139
|
+
var formParams = {};
|
|
140
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
141
|
+
var contentTypes = ['application/json'];
|
|
142
|
+
var accepts = ['application/json'];
|
|
143
|
+
var returnType = _UpdateOrganizationResponseModel["default"];
|
|
144
|
+
return this.apiClient.callApi('/auth/organizations/update', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Update Organization Information
|
|
149
|
+
* Updates the name of the organization. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/update-org-name).
|
|
150
|
+
* @param {module:model/UpdateOrganizationPayload} payload
|
|
151
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateOrganizationResponseModel}
|
|
152
|
+
*/
|
|
153
|
+
}, {
|
|
154
|
+
key: "updateOrganizationInformation",
|
|
155
|
+
value: function updateOrganizationInformation(payload) {
|
|
156
|
+
return this.updateOrganizationInformationWithHttpInfo(payload).then(function (response_and_data) {
|
|
157
|
+
return response_and_data.data;
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}]);
|
|
161
|
+
}();
|
|
@@ -0,0 +1,116 @@
|
|
|
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 _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
|
|
9
|
+
var _PaymentDetailsResponse = _interopRequireDefault(require("../model/PaymentDetailsResponse"));
|
|
10
|
+
var _PaymentInitiatePayload = _interopRequireDefault(require("../model/PaymentInitiatePayload"));
|
|
11
|
+
var _PaymentInitiateResponse = _interopRequireDefault(require("../model/PaymentInitiateResponse"));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
+
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); }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
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); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
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); } /**
|
|
19
|
+
* Infrahub-API
|
|
20
|
+
* 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.
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: 1.0
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Payment service.
|
|
32
|
+
* @module api/PaymentApi
|
|
33
|
+
* @version v1.22.0-alpha
|
|
34
|
+
*/
|
|
35
|
+
var PaymentApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new PaymentApi.
|
|
38
|
+
* @alias module:api/PaymentApi
|
|
39
|
+
* @class
|
|
40
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
41
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
42
|
+
*/
|
|
43
|
+
function PaymentApi(apiClient) {
|
|
44
|
+
_classCallCheck(this, PaymentApi);
|
|
45
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* GET: View payment details
|
|
50
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentDetailsResponse} and HTTP response
|
|
51
|
+
*/
|
|
52
|
+
return _createClass(PaymentApi, [{
|
|
53
|
+
key: "getViewPaymentDetailsWithHttpInfo",
|
|
54
|
+
value: function getViewPaymentDetailsWithHttpInfo() {
|
|
55
|
+
var postBody = null;
|
|
56
|
+
var pathParams = {};
|
|
57
|
+
var queryParams = {};
|
|
58
|
+
var headerParams = {};
|
|
59
|
+
var formParams = {};
|
|
60
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
61
|
+
var contentTypes = [];
|
|
62
|
+
var accepts = ['application/json'];
|
|
63
|
+
var returnType = _PaymentDetailsResponse["default"];
|
|
64
|
+
return this.apiClient.callApi('/billing/payment/payment-details', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* GET: View payment details
|
|
69
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentDetailsResponse}
|
|
70
|
+
*/
|
|
71
|
+
}, {
|
|
72
|
+
key: "getViewPaymentDetails",
|
|
73
|
+
value: function getViewPaymentDetails() {
|
|
74
|
+
return this.getViewPaymentDetailsWithHttpInfo().then(function (response_and_data) {
|
|
75
|
+
return response_and_data.data;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* POST: Initiate payment
|
|
81
|
+
* @param {module:model/PaymentInitiatePayload} payload
|
|
82
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentInitiateResponse} and HTTP response
|
|
83
|
+
*/
|
|
84
|
+
}, {
|
|
85
|
+
key: "postInitiatePaymentWithHttpInfo",
|
|
86
|
+
value: function postInitiatePaymentWithHttpInfo(payload) {
|
|
87
|
+
var postBody = payload;
|
|
88
|
+
// verify the required parameter 'payload' is set
|
|
89
|
+
if (payload === undefined || payload === null) {
|
|
90
|
+
throw new Error("Missing the required parameter 'payload' when calling postInitiatePayment");
|
|
91
|
+
}
|
|
92
|
+
var pathParams = {};
|
|
93
|
+
var queryParams = {};
|
|
94
|
+
var headerParams = {};
|
|
95
|
+
var formParams = {};
|
|
96
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
97
|
+
var contentTypes = ['application/json'];
|
|
98
|
+
var accepts = ['application/json'];
|
|
99
|
+
var returnType = _PaymentInitiateResponse["default"];
|
|
100
|
+
return this.apiClient.callApi('/billing/payment/payment-initiate', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* POST: Initiate payment
|
|
105
|
+
* @param {module:model/PaymentInitiatePayload} payload
|
|
106
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentInitiateResponse}
|
|
107
|
+
*/
|
|
108
|
+
}, {
|
|
109
|
+
key: "postInitiatePayment",
|
|
110
|
+
value: function postInitiatePayment(payload) {
|
|
111
|
+
return this.postInitiatePaymentWithHttpInfo(payload).then(function (response_and_data) {
|
|
112
|
+
return response_and_data.data;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}]);
|
|
116
|
+
}();
|
|
@@ -0,0 +1,79 @@
|
|
|
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 _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
|
|
9
|
+
var _GetPermissionsResponseModel = _interopRequireDefault(require("../model/GetPermissionsResponseModel"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
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); }
|
|
12
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
+
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); } }
|
|
14
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
+
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); } /**
|
|
17
|
+
* Infrahub-API
|
|
18
|
+
* 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.
|
|
19
|
+
*
|
|
20
|
+
* The version of the OpenAPI document: 1.0
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Permission service.
|
|
30
|
+
* @module api/PermissionApi
|
|
31
|
+
* @version v1.22.0-alpha
|
|
32
|
+
*/
|
|
33
|
+
var PermissionApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new PermissionApi.
|
|
36
|
+
* @alias module:api/PermissionApi
|
|
37
|
+
* @class
|
|
38
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
39
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
40
|
+
*/
|
|
41
|
+
function PermissionApi(apiClient) {
|
|
42
|
+
_classCallCheck(this, PermissionApi);
|
|
43
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* List Permissions
|
|
48
|
+
* Retrieves a list of permissions that users can be granted to access a particular resource action. For additional information on permissions, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/permission/permissions).
|
|
49
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetPermissionsResponseModel} and HTTP response
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(PermissionApi, [{
|
|
52
|
+
key: "listPermissionsWithHttpInfo",
|
|
53
|
+
value: function listPermissionsWithHttpInfo() {
|
|
54
|
+
var postBody = null;
|
|
55
|
+
var pathParams = {};
|
|
56
|
+
var queryParams = {};
|
|
57
|
+
var headerParams = {};
|
|
58
|
+
var formParams = {};
|
|
59
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
60
|
+
var contentTypes = [];
|
|
61
|
+
var accepts = ['application/json'];
|
|
62
|
+
var returnType = _GetPermissionsResponseModel["default"];
|
|
63
|
+
return this.apiClient.callApi('/auth/permissions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* List Permissions
|
|
68
|
+
* Retrieves a list of permissions that users can be granted to access a particular resource action. For additional information on permissions, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/permission/permissions).
|
|
69
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetPermissionsResponseModel}
|
|
70
|
+
*/
|
|
71
|
+
}, {
|
|
72
|
+
key: "listPermissions",
|
|
73
|
+
value: function listPermissions() {
|
|
74
|
+
return this.listPermissionsWithHttpInfo().then(function (response_and_data) {
|
|
75
|
+
return response_and_data.data;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}]);
|
|
79
|
+
}();
|
|
@@ -0,0 +1,79 @@
|
|
|
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 _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
|
|
9
|
+
var _GetPoliciesResponseModel = _interopRequireDefault(require("../model/GetPoliciesResponseModel"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
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); }
|
|
12
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
+
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); } }
|
|
14
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
+
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); } /**
|
|
17
|
+
* Infrahub-API
|
|
18
|
+
* 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.
|
|
19
|
+
*
|
|
20
|
+
* The version of the OpenAPI document: 1.0
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Policy service.
|
|
30
|
+
* @module api/PolicyApi
|
|
31
|
+
* @version v1.22.0-alpha
|
|
32
|
+
*/
|
|
33
|
+
var PolicyApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new PolicyApi.
|
|
36
|
+
* @alias module:api/PolicyApi
|
|
37
|
+
* @class
|
|
38
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
39
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
40
|
+
*/
|
|
41
|
+
function PolicyApi(apiClient) {
|
|
42
|
+
_classCallCheck(this, PolicyApi);
|
|
43
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* List Policies
|
|
48
|
+
* Retrieves a list of policies available for addition to RBAC roles. For additional information on policies, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/policies).
|
|
49
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetPoliciesResponseModel} and HTTP response
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(PolicyApi, [{
|
|
52
|
+
key: "listPoliciesWithHttpInfo",
|
|
53
|
+
value: function listPoliciesWithHttpInfo() {
|
|
54
|
+
var postBody = null;
|
|
55
|
+
var pathParams = {};
|
|
56
|
+
var queryParams = {};
|
|
57
|
+
var headerParams = {};
|
|
58
|
+
var formParams = {};
|
|
59
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
60
|
+
var contentTypes = [];
|
|
61
|
+
var accepts = ['application/json'];
|
|
62
|
+
var returnType = _GetPoliciesResponseModel["default"];
|
|
63
|
+
return this.apiClient.callApi('/auth/policies', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* List Policies
|
|
68
|
+
* Retrieves a list of policies available for addition to RBAC roles. For additional information on policies, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/policies).
|
|
69
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetPoliciesResponseModel}
|
|
70
|
+
*/
|
|
71
|
+
}, {
|
|
72
|
+
key: "listPolicies",
|
|
73
|
+
value: function listPolicies() {
|
|
74
|
+
return this.listPoliciesWithHttpInfo().then(function (response_and_data) {
|
|
75
|
+
return response_and_data.data;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}]);
|
|
79
|
+
}();
|
|
@@ -0,0 +1,75 @@
|
|
|
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 _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
|
|
9
|
+
var _PricebookModel = _interopRequireDefault(require("../model/PricebookModel"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
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); }
|
|
12
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
+
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); } }
|
|
14
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
+
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); } /**
|
|
17
|
+
* Infrahub-API
|
|
18
|
+
* 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.
|
|
19
|
+
*
|
|
20
|
+
* The version of the OpenAPI document: 1.0
|
|
21
|
+
*
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Pricebook service.
|
|
30
|
+
* @module api/PricebookApi
|
|
31
|
+
* @version v1.22.0-alpha
|
|
32
|
+
*/
|
|
33
|
+
var PricebookApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new PricebookApi.
|
|
36
|
+
* @alias module:api/PricebookApi
|
|
37
|
+
* @class
|
|
38
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
39
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
40
|
+
*/
|
|
41
|
+
function PricebookApi(apiClient) {
|
|
42
|
+
_classCallCheck(this, PricebookApi);
|
|
43
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/PricebookModel>} and HTTP response
|
|
48
|
+
*/
|
|
49
|
+
return _createClass(PricebookApi, [{
|
|
50
|
+
key: "retrivePricebookWithHttpInfo",
|
|
51
|
+
value: function retrivePricebookWithHttpInfo() {
|
|
52
|
+
var postBody = null;
|
|
53
|
+
var pathParams = {};
|
|
54
|
+
var queryParams = {};
|
|
55
|
+
var headerParams = {};
|
|
56
|
+
var formParams = {};
|
|
57
|
+
var authNames = ['apiKey', 'accessToken'];
|
|
58
|
+
var contentTypes = [];
|
|
59
|
+
var accepts = ['application/json'];
|
|
60
|
+
var returnType = [_PricebookModel["default"]];
|
|
61
|
+
return this.apiClient.callApi('/pricebook', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/PricebookModel>}
|
|
66
|
+
*/
|
|
67
|
+
}, {
|
|
68
|
+
key: "retrivePricebook",
|
|
69
|
+
value: function retrivePricebook() {
|
|
70
|
+
return this.retrivePricebookWithHttpInfo().then(function (response_and_data) {
|
|
71
|
+
return response_and_data.data;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}]);
|
|
75
|
+
}();
|