@nexgencloud/hyperstack-sdk-javascript 1.55.4-alpha → 1.55.7-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 +1 -30
- package/dist/ApiClient.js +6 -2
- package/dist/HyperstackHeaders.js +1 -1
- package/dist/RedactCredentials.js +135 -0
- package/dist/api/AccessKeysApi.js +1 -1
- package/dist/api/AliveApi.js +1 -1
- package/dist/api/ApiKeyApi.js +1 -1
- package/dist/api/AssigningMemberRoleApi.js +1 -1
- package/dist/api/AuthApi.js +1 -33
- package/dist/api/AutoTopupApi.js +1 -1
- package/dist/api/BetaAccessApi.js +1 -1
- package/dist/api/BillingApi.js +1 -1
- package/dist/api/BucketsApi.js +1 -1
- package/dist/api/CalculateApi.js +1 -1
- package/dist/api/CallbacksApi.js +1 -1
- package/dist/api/ClusterEventsApi.js +1 -1
- package/dist/api/ClustersApi.js +1 -1
- package/dist/api/CreditApi.js +1 -1
- package/dist/api/CustomerContractApi.js +1 -1
- package/dist/api/DashboardApi.js +3 -3
- package/dist/api/EmailOptInOutApi.js +1 -1
- package/dist/api/EnvironmentApi.js +1 -1
- package/dist/api/FIPExclusionsApi.js +1 -1
- package/dist/api/FirewallAttachmentApi.js +1 -1
- package/dist/api/FirewallsApi.js +1 -1
- package/dist/api/FlavorApi.js +1 -1
- package/dist/api/FloatingIpApi.js +1 -1
- package/dist/api/GpuApi.js +1 -1
- package/dist/api/HealthApi.js +1 -1
- package/dist/api/ImageApi.js +1 -1
- package/dist/api/InviteApi.js +1 -1
- package/dist/api/KeypairApi.js +1 -1
- package/dist/api/OrganizationApi.js +1 -1
- package/dist/api/PartnerConfigApi.js +1 -1
- package/dist/api/PaymentApi.js +1 -1
- package/dist/api/PermissionApi.js +1 -1
- package/dist/api/PolicyApi.js +1 -1
- package/dist/api/PricebookApi.js +1 -1
- package/dist/api/ProfileApi.js +1 -1
- package/dist/api/RbacRoleApi.js +1 -1
- package/dist/api/RegionApi.js +1 -1
- package/dist/api/RegionsApi.js +1 -1
- package/dist/api/SecurityRulesApi.js +1 -1
- package/dist/api/SnapshotEventsApi.js +1 -1
- package/dist/api/SnapshotsApi.js +1 -1
- package/dist/api/StockApi.js +1 -1
- package/dist/api/UserApi.js +1 -1
- package/dist/api/UserConsentApi.js +1 -1
- package/dist/api/UserConsentEventsApi.js +1 -1
- package/dist/api/UserDetailChoiceApi.js +1 -1
- package/dist/api/UserPermissionApi.js +1 -1
- package/dist/api/VirtualMachineApi.js +1 -1
- package/dist/api/VirtualMachineEventsApi.js +1 -1
- package/dist/api/VncUrlApi.js +1 -1
- package/dist/api/VolumeApi.js +1 -1
- package/dist/api/VolumeAttachmentApi.js +1 -1
- package/dist/api/VouchersApi.js +1 -1
- package/dist/index.js +0 -126
- package/dist/model/AccessTokenField.js +1 -1
- package/dist/model/AddUserInfoSuccessResponseModel.js +1 -1
- package/dist/model/AllocatedGPUCountGraph.js +1 -1
- package/dist/model/AllowedCountriesResponse.js +1 -1
- package/dist/model/ApiKeyFields.js +1 -1
- package/dist/model/AssignRbacRolePayload.js +1 -1
- package/dist/model/AttachCallbackPayload.js +1 -1
- package/dist/model/AttachCallbackResponse.js +1 -1
- package/dist/model/AttachFirewallWithVM.js +1 -1
- package/dist/model/AttachFirewallsToVMPayload.js +1 -1
- package/dist/model/AttachVolumeFields.js +1 -1
- package/dist/model/AttachVolumes.js +1 -1
- package/dist/model/AttachVolumesPayload.js +1 -1
- package/dist/model/AttachmentsFieldsForVolume.js +1 -1
- package/dist/model/Attributes.js +1 -1
- package/dist/model/AuthGetTokenResponseModel.js +1 -1
- package/dist/model/AuthUserFields.js +1 -1
- package/dist/model/AuthUserInfoResponseModel.js +1 -1
- package/dist/model/AutoTopup.js +1 -1
- package/dist/model/AutoTopupErrorResponse.js +1 -1
- package/dist/model/AutoTopupStatusSchema.js +1 -1
- package/dist/model/BetaAccessRequestFields.js +1 -1
- package/dist/model/BetaAccessRequestPayload.js +1 -1
- package/dist/model/BetaAccessRequestResponseModel.js +1 -1
- package/dist/model/BetaAccessStatusItem.js +1 -1
- package/dist/model/BetaAccessStatusResponseModel.js +1 -1
- package/dist/model/BillingHistory.js +1 -1
- package/dist/model/BillingHistoryDataSynthesisDetails.js +1 -1
- package/dist/model/BillingHistoryFineTuning.js +1 -1
- package/dist/model/BillingHistoryImageGenerationDetails.js +1 -1
- package/dist/model/BillingHistoryModelEvalutationDetails.js +1 -1
- package/dist/model/BillingHistoryServerlessInference.js +1 -1
- package/dist/model/BillingHistoryServerlessInferenceDetails.js +1 -1
- package/dist/model/BillingMetricesFields.js +1 -1
- package/dist/model/BillingMetricesResponse.js +1 -1
- package/dist/model/ClusterEvents.js +1 -1
- package/dist/model/ClusterEventsFields.js +1 -1
- package/dist/model/ClusterFields.js +1 -1
- package/dist/model/ClusterFlavorFields.js +1 -1
- package/dist/model/ClusterListResponse.js +1 -1
- package/dist/model/ClusterNodeFields.js +1 -1
- package/dist/model/ClusterNodeGroupFields.js +1 -1
- package/dist/model/ClusterNodeGroupFirewallFields.js +1 -1
- package/dist/model/ClusterNodeGroupsCreateResponse.js +1 -1
- package/dist/model/ClusterNodeGroupsGetResponse.js +1 -1
- package/dist/model/ClusterNodeGroupsListResponse.js +1 -1
- package/dist/model/ClusterNodeInstanceFields.js +1 -1
- package/dist/model/ClusterNodesListResponse.js +1 -1
- package/dist/model/ClusterResponse.js +1 -1
- package/dist/model/ClusterVersion.js +1 -1
- package/dist/model/ClusterVersions.js +1 -1
- package/dist/model/Colors.js +1 -1
- package/dist/model/CommonResponseModel.js +1 -1
- package/dist/model/CompatibleFlavor.js +1 -1
- package/dist/model/CompatibleImage.js +1 -1
- package/dist/model/ConsentActionResponse.js +1 -1
- package/dist/model/ConsentBlock.js +1 -1
- package/dist/model/ConsentEventsResponse.js +1 -1
- package/dist/model/ConsentTemplate.js +1 -1
- package/dist/model/ConsentTemplatesResponse.js +1 -1
- package/dist/model/Contract.js +1 -1
- package/dist/model/ContractDiscountPlanFields.js +1 -1
- package/dist/model/ContractGPUAllocationGraphResponse.js +1 -1
- package/dist/model/ContractInstanceFields.js +1 -1
- package/dist/model/ContractInstancesResponse.js +1 -1
- package/dist/model/CreateAutoTopupPayload.js +1 -1
- package/dist/model/CreateAutoTopupResponse.js +1 -1
- package/dist/model/CreateClusterNodeFields.js +1 -1
- package/dist/model/CreateClusterNodeGroupPayload.js +1 -1
- package/dist/model/CreateClusterPayload.js +1 -1
- package/dist/model/CreateEnvironment.js +1 -1
- package/dist/model/CreateFirewallPayload.js +1 -1
- package/dist/model/CreateFirewallRulePayload.js +1 -1
- package/dist/model/CreateImage.js +1 -1
- package/dist/model/CreateImagePayload.js +1 -1
- package/dist/model/CreateInstancesPayload.js +1 -1
- package/dist/model/CreateInstancesResponse.js +1 -1
- package/dist/model/CreateProfilePayload.js +1 -1
- package/dist/model/CreateProfileResponse.js +1 -1
- package/dist/model/CreateSecurityRulePayload.js +1 -1
- package/dist/model/CreateSnapshotPayload.js +1 -1
- package/dist/model/CreateSnapshotResponse.js +1 -1
- package/dist/model/CreateUpdateRbacRolePayload.js +1 -1
- package/dist/model/CreateVolumePayload.js +1 -1
- package/dist/model/CustomerContractDetailResponseModel.js +1 -1
- package/dist/model/CustomerContractFields.js +1 -1
- package/dist/model/DashboardInfoResponse.js +1 -1
- package/dist/model/DataSynthesisBillingHistoryDetailsResponseSchema.js +1 -1
- package/dist/model/DeleteClusterNodesFields.js +1 -1
- package/dist/model/DetachVolumes.js +1 -1
- package/dist/model/DetachVolumesPayload.js +1 -1
- package/dist/model/DisableAutoTopupResponse.js +1 -1
- package/dist/model/EditLabelOfAnExistingVMPayload.js +1 -1
- package/dist/model/EmailCategory.js +1 -1
- package/dist/model/EmailCategoryChild.js +1 -1
- package/dist/model/EmailPreferencesResponse.js +1 -1
- package/dist/model/Environment.js +1 -1
- package/dist/model/EnvironmentFeatures.js +1 -1
- package/dist/model/EnvironmentFields.js +1 -1
- package/dist/model/EnvironmentFieldsForVolume.js +1 -1
- package/dist/model/Environments.js +1 -1
- package/dist/model/ErrorResponseModel.js +1 -1
- package/dist/model/FirewallAttachmentModel.js +1 -1
- package/dist/model/FirewallAttachmentVMModel.js +1 -1
- package/dist/model/FirewallDetailFields.js +1 -1
- package/dist/model/FirewallDetailResponse.js +1 -1
- package/dist/model/FirewallEnvironmentFields.js +1 -1
- package/dist/model/FirewallFields.js +1 -1
- package/dist/model/FirewallResponse.js +1 -1
- package/dist/model/FirewallRule.js +1 -1
- package/dist/model/FirewallsListResponse.js +1 -1
- package/dist/model/FlavorFields.js +1 -1
- package/dist/model/FlavorItemGetResponse.js +1 -1
- package/dist/model/FlavorLabelFields.js +1 -1
- package/dist/model/FlavorListResponse.js +1 -1
- package/dist/model/FlavorObjectFields.js +1 -1
- package/dist/model/FlavorRestrictions.js +1 -1
- package/dist/model/GPUFields.js +1 -1
- package/dist/model/GPUList.js +1 -1
- package/dist/model/GPURegionFields.js +1 -1
- package/dist/model/GenerateUpdateApiKeyPayload.js +1 -1
- package/dist/model/GenerateUpdateApiKeyResponseModel.js +1 -1
- package/dist/model/GetApiKeysResponseModel.js +1 -1
- package/dist/model/GetAutoTopupResponse.js +1 -1
- package/dist/model/GetCreditAndThresholdInfo.js +1 -1
- package/dist/model/GetCreditAndThresholdInfoInResponse.js +1 -1
- package/dist/model/GetCustomerContractsListResponseModel.js +1 -1
- package/dist/model/GetInstanceLogsResponse.js +1 -1
- package/dist/model/GetInvitesResponseModel.js +1 -1
- package/dist/model/GetOrganizationResponseModel.js +1 -1
- package/dist/model/GetPermissionsResponseModel.js +1 -1
- package/dist/model/GetPoliciesResponseModel.js +1 -1
- package/dist/model/GetRbacRolesResponseModel.js +1 -1
- package/dist/model/GetUserPermissionsResponseModel.js +1 -1
- package/dist/model/GraphDatetimeValueModel.js +1 -1
- package/dist/model/Image.js +1 -1
- package/dist/model/ImageFields.js +1 -1
- package/dist/model/ImageGenerationBillingHistoryDetailsResponseSchema.js +1 -1
- package/dist/model/ImageGetResponse.js +1 -1
- package/dist/model/ImageRestrictions.js +1 -1
- package/dist/model/Images.js +1 -1
- package/dist/model/ImportKeypairPayload.js +1 -1
- package/dist/model/ImportKeypairResponse.js +1 -1
- package/dist/model/InfrahubResourceObjectResponseForCustomer.js +1 -1
- package/dist/model/Instance.js +1 -1
- package/dist/model/InstanceEnhancedMetricsFields.js +1 -1
- package/dist/model/InstanceEnvironmentFields.js +1 -1
- package/dist/model/InstanceEvents.js +1 -1
- package/dist/model/InstanceEventsFields.js +1 -1
- package/dist/model/InstanceFields.js +19 -1
- package/dist/model/InstanceFlavorFields.js +1 -1
- package/dist/model/InstanceImageFields.js +1 -1
- package/dist/model/InstanceKeypairFields.js +1 -1
- package/dist/model/InstanceOverviewFields.js +1 -1
- package/dist/model/InstanceResizePayload.js +1 -1
- package/dist/model/Instances.js +1 -1
- package/dist/model/InviteFields.js +1 -1
- package/dist/model/InviteUserPayload.js +1 -1
- package/dist/model/InviteUserResponseModel.js +1 -1
- package/dist/model/KeypairEnvironmentFeatures.js +1 -1
- package/dist/model/KeypairEnvironmentFields.js +1 -1
- package/dist/model/KeypairFields.js +1 -1
- package/dist/model/Keypairs.js +1 -1
- package/dist/model/LableResonse.js +1 -1
- package/dist/model/LastDayCostFields.js +1 -1
- package/dist/model/LastDayCostResponse.js +1 -1
- package/dist/model/Logos.js +1 -1
- package/dist/model/MFAStatusFields.js +1 -1
- package/dist/model/MFAStatusResponse.js +1 -1
- package/dist/model/ManualReconciliationModel.js +1 -1
- package/dist/model/MasterFlavorsResponse.js +1 -1
- package/dist/model/MetricItemFields.js +1 -1
- package/dist/model/Metrics.js +1 -1
- package/dist/model/MetricsFields.js +1 -1
- package/dist/model/ModelEvaluationBillingHistoryDetailsResponseSchema.js +1 -1
- package/dist/model/NameAvailableModel.js +1 -1
- package/dist/model/NewConfigurationsResponse.js +1 -1
- package/dist/model/NewModelResponse.js +1 -1
- package/dist/model/NewStockResponse.js +1 -1
- package/dist/model/NewStockRetriveResponse.js +1 -1
- package/dist/model/ObjectStorageAccessKeyCreateRequest.js +1 -1
- package/dist/model/ObjectStorageAccessKeyCreateResponse.js +1 -1
- package/dist/model/ObjectStorageAccessKeyListResponse.js +1 -1
- package/dist/model/ObjectStorageAccessKeyResponse.js +1 -1
- package/dist/model/ObjectStorageBucketListResponse.js +1 -1
- package/dist/model/ObjectStorageBucketResponse.js +1 -1
- package/dist/model/ObjectStorageDeleteResponse.js +1 -1
- package/dist/model/ObjectStorageErrorResponse.js +1 -1
- package/dist/model/ObjectStorageHealthResponse.js +1 -1
- package/dist/model/ObjectStoragePaginationMeta.js +1 -1
- package/dist/model/ObjectStorageRegionListResponse.js +1 -1
- package/dist/model/ObjectStorageRegionResponse.js +1 -1
- package/dist/model/OrganizationFields.js +1 -1
- package/dist/model/OrganizationLevelBillingHistory.js +1 -1
- package/dist/model/OrganizationLevelBillingHistoryResources.js +1 -1
- package/dist/model/OrganizationLevelBillingHistoryResponseAttributes.js +1 -1
- package/dist/model/OrganizationLevelBillingHistoryResponseMetrics.js +1 -1
- package/dist/model/OrganizationLevelBillingHistoryResponseModel.js +1 -1
- package/dist/model/OrganizationThresholdFields.js +1 -1
- package/dist/model/OrganizationThresholdUpdateResponse.js +1 -1
- package/dist/model/OrganizationThresholdsResponse.js +1 -1
- package/dist/model/OrganizationUserResponseModel.js +1 -1
- package/dist/model/OverviewInfo.js +1 -15
- package/dist/model/Pagination.js +1 -1
- package/dist/model/PaginationData.js +1 -1
- package/dist/model/PartnerConfig.js +1 -1
- package/dist/model/PaymentDetailsFields.js +1 -1
- package/dist/model/PaymentDetailsResponse.js +1 -1
- package/dist/model/PaymentInitiateFields.js +1 -1
- package/dist/model/PaymentInitiatePayload.js +28 -4
- package/dist/model/PaymentInitiateResponse.js +1 -1
- package/dist/model/PermissionFields.js +1 -1
- package/dist/model/PolicyFields.js +1 -1
- package/dist/model/PolicyPermissionFields.js +1 -1
- package/dist/model/PricebookModel.js +1 -1
- package/dist/model/PricebookResourceObjectResponseForCustomer.js +1 -1
- package/dist/model/PrimaryColor.js +1 -1
- package/dist/model/ProfileFields.js +1 -1
- package/dist/model/ProfileListResponse.js +1 -1
- package/dist/model/ProfileObjectFields.js +1 -1
- package/dist/model/RbacRoleDetailResponseModel.js +1 -1
- package/dist/model/RbacRoleDetailResponseModelFixed.js +1 -1
- package/dist/model/RbacRoleField.js +1 -1
- package/dist/model/RbacRoleFields.js +1 -1
- package/dist/model/RecordConsentRequest.js +1 -1
- package/dist/model/RedeemVoucherPayload.js +1 -1
- package/dist/model/RegionFields.js +1 -1
- package/dist/model/Regions.js +1 -1
- package/dist/model/RemoveMemberFromOrganizationResponseModel.js +1 -1
- package/dist/model/RemoveMemberPayload.js +1 -1
- package/dist/model/RequestConsole.js +1 -1
- package/dist/model/RequestInstanceLogsPayload.js +1 -1
- package/dist/model/RequestInstanceLogsResponse.js +1 -1
- package/dist/model/ResourceBillingEventsHistoryMetrics.js +1 -1
- package/dist/model/ResourceBillingEventsHistoryResponse.js +1 -1
- package/dist/model/ResourceBillingResponseForCustomer.js +1 -1
- package/dist/model/ResourceLevelBillingBucketDetailsResources.js +1 -1
- package/dist/model/ResourceLevelBillingDetailsAttributes.js +1 -1
- package/dist/model/ResourceLevelBillingDetailsMetrics.js +1 -1
- package/dist/model/ResourceLevelBillingDetailsVM.js +1 -1
- package/dist/model/ResourceLevelBillingDetailsVolume.js +1 -1
- package/dist/model/ResourceLevelBillingDetailsVolumeAttributes.js +1 -1
- package/dist/model/ResourceLevelBillingDetailsVolumeMetrics.js +1 -1
- package/dist/model/ResourceLevelBillingHistory.js +1 -1
- package/dist/model/ResourceLevelBillingHistoryResources.js +1 -1
- package/dist/model/ResourceLevelBillingHistoryResourcesCluster.js +1 -1
- package/dist/model/ResourceLevelBillingHistoryResponseAttributes.js +1 -1
- package/dist/model/ResourceLevelBillingHistoryResponseMetrics.js +1 -1
- package/dist/model/ResourceLevelBillingVMDetailsResources.js +1 -1
- package/dist/model/ResourceLevelBillingVolumeDetailsResources.js +1 -1
- package/dist/model/ResourceLevelBucketBillingDetailsResponseModel.js +1 -1
- package/dist/model/ResourceLevelBucketBillingHistoryResponseModel.js +1 -1
- package/dist/model/ResourceLevelClusterBillingDetailsResponseModel.js +1 -1
- package/dist/model/ResourceLevelClusterBillingHistoryResponseModel.js +1 -1
- package/dist/model/ResourceLevelClusterGraphBillingDetailsResponseModel.js +1 -1
- package/dist/model/ResourceLevelGraphBillingDetailVolume.js +1 -1
- package/dist/model/ResourceLevelGraphBillingDetailsAttributes.js +1 -1
- package/dist/model/ResourceLevelGraphBillingDetailsBucket.js +1 -1
- package/dist/model/ResourceLevelGraphBillingDetailsMetrics.js +1 -1
- package/dist/model/ResourceLevelGraphBillingDetailsVM.js +1 -1
- package/dist/model/ResourceLevelGraphBillingVMDetailsResources.js +1 -1
- package/dist/model/ResourceLevelGraphBillingVolumeDetailsResources.js +1 -1
- package/dist/model/ResourceLevelVMBillingDetailsResponseModel.js +1 -1
- package/dist/model/ResourceLevelVmBillingHistoryResponseModel.js +1 -1
- package/dist/model/ResourceLevelVmGraphBillingDetailsResponseModel.js +1 -1
- package/dist/model/ResourceLevelVolumeBillingDetailsResponseModel.js +1 -1
- package/dist/model/ResourceLevelVolumeBillingHistoryResponseModel.js +1 -1
- package/dist/model/ResourceLevelVolumeGraphBillingDetailsResponseModel.js +1 -1
- package/dist/model/ResourceObjectResponseForCustomer.js +1 -1
- package/dist/model/ResponseModel.js +1 -1
- package/dist/model/RolePermissionFields.js +1 -1
- package/dist/model/RolePolicyFields.js +1 -1
- package/dist/model/SecondaryColor.js +1 -1
- package/dist/model/SecurityGroupRule.js +1 -1
- package/dist/model/SecurityGroupRuleFields.js +1 -1
- package/dist/model/SecurityRulesFieldsForInstance.js +1 -1
- package/dist/model/SecurityRulesProtocolFields.js +1 -1
- package/dist/model/ServerlessInferencedBillingHistoryDetailsResponseSchema.js +1 -1
- package/dist/model/SnapshotFields.js +1 -1
- package/dist/model/SnapshotRestoreRequest.js +1 -1
- package/dist/model/SnapshotRetrieve.js +1 -1
- package/dist/model/SnapshotRetrieveFields.js +1 -1
- package/dist/model/Snapshots.js +1 -1
- package/dist/model/SubResourceGraphBillingDetailsMetrics.js +1 -1
- package/dist/model/SubResourcesCostsResponseModel.js +1 -1
- package/dist/model/SubResourcesGraphBillingHistoryFields.js +1 -1
- package/dist/model/SubResourcesGraphResponseModel.js +1 -1
- package/dist/model/SubscribeOrUnsubscribeUpdatePayload.js +1 -1
- package/dist/model/SupportedKeypairPublicKeyTypesResponse.js +1 -1
- package/dist/model/TokenBasedBillingHistoryResponse.js +1 -1
- package/dist/model/URIs.js +1 -1
- package/dist/model/UpdateAutoTopupPayload.js +1 -1
- package/dist/model/UpdateAutoTopupResponse.js +1 -1
- package/dist/model/UpdateClusterNodeGroupPayload.js +1 -1
- package/dist/model/UpdateConsentRequest.js +1 -1
- package/dist/model/UpdateEmailPreferenceInput.js +1 -1
- package/dist/model/UpdateEmailPreferenceResponse.js +1 -1
- package/dist/model/UpdateEnvironment.js +1 -1
- package/dist/model/UpdateKeypairName.js +1 -1
- package/dist/model/UpdateKeypairNameResponse.js +1 -1
- package/dist/model/UpdateOrganizationPayload.js +1 -1
- package/dist/model/UpdateOrganizationResponseModel.js +1 -1
- package/dist/model/UpdateVolumeAttachmentPayload.js +1 -1
- package/dist/model/UpdateVolumePayload.js +1 -1
- package/dist/model/UpdateVolumeResponse.js +1 -1
- package/dist/model/UserConsent.js +1 -1
- package/dist/model/UserConsentEvent.js +1 -1
- package/dist/model/UserConsentsResponse.js +1 -1
- package/dist/model/UserDefaultChoiceForUserFields.js +1 -1
- package/dist/model/UserDefaultChoicesForUserResponse.js +1 -1
- package/dist/model/UserEnhancedMetricsPayload.js +1 -1
- package/dist/model/UserEnhancedMetricsResponse.js +1 -1
- package/dist/model/UserEnhancedMetricsResponseFields.js +1 -1
- package/dist/model/UserInfoPostPayload.js +1 -1
- package/dist/model/UserOrganizationsResponse.js +1 -1
- package/dist/model/UserPermissionFields.js +1 -1
- package/dist/model/UsersInfoFields.js +1 -1
- package/dist/model/UsersInfoListResponse.js +1 -1
- package/dist/model/VMQuota.js +1 -1
- package/dist/model/VNCURL.js +1 -1
- package/dist/model/VNCURLFields.js +1 -1
- package/dist/model/Volume.js +1 -1
- package/dist/model/VolumeAttachmentFields.js +1 -1
- package/dist/model/VolumeFields.js +1 -1
- package/dist/model/VolumeFieldsForInstance.js +1 -1
- package/dist/model/VolumeOverviewFields.js +1 -1
- package/dist/model/VolumeTypes.js +1 -1
- package/dist/model/Volumes.js +1 -1
- package/dist/model/VolumesFields.js +1 -1
- package/dist/model/Voucher.js +1 -1
- package/dist/model/VoucherRedeemResponseSchema.js +1 -1
- package/dist/model/WorkloadBillingHistoryResponse.js +1 -1
- package/package.json +1 -1
- package/dist/api/ComplianceApi.js +0 -202
- package/dist/api/DeploymentApi.js +0 -195
- package/dist/api/TemplateApi.js +0 -280
- package/dist/model/ComplianceFields.js +0 -125
- package/dist/model/ComplianceModelFields.js +0 -141
- package/dist/model/CompliancePayload.js +0 -166
- package/dist/model/ComplianceResponse.js +0 -111
- package/dist/model/ContainerOverviewFields.js +0 -117
- package/dist/model/CreateUpdateComplianceResponse.js +0 -111
- package/dist/model/DeploymentFields.js +0 -141
- package/dist/model/DeploymentFieldsForStartDeployments.js +0 -153
- package/dist/model/Deployments.js +0 -130
- package/dist/model/StartDeployment.js +0 -111
- package/dist/model/StartDeploymentPayload.js +0 -146
- package/dist/model/Template.js +0 -111
- package/dist/model/TemplateFields.js +0 -137
- package/dist/model/Templates.js +0 -130
- package/dist/model/UpdateTemplate.js +0 -109
package/dist/api/TemplateApi.js
DELETED
|
@@ -1,280 +0,0 @@
|
|
|
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 _ResponseModel = _interopRequireDefault(require("../model/ResponseModel"));
|
|
10
|
-
var _Template = _interopRequireDefault(require("../model/Template"));
|
|
11
|
-
var _Templates = _interopRequireDefault(require("../model/Templates"));
|
|
12
|
-
var _UpdateTemplate = _interopRequireDefault(require("../model/UpdateTemplate"));
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
-
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); }
|
|
15
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
-
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); } }
|
|
17
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
-
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); } /**
|
|
20
|
-
* Infrahub-API
|
|
21
|
-
* 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.
|
|
22
|
-
*
|
|
23
|
-
* The version of the OpenAPI document: 1.0
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27
|
-
* https://openapi-generator.tech
|
|
28
|
-
* Do not edit the class manually.
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
/**
|
|
32
|
-
* Template service.
|
|
33
|
-
* @module api/TemplateApi
|
|
34
|
-
* @version v1.55.4-alpha
|
|
35
|
-
*/
|
|
36
|
-
var TemplateApi = exports["default"] = /*#__PURE__*/function () {
|
|
37
|
-
/**
|
|
38
|
-
* Constructs a new TemplateApi.
|
|
39
|
-
* @alias module:api/TemplateApi
|
|
40
|
-
* @class
|
|
41
|
-
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
42
|
-
* default to {@link module:ApiClient#instance} if unspecified.
|
|
43
|
-
*/
|
|
44
|
-
function TemplateApi(apiClient) {
|
|
45
|
-
_classCallCheck(this, TemplateApi);
|
|
46
|
-
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Create template
|
|
51
|
-
* Creates a resource template for deployment.
|
|
52
|
-
* @param {File} content YAML file is required
|
|
53
|
-
* @param {String} description description is required
|
|
54
|
-
* @param {String} isPublic is_public is required
|
|
55
|
-
* @param {String} name name is required
|
|
56
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Template} and HTTP response
|
|
57
|
-
*/
|
|
58
|
-
return _createClass(TemplateApi, [{
|
|
59
|
-
key: "createTemplateWithHttpInfo",
|
|
60
|
-
value: function createTemplateWithHttpInfo(content, description, isPublic, name) {
|
|
61
|
-
var postBody = null;
|
|
62
|
-
// verify the required parameter 'content' is set
|
|
63
|
-
if (content === undefined || content === null) {
|
|
64
|
-
throw new Error("Missing the required parameter 'content' when calling createTemplate");
|
|
65
|
-
}
|
|
66
|
-
// verify the required parameter 'description' is set
|
|
67
|
-
if (description === undefined || description === null) {
|
|
68
|
-
throw new Error("Missing the required parameter 'description' when calling createTemplate");
|
|
69
|
-
}
|
|
70
|
-
// verify the required parameter 'isPublic' is set
|
|
71
|
-
if (isPublic === undefined || isPublic === null) {
|
|
72
|
-
throw new Error("Missing the required parameter 'isPublic' when calling createTemplate");
|
|
73
|
-
}
|
|
74
|
-
// verify the required parameter 'name' is set
|
|
75
|
-
if (name === undefined || name === null) {
|
|
76
|
-
throw new Error("Missing the required parameter 'name' when calling createTemplate");
|
|
77
|
-
}
|
|
78
|
-
var pathParams = {};
|
|
79
|
-
var queryParams = {};
|
|
80
|
-
var headerParams = {};
|
|
81
|
-
var formParams = {
|
|
82
|
-
'content': content,
|
|
83
|
-
'description': description,
|
|
84
|
-
'is_public': isPublic,
|
|
85
|
-
'name': name
|
|
86
|
-
};
|
|
87
|
-
var authNames = ['apiKey'];
|
|
88
|
-
var contentTypes = ['multipart/form-data'];
|
|
89
|
-
var accepts = ['application/json'];
|
|
90
|
-
var returnType = _Template["default"];
|
|
91
|
-
return this.apiClient.callApi('/core/marketplace/templates', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Create template
|
|
96
|
-
* Creates a resource template for deployment.
|
|
97
|
-
* @param {File} content YAML file is required
|
|
98
|
-
* @param {String} description description is required
|
|
99
|
-
* @param {String} isPublic is_public is required
|
|
100
|
-
* @param {String} name name is required
|
|
101
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Template}
|
|
102
|
-
*/
|
|
103
|
-
}, {
|
|
104
|
-
key: "createTemplate",
|
|
105
|
-
value: function createTemplate(content, description, isPublic, name) {
|
|
106
|
-
return this.createTemplateWithHttpInfo(content, description, isPublic, name).then(function (response_and_data) {
|
|
107
|
-
return response_and_data.data;
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Delete template
|
|
113
|
-
* Permanently deletes a template. Supply the template ID in the path to delete the specified template.
|
|
114
|
-
* @param {Number} id
|
|
115
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
|
|
116
|
-
*/
|
|
117
|
-
}, {
|
|
118
|
-
key: "deleteTemplateWithHttpInfo",
|
|
119
|
-
value: function deleteTemplateWithHttpInfo(id) {
|
|
120
|
-
var postBody = null;
|
|
121
|
-
// verify the required parameter 'id' is set
|
|
122
|
-
if (id === undefined || id === null) {
|
|
123
|
-
throw new Error("Missing the required parameter 'id' when calling deleteTemplate");
|
|
124
|
-
}
|
|
125
|
-
var pathParams = {
|
|
126
|
-
'id': id
|
|
127
|
-
};
|
|
128
|
-
var queryParams = {};
|
|
129
|
-
var headerParams = {};
|
|
130
|
-
var formParams = {};
|
|
131
|
-
var authNames = ['apiKey'];
|
|
132
|
-
var contentTypes = [];
|
|
133
|
-
var accepts = ['application/json'];
|
|
134
|
-
var returnType = _ResponseModel["default"];
|
|
135
|
-
return this.apiClient.callApi('/core/marketplace/templates/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Delete template
|
|
140
|
-
* Permanently deletes a template. Supply the template ID in the path to delete the specified template.
|
|
141
|
-
* @param {Number} id
|
|
142
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
|
|
143
|
-
*/
|
|
144
|
-
}, {
|
|
145
|
-
key: "deleteTemplate",
|
|
146
|
-
value: function deleteTemplate(id) {
|
|
147
|
-
return this.deleteTemplateWithHttpInfo(id).then(function (response_and_data) {
|
|
148
|
-
return response_and_data.data;
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Retrieve template details
|
|
154
|
-
* Retrieves the resource configuration details for a specified template.Provide the template ID in the path to retrieve details for the specified template.For additional information on template configuration details,[**click here**](https://docs.hyperstack.cloud/docs/api-references/).
|
|
155
|
-
* @param {Number} id
|
|
156
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Template} and HTTP response
|
|
157
|
-
*/
|
|
158
|
-
}, {
|
|
159
|
-
key: "getTemplateWithHttpInfo",
|
|
160
|
-
value: function getTemplateWithHttpInfo(id) {
|
|
161
|
-
var postBody = null;
|
|
162
|
-
// verify the required parameter 'id' is set
|
|
163
|
-
if (id === undefined || id === null) {
|
|
164
|
-
throw new Error("Missing the required parameter 'id' when calling getTemplate");
|
|
165
|
-
}
|
|
166
|
-
var pathParams = {
|
|
167
|
-
'id': id
|
|
168
|
-
};
|
|
169
|
-
var queryParams = {};
|
|
170
|
-
var headerParams = {};
|
|
171
|
-
var formParams = {};
|
|
172
|
-
var authNames = ['apiKey'];
|
|
173
|
-
var contentTypes = [];
|
|
174
|
-
var accepts = ['application/json'];
|
|
175
|
-
var returnType = _Template["default"];
|
|
176
|
-
return this.apiClient.callApi('/core/marketplace/templates/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Retrieve template details
|
|
181
|
-
* Retrieves the resource configuration details for a specified template.Provide the template ID in the path to retrieve details for the specified template.For additional information on template configuration details,[**click here**](https://docs.hyperstack.cloud/docs/api-references/).
|
|
182
|
-
* @param {Number} id
|
|
183
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Template}
|
|
184
|
-
*/
|
|
185
|
-
}, {
|
|
186
|
-
key: "getTemplate",
|
|
187
|
-
value: function getTemplate(id) {
|
|
188
|
-
return this.getTemplateWithHttpInfo(id).then(function (response_and_data) {
|
|
189
|
-
return response_and_data.data;
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* List templates
|
|
195
|
-
* Returns a comprehensive list of templates, providing resource configuration details for each. Optionally, specify the `visibility` as `public` or `private` to retrieve templates with the desired visibility status. To learn more about the templates feature, [**click here**](https://docs.hyperstack.cloud/docs/features/templates#view-a-list-of-templates).
|
|
196
|
-
* @param {Object} opts Optional parameters
|
|
197
|
-
* @param {String} [visibility] Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility.
|
|
198
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Templates} and HTTP response
|
|
199
|
-
*/
|
|
200
|
-
}, {
|
|
201
|
-
key: "listTemplatesWithHttpInfo",
|
|
202
|
-
value: function listTemplatesWithHttpInfo(opts) {
|
|
203
|
-
opts = opts || {};
|
|
204
|
-
var postBody = null;
|
|
205
|
-
var pathParams = {};
|
|
206
|
-
var queryParams = {
|
|
207
|
-
'visibility': opts['visibility']
|
|
208
|
-
};
|
|
209
|
-
var headerParams = {};
|
|
210
|
-
var formParams = {};
|
|
211
|
-
var authNames = ['apiKey'];
|
|
212
|
-
var contentTypes = [];
|
|
213
|
-
var accepts = ['application/json'];
|
|
214
|
-
var returnType = _Templates["default"];
|
|
215
|
-
return this.apiClient.callApi('/core/marketplace/templates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* List templates
|
|
220
|
-
* Returns a comprehensive list of templates, providing resource configuration details for each. Optionally, specify the `visibility` as `public` or `private` to retrieve templates with the desired visibility status. To learn more about the templates feature, [**click here**](https://docs.hyperstack.cloud/docs/features/templates#view-a-list-of-templates).
|
|
221
|
-
* @param {Object} opts Optional parameters
|
|
222
|
-
* @param {String} opts.visibility Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility.
|
|
223
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Templates}
|
|
224
|
-
*/
|
|
225
|
-
}, {
|
|
226
|
-
key: "listTemplates",
|
|
227
|
-
value: function listTemplates(opts) {
|
|
228
|
-
return this.listTemplatesWithHttpInfo(opts).then(function (response_and_data) {
|
|
229
|
-
return response_and_data.data;
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* Update template
|
|
235
|
-
* Updates the details of a template. Modify the template name, description and/or`is_public` status to change the public/private visibility of the template.
|
|
236
|
-
* @param {Number} id
|
|
237
|
-
* @param {module:model/UpdateTemplate} payload
|
|
238
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Template} and HTTP response
|
|
239
|
-
*/
|
|
240
|
-
}, {
|
|
241
|
-
key: "updateTemplateWithHttpInfo",
|
|
242
|
-
value: function updateTemplateWithHttpInfo(id, payload) {
|
|
243
|
-
var postBody = payload;
|
|
244
|
-
// verify the required parameter 'id' is set
|
|
245
|
-
if (id === undefined || id === null) {
|
|
246
|
-
throw new Error("Missing the required parameter 'id' when calling updateTemplate");
|
|
247
|
-
}
|
|
248
|
-
// verify the required parameter 'payload' is set
|
|
249
|
-
if (payload === undefined || payload === null) {
|
|
250
|
-
throw new Error("Missing the required parameter 'payload' when calling updateTemplate");
|
|
251
|
-
}
|
|
252
|
-
var pathParams = {
|
|
253
|
-
'id': id
|
|
254
|
-
};
|
|
255
|
-
var queryParams = {};
|
|
256
|
-
var headerParams = {};
|
|
257
|
-
var formParams = {};
|
|
258
|
-
var authNames = ['apiKey'];
|
|
259
|
-
var contentTypes = ['application/json'];
|
|
260
|
-
var accepts = ['application/json'];
|
|
261
|
-
var returnType = _Template["default"];
|
|
262
|
-
return this.apiClient.callApi('/core/marketplace/templates/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Update template
|
|
267
|
-
* Updates the details of a template. Modify the template name, description and/or`is_public` status to change the public/private visibility of the template.
|
|
268
|
-
* @param {Number} id
|
|
269
|
-
* @param {module:model/UpdateTemplate} payload
|
|
270
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Template}
|
|
271
|
-
*/
|
|
272
|
-
}, {
|
|
273
|
-
key: "updateTemplate",
|
|
274
|
-
value: function updateTemplate(id, payload) {
|
|
275
|
-
return this.updateTemplateWithHttpInfo(id, payload).then(function (response_and_data) {
|
|
276
|
-
return response_and_data.data;
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
}]);
|
|
280
|
-
}();
|
|
@@ -1,125 +0,0 @@
|
|
|
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 ComplianceFields model module.
|
|
28
|
-
* @module model/ComplianceFields
|
|
29
|
-
* @version v1.55.4-alpha
|
|
30
|
-
*/
|
|
31
|
-
var ComplianceFields = /*#__PURE__*/function () {
|
|
32
|
-
/**
|
|
33
|
-
* Constructs a new <code>ComplianceFields</code>.
|
|
34
|
-
* @alias module:model/ComplianceFields
|
|
35
|
-
*/
|
|
36
|
-
function ComplianceFields() {
|
|
37
|
-
_classCallCheck(this, ComplianceFields);
|
|
38
|
-
ComplianceFields.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(ComplianceFields, null, [{
|
|
47
|
-
key: "initialize",
|
|
48
|
-
value: function initialize(obj) {}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Constructs a <code>ComplianceFields</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/ComplianceFields} obj Optional instance to populate.
|
|
55
|
-
* @return {module:model/ComplianceFields} The populated <code>ComplianceFields</code> instance.
|
|
56
|
-
*/
|
|
57
|
-
}, {
|
|
58
|
-
key: "constructFromObject",
|
|
59
|
-
value: function constructFromObject(data, obj) {
|
|
60
|
-
if (data) {
|
|
61
|
-
obj = obj || new ComplianceFields();
|
|
62
|
-
if (data.hasOwnProperty('cpu')) {
|
|
63
|
-
obj['cpu'] = _ApiClient["default"].convertToType(data['cpu'], ['Number']);
|
|
64
|
-
}
|
|
65
|
-
if (data.hasOwnProperty('gpu_model')) {
|
|
66
|
-
obj['gpu_model'] = _ApiClient["default"].convertToType(data['gpu_model'], 'String');
|
|
67
|
-
}
|
|
68
|
-
if (data.hasOwnProperty('hdd')) {
|
|
69
|
-
obj['hdd'] = _ApiClient["default"].convertToType(data['hdd'], ['Number']);
|
|
70
|
-
}
|
|
71
|
-
if (data.hasOwnProperty('ram')) {
|
|
72
|
-
obj['ram'] = _ApiClient["default"].convertToType(data['ram'], ['Number']);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return obj;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Validates the JSON data with respect to <code>ComplianceFields</code>.
|
|
80
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ComplianceFields</code>.
|
|
82
|
-
*/
|
|
83
|
-
}, {
|
|
84
|
-
key: "validateJSON",
|
|
85
|
-
value: function validateJSON(data) {
|
|
86
|
-
// ensure the json data is an array
|
|
87
|
-
if (!Array.isArray(data['cpu'])) {
|
|
88
|
-
throw new Error("Expected the field `cpu` to be an array in the JSON data but got " + data['cpu']);
|
|
89
|
-
}
|
|
90
|
-
// ensure the json data is a string
|
|
91
|
-
if (data['gpu_model'] && !(typeof data['gpu_model'] === 'string' || data['gpu_model'] instanceof String)) {
|
|
92
|
-
throw new Error("Expected the field `gpu_model` to be a primitive type in the JSON string but got " + data['gpu_model']);
|
|
93
|
-
}
|
|
94
|
-
// ensure the json data is an array
|
|
95
|
-
if (!Array.isArray(data['hdd'])) {
|
|
96
|
-
throw new Error("Expected the field `hdd` to be an array in the JSON data but got " + data['hdd']);
|
|
97
|
-
}
|
|
98
|
-
// ensure the json data is an array
|
|
99
|
-
if (!Array.isArray(data['ram'])) {
|
|
100
|
-
throw new Error("Expected the field `ram` to be an array in the JSON data but got " + data['ram']);
|
|
101
|
-
}
|
|
102
|
-
return true;
|
|
103
|
-
}
|
|
104
|
-
}]);
|
|
105
|
-
}();
|
|
106
|
-
/**
|
|
107
|
-
* @member {Array.<Number>} cpu
|
|
108
|
-
*/
|
|
109
|
-
ComplianceFields.prototype['cpu'] = undefined;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* @member {String} gpu_model
|
|
113
|
-
*/
|
|
114
|
-
ComplianceFields.prototype['gpu_model'] = undefined;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* @member {Array.<Number>} hdd
|
|
118
|
-
*/
|
|
119
|
-
ComplianceFields.prototype['hdd'] = undefined;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* @member {Array.<Number>} ram
|
|
123
|
-
*/
|
|
124
|
-
ComplianceFields.prototype['ram'] = undefined;
|
|
125
|
-
var _default = exports["default"] = ComplianceFields;
|
|
@@ -1,141 +0,0 @@
|
|
|
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 ComplianceModelFields model module.
|
|
28
|
-
* @module model/ComplianceModelFields
|
|
29
|
-
* @version v1.55.4-alpha
|
|
30
|
-
*/
|
|
31
|
-
var ComplianceModelFields = /*#__PURE__*/function () {
|
|
32
|
-
/**
|
|
33
|
-
* Constructs a new <code>ComplianceModelFields</code>.
|
|
34
|
-
* @alias module:model/ComplianceModelFields
|
|
35
|
-
*/
|
|
36
|
-
function ComplianceModelFields() {
|
|
37
|
-
_classCallCheck(this, ComplianceModelFields);
|
|
38
|
-
ComplianceModelFields.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(ComplianceModelFields, null, [{
|
|
47
|
-
key: "initialize",
|
|
48
|
-
value: function initialize(obj) {}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Constructs a <code>ComplianceModelFields</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/ComplianceModelFields} obj Optional instance to populate.
|
|
55
|
-
* @return {module:model/ComplianceModelFields} The populated <code>ComplianceModelFields</code> instance.
|
|
56
|
-
*/
|
|
57
|
-
}, {
|
|
58
|
-
key: "constructFromObject",
|
|
59
|
-
value: function constructFromObject(data, obj) {
|
|
60
|
-
if (data) {
|
|
61
|
-
obj = obj || new ComplianceModelFields();
|
|
62
|
-
if (data.hasOwnProperty('base_value')) {
|
|
63
|
-
obj['base_value'] = _ApiClient["default"].convertToType(data['base_value'], 'Number');
|
|
64
|
-
}
|
|
65
|
-
if (data.hasOwnProperty('gpu_model')) {
|
|
66
|
-
obj['gpu_model'] = _ApiClient["default"].convertToType(data['gpu_model'], 'String');
|
|
67
|
-
}
|
|
68
|
-
if (data.hasOwnProperty('id')) {
|
|
69
|
-
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
|
70
|
-
}
|
|
71
|
-
if (data.hasOwnProperty('resource_type')) {
|
|
72
|
-
obj['resource_type'] = _ApiClient["default"].convertToType(data['resource_type'], 'String');
|
|
73
|
-
}
|
|
74
|
-
if (data.hasOwnProperty('variation_max')) {
|
|
75
|
-
obj['variation_max'] = _ApiClient["default"].convertToType(data['variation_max'], 'Number');
|
|
76
|
-
}
|
|
77
|
-
if (data.hasOwnProperty('variation_min')) {
|
|
78
|
-
obj['variation_min'] = _ApiClient["default"].convertToType(data['variation_min'], 'Number');
|
|
79
|
-
}
|
|
80
|
-
if (data.hasOwnProperty('variation_unit')) {
|
|
81
|
-
obj['variation_unit'] = _ApiClient["default"].convertToType(data['variation_unit'], 'Number');
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return obj;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Validates the JSON data with respect to <code>ComplianceModelFields</code>.
|
|
89
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
90
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ComplianceModelFields</code>.
|
|
91
|
-
*/
|
|
92
|
-
}, {
|
|
93
|
-
key: "validateJSON",
|
|
94
|
-
value: function validateJSON(data) {
|
|
95
|
-
// ensure the json data is a string
|
|
96
|
-
if (data['gpu_model'] && !(typeof data['gpu_model'] === 'string' || data['gpu_model'] instanceof String)) {
|
|
97
|
-
throw new Error("Expected the field `gpu_model` to be a primitive type in the JSON string but got " + data['gpu_model']);
|
|
98
|
-
}
|
|
99
|
-
// ensure the json data is a string
|
|
100
|
-
if (data['resource_type'] && !(typeof data['resource_type'] === 'string' || data['resource_type'] instanceof String)) {
|
|
101
|
-
throw new Error("Expected the field `resource_type` to be a primitive type in the JSON string but got " + data['resource_type']);
|
|
102
|
-
}
|
|
103
|
-
return true;
|
|
104
|
-
}
|
|
105
|
-
}]);
|
|
106
|
-
}();
|
|
107
|
-
/**
|
|
108
|
-
* @member {Number} base_value
|
|
109
|
-
*/
|
|
110
|
-
ComplianceModelFields.prototype['base_value'] = undefined;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* @member {String} gpu_model
|
|
114
|
-
*/
|
|
115
|
-
ComplianceModelFields.prototype['gpu_model'] = undefined;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* @member {Number} id
|
|
119
|
-
*/
|
|
120
|
-
ComplianceModelFields.prototype['id'] = undefined;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* @member {String} resource_type
|
|
124
|
-
*/
|
|
125
|
-
ComplianceModelFields.prototype['resource_type'] = undefined;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* @member {Number} variation_max
|
|
129
|
-
*/
|
|
130
|
-
ComplianceModelFields.prototype['variation_max'] = undefined;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* @member {Number} variation_min
|
|
134
|
-
*/
|
|
135
|
-
ComplianceModelFields.prototype['variation_min'] = undefined;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* @member {Number} variation_unit
|
|
139
|
-
*/
|
|
140
|
-
ComplianceModelFields.prototype['variation_unit'] = undefined;
|
|
141
|
-
var _default = exports["default"] = ComplianceModelFields;
|