@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,111 @@
|
|
|
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 _PaymentDetailsFields = _interopRequireDefault(require("./PaymentDetailsFields"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
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); }
|
|
11
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
12
|
+
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); } }
|
|
13
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
+
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); } /**
|
|
16
|
+
* Infrahub-API
|
|
17
|
+
* 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.
|
|
18
|
+
*
|
|
19
|
+
* The version of the OpenAPI document: 1.0
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
|
+
* https://openapi-generator.tech
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* The PaymentDetailsResponse model module.
|
|
29
|
+
* @module model/PaymentDetailsResponse
|
|
30
|
+
* @version v1.22.0-alpha
|
|
31
|
+
*/
|
|
32
|
+
var PaymentDetailsResponse = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>PaymentDetailsResponse</code>.
|
|
35
|
+
* @alias module:model/PaymentDetailsResponse
|
|
36
|
+
*/
|
|
37
|
+
function PaymentDetailsResponse() {
|
|
38
|
+
_classCallCheck(this, PaymentDetailsResponse);
|
|
39
|
+
PaymentDetailsResponse.initialize(this);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Initializes the fields of this object.
|
|
44
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
45
|
+
* Only for internal use.
|
|
46
|
+
*/
|
|
47
|
+
return _createClass(PaymentDetailsResponse, null, [{
|
|
48
|
+
key: "initialize",
|
|
49
|
+
value: function initialize(obj) {}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Constructs a <code>PaymentDetailsResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
53
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
54
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
55
|
+
* @param {module:model/PaymentDetailsResponse} obj Optional instance to populate.
|
|
56
|
+
* @return {module:model/PaymentDetailsResponse} The populated <code>PaymentDetailsResponse</code> instance.
|
|
57
|
+
*/
|
|
58
|
+
}, {
|
|
59
|
+
key: "constructFromObject",
|
|
60
|
+
value: function constructFromObject(data, obj) {
|
|
61
|
+
if (data) {
|
|
62
|
+
obj = obj || new PaymentDetailsResponse();
|
|
63
|
+
if (data.hasOwnProperty('data')) {
|
|
64
|
+
obj['data'] = _PaymentDetailsFields["default"].constructFromObject(data['data']);
|
|
65
|
+
}
|
|
66
|
+
if (data.hasOwnProperty('message')) {
|
|
67
|
+
obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('status')) {
|
|
70
|
+
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return obj;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Validates the JSON data with respect to <code>PaymentDetailsResponse</code>.
|
|
78
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
79
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PaymentDetailsResponse</code>.
|
|
80
|
+
*/
|
|
81
|
+
}, {
|
|
82
|
+
key: "validateJSON",
|
|
83
|
+
value: function validateJSON(data) {
|
|
84
|
+
// validate the optional field `data`
|
|
85
|
+
if (data['data']) {
|
|
86
|
+
// data not null
|
|
87
|
+
_PaymentDetailsFields["default"].validateJSON(data['data']);
|
|
88
|
+
}
|
|
89
|
+
// ensure the json data is a string
|
|
90
|
+
if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
|
|
91
|
+
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
|
|
92
|
+
}
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
}]);
|
|
96
|
+
}();
|
|
97
|
+
/**
|
|
98
|
+
* @member {module:model/PaymentDetailsFields} data
|
|
99
|
+
*/
|
|
100
|
+
PaymentDetailsResponse.prototype['data'] = undefined;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @member {String} message
|
|
104
|
+
*/
|
|
105
|
+
PaymentDetailsResponse.prototype['message'] = undefined;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @member {Boolean} status
|
|
109
|
+
*/
|
|
110
|
+
PaymentDetailsResponse.prototype['status'] = undefined;
|
|
111
|
+
var _default = exports["default"] = PaymentDetailsResponse;
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
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); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
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); } /**
|
|
15
|
+
* Infrahub-API
|
|
16
|
+
* 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.
|
|
17
|
+
*
|
|
18
|
+
* The version of the OpenAPI document: 1.0
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
22
|
+
* https://openapi-generator.tech
|
|
23
|
+
* Do not edit the class manually.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* The PaymentInitiateFields model module.
|
|
28
|
+
* @module model/PaymentInitiateFields
|
|
29
|
+
* @version v1.22.0-alpha
|
|
30
|
+
*/
|
|
31
|
+
var PaymentInitiateFields = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>PaymentInitiateFields</code>.
|
|
34
|
+
* @alias module:model/PaymentInitiateFields
|
|
35
|
+
*/
|
|
36
|
+
function PaymentInitiateFields() {
|
|
37
|
+
_classCallCheck(this, PaymentInitiateFields);
|
|
38
|
+
PaymentInitiateFields.initialize(this);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Initializes the fields of this object.
|
|
43
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
44
|
+
* Only for internal use.
|
|
45
|
+
*/
|
|
46
|
+
return _createClass(PaymentInitiateFields, null, [{
|
|
47
|
+
key: "initialize",
|
|
48
|
+
value: function initialize(obj) {}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Constructs a <code>PaymentInitiateFields</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
+
* @param {module:model/PaymentInitiateFields} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/PaymentInitiateFields} The populated <code>PaymentInitiateFields</code> instance.
|
|
56
|
+
*/
|
|
57
|
+
}, {
|
|
58
|
+
key: "constructFromObject",
|
|
59
|
+
value: function constructFromObject(data, obj) {
|
|
60
|
+
if (data) {
|
|
61
|
+
obj = obj || new PaymentInitiateFields();
|
|
62
|
+
if (data.hasOwnProperty('payment_id')) {
|
|
63
|
+
obj['payment_id'] = _ApiClient["default"].convertToType(data['payment_id'], 'String');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return obj;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Validates the JSON data with respect to <code>PaymentInitiateFields</code>.
|
|
71
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
72
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PaymentInitiateFields</code>.
|
|
73
|
+
*/
|
|
74
|
+
}, {
|
|
75
|
+
key: "validateJSON",
|
|
76
|
+
value: function validateJSON(data) {
|
|
77
|
+
// ensure the json data is a string
|
|
78
|
+
if (data['payment_id'] && !(typeof data['payment_id'] === 'string' || data['payment_id'] instanceof String)) {
|
|
79
|
+
throw new Error("Expected the field `payment_id` to be a primitive type in the JSON string but got " + data['payment_id']);
|
|
80
|
+
}
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
}]);
|
|
84
|
+
}();
|
|
85
|
+
/**
|
|
86
|
+
* @member {String} payment_id
|
|
87
|
+
*/
|
|
88
|
+
PaymentInitiateFields.prototype['payment_id'] = undefined;
|
|
89
|
+
var _default = exports["default"] = PaymentInitiateFields;
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
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); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
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); } /**
|
|
15
|
+
* Infrahub-API
|
|
16
|
+
* 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.
|
|
17
|
+
*
|
|
18
|
+
* The version of the OpenAPI document: 1.0
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
22
|
+
* https://openapi-generator.tech
|
|
23
|
+
* Do not edit the class manually.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* The PaymentInitiatePayload model module.
|
|
28
|
+
* @module model/PaymentInitiatePayload
|
|
29
|
+
* @version v1.22.0-alpha
|
|
30
|
+
*/
|
|
31
|
+
var PaymentInitiatePayload = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>PaymentInitiatePayload</code>.
|
|
34
|
+
* @alias module:model/PaymentInitiatePayload
|
|
35
|
+
*/
|
|
36
|
+
function PaymentInitiatePayload() {
|
|
37
|
+
_classCallCheck(this, PaymentInitiatePayload);
|
|
38
|
+
PaymentInitiatePayload.initialize(this);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Initializes the fields of this object.
|
|
43
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
44
|
+
* Only for internal use.
|
|
45
|
+
*/
|
|
46
|
+
return _createClass(PaymentInitiatePayload, null, [{
|
|
47
|
+
key: "initialize",
|
|
48
|
+
value: function initialize(obj) {}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Constructs a <code>PaymentInitiatePayload</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
+
* @param {module:model/PaymentInitiatePayload} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/PaymentInitiatePayload} The populated <code>PaymentInitiatePayload</code> instance.
|
|
56
|
+
*/
|
|
57
|
+
}, {
|
|
58
|
+
key: "constructFromObject",
|
|
59
|
+
value: function constructFromObject(data, obj) {
|
|
60
|
+
if (data) {
|
|
61
|
+
obj = obj || new PaymentInitiatePayload();
|
|
62
|
+
if (data.hasOwnProperty('amount')) {
|
|
63
|
+
obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'Number');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return obj;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Validates the JSON data with respect to <code>PaymentInitiatePayload</code>.
|
|
71
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
72
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PaymentInitiatePayload</code>.
|
|
73
|
+
*/
|
|
74
|
+
}, {
|
|
75
|
+
key: "validateJSON",
|
|
76
|
+
value: function validateJSON(data) {
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
}]);
|
|
80
|
+
}();
|
|
81
|
+
/**
|
|
82
|
+
* @member {Number} amount
|
|
83
|
+
*/
|
|
84
|
+
PaymentInitiatePayload.prototype['amount'] = undefined;
|
|
85
|
+
var _default = exports["default"] = PaymentInitiatePayload;
|
|
@@ -0,0 +1,111 @@
|
|
|
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 _PaymentInitiateFields = _interopRequireDefault(require("./PaymentInitiateFields"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
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); }
|
|
11
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
12
|
+
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); } }
|
|
13
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
|
+
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); } /**
|
|
16
|
+
* Infrahub-API
|
|
17
|
+
* 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.
|
|
18
|
+
*
|
|
19
|
+
* The version of the OpenAPI document: 1.0
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
|
+
* https://openapi-generator.tech
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
/**
|
|
28
|
+
* The PaymentInitiateResponse model module.
|
|
29
|
+
* @module model/PaymentInitiateResponse
|
|
30
|
+
* @version v1.22.0-alpha
|
|
31
|
+
*/
|
|
32
|
+
var PaymentInitiateResponse = /*#__PURE__*/function () {
|
|
33
|
+
/**
|
|
34
|
+
* Constructs a new <code>PaymentInitiateResponse</code>.
|
|
35
|
+
* @alias module:model/PaymentInitiateResponse
|
|
36
|
+
*/
|
|
37
|
+
function PaymentInitiateResponse() {
|
|
38
|
+
_classCallCheck(this, PaymentInitiateResponse);
|
|
39
|
+
PaymentInitiateResponse.initialize(this);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Initializes the fields of this object.
|
|
44
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
45
|
+
* Only for internal use.
|
|
46
|
+
*/
|
|
47
|
+
return _createClass(PaymentInitiateResponse, null, [{
|
|
48
|
+
key: "initialize",
|
|
49
|
+
value: function initialize(obj) {}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Constructs a <code>PaymentInitiateResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
53
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
54
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
55
|
+
* @param {module:model/PaymentInitiateResponse} obj Optional instance to populate.
|
|
56
|
+
* @return {module:model/PaymentInitiateResponse} The populated <code>PaymentInitiateResponse</code> instance.
|
|
57
|
+
*/
|
|
58
|
+
}, {
|
|
59
|
+
key: "constructFromObject",
|
|
60
|
+
value: function constructFromObject(data, obj) {
|
|
61
|
+
if (data) {
|
|
62
|
+
obj = obj || new PaymentInitiateResponse();
|
|
63
|
+
if (data.hasOwnProperty('data')) {
|
|
64
|
+
obj['data'] = _PaymentInitiateFields["default"].constructFromObject(data['data']);
|
|
65
|
+
}
|
|
66
|
+
if (data.hasOwnProperty('message')) {
|
|
67
|
+
obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('status')) {
|
|
70
|
+
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return obj;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Validates the JSON data with respect to <code>PaymentInitiateResponse</code>.
|
|
78
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
79
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PaymentInitiateResponse</code>.
|
|
80
|
+
*/
|
|
81
|
+
}, {
|
|
82
|
+
key: "validateJSON",
|
|
83
|
+
value: function validateJSON(data) {
|
|
84
|
+
// validate the optional field `data`
|
|
85
|
+
if (data['data']) {
|
|
86
|
+
// data not null
|
|
87
|
+
_PaymentInitiateFields["default"].validateJSON(data['data']);
|
|
88
|
+
}
|
|
89
|
+
// ensure the json data is a string
|
|
90
|
+
if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
|
|
91
|
+
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
|
|
92
|
+
}
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
}]);
|
|
96
|
+
}();
|
|
97
|
+
/**
|
|
98
|
+
* @member {module:model/PaymentInitiateFields} data
|
|
99
|
+
*/
|
|
100
|
+
PaymentInitiateResponse.prototype['data'] = undefined;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @member {String} message
|
|
104
|
+
*/
|
|
105
|
+
PaymentInitiateResponse.prototype['message'] = undefined;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @member {Boolean} status
|
|
109
|
+
*/
|
|
110
|
+
PaymentInitiateResponse.prototype['status'] = undefined;
|
|
111
|
+
var _default = exports["default"] = PaymentInitiateResponse;
|
|
@@ -0,0 +1,141 @@
|
|
|
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
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
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); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
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); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
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); } /**
|
|
15
|
+
* Infrahub-API
|
|
16
|
+
* 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.
|
|
17
|
+
*
|
|
18
|
+
* The version of the OpenAPI document: 1.0
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
22
|
+
* https://openapi-generator.tech
|
|
23
|
+
* Do not edit the class manually.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* The PermissionFields model module.
|
|
28
|
+
* @module model/PermissionFields
|
|
29
|
+
* @version v1.22.0-alpha
|
|
30
|
+
*/
|
|
31
|
+
var PermissionFields = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>PermissionFields</code>.
|
|
34
|
+
* @alias module:model/PermissionFields
|
|
35
|
+
*/
|
|
36
|
+
function PermissionFields() {
|
|
37
|
+
_classCallCheck(this, PermissionFields);
|
|
38
|
+
PermissionFields.initialize(this);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Initializes the fields of this object.
|
|
43
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
44
|
+
* Only for internal use.
|
|
45
|
+
*/
|
|
46
|
+
return _createClass(PermissionFields, null, [{
|
|
47
|
+
key: "initialize",
|
|
48
|
+
value: function initialize(obj) {}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Constructs a <code>PermissionFields</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
+
* @param {module:model/PermissionFields} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/PermissionFields} The populated <code>PermissionFields</code> instance.
|
|
56
|
+
*/
|
|
57
|
+
}, {
|
|
58
|
+
key: "constructFromObject",
|
|
59
|
+
value: function constructFromObject(data, obj) {
|
|
60
|
+
if (data) {
|
|
61
|
+
obj = obj || new PermissionFields();
|
|
62
|
+
if (data.hasOwnProperty('created_at')) {
|
|
63
|
+
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
|
|
64
|
+
}
|
|
65
|
+
if (data.hasOwnProperty('endpoint')) {
|
|
66
|
+
obj['endpoint'] = _ApiClient["default"].convertToType(data['endpoint'], 'String');
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('id')) {
|
|
69
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('method')) {
|
|
72
|
+
obj['method'] = _ApiClient["default"].convertToType(data['method'], 'String');
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('permission')) {
|
|
75
|
+
obj['permission'] = _ApiClient["default"].convertToType(data['permission'], 'String');
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('resource')) {
|
|
78
|
+
obj['resource'] = _ApiClient["default"].convertToType(data['resource'], 'String');
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return obj;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Validates the JSON data with respect to <code>PermissionFields</code>.
|
|
86
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
87
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PermissionFields</code>.
|
|
88
|
+
*/
|
|
89
|
+
}, {
|
|
90
|
+
key: "validateJSON",
|
|
91
|
+
value: function validateJSON(data) {
|
|
92
|
+
// ensure the json data is a string
|
|
93
|
+
if (data['endpoint'] && !(typeof data['endpoint'] === 'string' || data['endpoint'] instanceof String)) {
|
|
94
|
+
throw new Error("Expected the field `endpoint` to be a primitive type in the JSON string but got " + data['endpoint']);
|
|
95
|
+
}
|
|
96
|
+
// ensure the json data is a string
|
|
97
|
+
if (data['method'] && !(typeof data['method'] === 'string' || data['method'] instanceof String)) {
|
|
98
|
+
throw new Error("Expected the field `method` to be a primitive type in the JSON string but got " + data['method']);
|
|
99
|
+
}
|
|
100
|
+
// ensure the json data is a string
|
|
101
|
+
if (data['permission'] && !(typeof data['permission'] === 'string' || data['permission'] instanceof String)) {
|
|
102
|
+
throw new Error("Expected the field `permission` to be a primitive type in the JSON string but got " + data['permission']);
|
|
103
|
+
}
|
|
104
|
+
// ensure the json data is a string
|
|
105
|
+
if (data['resource'] && !(typeof data['resource'] === 'string' || data['resource'] instanceof String)) {
|
|
106
|
+
throw new Error("Expected the field `resource` to be a primitive type in the JSON string but got " + data['resource']);
|
|
107
|
+
}
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
}]);
|
|
111
|
+
}();
|
|
112
|
+
/**
|
|
113
|
+
* @member {Date} created_at
|
|
114
|
+
*/
|
|
115
|
+
PermissionFields.prototype['created_at'] = undefined;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @member {String} endpoint
|
|
119
|
+
*/
|
|
120
|
+
PermissionFields.prototype['endpoint'] = undefined;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @member {Number} id
|
|
124
|
+
*/
|
|
125
|
+
PermissionFields.prototype['id'] = undefined;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @member {String} method
|
|
129
|
+
*/
|
|
130
|
+
PermissionFields.prototype['method'] = undefined;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @member {String} permission
|
|
134
|
+
*/
|
|
135
|
+
PermissionFields.prototype['permission'] = undefined;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @member {String} resource
|
|
139
|
+
*/
|
|
140
|
+
PermissionFields.prototype['resource'] = undefined;
|
|
141
|
+
var _default = exports["default"] = PermissionFields;
|