diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000..3c3629e6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+node_modules
diff --git a/README.md b/README.md
index f8118326..550998c8 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@ To contribute, please raise an issue with a bug report, feature request, feedbac
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 1.0
-- Package version: v1.25.0-alpha
+- Package version: v1.51.1-alpha
- Generator version: 7.10.0
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
@@ -105,10 +105,19 @@ Please follow the [installation](#installation) instruction and execute the foll
```javascript
var HyperstackApi = require('@nexgencloud/hyperstack-sdk-javascript');
-
-var api = new HyperstackApi.AliveApi()
-api.getAlive().then(function() {
- console.log('API called successfully.');
+var defaultClient = HyperstackApi.ApiClient.instance;
+// Configure API key authorization: apiKey
+var apiKey = defaultClient.authentications['apiKey'];
+apiKey.apiKey = "YOUR API KEY"
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//apiKey.apiKeyPrefix['api_key'] = "Token"
+
+var api = new HyperstackApi.AccessKeysApi()
+var opts = {
+ 'body': new HyperstackApi.ObjectStorageAccessKeyCreateRequest() // {ObjectStorageAccessKeyCreateRequest}
+};
+api.createAccessKeyEndpoint(opts).then(function(data) {
+ console.log('API called successfully. Returned data: ' + data);
}, function(error) {
console.error(error);
});
@@ -122,81 +131,129 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
+*HyperstackApi.AccessKeysApi* | [**createAccessKeyEndpoint**](docs/AccessKeysApi.md#createAccessKeyEndpoint) | **POST** /object-storage/access-keys | Generate a new access key
+*HyperstackApi.AccessKeysApi* | [**deleteAccessKeyEndpoint**](docs/AccessKeysApi.md#deleteAccessKeyEndpoint) | **DELETE** /object-storage/access-keys/{access_key_id} | Remove an existing access key
+*HyperstackApi.AccessKeysApi* | [**listAccessKeysEndpoint**](docs/AccessKeysApi.md#listAccessKeysEndpoint) | **GET** /object-storage/access-keys | List access keys
*HyperstackApi.AliveApi* | [**getAlive**](docs/AliveApi.md#getAlive) | **GET** /billing/alive | GET: Alive
-*HyperstackApi.ApiKeyApi* | [**deleteApiKey**](docs/ApiKeyApi.md#deleteApiKey) | **DELETE** /api-key/{api_key_id} | Delete API Key
-*HyperstackApi.ApiKeyApi* | [**generateApiKey**](docs/ApiKeyApi.md#generateApiKey) | **POST** /api-key/generate | Generate API Key
-*HyperstackApi.ApiKeyApi* | [**retrieveApiKeys**](docs/ApiKeyApi.md#retrieveApiKeys) | **GET** /api-key | Retrieve API Keys
-*HyperstackApi.ApiKeyApi* | [**updateApiKey**](docs/ApiKeyApi.md#updateApiKey) | **PUT** /api-key/{api_key_id} | Update API Key
-*HyperstackApi.AssigningMemberRoleApi* | [**assignRbacRole**](docs/AssigningMemberRoleApi.md#assignRbacRole) | **PUT** /auth/users/{user_id}/assign-roles | Assign RBAC Role
-*HyperstackApi.AssigningMemberRoleApi* | [**removeRbacRoleFromUser**](docs/AssigningMemberRoleApi.md#removeRbacRoleFromUser) | **DELETE** /auth/users/{user_id}/roles | Remove RBAC Role From User
+*HyperstackApi.AliveApi* | [**getAliveDoc**](docs/AliveApi.md#getAliveDoc) | **GET** /billing/alive/doc |
+*HyperstackApi.ApiKeyApi* | [**deleteAPIKey**](docs/ApiKeyApi.md#deleteAPIKey) | **DELETE** /api-key/{api_key_id} | Delete API Key
+*HyperstackApi.ApiKeyApi* | [**generateAPIKey**](docs/ApiKeyApi.md#generateAPIKey) | **POST** /api-key/generate | Generate API Key
+*HyperstackApi.ApiKeyApi* | [**getAPIKey**](docs/ApiKeyApi.md#getAPIKey) | **GET** /api-key | Retrieve API Keys
+*HyperstackApi.ApiKeyApi* | [**updateAPIKey**](docs/ApiKeyApi.md#updateAPIKey) | **PUT** /api-key/{api_key_id} | Update API Key
+*HyperstackApi.AssigningMemberRoleApi* | [**assignRBACRoleToUser**](docs/AssigningMemberRoleApi.md#assignRBACRoleToUser) | **PUT** /auth/users/{user_id}/assign-roles | Assign RBAC Role
+*HyperstackApi.AssigningMemberRoleApi* | [**removeRBACRoleFromUser**](docs/AssigningMemberRoleApi.md#removeRBACRoleFromUser) | **DELETE** /auth/users/{user_id}/roles | Remove RBAC Role From User
+*HyperstackApi.AuthApi* | [**changeOrganizationForToken**](docs/AuthApi.md#changeOrganizationForToken) | **GET** /auth/token/change-org/{org_id} |
+*HyperstackApi.AuthApi* | [**disableMFA**](docs/AuthApi.md#disableMFA) | **POST** /auth/me/mfa/disable |
+*HyperstackApi.AuthApi* | [**getUserMFAStatus**](docs/AuthApi.md#getUserMFAStatus) | **GET** /auth/me/mfa | Get MFA status for authenticated user
+*HyperstackApi.AuthApi* | [**getUserOrganizations**](docs/AuthApi.md#getUserOrganizations) | **GET** /auth/me/organizations | Get User Organizations
*HyperstackApi.AuthApi* | [**retrieveAuthenticatedUserDetails**](docs/AuthApi.md#retrieveAuthenticatedUserDetails) | **GET** /auth/me | Retrieve Authenticated User Details
-*HyperstackApi.BillingApi* | [**getAllThresholdsForOrganization**](docs/BillingApi.md#getAllThresholdsForOrganization) | **GET** /billing/billing/threshold | GET: All Thresholds for Organization
-*HyperstackApi.BillingApi* | [**getBillingUsage**](docs/BillingApi.md#getBillingUsage) | **GET** /billing/billing/usage | GET: Billing usage
+*HyperstackApi.BetaAccessApi* | [**createBetaAccessRequest**](docs/BetaAccessApi.md#createBetaAccessRequest) | **POST** /auth/beta-access/requests | Create a new beta access request
+*HyperstackApi.BetaAccessApi* | [**getBetaAccessRequests**](docs/BetaAccessApi.md#getBetaAccessRequests) | **GET** /auth/beta-access/requests/{program} | Check the status of beta access requests
+*HyperstackApi.BetaAccessApi* | [**getBetaAccessStatus**](docs/BetaAccessApi.md#getBetaAccessStatus) | **GET** /auth/beta-access/requests | Check the status of all beta access requests
+*HyperstackApi.BillingApi* | [**bucketsBillingHistoryHourlyChart**](docs/BillingApi.md#bucketsBillingHistoryHourlyChart) | **GET** /billing/billing/history/bucket/{bucket_id}/graph | Retrieve hourly cost datapoints of a Specific Bucket for a specific billing cycle
+*HyperstackApi.BillingApi* | [**getBucketBillingHistory**](docs/BillingApi.md#getBucketBillingHistory) | **GET** /billing/billing/history/bucket/{bucket_id} | Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
+*HyperstackApi.BillingApi* | [**getClusterBillingHistory**](docs/BillingApi.md#getClusterBillingHistory) | **GET** /billing/billing/history/cluster/{cluster_id} | Retrieve Billing History of a Specific Cluster for a specific Billing Cycle
+*HyperstackApi.BillingApi* | [**getClusterBillingHistoryGraph**](docs/BillingApi.md#getClusterBillingHistoryGraph) | **GET** /billing/billing/history/cluster/{cluster_id}/graph | Retrieve hourly cost datapoints of a specific Cluster for a specific billing cycle
+*HyperstackApi.BillingApi* | [**getDataSynthesisBillingHistory**](docs/BillingApi.md#getDataSynthesisBillingHistory) | **GET** /billing/billing/history/data_synthesis | Retrieve Billing History of data synthesis for a specific Billing Cycle
+*HyperstackApi.BillingApi* | [**getDataSynthesisBillingHistoryGraph**](docs/BillingApi.md#getDataSynthesisBillingHistoryGraph) | **GET** /billing/billing/history/data_synthesis/{resource_id}/graph | Retrieve hourly cost datapoints of a Specific Data Synthesis for a specific
+*HyperstackApi.BillingApi* | [**getDataSynthesisHistoryForResource**](docs/BillingApi.md#getDataSynthesisHistoryForResource) | **GET** /billing/billing/history/data_synthesis/{resource_id} |
+*HyperstackApi.BillingApi* | [**getFineTuningBillingHistory**](docs/BillingApi.md#getFineTuningBillingHistory) | **GET** /billing/billing/history/fine_tuning | Retrieve Billing History of model evaluation for a specific Billing Cycle
+*HyperstackApi.BillingApi* | [**getFineTuningBillingHistoryGraph**](docs/BillingApi.md#getFineTuningBillingHistoryGraph) | **GET** /billing/billing/history/fine_tuning/{resource_id}/graph | Retrieve hourly cost datapoints of a Specific Fine Tuning for a specific billing cycle
*HyperstackApi.BillingApi* | [**getLastDayCost**](docs/BillingApi.md#getLastDayCost) | **GET** /billing/billing/last-day-cost | GET: Last Day Cost
-*HyperstackApi.BillingApi* | [**retrieveBillingHistoryForASpecificBillingCycle**](docs/BillingApi.md#retrieveBillingHistoryForASpecificBillingCycle) | **GET** /billing/billing/history | Retrieve Billing History for a specific Billing Cycle
-*HyperstackApi.BillingApi* | [**retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle**](docs/BillingApi.md#retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle) | **GET** /billing/billing/history/snapshot/{snapshot_id} | Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
-*HyperstackApi.BillingApi* | [**retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle**](docs/BillingApi.md#retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle) | **GET** /billing/billing/history/virtual-machine/{vm_id} | Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
-*HyperstackApi.BillingApi* | [**retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle**](docs/BillingApi.md#retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle) | **GET** /billing/billing/history/volume/{volume_id} | Retrieve Billing History of a Specific Volume for a specific Billing Cycle
-*HyperstackApi.BillingApi* | [**retrieveBillingHistoryOfContractForASpecificBillingCycle**](docs/BillingApi.md#retrieveBillingHistoryOfContractForASpecificBillingCycle) | **GET** /billing/billing/history/contract | Retrieve Billing History of Contract for a specific Billing Cycle
-*HyperstackApi.BillingApi* | [**retrieveBillingHistoryOfSnapshotForASpecificBillingCycle**](docs/BillingApi.md#retrieveBillingHistoryOfSnapshotForASpecificBillingCycle) | **GET** /billing/billing/history/snapshot | Retrieve Billing History of Snapshot for a specific Billing Cycle
-*HyperstackApi.BillingApi* | [**retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle**](docs/BillingApi.md#retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle) | **GET** /billing/billing/history/virtual-machine | Retrieve Billing History of Virtual Machine for a specific Billing Cycle
-*HyperstackApi.BillingApi* | [**retrieveBillingHistoryOfVolumeForASpecificBillingCycle**](docs/BillingApi.md#retrieveBillingHistoryOfVolumeForASpecificBillingCycle) | **GET** /billing/billing/history/volume | Retrieve Billing History of Volume for a specific Billing Cycle
-*HyperstackApi.BillingApi* | [**retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle**](docs/BillingApi.md#retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle) | **GET** /billing/billing/history/snapshot/{snapshot_id}/graph | Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
-*HyperstackApi.BillingApi* | [**retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle**](docs/BillingApi.md#retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle) | **GET** /billing/billing/history/virtual-machine/{vm_id}/graph | Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
-*HyperstackApi.BillingApi* | [**retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle**](docs/BillingApi.md#retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle) | **GET** /billing/billing/history/volume/{volume_id}/graph | Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
-*HyperstackApi.BillingApi* | [**retrieveSubResourcesHistoricalCostDatapointsOfAVirtual**](docs/BillingApi.md#retrieveSubResourcesHistoricalCostDatapointsOfAVirtual) | **GET** /billing/billing/virtual-machine/{vm_id}/sub-resource/graph | Retrieve Sub-Resources Historical Cost datapoints of a Virtual
-*HyperstackApi.BillingApi* | [**retrieveTotalCostsAndNonDiscountCostsForSubResources**](docs/BillingApi.md#retrieveTotalCostsAndNonDiscountCostsForSubResources) | **GET** /billing/billing/virtual-machine/{vm_id}/sub-resource | Retrieve Total Costs and Non Discount Costs for Sub Resources
-*HyperstackApi.BillingApi* | [**retrieveVmBillingEventsHistory**](docs/BillingApi.md#retrieveVmBillingEventsHistory) | **GET** /billing/billing/virtual-machine/{vm_id}/billing-events | Retrieve VM billing events history
-*HyperstackApi.BillingApi* | [**retrieveVolumeBillingEventsHistory**](docs/BillingApi.md#retrieveVolumeBillingEventsHistory) | **GET** /billing/billing/volume/{volume_id}/billing-events | Retrieve Volume billing events history
-*HyperstackApi.BillingApi* | [**updateSubscribeOrUnsubscribeNotificationThreshold**](docs/BillingApi.md#updateSubscribeOrUnsubscribeNotificationThreshold) | **PUT** /billing/billing/threshold/{threshold_id} | Update: Subscribe or Unsubscribe Notification Threshold
-*HyperstackApi.CalculateApi* | [**retrieveBillingRateForResource**](docs/CalculateApi.md#retrieveBillingRateForResource) | **GET** /pricebook/calculate/resource/{resource_type}/{id} | Retrieve Billing Rate for Resource
-*HyperstackApi.CallbacksApi* | [**attachCallbackToVirtualMachine**](docs/CallbacksApi.md#attachCallbackToVirtualMachine) | **POST** /core/virtual-machines/{id}/attach-callback | Attach callback to virtual machine
-*HyperstackApi.CallbacksApi* | [**attachCallbackToVolume**](docs/CallbacksApi.md#attachCallbackToVolume) | **POST** /core/volumes/{id}/attach-callback | Attach callback to volume
-*HyperstackApi.CallbacksApi* | [**deleteVirtualMachineCallback**](docs/CallbacksApi.md#deleteVirtualMachineCallback) | **DELETE** /core/virtual-machines/{id}/delete-callback | Delete virtual machine callback
-*HyperstackApi.CallbacksApi* | [**deleteVolumeCallback**](docs/CallbacksApi.md#deleteVolumeCallback) | **DELETE** /core/volumes/{id}/delete-callback | Delete volume callback
-*HyperstackApi.CallbacksApi* | [**updateVirtualMachineCallback**](docs/CallbacksApi.md#updateVirtualMachineCallback) | **PUT** /core/virtual-machines/{id}/update-callback | Update virtual machine callback
-*HyperstackApi.CallbacksApi* | [**updateVolumeCallback**](docs/CallbacksApi.md#updateVolumeCallback) | **PUT** /core/volumes/{id}/update-callback | Update volume callback
-*HyperstackApi.ClusterEventsApi* | [**fetchAllOfAClusterEvents**](docs/ClusterEventsApi.md#fetchAllOfAClusterEvents) | **GET** /core/clusters/{cluster_id}/events | Fetch all of a cluster events
+*HyperstackApi.BillingApi* | [**getModelEvaluationBillingHistory**](docs/BillingApi.md#getModelEvaluationBillingHistory) | **GET** /billing/billing/history/model_evaluation | Retrieve Billing History of model evaluation for a specific Billing Cycle
+*HyperstackApi.BillingApi* | [**getModelEvaluationBillingHistoryGraph**](docs/BillingApi.md#getModelEvaluationBillingHistoryGraph) | **GET** /billing/billing/history/model_evaluation/{resource_id}/graph | Retrieve hourly cost datapoints of a Specific Model Evaluation for a specific
+*HyperstackApi.BillingApi* | [**getNotificationThreshold**](docs/BillingApi.md#getNotificationThreshold) | **PUT** /billing/billing/threshold/{threshold_id} | Update: Subscribe or Unsubscribe Notification Threshold
+*HyperstackApi.BillingApi* | [**getResourceFineTuningBillingHistory**](docs/BillingApi.md#getResourceFineTuningBillingHistory) | **GET** /billing/billing/history/fine_tuning/{resource_id} | Retrieve Billing History of a Specific Fine Tuning for a specific Billing Cycle
+*HyperstackApi.BillingApi* | [**getResourceModelEvaluationBillingHistory**](docs/BillingApi.md#getResourceModelEvaluationBillingHistory) | **GET** /billing/billing/history/model_evaluation/{resource_id} |
+*HyperstackApi.BillingApi* | [**getServerlessInferenceBillingHistoryGraph**](docs/BillingApi.md#getServerlessInferenceBillingHistoryGraph) | **GET** /billing/billing/history/serverless_inference/{resource_id}/graph | Retrieve hourly cost datapoints of a Specific Serverless Inference for a specific
+*HyperstackApi.BillingApi* | [**getServerlessInferencesBillingHistory**](docs/BillingApi.md#getServerlessInferencesBillingHistory) | **GET** /billing/billing/history/serverless_inference/{resource_id} |
+*HyperstackApi.BillingApi* | [**getSnapshotBillingHistory**](docs/BillingApi.md#getSnapshotBillingHistory) | **GET** /billing/billing/history/snapshot/{snapshot_id} | Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
+*HyperstackApi.BillingApi* | [**getSnapshotBillingHistoryGraph**](docs/BillingApi.md#getSnapshotBillingHistoryGraph) | **GET** /billing/billing/history/snapshot/{snapshot_id}/graph | Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
+*HyperstackApi.BillingApi* | [**getUsage**](docs/BillingApi.md#getUsage) | **GET** /billing/billing/usage | GET: Billing usage
+*HyperstackApi.BillingApi* | [**getUserBillingHistory**](docs/BillingApi.md#getUserBillingHistory) | **GET** /billing/billing/history | Retrieve Billing History for a specific Billing Cycle
+*HyperstackApi.BillingApi* | [**getVMBillingDetails**](docs/BillingApi.md#getVMBillingDetails) | **GET** /billing/billing/history/virtual-machine/{vm_id} | Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
+*HyperstackApi.BillingApi* | [**getVMBillingEvents**](docs/BillingApi.md#getVMBillingEvents) | **GET** /billing/billing/virtual-machine/{vm_id}/billing-events | Retrieve VM billing events history
+*HyperstackApi.BillingApi* | [**getVMBillingGraph**](docs/BillingApi.md#getVMBillingGraph) | **GET** /billing/billing/history/virtual-machine/{vm_id}/graph | Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
+*HyperstackApi.BillingApi* | [**getVMBillingHistory**](docs/BillingApi.md#getVMBillingHistory) | **GET** /billing/billing/history/virtual-machine | Retrieve Billing History of Virtual Machine for a specific Billing Cycle
+*HyperstackApi.BillingApi* | [**getVMSubResourceCosts**](docs/BillingApi.md#getVMSubResourceCosts) | **GET** /billing/billing/virtual-machine/{vm_id}/sub-resource | Retrieve Total Costs and Non Discount Costs for Sub Resources
+*HyperstackApi.BillingApi* | [**getVMSubResourceGraph**](docs/BillingApi.md#getVMSubResourceGraph) | **GET** /billing/billing/virtual-machine/{vm_id}/sub-resource/graph | Retrieve Sub-Resources Historical Cost datapoints of a Virtual
+*HyperstackApi.BillingApi* | [**getVolumeBillingDetails**](docs/BillingApi.md#getVolumeBillingDetails) | **GET** /billing/billing/history/volume/{volume_id} | Retrieve Billing History of a Specific Volume for a specific Billing Cycle
+*HyperstackApi.BillingApi* | [**getVolumeBillingEvents**](docs/BillingApi.md#getVolumeBillingEvents) | **GET** /billing/billing/volume/{volume_id}/billing-events | Retrieve Volume billing events history
+*HyperstackApi.BillingApi* | [**getVolumeBillingHistory**](docs/BillingApi.md#getVolumeBillingHistory) | **GET** /billing/billing/history/volume | Retrieve Billing History of Volume for a specific Billing Cycle
+*HyperstackApi.BillingApi* | [**getVolumeBillingHistoryGraph**](docs/BillingApi.md#getVolumeBillingHistoryGraph) | **GET** /billing/billing/history/volume/{volume_id}/graph | Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
+*HyperstackApi.BillingApi* | [**listBillingContractHistory**](docs/BillingApi.md#listBillingContractHistory) | **GET** /billing/billing/history/contract | Retrieve Billing History of Contract for a specific Billing Cycle
+*HyperstackApi.BillingApi* | [**listBucketBillingHistory**](docs/BillingApi.md#listBucketBillingHistory) | **GET** /billing/billing/history/bucket | Retrieve Billing History of a Bucket for a specific Billing Cycle
+*HyperstackApi.BillingApi* | [**listClustersBillingHistory**](docs/BillingApi.md#listClustersBillingHistory) | **GET** /billing/billing/history/cluster | Retrieve Billing History of Clusters for a specific Billing Cycle
+*HyperstackApi.BillingApi* | [**listOrgNotificationThresholds**](docs/BillingApi.md#listOrgNotificationThresholds) | **GET** /billing/billing/threshold | GET: All Thresholds for Organization
+*HyperstackApi.BillingApi* | [**listServerlessInferenceBillingHistory**](docs/BillingApi.md#listServerlessInferenceBillingHistory) | **GET** /billing/billing/history/serverless_inference | Retrieve Billing History of serverless inference for a specific Billing Cycle
+*HyperstackApi.BillingApi* | [**listSnapshotBillingHistory**](docs/BillingApi.md#listSnapshotBillingHistory) | **GET** /billing/billing/history/snapshot | Retrieve Billing History of Snapshot for a specific Billing Cycle
+*HyperstackApi.BucketsApi* | [**deleteBucketEndpoint**](docs/BucketsApi.md#deleteBucketEndpoint) | **DELETE** /object-storage/buckets/{bucket_name} | Delete a bucket
+*HyperstackApi.BucketsApi* | [**listBucketsEndpoint**](docs/BucketsApi.md#listBucketsEndpoint) | **GET** /object-storage/buckets | List buckets
+*HyperstackApi.BucketsApi* | [**retrieveBucketEndpoint**](docs/BucketsApi.md#retrieveBucketEndpoint) | **GET** /object-storage/buckets/{bucket_name} | Retrieve a bucket
+*HyperstackApi.CalculateApi* | [**calculateResourceBillingRate**](docs/CalculateApi.md#calculateResourceBillingRate) | **GET** /pricebook/calculate/resource/{resource_type}/{id} | Retrieve Billing Rate for Resource
+*HyperstackApi.CallbacksApi* | [**attachCallbackToVM**](docs/CallbacksApi.md#attachCallbackToVM) | **POST** /core/virtual-machines/{vm_id}/attach-callback | Attach callback to virtual machine
+*HyperstackApi.CallbacksApi* | [**attachCallbackToVolume**](docs/CallbacksApi.md#attachCallbackToVolume) | **POST** /core/volumes/{volume_id}/attach-callback | Attach callback to volume
+*HyperstackApi.CallbacksApi* | [**deleteVMCallback**](docs/CallbacksApi.md#deleteVMCallback) | **DELETE** /core/virtual-machines/{vm_id}/delete-callback | Delete virtual machine callback
+*HyperstackApi.CallbacksApi* | [**deleteVolumeCallback**](docs/CallbacksApi.md#deleteVolumeCallback) | **DELETE** /core/volumes/{volume_id}/delete-callback | Delete volume callback
+*HyperstackApi.CallbacksApi* | [**updateVMCallback**](docs/CallbacksApi.md#updateVMCallback) | **PUT** /core/virtual-machines/{vm_id}/update-callback | Update virtual machine callback
+*HyperstackApi.CallbacksApi* | [**updateVolumeCallback**](docs/CallbacksApi.md#updateVolumeCallback) | **PUT** /core/volumes/{volume_id}/update-callback | Update volume callback
+*HyperstackApi.ClusterEventsApi* | [**listClusterEvents**](docs/ClusterEventsApi.md#listClusterEvents) | **GET** /core/clusters/{cluster_id}/events | Fetch all of a cluster events
*HyperstackApi.ClustersApi* | [**createCluster**](docs/ClustersApi.md#createCluster) | **POST** /core/clusters | Create Cluster
-*HyperstackApi.ClustersApi* | [**deleteACluster**](docs/ClustersApi.md#deleteACluster) | **DELETE** /core/clusters/{id} | Delete a cluster
+*HyperstackApi.ClustersApi* | [**createNode**](docs/ClustersApi.md#createNode) | **POST** /core/clusters/{cluster_id}/nodes | Create Node
+*HyperstackApi.ClustersApi* | [**createNodeGroup**](docs/ClustersApi.md#createNodeGroup) | **POST** /core/clusters/{cluster_id}/node-groups | Create a node group in a cluster
+*HyperstackApi.ClustersApi* | [**deleteCluster**](docs/ClustersApi.md#deleteCluster) | **DELETE** /core/clusters/{id} | Delete a cluster
+*HyperstackApi.ClustersApi* | [**deleteClusterNode**](docs/ClustersApi.md#deleteClusterNode) | **DELETE** /core/clusters/{cluster_id}/nodes/{node_id} | Delete Cluster Node
+*HyperstackApi.ClustersApi* | [**deleteClusterNodes**](docs/ClustersApi.md#deleteClusterNodes) | **POST** /core/clusters/{cluster_id}/nodes/delete | Delete Multiple Cluster Nodes
+*HyperstackApi.ClustersApi* | [**deleteNodeGroup**](docs/ClustersApi.md#deleteNodeGroup) | **DELETE** /core/clusters/{cluster_id}/node-groups/{node_group_id} | Delete a node group
*HyperstackApi.ClustersApi* | [**fetchClusterNameAvailability**](docs/ClustersApi.md#fetchClusterNameAvailability) | **GET** /core/clusters/name-availability/{name} | Fetch cluster name availability
-*HyperstackApi.ClustersApi* | [**getClusterVersions**](docs/ClustersApi.md#getClusterVersions) | **GET** /core/clusters/versions | GET Cluster Versions
+*HyperstackApi.ClustersApi* | [**getClusterMasterFlavors**](docs/ClustersApi.md#getClusterMasterFlavors) | **GET** /core/clusters/master-flavors | Get Cluster Master Flavors
+*HyperstackApi.ClustersApi* | [**getClusterNodes**](docs/ClustersApi.md#getClusterNodes) | **GET** /core/clusters/{cluster_id}/nodes | Get Cluster Nodes
+*HyperstackApi.ClustersApi* | [**getClusterVersions**](docs/ClustersApi.md#getClusterVersions) | **GET** /core/clusters/versions | List Cluster Versions
+*HyperstackApi.ClustersApi* | [**getNodeGroup**](docs/ClustersApi.md#getNodeGroup) | **GET** /core/clusters/{cluster_id}/node-groups/{node_group_id} | Retrieve a node group in a cluster
*HyperstackApi.ClustersApi* | [**gettingClusterDetail**](docs/ClustersApi.md#gettingClusterDetail) | **GET** /core/clusters/{id} | Getting Cluster Detail
*HyperstackApi.ClustersApi* | [**listClusters**](docs/ClustersApi.md#listClusters) | **GET** /core/clusters | List Clusters
+*HyperstackApi.ClustersApi* | [**listNodeGroups**](docs/ClustersApi.md#listNodeGroups) | **GET** /core/clusters/{cluster_id}/node-groups | List node groups for a cluster
+*HyperstackApi.ClustersApi* | [**reconcileCluster**](docs/ClustersApi.md#reconcileCluster) | **POST** /core/clusters/{cluster_id}/reconcile | Reconcile a cluster
+*HyperstackApi.ClustersApi* | [**updateNodeGroup**](docs/ClustersApi.md#updateNodeGroup) | **PATCH** /core/clusters/{cluster_id}/node-groups/{node_group_id} | Update a node group in a cluster
*HyperstackApi.ComplianceApi* | [**createCompliance**](docs/ComplianceApi.md#createCompliance) | **POST** /core/compliance | Create compliance
-*HyperstackApi.ComplianceApi* | [**deleteACompliance**](docs/ComplianceApi.md#deleteACompliance) | **DELETE** /core/compliance/{gpu_model} | Delete a compliance
-*HyperstackApi.ComplianceApi* | [**retrieveGpuCompliance**](docs/ComplianceApi.md#retrieveGpuCompliance) | **GET** /core/compliance | Retrieve GPU compliance
-*HyperstackApi.ComplianceApi* | [**updateACompliance**](docs/ComplianceApi.md#updateACompliance) | **PUT** /core/compliance | Update a compliance
-*HyperstackApi.CreditApi* | [**getViewCreditAndThreshold**](docs/CreditApi.md#getViewCreditAndThreshold) | **GET** /billing/user-credit/credit | GET: View credit and threshold
-*HyperstackApi.CustomerContractApi* | [**listContracts**](docs/CustomerContractApi.md#listContracts) | **GET** /pricebook/contracts | List Contracts
-*HyperstackApi.CustomerContractApi* | [**retrieveContractDetails**](docs/CustomerContractApi.md#retrieveContractDetails) | **GET** /pricebook/contracts/{contract_id} | Retrieve Contract Details
-*HyperstackApi.CustomerContractApi* | [**retrieveGpuAllocationGraphForContract**](docs/CustomerContractApi.md#retrieveGpuAllocationGraphForContract) | **GET** /pricebook/contracts/{contract_id}/gpu_allocation_graph | Retrieve GPU Allocation Graph for Contract
-*HyperstackApi.DashboardApi* | [**retrieveDashboard**](docs/DashboardApi.md#retrieveDashboard) | **GET** /core/dashboard | Retrieve Dashboard
+*HyperstackApi.ComplianceApi* | [**deleteCompliance**](docs/ComplianceApi.md#deleteCompliance) | **DELETE** /core/compliance/{gpu_model} | Delete a compliance
+*HyperstackApi.ComplianceApi* | [**getCompliance**](docs/ComplianceApi.md#getCompliance) | **GET** /core/compliance | Retrieve GPU compliance
+*HyperstackApi.ComplianceApi* | [**updateCompliance**](docs/ComplianceApi.md#updateCompliance) | **PUT** /core/compliance | Update a compliance
+*HyperstackApi.CreditApi* | [**getUserCredit**](docs/CreditApi.md#getUserCredit) | **GET** /billing/user-credit/credit | GET: View credit and threshold
+*HyperstackApi.CustomerContractApi* | [**getContractGPUAllocationGraph**](docs/CustomerContractApi.md#getContractGPUAllocationGraph) | **GET** /pricebook/contracts/{contract_id}/gpu_allocation_graph | Retrieve GPU Allocation Graph for Contract
+*HyperstackApi.CustomerContractApi* | [**listCustomerContracts**](docs/CustomerContractApi.md#listCustomerContracts) | **GET** /pricebook/contracts | List Contracts
+*HyperstackApi.CustomerContractApi* | [**retrieveContract**](docs/CustomerContractApi.md#retrieveContract) | **GET** /pricebook/contracts/{contract_id} | Retrieve Contract Details
+*HyperstackApi.DashboardApi* | [**getDashboard**](docs/DashboardApi.md#getDashboard) | **GET** /core/dashboard | Retrieve Dashboard
*HyperstackApi.DeploymentApi* | [**deleteDeployment**](docs/DeploymentApi.md#deleteDeployment) | **DELETE** /core/marketplace/deployments/{id} | Delete Deployment
-*HyperstackApi.DeploymentApi* | [**detailsOfDeploymentById**](docs/DeploymentApi.md#detailsOfDeploymentById) | **GET** /core/marketplace/deployments/{id} | Details of Deployment by ID
+*HyperstackApi.DeploymentApi* | [**getDeployment**](docs/DeploymentApi.md#getDeployment) | **GET** /core/marketplace/deployments/{id} | Details of Deployment by ID
*HyperstackApi.DeploymentApi* | [**listDeployments**](docs/DeploymentApi.md#listDeployments) | **GET** /core/marketplace/deployments | List Deployments
*HyperstackApi.DeploymentApi* | [**startDeployment**](docs/DeploymentApi.md#startDeployment) | **POST** /core/marketplace/deployments | Start Deployment
*HyperstackApi.EnvironmentApi* | [**createEnvironment**](docs/EnvironmentApi.md#createEnvironment) | **POST** /core/environments | Create environment
*HyperstackApi.EnvironmentApi* | [**deleteEnvironment**](docs/EnvironmentApi.md#deleteEnvironment) | **DELETE** /core/environments/{id} | Delete environment
+*HyperstackApi.EnvironmentApi* | [**fetchEnvironmentNameAvailability**](docs/EnvironmentApi.md#fetchEnvironmentNameAvailability) | **GET** /core/environments/name-availability/{name} | Fetch environment name availability
+*HyperstackApi.EnvironmentApi* | [**getEnvironment**](docs/EnvironmentApi.md#getEnvironment) | **GET** /core/environments/{id} | Retrieve environment
+*HyperstackApi.EnvironmentApi* | [**getEnvironmentVMQuota**](docs/EnvironmentApi.md#getEnvironmentVMQuota) | **GET** /core/environments/{id}/vm-quota | Get environment VM quota
*HyperstackApi.EnvironmentApi* | [**listEnvironments**](docs/EnvironmentApi.md#listEnvironments) | **GET** /core/environments | List environments
-*HyperstackApi.EnvironmentApi* | [**retrieveEnvironment**](docs/EnvironmentApi.md#retrieveEnvironment) | **GET** /core/environments/{id} | Retrieve environment
*HyperstackApi.EnvironmentApi* | [**updateEnvironment**](docs/EnvironmentApi.md#updateEnvironment) | **PUT** /core/environments/{id} | Update environment
-*HyperstackApi.FirewallAttachmentApi* | [**attachFirewallsToVms**](docs/FirewallAttachmentApi.md#attachFirewallsToVms) | **POST** /core/firewalls/{firewall_id}/update-attachments | Attach Firewalls to VMs
-*HyperstackApi.FirewallsApi* | [**addFirewallRuleToFirewall**](docs/FirewallsApi.md#addFirewallRuleToFirewall) | **POST** /core/firewalls/{firewall_id}/firewall-rules | Add firewall rule to firewall
+*HyperstackApi.FIPExclusionsApi* | [**checkIfOrgIsExcludedFromFloatingIPDetachment**](docs/FIPExclusionsApi.md#checkIfOrgIsExcludedFromFloatingIPDetachment) | **GET** /core/fip-detachment-exclusions/org/{org_id} |
+*HyperstackApi.FirewallAttachmentApi* | [**attachFirewallToVMs**](docs/FirewallAttachmentApi.md#attachFirewallToVMs) | **POST** /core/firewalls/{firewall_id}/update-attachments | Attach Firewalls to VMs
+*HyperstackApi.FirewallsApi* | [**addRuleToFirewall**](docs/FirewallsApi.md#addRuleToFirewall) | **POST** /core/firewalls/{firewall_id}/firewall-rules | Add firewall rule to firewall
*HyperstackApi.FirewallsApi* | [**createFirewall**](docs/FirewallsApi.md#createFirewall) | **POST** /core/firewalls | Create firewall
-*HyperstackApi.FirewallsApi* | [**deleteFirewall**](docs/FirewallsApi.md#deleteFirewall) | **DELETE** /core/firewalls/{id} | Delete firewall
-*HyperstackApi.FirewallsApi* | [**deleteFirewallRulesFromFirewall**](docs/FirewallsApi.md#deleteFirewallRulesFromFirewall) | **DELETE** /core/firewalls/{firewall_id}/firewall-rules/{firewall_rule_id} | Delete firewall rules from firewall
-*HyperstackApi.FirewallsApi* | [**listFirewalls**](docs/FirewallsApi.md#listFirewalls) | **GET** /core/firewalls | List firewalls
-*HyperstackApi.FirewallsApi* | [**retrieveFirewallDetails**](docs/FirewallsApi.md#retrieveFirewallDetails) | **GET** /core/firewalls/{id} | Retrieve firewall details
+*HyperstackApi.FirewallsApi* | [**deleteExistingFirewall**](docs/FirewallsApi.md#deleteExistingFirewall) | **DELETE** /core/firewalls/{id} | Delete firewall
+*HyperstackApi.FirewallsApi* | [**deleteRuleFromFirewall**](docs/FirewallsApi.md#deleteRuleFromFirewall) | **DELETE** /core/firewalls/{firewall_id}/firewall-rules/{firewall_rule_id} | Delete firewall rules from firewall
+*HyperstackApi.FirewallsApi* | [**getFirewall**](docs/FirewallsApi.md#getFirewall) | **GET** /core/firewalls/{id} | Retrieve firewall details
+*HyperstackApi.FirewallsApi* | [**listExistingFirewalls**](docs/FirewallsApi.md#listExistingFirewalls) | **GET** /core/firewalls | List firewalls
*HyperstackApi.FlavorApi* | [**listFlavors**](docs/FlavorApi.md#listFlavors) | **GET** /core/flavors | List Flavors
-*HyperstackApi.FloatingIpApi* | [**attachPublicIpToVirtualMachine**](docs/FloatingIpApi.md#attachPublicIpToVirtualMachine) | **POST** /core/virtual-machines/{id}/attach-floatingip | Attach public IP to virtual machine
-*HyperstackApi.FloatingIpApi* | [**detachPublicIpFromVirtualMachine**](docs/FloatingIpApi.md#detachPublicIpFromVirtualMachine) | **POST** /core/virtual-machines/{id}/detach-floatingip | Detach public IP from virtual machine
-*HyperstackApi.GpuApi* | [**listGpus**](docs/GpuApi.md#listGpus) | **GET** /core/gpus | List GPUs
-*HyperstackApi.ImageApi* | [**deleteAnImage**](docs/ImageApi.md#deleteAnImage) | **DELETE** /core/images/{id} | Delete an image
-*HyperstackApi.ImageApi* | [**fetchNameAvailabilityForImages**](docs/ImageApi.md#fetchNameAvailabilityForImages) | **GET** /core/image/name-availability/{name} | Fetch name availability for Images
-*HyperstackApi.ImageApi* | [**getPrivateImageDetails**](docs/ImageApi.md#getPrivateImageDetails) | **GET** /core/images/{id} | Get Private Image Details
+*HyperstackApi.FloatingIpApi* | [**attachPublicIPToVM**](docs/FloatingIpApi.md#attachPublicIPToVM) | **POST** /core/virtual-machines/{vm_id}/attach-floatingip | Attach public IP to virtual machine
+*HyperstackApi.FloatingIpApi* | [**detachPublicIPFromVM**](docs/FloatingIpApi.md#detachPublicIPFromVM) | **POST** /core/virtual-machines/{vm_id}/detach-floatingip | Detach public IP from virtual machine
+*HyperstackApi.GpuApi* | [**listGPUs**](docs/GpuApi.md#listGPUs) | **GET** /core/gpus | List GPUs
+*HyperstackApi.HealthApi* | [**healthzEndpoint**](docs/HealthApi.md#healthzEndpoint) | **GET** /object-storage/healthz | Healthcheck
+*HyperstackApi.ImageApi* | [**deleteImage**](docs/ImageApi.md#deleteImage) | **DELETE** /core/images/{id} | Delete an image
+*HyperstackApi.ImageApi* | [**fetchImageNameAvailability**](docs/ImageApi.md#fetchImageNameAvailability) | **GET** /core/image/name-availability/{name} | Fetch name availability for Images
+*HyperstackApi.ImageApi* | [**getImage**](docs/ImageApi.md#getImage) | **GET** /core/images/{id} | Get Private Image Details
*HyperstackApi.ImageApi* | [**listImages**](docs/ImageApi.md#listImages) | **GET** /core/images | List Images
-*HyperstackApi.InviteApi* | [**deleteInvite**](docs/InviteApi.md#deleteInvite) | **DELETE** /auth/invites/{id} | Delete Invite
+*HyperstackApi.InviteApi* | [**acceptInvite**](docs/InviteApi.md#acceptInvite) | **GET** /auth/invites/{id}/accept | Accept Invite
+*HyperstackApi.InviteApi* | [**deleteInvite**](docs/InviteApi.md#deleteInvite) | **DELETE** /auth/invites/{id} | Accept Invite
*HyperstackApi.InviteApi* | [**inviteUserToOrganization**](docs/InviteApi.md#inviteUserToOrganization) | **POST** /auth/invites | Invite User to Organization
*HyperstackApi.InviteApi* | [**listInvites**](docs/InviteApi.md#listInvites) | **GET** /auth/invites | List Invites
*HyperstackApi.KeypairApi* | [**deleteKeyPair**](docs/KeypairApi.md#deleteKeyPair) | **DELETE** /core/keypair/{id} | Delete key pair
@@ -206,79 +263,87 @@ Class | Method | HTTP request | Description
*HyperstackApi.OrganizationApi* | [**removeOrganizationMember**](docs/OrganizationApi.md#removeOrganizationMember) | **POST** /auth/organizations/remove-member | Remove Organization Member
*HyperstackApi.OrganizationApi* | [**retrieveOrganizationInformation**](docs/OrganizationApi.md#retrieveOrganizationInformation) | **GET** /auth/organizations | Retrieve Organization Information
*HyperstackApi.OrganizationApi* | [**updateOrganizationInformation**](docs/OrganizationApi.md#updateOrganizationInformation) | **PUT** /auth/organizations/update | Update Organization Information
-*HyperstackApi.PaymentApi* | [**getViewPaymentDetails**](docs/PaymentApi.md#getViewPaymentDetails) | **GET** /billing/payment/payment-details | GET: View payment details
-*HyperstackApi.PaymentApi* | [**postInitiatePayment**](docs/PaymentApi.md#postInitiatePayment) | **POST** /billing/payment/payment-initiate | POST: Initiate payment
+*HyperstackApi.PartnerConfigApi* | [**getPartnerConfig**](docs/PartnerConfigApi.md#getPartnerConfig) | **GET** /auth/partner-config | Get partner config
+*HyperstackApi.PartnerConfigApi* | [**getPartnerConfigByDomain**](docs/PartnerConfigApi.md#getPartnerConfigByDomain) | **GET** /auth/partner-config/docs |
+*HyperstackApi.PaymentApi* | [**getPaymentReceipt**](docs/PaymentApi.md#getPaymentReceipt) | **GET** /billing/payment/receipt/{payment_id} | Retrieve Payment Receipt
+*HyperstackApi.PaymentApi* | [**initiatePayment**](docs/PaymentApi.md#initiatePayment) | **POST** /billing/payment/payment-initiate | POST: Initiate payment
+*HyperstackApi.PaymentApi* | [**listPaymentDetails**](docs/PaymentApi.md#listPaymentDetails) | **GET** /billing/payment/payment-details | GET: View payment details
*HyperstackApi.PermissionApi* | [**listPermissions**](docs/PermissionApi.md#listPermissions) | **GET** /auth/permissions | List Permissions
*HyperstackApi.PolicyApi* | [**listPolicies**](docs/PolicyApi.md#listPolicies) | **GET** /auth/policies | List Policies
-*HyperstackApi.PricebookApi* | [**retrivePricebook**](docs/PricebookApi.md#retrivePricebook) | **GET** /pricebook |
+*HyperstackApi.PricebookApi* | [**getPricebook**](docs/PricebookApi.md#getPricebook) | **GET** /pricebook |
*HyperstackApi.ProfileApi* | [**createProfile**](docs/ProfileApi.md#createProfile) | **POST** /core/profiles | Create profile
*HyperstackApi.ProfileApi* | [**deleteProfile**](docs/ProfileApi.md#deleteProfile) | **DELETE** /core/profiles/{id} | Delete profile
+*HyperstackApi.ProfileApi* | [**getProfile**](docs/ProfileApi.md#getProfile) | **GET** /core/profiles/{id} | Retrieve profile details
*HyperstackApi.ProfileApi* | [**listProfiles**](docs/ProfileApi.md#listProfiles) | **GET** /core/profiles | List profiles
-*HyperstackApi.ProfileApi* | [**retrieveProfileDetails**](docs/ProfileApi.md#retrieveProfileDetails) | **GET** /core/profiles/{id} | Retrieve profile details
-*HyperstackApi.RbacRoleApi* | [**createRbacRole**](docs/RbacRoleApi.md#createRbacRole) | **POST** /auth/roles | Create RBAC Role
-*HyperstackApi.RbacRoleApi* | [**deleteRbacRole**](docs/RbacRoleApi.md#deleteRbacRole) | **DELETE** /auth/roles/{id} | Delete RBAC Role
-*HyperstackApi.RbacRoleApi* | [**listRbacRoles**](docs/RbacRoleApi.md#listRbacRoles) | **GET** /auth/roles | List RBAC Roles
-*HyperstackApi.RbacRoleApi* | [**retrieveRbacRoleDetails**](docs/RbacRoleApi.md#retrieveRbacRoleDetails) | **GET** /auth/roles/{id} | Retrieve RBAC Role Details
-*HyperstackApi.RbacRoleApi* | [**updateRbacRole**](docs/RbacRoleApi.md#updateRbacRole) | **PUT** /auth/roles/{id} | Update RBAC Role
-*HyperstackApi.RegionApi* | [**listRegions**](docs/RegionApi.md#listRegions) | **GET** /core/regions | List regions
+*HyperstackApi.RbacRoleApi* | [**createRBACRole**](docs/RbacRoleApi.md#createRBACRole) | **POST** /auth/roles | Create RBAC Role
+*HyperstackApi.RbacRoleApi* | [**deleteRBACRole**](docs/RbacRoleApi.md#deleteRBACRole) | **DELETE** /auth/roles/{id} | Delete RBAC Role
+*HyperstackApi.RbacRoleApi* | [**listRBACRoles**](docs/RbacRoleApi.md#listRBACRoles) | **GET** /auth/roles | List RBAC Roles
+*HyperstackApi.RbacRoleApi* | [**retrieveRBACRoleDetails**](docs/RbacRoleApi.md#retrieveRBACRoleDetails) | **GET** /auth/roles/{id} | Retrieve RBAC Role Details
+*HyperstackApi.RbacRoleApi* | [**updateRBACRole**](docs/RbacRoleApi.md#updateRBACRole) | **PUT** /auth/roles/{id} | Update RBAC Role
+*HyperstackApi.RegionApi* | [**listRegions**](docs/RegionApi.md#listRegions) | **GET** /core/regions | List Regions
+*HyperstackApi.RegionsApi* | [**listRegionsEndpoint**](docs/RegionsApi.md#listRegionsEndpoint) | **GET** /object-storage/regions | Get a list of supported regions
*HyperstackApi.SecurityRulesApi* | [**listFirewallRuleProtocols**](docs/SecurityRulesApi.md#listFirewallRuleProtocols) | **GET** /core/sg-rules-protocols | List firewall rule protocols
-*HyperstackApi.SnapshotEventsApi* | [**fetchAllEventsForASnapshot**](docs/SnapshotEventsApi.md#fetchAllEventsForASnapshot) | **GET** /core/snapshots/{snapshot_id}/events | Fetch all events for a snapshot
-*HyperstackApi.SnapshotsApi* | [**createAnImageFromASnapshot**](docs/SnapshotsApi.md#createAnImageFromASnapshot) | **POST** /core/snapshots/{snapshot_id}/image | Create an image from a snapshot
+*HyperstackApi.SnapshotEventsApi* | [**listSnapshotEvents**](docs/SnapshotEventsApi.md#listSnapshotEvents) | **GET** /core/snapshots/{snapshot_id}/events | Fetch all events for a snapshot
+*HyperstackApi.SnapshotsApi* | [**createCustomImage**](docs/SnapshotsApi.md#createCustomImage) | **POST** /core/snapshots/{snapshot_id}/image | Create an image from a snapshot
*HyperstackApi.SnapshotsApi* | [**deleteSnapshot**](docs/SnapshotsApi.md#deleteSnapshot) | **DELETE** /core/snapshots/{id} | Delete snapshot
*HyperstackApi.SnapshotsApi* | [**fetchSnapshotNameAvailability**](docs/SnapshotsApi.md#fetchSnapshotNameAvailability) | **GET** /core/snapshots/name-availability/{name} | Fetch snapshot name availability
-*HyperstackApi.SnapshotsApi* | [**restoreASnapshot**](docs/SnapshotsApi.md#restoreASnapshot) | **POST** /core/snapshots/{id}/restore | Restore a snapshot
-*HyperstackApi.SnapshotsApi* | [**retrieveASnapshot**](docs/SnapshotsApi.md#retrieveASnapshot) | **GET** /core/snapshots/{id} | Retrieve a snapshot
-*HyperstackApi.SnapshotsApi* | [**retrieveListOfSnapshotsWithPagination**](docs/SnapshotsApi.md#retrieveListOfSnapshotsWithPagination) | **GET** /core/snapshots | Retrieve list of snapshots with pagination
-*HyperstackApi.StockApi* | [**retrieveGpuStocks**](docs/StockApi.md#retrieveGpuStocks) | **GET** /core/stocks | Retrieve GPU stocks
+*HyperstackApi.SnapshotsApi* | [**getSnapshot**](docs/SnapshotsApi.md#getSnapshot) | **GET** /core/snapshots/{id} | Retrieve a snapshot
+*HyperstackApi.SnapshotsApi* | [**listSnapshots**](docs/SnapshotsApi.md#listSnapshots) | **GET** /core/snapshots | Retrieve list of snapshots with pagination
+*HyperstackApi.SnapshotsApi* | [**restoreSnapshot**](docs/SnapshotsApi.md#restoreSnapshot) | **POST** /core/snapshots/{id}/restore | Restore a snapshot
+*HyperstackApi.StockApi* | [**getGPUStock**](docs/StockApi.md#getGPUStock) | **GET** /core/stocks | Retrieve GPU stocks
*HyperstackApi.TemplateApi* | [**createTemplate**](docs/TemplateApi.md#createTemplate) | **POST** /core/marketplace/templates | Create template
*HyperstackApi.TemplateApi* | [**deleteTemplate**](docs/TemplateApi.md#deleteTemplate) | **DELETE** /core/marketplace/templates/{id} | Delete template
+*HyperstackApi.TemplateApi* | [**getTemplate**](docs/TemplateApi.md#getTemplate) | **GET** /core/marketplace/templates/{id} | Retrieve template details
*HyperstackApi.TemplateApi* | [**listTemplates**](docs/TemplateApi.md#listTemplates) | **GET** /core/marketplace/templates | List templates
-*HyperstackApi.TemplateApi* | [**retrieveTemplateDetails**](docs/TemplateApi.md#retrieveTemplateDetails) | **GET** /core/marketplace/templates/{id} | Retrieve template details
*HyperstackApi.TemplateApi* | [**updateTemplate**](docs/TemplateApi.md#updateTemplate) | **PUT** /core/marketplace/templates/{id} | Update template
-*HyperstackApi.UserApi* | [**getFetchUserInfo**](docs/UserApi.md#getFetchUserInfo) | **GET** /billing/user/info | GET: Fetch User Info
-*HyperstackApi.UserApi* | [**postInsertUserInfo**](docs/UserApi.md#postInsertUserInfo) | **POST** /billing/user/info | POST: Insert user info
-*HyperstackApi.UserApi* | [**putUpdateUserInfo**](docs/UserApi.md#putUpdateUserInfo) | **PUT** /billing/user/info | PUT: Update user info
-*HyperstackApi.UserDetailChoiceApi* | [**retrieveDefaultFlavorsAndImages**](docs/UserDetailChoiceApi.md#retrieveDefaultFlavorsAndImages) | **GET** /core/user/resources/defaults | Retrieve Default Flavors and Images
+*HyperstackApi.UserApi* | [**addUserBillingInfo**](docs/UserApi.md#addUserBillingInfo) | **POST** /billing/user/info | POST: Insert billing info
+*HyperstackApi.UserApi* | [**getUserBillingInfo**](docs/UserApi.md#getUserBillingInfo) | **GET** /billing/user/info | GET: Retrieve billing info
+*HyperstackApi.UserApi* | [**updateUserBillingInfo**](docs/UserApi.md#updateUserBillingInfo) | **PUT** /billing/user/info | PUT: Update billing info
+*HyperstackApi.UserDetailChoiceApi* | [**listDefaultFlavorsAndImages**](docs/UserDetailChoiceApi.md#listDefaultFlavorsAndImages) | **GET** /core/user/resources/defaults | Retrieve Default Flavors and Images
*HyperstackApi.UserPermissionApi* | [**listMyUserPermissions**](docs/UserPermissionApi.md#listMyUserPermissions) | **GET** /auth/users/me/permissions | List My User Permissions
*HyperstackApi.UserPermissionApi* | [**listUserPermissions**](docs/UserPermissionApi.md#listUserPermissions) | **GET** /auth/users/{id}/permissions | List User Permissions
-*HyperstackApi.VirtualMachineApi* | [**addFirewallRuleToVirtualMachine**](docs/VirtualMachineApi.md#addFirewallRuleToVirtualMachine) | **POST** /core/virtual-machines/{id}/sg-rules | Add firewall rule to virtual machine
-*HyperstackApi.VirtualMachineApi* | [**attachFirewallsToAVirtualMachine**](docs/VirtualMachineApi.md#attachFirewallsToAVirtualMachine) | **POST** /core/virtual-machines/{vm_id}/attach-firewalls | Attach firewalls to a virtual machine
-*HyperstackApi.VirtualMachineApi* | [**createSnapshotFromAVirtualMachine**](docs/VirtualMachineApi.md#createSnapshotFromAVirtualMachine) | **POST** /core/virtual-machines/{vm_id}/snapshots | Create snapshot from a virtual machine
-*HyperstackApi.VirtualMachineApi* | [**createVirtualMachines**](docs/VirtualMachineApi.md#createVirtualMachines) | **POST** /core/virtual-machines | Create virtual machines
-*HyperstackApi.VirtualMachineApi* | [**deleteFirewallRuleFromVirtualMachine**](docs/VirtualMachineApi.md#deleteFirewallRuleFromVirtualMachine) | **DELETE** /core/virtual-machines/{virtual_machine_id}/sg-rules/{sg_rule_id} | Delete firewall rule from virtual machine
-*HyperstackApi.VirtualMachineApi* | [**deleteVirtualMachine**](docs/VirtualMachineApi.md#deleteVirtualMachine) | **DELETE** /core/virtual-machines/{id} | Delete virtual machine
-*HyperstackApi.VirtualMachineApi* | [**editVirtualMachineLabels**](docs/VirtualMachineApi.md#editVirtualMachineLabels) | **PUT** /core/virtual-machines/{virtual_machine_id}/label | Edit virtual machine labels
-*HyperstackApi.VirtualMachineApi* | [**fetchVirtualMachineNameAvailability**](docs/VirtualMachineApi.md#fetchVirtualMachineNameAvailability) | **GET** /core/virtual-machines/name-availability/{name} | Fetch virtual machine name availability
-*HyperstackApi.VirtualMachineApi* | [**hardRebootVirtualMachine**](docs/VirtualMachineApi.md#hardRebootVirtualMachine) | **GET** /core/virtual-machines/{id}/hard-reboot | Hard reboot virtual machine
-*HyperstackApi.VirtualMachineApi* | [**hibernateVirtualMachine**](docs/VirtualMachineApi.md#hibernateVirtualMachine) | **GET** /core/virtual-machines/{virtual_machine_id}/hibernate | Hibernate virtual machine
-*HyperstackApi.VirtualMachineApi* | [**listVirtualMachines**](docs/VirtualMachineApi.md#listVirtualMachines) | **GET** /core/virtual-machines | List virtual machines
-*HyperstackApi.VirtualMachineApi* | [**resizeVirtualMachine**](docs/VirtualMachineApi.md#resizeVirtualMachine) | **POST** /core/virtual-machines/{virtual_machine_id}/resize | Resize virtual machine
-*HyperstackApi.VirtualMachineApi* | [**restoreVirtualMachineFromHibernation**](docs/VirtualMachineApi.md#restoreVirtualMachineFromHibernation) | **GET** /core/virtual-machines/{virtual_machine_id}/hibernate-restore | Restore virtual machine from hibernation
-*HyperstackApi.VirtualMachineApi* | [**retrieveVirtualMachineDetails**](docs/VirtualMachineApi.md#retrieveVirtualMachineDetails) | **GET** /core/virtual-machines/{id} | Retrieve virtual machine details
-*HyperstackApi.VirtualMachineApi* | [**retrieveVirtualMachinePerformanceMetrics**](docs/VirtualMachineApi.md#retrieveVirtualMachinePerformanceMetrics) | **GET** /core/virtual-machines/{virtual_machine_id}/metrics | Retrieve virtual machine performance metrics
-*HyperstackApi.VirtualMachineApi* | [**retrieveVirtualMachinesAssociatedWithAContract**](docs/VirtualMachineApi.md#retrieveVirtualMachinesAssociatedWithAContract) | **GET** /core/virtual-machines/contract/{contract_id}/virtual-machines | Retrieve virtual machines associated with a contract
-*HyperstackApi.VirtualMachineApi* | [**startVirtualMachine**](docs/VirtualMachineApi.md#startVirtualMachine) | **GET** /core/virtual-machines/{id}/start | Start virtual machine
-*HyperstackApi.VirtualMachineApi* | [**stopVirtualMachine**](docs/VirtualMachineApi.md#stopVirtualMachine) | **GET** /core/virtual-machines/{id}/stop | Stop virtual machine
-*HyperstackApi.VirtualMachineEventsApi* | [**listVirtualMachineEvents**](docs/VirtualMachineEventsApi.md#listVirtualMachineEvents) | **GET** /core/virtual-machines/{virtual_machine_id}/events | List virtual machine events
-*HyperstackApi.VncUrlApi* | [**getVncConsoleLink**](docs/VncUrlApi.md#getVncConsoleLink) | **GET** /core/virtual-machines/{virtual_machine_id}/console/{job_id} | Get VNC Console Link
-*HyperstackApi.VncUrlApi* | [**requestInstanceConsole**](docs/VncUrlApi.md#requestInstanceConsole) | **GET** /core/virtual-machines/{id}/request-console | Request Instance Console
+*HyperstackApi.VirtualMachineApi* | [**addVMLabel**](docs/VirtualMachineApi.md#addVMLabel) | **PUT** /core/virtual-machines/{vm_id}/label | Edit virtual machine labels
+*HyperstackApi.VirtualMachineApi* | [**attachFirewallsToVM**](docs/VirtualMachineApi.md#attachFirewallsToVM) | **POST** /core/virtual-machines/{vm_id}/attach-firewalls | Attach firewalls to a virtual machine
+*HyperstackApi.VirtualMachineApi* | [**checkVMNameAvailability**](docs/VirtualMachineApi.md#checkVMNameAvailability) | **GET** /core/virtual-machines/name-availability/{name} | Fetch virtual machine name availability
+*HyperstackApi.VirtualMachineApi* | [**createFirewallRuleForVM**](docs/VirtualMachineApi.md#createFirewallRuleForVM) | **POST** /core/virtual-machines/{vm_id}/sg-rules | Add firewall rule to virtual machine
+*HyperstackApi.VirtualMachineApi* | [**createSnapshotForVM**](docs/VirtualMachineApi.md#createSnapshotForVM) | **POST** /core/virtual-machines/{vm_id}/snapshots | Create snapshot from a virtual machine
+*HyperstackApi.VirtualMachineApi* | [**createVMs**](docs/VirtualMachineApi.md#createVMs) | **POST** /core/virtual-machines | Create virtual machines
+*HyperstackApi.VirtualMachineApi* | [**deleteFirewallRuleForVM**](docs/VirtualMachineApi.md#deleteFirewallRuleForVM) | **DELETE** /core/virtual-machines/{vm_id}/sg-rules/{sg_rule_id} | Delete firewall rule from virtual machine
+*HyperstackApi.VirtualMachineApi* | [**deleteVM**](docs/VirtualMachineApi.md#deleteVM) | **DELETE** /core/virtual-machines/{vm_id} | Delete virtual machine
+*HyperstackApi.VirtualMachineApi* | [**getContractVMs**](docs/VirtualMachineApi.md#getContractVMs) | **GET** /core/virtual-machines/contract/{contract_id}/virtual-machines | Retrieve virtual machines associated with a contract
+*HyperstackApi.VirtualMachineApi* | [**getVM**](docs/VirtualMachineApi.md#getVM) | **GET** /core/virtual-machines/{vm_id} | Retrieve virtual machine details
+*HyperstackApi.VirtualMachineApi* | [**getVMLogs**](docs/VirtualMachineApi.md#getVMLogs) | **GET** /core/virtual-machines/{vm_id}/logs | Get virtual machine logs
+*HyperstackApi.VirtualMachineApi* | [**getVMMetrics**](docs/VirtualMachineApi.md#getVMMetrics) | **GET** /core/virtual-machines/{vm_id}/metrics | Retrieve virtual machine performance metrics
+*HyperstackApi.VirtualMachineApi* | [**hardRebootVM**](docs/VirtualMachineApi.md#hardRebootVM) | **GET** /core/virtual-machines/{vm_id}/hard-reboot | Hard reboot virtual machine
+*HyperstackApi.VirtualMachineApi* | [**hibernateVM**](docs/VirtualMachineApi.md#hibernateVM) | **GET** /core/virtual-machines/{vm_id}/hibernate | Hibernate virtual machine
+*HyperstackApi.VirtualMachineApi* | [**listVMs**](docs/VirtualMachineApi.md#listVMs) | **GET** /core/virtual-machines | List virtual machines
+*HyperstackApi.VirtualMachineApi* | [**requestVMLogs**](docs/VirtualMachineApi.md#requestVMLogs) | **POST** /core/virtual-machines/{vm_id}/logs | Request virtual machine logs
+*HyperstackApi.VirtualMachineApi* | [**resizeVM**](docs/VirtualMachineApi.md#resizeVM) | **POST** /core/virtual-machines/{vm_id}/resize | Resize virtual machine
+*HyperstackApi.VirtualMachineApi* | [**restoreVMFromHibernation**](docs/VirtualMachineApi.md#restoreVMFromHibernation) | **GET** /core/virtual-machines/{vm_id}/hibernate-restore | Restore virtual machine from hibernation
+*HyperstackApi.VirtualMachineApi* | [**startVM**](docs/VirtualMachineApi.md#startVM) | **GET** /core/virtual-machines/{vm_id}/start | Start virtual machine
+*HyperstackApi.VirtualMachineApi* | [**stopVM**](docs/VirtualMachineApi.md#stopVM) | **GET** /core/virtual-machines/{vm_id}/stop | Stop virtual machine
+*HyperstackApi.VirtualMachineEventsApi* | [**listVMEvents**](docs/VirtualMachineEventsApi.md#listVMEvents) | **GET** /core/virtual-machines/{vm_id}/events | List virtual machine events
+*HyperstackApi.VncUrlApi* | [**getVNCURL**](docs/VncUrlApi.md#getVNCURL) | **GET** /core/virtual-machines/{vm_id}/console/{job_id} | Get VNC Console Link
+*HyperstackApi.VncUrlApi* | [**requestVMConsole**](docs/VncUrlApi.md#requestVMConsole) | **GET** /core/virtual-machines/{vm_id}/request-console | Request Instance Console
*HyperstackApi.VolumeApi* | [**createVolume**](docs/VolumeApi.md#createVolume) | **POST** /core/volumes | Create volume
-*HyperstackApi.VolumeApi* | [**deleteVolume**](docs/VolumeApi.md#deleteVolume) | **DELETE** /core/volumes/{id} | Delete volume
-*HyperstackApi.VolumeApi* | [**fetchVolumeDetails**](docs/VolumeApi.md#fetchVolumeDetails) | **GET** /core/volume/{volume_id} | Fetch Volume Details
+*HyperstackApi.VolumeApi* | [**deleteVolume**](docs/VolumeApi.md#deleteVolume) | **DELETE** /core/volumes/{volume_id} | Delete volume
*HyperstackApi.VolumeApi* | [**fetchVolumeNameAvailability**](docs/VolumeApi.md#fetchVolumeNameAvailability) | **GET** /core/volume/name-availability/{name} | Fetch volume name availability
+*HyperstackApi.VolumeApi* | [**getVolume**](docs/VolumeApi.md#getVolume) | **GET** /core/volumes/{volume_id} | Fetch Volume Details
*HyperstackApi.VolumeApi* | [**listVolumeTypes**](docs/VolumeApi.md#listVolumeTypes) | **GET** /core/volume-types | List volume types
*HyperstackApi.VolumeApi* | [**listVolumes**](docs/VolumeApi.md#listVolumes) | **GET** /core/volumes | List volumes
-*HyperstackApi.VolumeAttachmentApi* | [**attachVolumesToVirtualMachine**](docs/VolumeAttachmentApi.md#attachVolumesToVirtualMachine) | **POST** /core/virtual-machines/{virtual_machine_id}/attach-volumes | Attach volumes to virtual machine
-*HyperstackApi.VolumeAttachmentApi* | [**detachVolumesFromVirtualMachine**](docs/VolumeAttachmentApi.md#detachVolumesFromVirtualMachine) | **POST** /core/virtual-machines/{virtual_machine_id}/detach-volumes | Detach volumes from virtual machine
+*HyperstackApi.VolumeApi* | [**updateVolume**](docs/VolumeApi.md#updateVolume) | **PATCH** /core/volumes/{volume_id} | Update volume fields
+*HyperstackApi.VolumeAttachmentApi* | [**attachVolumesToVM**](docs/VolumeAttachmentApi.md#attachVolumesToVM) | **POST** /core/virtual-machines/{vm_id}/attach-volumes | Attach volumes to virtual machine
+*HyperstackApi.VolumeAttachmentApi* | [**detachVolumesFromVM**](docs/VolumeAttachmentApi.md#detachVolumesFromVM) | **POST** /core/virtual-machines/{vm_id}/detach-volumes | Detach volumes from virtual machine
+*HyperstackApi.VolumeAttachmentApi* | [**updateVolumeAttachment**](docs/VolumeAttachmentApi.md#updateVolumeAttachment) | **PATCH** /core/volume-attachments/{volume_attachment_id} | Update a volume attachment
+*HyperstackApi.VouchersApi* | [**redeemAVoucher**](docs/VouchersApi.md#redeemAVoucher) | **POST** /billing/billing/vouchers/redeem | Redeem a voucher with a voucher_code
## Documentation for Models
- - [HyperstackApi.AddUpdateFlavorOrganizationPayload](docs/AddUpdateFlavorOrganizationPayload.md)
+ - [HyperstackApi.AccessTokenField](docs/AccessTokenField.md)
- [HyperstackApi.AddUserInfoSuccessResponseModel](docs/AddUserInfoSuccessResponseModel.md)
- [HyperstackApi.AllocatedGPUCountGraph](docs/AllocatedGPUCountGraph.md)
- [HyperstackApi.ApiKeyFields](docs/ApiKeyFields.md)
- - [HyperstackApi.ApiKeyVerifyFields](docs/ApiKeyVerifyFields.md)
- [HyperstackApi.AssignRbacRolePayload](docs/AssignRbacRolePayload.md)
- [HyperstackApi.AttachCallbackPayload](docs/AttachCallbackPayload.md)
- [HyperstackApi.AttachCallbackResponse](docs/AttachCallbackResponse.md)
@@ -287,50 +352,59 @@ Class | Method | HTTP request | Description
- [HyperstackApi.AttachVolumeFields](docs/AttachVolumeFields.md)
- [HyperstackApi.AttachVolumes](docs/AttachVolumes.md)
- [HyperstackApi.AttachVolumesPayload](docs/AttachVolumesPayload.md)
+ - [HyperstackApi.AttachmentsFieldsForVolume](docs/AttachmentsFieldsForVolume.md)
+ - [HyperstackApi.Attributes](docs/Attributes.md)
- [HyperstackApi.AuthGetTokenResponseModel](docs/AuthGetTokenResponseModel.md)
- - [HyperstackApi.AuthRequestLoginFields](docs/AuthRequestLoginFields.md)
- - [HyperstackApi.AuthRequestLoginResponseModel](docs/AuthRequestLoginResponseModel.md)
- [HyperstackApi.AuthUserFields](docs/AuthUserFields.md)
- [HyperstackApi.AuthUserInfoResponseModel](docs/AuthUserInfoResponseModel.md)
- - [HyperstackApi.BillingImmuneResourcesResponse](docs/BillingImmuneResourcesResponse.md)
- - [HyperstackApi.BillingResponse](docs/BillingResponse.md)
- - [HyperstackApi.Billingmetricesfields](docs/Billingmetricesfields.md)
- - [HyperstackApi.Billingmetricesresponse](docs/Billingmetricesresponse.md)
+ - [HyperstackApi.BetaAccessRequestFields](docs/BetaAccessRequestFields.md)
+ - [HyperstackApi.BetaAccessRequestPayload](docs/BetaAccessRequestPayload.md)
+ - [HyperstackApi.BetaAccessRequestResponseModel](docs/BetaAccessRequestResponseModel.md)
+ - [HyperstackApi.BetaAccessStatusItem](docs/BetaAccessStatusItem.md)
+ - [HyperstackApi.BetaAccessStatusResponseModel](docs/BetaAccessStatusResponseModel.md)
+ - [HyperstackApi.BillingHistory](docs/BillingHistory.md)
+ - [HyperstackApi.BillingHistoryDataSynthesisDetails](docs/BillingHistoryDataSynthesisDetails.md)
+ - [HyperstackApi.BillingHistoryFineTuning](docs/BillingHistoryFineTuning.md)
+ - [HyperstackApi.BillingHistoryModelEvalutationDetails](docs/BillingHistoryModelEvalutationDetails.md)
+ - [HyperstackApi.BillingHistoryServerlessInference](docs/BillingHistoryServerlessInference.md)
+ - [HyperstackApi.BillingHistoryServerlessInferenceDetails](docs/BillingHistoryServerlessInferenceDetails.md)
+ - [HyperstackApi.BillingMetricesFields](docs/BillingMetricesFields.md)
+ - [HyperstackApi.BillingMetricesResponse](docs/BillingMetricesResponse.md)
- [HyperstackApi.ClusterEvents](docs/ClusterEvents.md)
- [HyperstackApi.ClusterEventsFields](docs/ClusterEventsFields.md)
- [HyperstackApi.ClusterFields](docs/ClusterFields.md)
+ - [HyperstackApi.ClusterFlavorFields](docs/ClusterFlavorFields.md)
- [HyperstackApi.ClusterListResponse](docs/ClusterListResponse.md)
+ - [HyperstackApi.ClusterNodeFields](docs/ClusterNodeFields.md)
+ - [HyperstackApi.ClusterNodeGroupFields](docs/ClusterNodeGroupFields.md)
+ - [HyperstackApi.ClusterNodeGroupFirewallFields](docs/ClusterNodeGroupFirewallFields.md)
+ - [HyperstackApi.ClusterNodeGroupsCreateResponse](docs/ClusterNodeGroupsCreateResponse.md)
+ - [HyperstackApi.ClusterNodeGroupsGetResponse](docs/ClusterNodeGroupsGetResponse.md)
+ - [HyperstackApi.ClusterNodeGroupsListResponse](docs/ClusterNodeGroupsListResponse.md)
+ - [HyperstackApi.ClusterNodeInstanceFields](docs/ClusterNodeInstanceFields.md)
+ - [HyperstackApi.ClusterNodesListResponse](docs/ClusterNodesListResponse.md)
- [HyperstackApi.ClusterResponse](docs/ClusterResponse.md)
+ - [HyperstackApi.ClusterVersion](docs/ClusterVersion.md)
- [HyperstackApi.ClusterVersions](docs/ClusterVersions.md)
+ - [HyperstackApi.Colors](docs/Colors.md)
- [HyperstackApi.CommonResponseModel](docs/CommonResponseModel.md)
+ - [HyperstackApi.CompatibleFlavor](docs/CompatibleFlavor.md)
- [HyperstackApi.ComplianceFields](docs/ComplianceFields.md)
- [HyperstackApi.ComplianceModelFields](docs/ComplianceModelFields.md)
- [HyperstackApi.CompliancePayload](docs/CompliancePayload.md)
- [HyperstackApi.ComplianceResponse](docs/ComplianceResponse.md)
- [HyperstackApi.ContainerOverviewFields](docs/ContainerOverviewFields.md)
- [HyperstackApi.Contract](docs/Contract.md)
- - [HyperstackApi.ContractBillingHistory](docs/ContractBillingHistory.md)
- - [HyperstackApi.ContractBillingHistoryResponseAttributes](docs/ContractBillingHistoryResponseAttributes.md)
- - [HyperstackApi.ContractBillingHistoryResponseModel](docs/ContractBillingHistoryResponseModel.md)
- - [HyperstackApi.ContractChangePayload](docs/ContractChangePayload.md)
- [HyperstackApi.ContractDiscountPlanFields](docs/ContractDiscountPlanFields.md)
- - [HyperstackApi.ContractEligibleInstanceFields](docs/ContractEligibleInstanceFields.md)
- - [HyperstackApi.ContractEligibleInstancesResponse](docs/ContractEligibleInstancesResponse.md)
- - [HyperstackApi.ContractEventCreateModel](docs/ContractEventCreateModel.md)
- [HyperstackApi.ContractGPUAllocationGraphResponse](docs/ContractGPUAllocationGraphResponse.md)
- [HyperstackApi.ContractInstanceFields](docs/ContractInstanceFields.md)
- [HyperstackApi.ContractInstancesResponse](docs/ContractInstancesResponse.md)
- - [HyperstackApi.ContractResourcePayload](docs/ContractResourcePayload.md)
- - [HyperstackApi.ContractlBillingHistoryResponseMetrics](docs/ContractlBillingHistoryResponseMetrics.md)
+ - [HyperstackApi.CreateClusterNodeFields](docs/CreateClusterNodeFields.md)
+ - [HyperstackApi.CreateClusterNodeGroupPayload](docs/CreateClusterNodeGroupPayload.md)
- [HyperstackApi.CreateClusterPayload](docs/CreateClusterPayload.md)
- - [HyperstackApi.CreateContractFields](docs/CreateContractFields.md)
- - [HyperstackApi.CreateContractPayload](docs/CreateContractPayload.md)
- - [HyperstackApi.CreateDiscountResponse](docs/CreateDiscountResponse.md)
- - [HyperstackApi.CreateDiscountsPayload](docs/CreateDiscountsPayload.md)
- [HyperstackApi.CreateEnvironment](docs/CreateEnvironment.md)
- [HyperstackApi.CreateFirewallPayload](docs/CreateFirewallPayload.md)
- [HyperstackApi.CreateFirewallRulePayload](docs/CreateFirewallRulePayload.md)
- - [HyperstackApi.CreateGPU](docs/CreateGPU.md)
- [HyperstackApi.CreateImage](docs/CreateImage.md)
- [HyperstackApi.CreateImagePayload](docs/CreateImagePayload.md)
- [HyperstackApi.CreateInstancesPayload](docs/CreateInstancesPayload.md)
@@ -341,44 +415,25 @@ Class | Method | HTTP request | Description
- [HyperstackApi.CreateSnapshotPayload](docs/CreateSnapshotPayload.md)
- [HyperstackApi.CreateSnapshotResponse](docs/CreateSnapshotResponse.md)
- [HyperstackApi.CreateUpdateComplianceResponse](docs/CreateUpdateComplianceResponse.md)
- - [HyperstackApi.CreateUpdatePermissionPayload](docs/CreateUpdatePermissionPayload.md)
- - [HyperstackApi.CreateUpdatePermissionResponseModel](docs/CreateUpdatePermissionResponseModel.md)
- - [HyperstackApi.CreateUpdatePolicyPayload](docs/CreateUpdatePolicyPayload.md)
- - [HyperstackApi.CreateUpdatePolicyResponseModel](docs/CreateUpdatePolicyResponseModel.md)
- [HyperstackApi.CreateUpdateRbacRolePayload](docs/CreateUpdateRbacRolePayload.md)
- [HyperstackApi.CreateVolumePayload](docs/CreateVolumePayload.md)
- - [HyperstackApi.Creditrechargelimitfield](docs/Creditrechargelimitfield.md)
- - [HyperstackApi.Creditrechargelimitresponse](docs/Creditrechargelimitresponse.md)
- - [HyperstackApi.Creditrequestresponse](docs/Creditrequestresponse.md)
- - [HyperstackApi.Creditrequests](docs/Creditrequests.md)
- [HyperstackApi.CustomerContractDetailResponseModel](docs/CustomerContractDetailResponseModel.md)
- [HyperstackApi.CustomerContractFields](docs/CustomerContractFields.md)
- - [HyperstackApi.CustomerFields](docs/CustomerFields.md)
- - [HyperstackApi.CustomerPayload](docs/CustomerPayload.md)
- [HyperstackApi.DashboardInfoResponse](docs/DashboardInfoResponse.md)
- - [HyperstackApi.Data](docs/Data.md)
+ - [HyperstackApi.DataSynthesisBillingHistoryDetailsResponseSchema](docs/DataSynthesisBillingHistoryDetailsResponseSchema.md)
+ - [HyperstackApi.DeleteClusterNodesFields](docs/DeleteClusterNodesFields.md)
- [HyperstackApi.DeploymentFields](docs/DeploymentFields.md)
- - [HyperstackApi.DeploymentFieldsforstartdeployments](docs/DeploymentFieldsforstartdeployments.md)
+ - [HyperstackApi.DeploymentFieldsForStartDeployments](docs/DeploymentFieldsForStartDeployments.md)
- [HyperstackApi.Deployments](docs/Deployments.md)
- [HyperstackApi.DetachVolumes](docs/DetachVolumes.md)
- [HyperstackApi.DetachVolumesPayload](docs/DetachVolumesPayload.md)
- - [HyperstackApi.DiscountEntityModel](docs/DiscountEntityModel.md)
- - [HyperstackApi.DiscountFields](docs/DiscountFields.md)
- - [HyperstackApi.DiscountPlanFields](docs/DiscountPlanFields.md)
- - [HyperstackApi.DiscountResourceFields](docs/DiscountResourceFields.md)
- - [HyperstackApi.DiscountResourcePayload](docs/DiscountResourcePayload.md)
- - [HyperstackApi.EditlabelofanexistingVMPayload](docs/EditlabelofanexistingVMPayload.md)
+ - [HyperstackApi.EditLabelOfAnExistingVMPayload](docs/EditLabelOfAnExistingVMPayload.md)
- [HyperstackApi.Environment](docs/Environment.md)
- [HyperstackApi.EnvironmentFeatures](docs/EnvironmentFeatures.md)
- [HyperstackApi.EnvironmentFields](docs/EnvironmentFields.md)
- - [HyperstackApi.EnvironmentFieldsforVolume](docs/EnvironmentFieldsforVolume.md)
+ - [HyperstackApi.EnvironmentFieldsForVolume](docs/EnvironmentFieldsForVolume.md)
- [HyperstackApi.Environments](docs/Environments.md)
- [HyperstackApi.ErrorResponseModel](docs/ErrorResponseModel.md)
- - [HyperstackApi.ExcludeBillingPostPayload](docs/ExcludeBillingPostPayload.md)
- - [HyperstackApi.ExcludeBillingPostResponse](docs/ExcludeBillingPostResponse.md)
- - [HyperstackApi.ExportBillingDataRequest](docs/ExportBillingDataRequest.md)
- - [HyperstackApi.ExportBillingDataResponse](docs/ExportBillingDataResponse.md)
- - [HyperstackApi.FieldChange](docs/FieldChange.md)
- [HyperstackApi.FirewallAttachmentModel](docs/FirewallAttachmentModel.md)
- [HyperstackApi.FirewallAttachmentVMModel](docs/FirewallAttachmentVMModel.md)
- [HyperstackApi.FirewallDetailFields](docs/FirewallDetailFields.md)
@@ -390,55 +445,34 @@ Class | Method | HTTP request | Description
- [HyperstackApi.FirewallsListResponse](docs/FirewallsListResponse.md)
- [HyperstackApi.FlavorFields](docs/FlavorFields.md)
- [HyperstackApi.FlavorItemGetResponse](docs/FlavorItemGetResponse.md)
+ - [HyperstackApi.FlavorLabelFields](docs/FlavorLabelFields.md)
- [HyperstackApi.FlavorListResponse](docs/FlavorListResponse.md)
- [HyperstackApi.FlavorObjectFields](docs/FlavorObjectFields.md)
- - [HyperstackApi.FlavorPayload](docs/FlavorPayload.md)
- - [HyperstackApi.FlavorResponse](docs/FlavorResponse.md)
- - [HyperstackApi.FlavorVMFields](docs/FlavorVMFields.md)
- - [HyperstackApi.FlavorVMsResponse](docs/FlavorVMsResponse.md)
- - [HyperstackApi.FutureNodeModel](docs/FutureNodeModel.md)
- - [HyperstackApi.FutureNodeResponseModel](docs/FutureNodeResponseModel.md)
- - [HyperstackApi.FutureNodeStockModel](docs/FutureNodeStockModel.md)
- - [HyperstackApi.FutureNodeUpdateModel](docs/FutureNodeUpdateModel.md)
- - [HyperstackApi.FutureNodesStockModel](docs/FutureNodesStockModel.md)
- - [HyperstackApi.GPU](docs/GPU.md)
+ - [HyperstackApi.FlavorRestrictions](docs/FlavorRestrictions.md)
- [HyperstackApi.GPUFields](docs/GPUFields.md)
- [HyperstackApi.GPUList](docs/GPUList.md)
- [HyperstackApi.GPURegionFields](docs/GPURegionFields.md)
- [HyperstackApi.GenerateUpdateApiKeyPayload](docs/GenerateUpdateApiKeyPayload.md)
- [HyperstackApi.GenerateUpdateApiKeyResponseModel](docs/GenerateUpdateApiKeyResponseModel.md)
- - [HyperstackApi.GetAllContractFields](docs/GetAllContractFields.md)
- - [HyperstackApi.GetAllContractsResponseModel](docs/GetAllContractsResponseModel.md)
- - [HyperstackApi.GetAllDiscountForAllOrganizationResponse](docs/GetAllDiscountForAllOrganizationResponse.md)
- - [HyperstackApi.GetAllDiscountsFields](docs/GetAllDiscountsFields.md)
- [HyperstackApi.GetApiKeysResponseModel](docs/GetApiKeysResponseModel.md)
+ - [HyperstackApi.GetCreditAndThresholdInfo](docs/GetCreditAndThresholdInfo.md)
+ - [HyperstackApi.GetCreditAndThresholdInfoInResponse](docs/GetCreditAndThresholdInfoInResponse.md)
- [HyperstackApi.GetCustomerContractsListResponseModel](docs/GetCustomerContractsListResponseModel.md)
- - [HyperstackApi.GetDiscountDetailResponse](docs/GetDiscountDetailResponse.md)
- - [HyperstackApi.GetDiscountResponse](docs/GetDiscountResponse.md)
- - [HyperstackApi.GetEntityDiscountDetailResponse](docs/GetEntityDiscountDetailResponse.md)
+ - [HyperstackApi.GetInstanceLogsResponse](docs/GetInstanceLogsResponse.md)
- [HyperstackApi.GetInvitesResponseModel](docs/GetInvitesResponseModel.md)
- [HyperstackApi.GetOrganizationResponseModel](docs/GetOrganizationResponseModel.md)
- [HyperstackApi.GetPermissionsResponseModel](docs/GetPermissionsResponseModel.md)
- [HyperstackApi.GetPoliciesResponseModel](docs/GetPoliciesResponseModel.md)
- [HyperstackApi.GetRbacRolesResponseModel](docs/GetRbacRolesResponseModel.md)
- - [HyperstackApi.GetTokenPayload](docs/GetTokenPayload.md)
- [HyperstackApi.GetUserPermissionsResponseModel](docs/GetUserPermissionsResponseModel.md)
- - [HyperstackApi.GetVersionResponse](docs/GetVersionResponse.md)
- - [HyperstackApi.Getcreditandthresholdinfo](docs/Getcreditandthresholdinfo.md)
- - [HyperstackApi.Getcreditandthresholdinfoinresponse](docs/Getcreditandthresholdinfoinresponse.md)
- [HyperstackApi.GraphDatetimeValueModel](docs/GraphDatetimeValueModel.md)
- - [HyperstackApi.HistoricalInstance](docs/HistoricalInstance.md)
- - [HyperstackApi.HistoricalInstancesFields](docs/HistoricalInstancesFields.md)
- [HyperstackApi.Image](docs/Image.md)
- [HyperstackApi.ImageFields](docs/ImageFields.md)
- [HyperstackApi.ImageGetResponse](docs/ImageGetResponse.md)
- - [HyperstackApi.ImageLogos](docs/ImageLogos.md)
- [HyperstackApi.Images](docs/Images.md)
- [HyperstackApi.ImportKeypairPayload](docs/ImportKeypairPayload.md)
- [HyperstackApi.ImportKeypairResponse](docs/ImportKeypairResponse.md)
- - [HyperstackApi.InfrahubResourceObjectResponse](docs/InfrahubResourceObjectResponse.md)
- [HyperstackApi.InfrahubResourceObjectResponseForCustomer](docs/InfrahubResourceObjectResponseForCustomer.md)
- - [HyperstackApi.InsertDiscountPlanFields](docs/InsertDiscountPlanFields.md)
- [HyperstackApi.Instance](docs/Instance.md)
- [HyperstackApi.InstanceEnvironmentFields](docs/InstanceEnvironmentFields.md)
- [HyperstackApi.InstanceEvents](docs/InstanceEvents.md)
@@ -450,56 +484,56 @@ Class | Method | HTTP request | Description
- [HyperstackApi.InstanceOverviewFields](docs/InstanceOverviewFields.md)
- [HyperstackApi.InstanceResizePayload](docs/InstanceResizePayload.md)
- [HyperstackApi.Instances](docs/Instances.md)
- - [HyperstackApi.InstancesSummaryFields](docs/InstancesSummaryFields.md)
- - [HyperstackApi.InternalEnvironmentFields](docs/InternalEnvironmentFields.md)
- - [HyperstackApi.InternalInstanceFields](docs/InternalInstanceFields.md)
- - [HyperstackApi.InternalInstanceFlavorFields](docs/InternalInstanceFlavorFields.md)
- - [HyperstackApi.InternalInstanceImageFields](docs/InternalInstanceImageFields.md)
- - [HyperstackApi.InternalInstanceKeypairFields](docs/InternalInstanceKeypairFields.md)
- - [HyperstackApi.InternalInstancesResponse](docs/InternalInstancesResponse.md)
- - [HyperstackApi.InternalSecurityRulesFieldsForInstance](docs/InternalSecurityRulesFieldsForInstance.md)
- - [HyperstackApi.InternalVolumeAttachmentFields](docs/InternalVolumeAttachmentFields.md)
- - [HyperstackApi.InternalVolumeFields](docs/InternalVolumeFields.md)
- - [HyperstackApi.InternalVolumesResponse](docs/InternalVolumesResponse.md)
- [HyperstackApi.InviteFields](docs/InviteFields.md)
- [HyperstackApi.InviteUserPayload](docs/InviteUserPayload.md)
- [HyperstackApi.InviteUserResponseModel](docs/InviteUserResponseModel.md)
+ - [HyperstackApi.KeypairEnvironmentFeatures](docs/KeypairEnvironmentFeatures.md)
+ - [HyperstackApi.KeypairEnvironmentFields](docs/KeypairEnvironmentFields.md)
- [HyperstackApi.KeypairFields](docs/KeypairFields.md)
- [HyperstackApi.Keypairs](docs/Keypairs.md)
- [HyperstackApi.LableResonse](docs/LableResonse.md)
- - [HyperstackApi.Lastdaycostfields](docs/Lastdaycostfields.md)
- - [HyperstackApi.Lastdaycostresponse](docs/Lastdaycostresponse.md)
- - [HyperstackApi.LogoGetResponse](docs/LogoGetResponse.md)
- - [HyperstackApi.LogoutPayload](docs/LogoutPayload.md)
+ - [HyperstackApi.LastDayCostFields](docs/LastDayCostFields.md)
+ - [HyperstackApi.LastDayCostResponse](docs/LastDayCostResponse.md)
+ - [HyperstackApi.Logos](docs/Logos.md)
+ - [HyperstackApi.MFAStatusFields](docs/MFAStatusFields.md)
+ - [HyperstackApi.MFAStatusResponse](docs/MFAStatusResponse.md)
+ - [HyperstackApi.ManualReconciliationModel](docs/ManualReconciliationModel.md)
+ - [HyperstackApi.MasterFlavorsResponse](docs/MasterFlavorsResponse.md)
- [HyperstackApi.MetricItemFields](docs/MetricItemFields.md)
- [HyperstackApi.MetricsFields](docs/MetricsFields.md)
+ - [HyperstackApi.ModelEvaluationBillingHistoryDetailsResponseSchema](docs/ModelEvaluationBillingHistoryDetailsResponseSchema.md)
- [HyperstackApi.NameAvailableModel](docs/NameAvailableModel.md)
- [HyperstackApi.NewConfigurationsResponse](docs/NewConfigurationsResponse.md)
- [HyperstackApi.NewModelResponse](docs/NewModelResponse.md)
- [HyperstackApi.NewStockResponse](docs/NewStockResponse.md)
- [HyperstackApi.NewStockRetriveResponse](docs/NewStockRetriveResponse.md)
- - [HyperstackApi.NewStockUpdateResponseModel](docs/NewStockUpdateResponseModel.md)
- - [HyperstackApi.NodeModel](docs/NodeModel.md)
- - [HyperstackApi.NodePayloadModel](docs/NodePayloadModel.md)
- - [HyperstackApi.NodePowerUsageModel](docs/NodePowerUsageModel.md)
- - [HyperstackApi.NodeResponseModel](docs/NodeResponseModel.md)
- - [HyperstackApi.NodeStockPayloadModel](docs/NodeStockPayloadModel.md)
- - [HyperstackApi.NodeStockResponseModel](docs/NodeStockResponseModel.md)
- - [HyperstackApi.NodeStocksPayload](docs/NodeStocksPayload.md)
+ - [HyperstackApi.ObjectStorageAccessKeyCreateRequest](docs/ObjectStorageAccessKeyCreateRequest.md)
+ - [HyperstackApi.ObjectStorageAccessKeyCreateResponse](docs/ObjectStorageAccessKeyCreateResponse.md)
+ - [HyperstackApi.ObjectStorageAccessKeyListResponse](docs/ObjectStorageAccessKeyListResponse.md)
+ - [HyperstackApi.ObjectStorageAccessKeyResponse](docs/ObjectStorageAccessKeyResponse.md)
+ - [HyperstackApi.ObjectStorageBucketListResponse](docs/ObjectStorageBucketListResponse.md)
+ - [HyperstackApi.ObjectStorageBucketResponse](docs/ObjectStorageBucketResponse.md)
+ - [HyperstackApi.ObjectStorageDeleteResponse](docs/ObjectStorageDeleteResponse.md)
+ - [HyperstackApi.ObjectStorageErrorResponse](docs/ObjectStorageErrorResponse.md)
+ - [HyperstackApi.ObjectStorageHealthResponse](docs/ObjectStorageHealthResponse.md)
+ - [HyperstackApi.ObjectStoragePaginationMeta](docs/ObjectStoragePaginationMeta.md)
+ - [HyperstackApi.ObjectStorageRegionListResponse](docs/ObjectStorageRegionListResponse.md)
+ - [HyperstackApi.ObjectStorageRegionResponse](docs/ObjectStorageRegionResponse.md)
+ - [HyperstackApi.ObjectStorageRegionsEnum](docs/ObjectStorageRegionsEnum.md)
- [HyperstackApi.OrganizationFields](docs/OrganizationFields.md)
- [HyperstackApi.OrganizationLevelBillingHistory](docs/OrganizationLevelBillingHistory.md)
- [HyperstackApi.OrganizationLevelBillingHistoryResources](docs/OrganizationLevelBillingHistoryResources.md)
- [HyperstackApi.OrganizationLevelBillingHistoryResponseAttributes](docs/OrganizationLevelBillingHistoryResponseAttributes.md)
- [HyperstackApi.OrganizationLevelBillingHistoryResponseMetrics](docs/OrganizationLevelBillingHistoryResponseMetrics.md)
- [HyperstackApi.OrganizationLevelBillingHistoryResponseModel](docs/OrganizationLevelBillingHistoryResponseModel.md)
- - [HyperstackApi.OrganizationObjectResponse](docs/OrganizationObjectResponse.md)
- - [HyperstackApi.OrganizationThresholdfields](docs/OrganizationThresholdfields.md)
+ - [HyperstackApi.OrganizationThresholdFields](docs/OrganizationThresholdFields.md)
+ - [HyperstackApi.OrganizationThresholdUpdateResponse](docs/OrganizationThresholdUpdateResponse.md)
+ - [HyperstackApi.OrganizationThresholdsResponse](docs/OrganizationThresholdsResponse.md)
- [HyperstackApi.OrganizationUserResponseModel](docs/OrganizationUserResponseModel.md)
- - [HyperstackApi.Organizationcreditrechargelimitresponse](docs/Organizationcreditrechargelimitresponse.md)
- - [HyperstackApi.Organizationthresholdsresponse](docs/Organizationthresholdsresponse.md)
- - [HyperstackApi.Organizationthresholdupdateresponse](docs/Organizationthresholdupdateresponse.md)
- [HyperstackApi.OverviewInfo](docs/OverviewInfo.md)
+ - [HyperstackApi.Pagination](docs/Pagination.md)
- [HyperstackApi.PaginationData](docs/PaginationData.md)
+ - [HyperstackApi.PartnerConfig](docs/PartnerConfig.md)
- [HyperstackApi.PaymentDetailsFields](docs/PaymentDetailsFields.md)
- [HyperstackApi.PaymentDetailsResponse](docs/PaymentDetailsResponse.md)
- [HyperstackApi.PaymentInitiateFields](docs/PaymentInitiateFields.md)
@@ -508,10 +542,9 @@ Class | Method | HTTP request | Description
- [HyperstackApi.PermissionFields](docs/PermissionFields.md)
- [HyperstackApi.PolicyFields](docs/PolicyFields.md)
- [HyperstackApi.PolicyPermissionFields](docs/PolicyPermissionFields.md)
- - [HyperstackApi.PowerUsageModel](docs/PowerUsageModel.md)
- [HyperstackApi.PricebookModel](docs/PricebookModel.md)
- - [HyperstackApi.PricebookResourceObjectResponse](docs/PricebookResourceObjectResponse.md)
- [HyperstackApi.PricebookResourceObjectResponseForCustomer](docs/PricebookResourceObjectResponseForCustomer.md)
+ - [HyperstackApi.PrimaryColor](docs/PrimaryColor.md)
- [HyperstackApi.ProfileFields](docs/ProfileFields.md)
- [HyperstackApi.ProfileListResponse](docs/ProfileListResponse.md)
- [HyperstackApi.ProfileObjectFields](docs/ProfileObjectFields.md)
@@ -519,17 +552,18 @@ Class | Method | HTTP request | Description
- [HyperstackApi.RbacRoleDetailResponseModelFixed](docs/RbacRoleDetailResponseModelFixed.md)
- [HyperstackApi.RbacRoleField](docs/RbacRoleField.md)
- [HyperstackApi.RbacRoleFields](docs/RbacRoleFields.md)
- - [HyperstackApi.RefreshTokenPayload](docs/RefreshTokenPayload.md)
+ - [HyperstackApi.RedeemVoucherPayload](docs/RedeemVoucherPayload.md)
- [HyperstackApi.RegionFields](docs/RegionFields.md)
- - [HyperstackApi.RegionPayload](docs/RegionPayload.md)
- - [HyperstackApi.RegionResponse](docs/RegionResponse.md)
- [HyperstackApi.Regions](docs/Regions.md)
- [HyperstackApi.RemoveMemberFromOrganizationResponseModel](docs/RemoveMemberFromOrganizationResponseModel.md)
- [HyperstackApi.RemoveMemberPayload](docs/RemoveMemberPayload.md)
- [HyperstackApi.RequestConsole](docs/RequestConsole.md)
+ - [HyperstackApi.RequestInstanceLogsPayload](docs/RequestInstanceLogsPayload.md)
+ - [HyperstackApi.RequestInstanceLogsResponse](docs/RequestInstanceLogsResponse.md)
- [HyperstackApi.ResourceBillingEventsHistoryMetrics](docs/ResourceBillingEventsHistoryMetrics.md)
- [HyperstackApi.ResourceBillingEventsHistoryResponse](docs/ResourceBillingEventsHistoryResponse.md)
- [HyperstackApi.ResourceBillingResponseForCustomer](docs/ResourceBillingResponseForCustomer.md)
+ - [HyperstackApi.ResourceLevelBillingBucketDetailsResources](docs/ResourceLevelBillingBucketDetailsResources.md)
- [HyperstackApi.ResourceLevelBillingDetailsAttributes](docs/ResourceLevelBillingDetailsAttributes.md)
- [HyperstackApi.ResourceLevelBillingDetailsMetrics](docs/ResourceLevelBillingDetailsMetrics.md)
- [HyperstackApi.ResourceLevelBillingDetailsVM](docs/ResourceLevelBillingDetailsVM.md)
@@ -538,12 +572,19 @@ Class | Method | HTTP request | Description
- [HyperstackApi.ResourceLevelBillingDetailsVolumeMetrics](docs/ResourceLevelBillingDetailsVolumeMetrics.md)
- [HyperstackApi.ResourceLevelBillingHistory](docs/ResourceLevelBillingHistory.md)
- [HyperstackApi.ResourceLevelBillingHistoryResources](docs/ResourceLevelBillingHistoryResources.md)
+ - [HyperstackApi.ResourceLevelBillingHistoryResourcesCluster](docs/ResourceLevelBillingHistoryResourcesCluster.md)
- [HyperstackApi.ResourceLevelBillingHistoryResponseAttributes](docs/ResourceLevelBillingHistoryResponseAttributes.md)
- [HyperstackApi.ResourceLevelBillingHistoryResponseMetrics](docs/ResourceLevelBillingHistoryResponseMetrics.md)
- [HyperstackApi.ResourceLevelBillingVMDetailsResources](docs/ResourceLevelBillingVMDetailsResources.md)
- [HyperstackApi.ResourceLevelBillingVolumeDetailsResources](docs/ResourceLevelBillingVolumeDetailsResources.md)
+ - [HyperstackApi.ResourceLevelBucketBillingDetailsResponseModel](docs/ResourceLevelBucketBillingDetailsResponseModel.md)
+ - [HyperstackApi.ResourceLevelBucketBillingHistoryResponseModel](docs/ResourceLevelBucketBillingHistoryResponseModel.md)
+ - [HyperstackApi.ResourceLevelClusterBillingDetailsResponseModel](docs/ResourceLevelClusterBillingDetailsResponseModel.md)
+ - [HyperstackApi.ResourceLevelClusterBillingHistoryResponseModel](docs/ResourceLevelClusterBillingHistoryResponseModel.md)
+ - [HyperstackApi.ResourceLevelClusterGraphBillingDetailsResponseModel](docs/ResourceLevelClusterGraphBillingDetailsResponseModel.md)
- [HyperstackApi.ResourceLevelGraphBillingDetailVolume](docs/ResourceLevelGraphBillingDetailVolume.md)
- [HyperstackApi.ResourceLevelGraphBillingDetailsAttributes](docs/ResourceLevelGraphBillingDetailsAttributes.md)
+ - [HyperstackApi.ResourceLevelGraphBillingDetailsBucket](docs/ResourceLevelGraphBillingDetailsBucket.md)
- [HyperstackApi.ResourceLevelGraphBillingDetailsMetrics](docs/ResourceLevelGraphBillingDetailsMetrics.md)
- [HyperstackApi.ResourceLevelGraphBillingDetailsVM](docs/ResourceLevelGraphBillingDetailsVM.md)
- [HyperstackApi.ResourceLevelGraphBillingVMDetailsResources](docs/ResourceLevelGraphBillingVMDetailsResources.md)
@@ -558,12 +599,12 @@ Class | Method | HTTP request | Description
- [HyperstackApi.ResponseModel](docs/ResponseModel.md)
- [HyperstackApi.RolePermissionFields](docs/RolePermissionFields.md)
- [HyperstackApi.RolePolicyFields](docs/RolePolicyFields.md)
+ - [HyperstackApi.SecondaryColor](docs/SecondaryColor.md)
- [HyperstackApi.SecurityGroupRule](docs/SecurityGroupRule.md)
- [HyperstackApi.SecurityGroupRuleFields](docs/SecurityGroupRuleFields.md)
- - [HyperstackApi.SecurityRulesFieldsforInstance](docs/SecurityRulesFieldsforInstance.md)
+ - [HyperstackApi.SecurityRulesFieldsForInstance](docs/SecurityRulesFieldsForInstance.md)
- [HyperstackApi.SecurityRulesProtocolFields](docs/SecurityRulesProtocolFields.md)
- - [HyperstackApi.SetDefaultsPayload](docs/SetDefaultsPayload.md)
- - [HyperstackApi.SingleVisibilityUserResponse](docs/SingleVisibilityUserResponse.md)
+ - [HyperstackApi.ServerlessInferencedBillingHistoryDetailsResponseSchema](docs/ServerlessInferencedBillingHistoryDetailsResponseSchema.md)
- [HyperstackApi.SnapshotFields](docs/SnapshotFields.md)
- [HyperstackApi.SnapshotRestoreRequest](docs/SnapshotRestoreRequest.md)
- [HyperstackApi.SnapshotRetrieve](docs/SnapshotRetrieve.md)
@@ -571,66 +612,53 @@ Class | Method | HTTP request | Description
- [HyperstackApi.Snapshots](docs/Snapshots.md)
- [HyperstackApi.StartDeployment](docs/StartDeployment.md)
- [HyperstackApi.StartDeploymentPayload](docs/StartDeploymentPayload.md)
- - [HyperstackApi.StockVisibilityUserListResponse](docs/StockVisibilityUserListResponse.md)
- - [HyperstackApi.StockVisibilityUserPayload](docs/StockVisibilityUserPayload.md)
- [HyperstackApi.SubResourceGraphBillingDetailsMetrics](docs/SubResourceGraphBillingDetailsMetrics.md)
- [HyperstackApi.SubResourcesCostsResponseModel](docs/SubResourcesCostsResponseModel.md)
- [HyperstackApi.SubResourcesGraphBillingHistoryFields](docs/SubResourcesGraphBillingHistoryFields.md)
- [HyperstackApi.SubResourcesGraphResponseModel](docs/SubResourcesGraphResponseModel.md)
- - [HyperstackApi.Subscribeorunsubscribeupdatepayload](docs/Subscribeorunsubscribeupdatepayload.md)
- - [HyperstackApi.SuccessResponseModel](docs/SuccessResponseModel.md)
+ - [HyperstackApi.SubscribeOrUnsubscribeUpdatePayload](docs/SubscribeOrUnsubscribeUpdatePayload.md)
- [HyperstackApi.Template](docs/Template.md)
- [HyperstackApi.TemplateFields](docs/TemplateFields.md)
- [HyperstackApi.Templates](docs/Templates.md)
- - [HyperstackApi.TokenFields](docs/TokenFields.md)
- - [HyperstackApi.UpdateContractPayload](docs/UpdateContractPayload.md)
- - [HyperstackApi.UpdateDiscountsPayload](docs/UpdateDiscountsPayload.md)
- - [HyperstackApi.UpdateDiscountsStatusPayload](docs/UpdateDiscountsStatusPayload.md)
+ - [HyperstackApi.TokenBasedBillingHistoryResponse](docs/TokenBasedBillingHistoryResponse.md)
+ - [HyperstackApi.URIs](docs/URIs.md)
+ - [HyperstackApi.UpdateClusterNodeGroupPayload](docs/UpdateClusterNodeGroupPayload.md)
- [HyperstackApi.UpdateEnvironment](docs/UpdateEnvironment.md)
- - [HyperstackApi.UpdateGPU](docs/UpdateGPU.md)
- [HyperstackApi.UpdateKeypairName](docs/UpdateKeypairName.md)
- - [HyperstackApi.UpdateKeypairnameresponse](docs/UpdateKeypairnameresponse.md)
+ - [HyperstackApi.UpdateKeypairNameResponse](docs/UpdateKeypairNameResponse.md)
- [HyperstackApi.UpdateOrganizationPayload](docs/UpdateOrganizationPayload.md)
- [HyperstackApi.UpdateOrganizationResponseModel](docs/UpdateOrganizationResponseModel.md)
- [HyperstackApi.UpdateTemplate](docs/UpdateTemplate.md)
+ - [HyperstackApi.UpdateVolumeAttachmentPayload](docs/UpdateVolumeAttachmentPayload.md)
+ - [HyperstackApi.UpdateVolumePayload](docs/UpdateVolumePayload.md)
+ - [HyperstackApi.UpdateVolumeResponse](docs/UpdateVolumeResponse.md)
- [HyperstackApi.UserDefaultChoiceForUserFields](docs/UserDefaultChoiceForUserFields.md)
- [HyperstackApi.UserDefaultChoicesForUserResponse](docs/UserDefaultChoicesForUserResponse.md)
+ - [HyperstackApi.UserInfoPostPayload](docs/UserInfoPostPayload.md)
+ - [HyperstackApi.UserOrganizationsResponse](docs/UserOrganizationsResponse.md)
- [HyperstackApi.UserPermissionFields](docs/UserPermissionFields.md)
- - [HyperstackApi.UserTransferPayload](docs/UserTransferPayload.md)
- - [HyperstackApi.Userinfopostpayload](docs/Userinfopostpayload.md)
- [HyperstackApi.UsersInfoFields](docs/UsersInfoFields.md)
- [HyperstackApi.UsersInfoListResponse](docs/UsersInfoListResponse.md)
- - [HyperstackApi.VMUsageRequestPayload](docs/VMUsageRequestPayload.md)
- - [HyperstackApi.VMUsageResponse](docs/VMUsageResponse.md)
+ - [HyperstackApi.VMQuota](docs/VMQuota.md)
- [HyperstackApi.VNCURL](docs/VNCURL.md)
- [HyperstackApi.VNCURLFields](docs/VNCURLFields.md)
- - [HyperstackApi.VerifyApiKeyPayload](docs/VerifyApiKeyPayload.md)
- - [HyperstackApi.VerifyApiKeyResponseModel](docs/VerifyApiKeyResponseModel.md)
- - [HyperstackApi.VirtualMachineUsage](docs/VirtualMachineUsage.md)
- [HyperstackApi.Volume](docs/Volume.md)
- [HyperstackApi.VolumeAttachmentFields](docs/VolumeAttachmentFields.md)
- [HyperstackApi.VolumeFields](docs/VolumeFields.md)
- - [HyperstackApi.VolumeFieldsforInstance](docs/VolumeFieldsforInstance.md)
+ - [HyperstackApi.VolumeFieldsForInstance](docs/VolumeFieldsForInstance.md)
- [HyperstackApi.VolumeOverviewFields](docs/VolumeOverviewFields.md)
- - [HyperstackApi.VolumeStatusChangeFields](docs/VolumeStatusChangeFields.md)
- [HyperstackApi.VolumeTypes](docs/VolumeTypes.md)
- [HyperstackApi.Volumes](docs/Volumes.md)
- - [HyperstackApi.VolumesLastStatusChangeResponse](docs/VolumesLastStatusChangeResponse.md)
- - [HyperstackApi.WarningMailLogFields](docs/WarningMailLogFields.md)
- - [HyperstackApi.WarningMailLogResponse](docs/WarningMailLogResponse.md)
+ - [HyperstackApi.VolumesFields](docs/VolumesFields.md)
+ - [HyperstackApi.Voucher](docs/Voucher.md)
+ - [HyperstackApi.VoucherRedeemResponseSchema](docs/VoucherRedeemResponseSchema.md)
+ - [HyperstackApi.WorkloadBillingHistoryResponse](docs/WorkloadBillingHistoryResponse.md)
## Documentation for Authorization
Authentication schemes defined for the API:
-### accessToken
-
-
-- **Type**: API key
-- **API key parameter name**: Authorization
-- **Location**: HTTP header
-
### apiKey
diff --git a/dist/ApiClient.js b/dist/ApiClient.js
index fb3b75ce..eefc03af 100644
--- a/dist/ApiClient.js
+++ b/dist/ApiClient.js
@@ -25,7 +25,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
*/
/**
* @module ApiClient
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
/**
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -55,11 +55,6 @@ var ApiClient = /*#__PURE__*/function () {
* @type {Array.}
*/
this.authentications = {
- 'accessToken': {
- type: 'apiKey',
- 'in': 'header',
- name: 'Authorization'
- },
'apiKey': {
type: 'apiKey',
'in': 'header',
@@ -73,7 +68,7 @@ var ApiClient = /*#__PURE__*/function () {
* @default {}
*/
this.defaultHeaders = {
- 'User-Agent': 'OpenAPI-Generator/v1.25.0-alpha/Javascript'
+ 'User-Agent': 'OpenAPI-Generator/v1.51.1-alpha/Javascript'
};
/**
diff --git a/dist/api/AccessKeysApi.js b/dist/api/AccessKeysApi.js
new file mode 100644
index 00000000..d62d4e25
--- /dev/null
+++ b/dist/api/AccessKeysApi.js
@@ -0,0 +1,168 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _ObjectStorageAccessKeyCreateRequest = _interopRequireDefault(require("../model/ObjectStorageAccessKeyCreateRequest"));
+var _ObjectStorageAccessKeyCreateResponse = _interopRequireDefault(require("../model/ObjectStorageAccessKeyCreateResponse"));
+var _ObjectStorageAccessKeyListResponse = _interopRequireDefault(require("../model/ObjectStorageAccessKeyListResponse"));
+var _ObjectStorageDeleteResponse = _interopRequireDefault(require("../model/ObjectStorageDeleteResponse"));
+var _ObjectStorageErrorResponse = _interopRequireDefault(require("../model/ObjectStorageErrorResponse"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+* AccessKeys service.
+* @module api/AccessKeysApi
+* @version v1.51.1-alpha
+*/
+var AccessKeysApi = exports["default"] = /*#__PURE__*/function () {
+ /**
+ * Constructs a new AccessKeysApi.
+ * @alias module:api/AccessKeysApi
+ * @class
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
+ * default to {@link module:ApiClient#instance} if unspecified.
+ */
+ function AccessKeysApi(apiClient) {
+ _classCallCheck(this, AccessKeysApi);
+ this.apiClient = apiClient || _ApiClient["default"].instance;
+ }
+
+ /**
+ * Generate a new access key
+ * @param {Object} opts Optional parameters
+ * @param {module:model/ObjectStorageAccessKeyCreateRequest} [body]
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ObjectStorageAccessKeyCreateResponse} and HTTP response
+ */
+ return _createClass(AccessKeysApi, [{
+ key: "createAccessKeyEndpointWithHttpInfo",
+ value: function createAccessKeyEndpointWithHttpInfo(opts) {
+ opts = opts || {};
+ var postBody = opts['body'];
+ var pathParams = {};
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = ['application/json'];
+ var accepts = ['application/json'];
+ var returnType = _ObjectStorageAccessKeyCreateResponse["default"];
+ return this.apiClient.callApi('/object-storage/access-keys', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Generate a new access key
+ * @param {Object} opts Optional parameters
+ * @param {module:model/ObjectStorageAccessKeyCreateRequest} opts.body
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ObjectStorageAccessKeyCreateResponse}
+ */
+ }, {
+ key: "createAccessKeyEndpoint",
+ value: function createAccessKeyEndpoint(opts) {
+ return this.createAccessKeyEndpointWithHttpInfo(opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Remove an existing access key
+ * @param {String} accessKeyId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ObjectStorageDeleteResponse} and HTTP response
+ */
+ }, {
+ key: "deleteAccessKeyEndpointWithHttpInfo",
+ value: function deleteAccessKeyEndpointWithHttpInfo(accessKeyId) {
+ var postBody = null;
+ // verify the required parameter 'accessKeyId' is set
+ if (accessKeyId === undefined || accessKeyId === null) {
+ throw new Error("Missing the required parameter 'accessKeyId' when calling deleteAccessKeyEndpoint");
+ }
+ var pathParams = {
+ 'access_key_id': accessKeyId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ObjectStorageDeleteResponse["default"];
+ return this.apiClient.callApi('/object-storage/access-keys/{access_key_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Remove an existing access key
+ * @param {String} accessKeyId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ObjectStorageDeleteResponse}
+ */
+ }, {
+ key: "deleteAccessKeyEndpoint",
+ value: function deleteAccessKeyEndpoint(accessKeyId) {
+ return this.deleteAccessKeyEndpointWithHttpInfo(accessKeyId).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * List access keys
+ * @param {Object} opts Optional parameters
+ * @param {String} [search]
+ * @param {String} [page]
+ * @param {String} [pageSize]
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ObjectStorageAccessKeyListResponse} and HTTP response
+ */
+ }, {
+ key: "listAccessKeysEndpointWithHttpInfo",
+ value: function listAccessKeysEndpointWithHttpInfo(opts) {
+ opts = opts || {};
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {
+ 'search': opts['search'],
+ 'page': opts['page'],
+ 'page_size': opts['pageSize']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ObjectStorageAccessKeyListResponse["default"];
+ return this.apiClient.callApi('/object-storage/access-keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * List access keys
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.search
+ * @param {String} opts.page
+ * @param {String} opts.pageSize
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ObjectStorageAccessKeyListResponse}
+ */
+ }, {
+ key: "listAccessKeysEndpoint",
+ value: function listAccessKeysEndpoint(opts) {
+ return this.listAccessKeysEndpointWithHttpInfo(opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+ }]);
+}();
\ No newline at end of file
diff --git a/dist/api/AliveApi.js b/dist/api/AliveApi.js
index ba66b7a5..4072e605 100644
--- a/dist/api/AliveApi.js
+++ b/dist/api/AliveApi.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Alive service.
* @module api/AliveApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var AliveApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -43,6 +43,7 @@ var AliveApi = exports["default"] = /*#__PURE__*/function () {
/**
* GET: Alive
+ * Retrieve the billing status of your account to ensure that it is active. An active billing status ensures uninterrupted service. For additional information [**click here**](None/docs/api-reference/billing-resources/alive/).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
return _createClass(AliveApi, [{
@@ -53,7 +54,7 @@ var AliveApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = [];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = [];
var returnType = null;
@@ -62,6 +63,7 @@ var AliveApi = exports["default"] = /*#__PURE__*/function () {
/**
* GET: Alive
+ * Retrieve the billing status of your account to ensure that it is active. An active billing status ensures uninterrupted service. For additional information [**click here**](None/docs/api-reference/billing-resources/alive/).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
}, {
@@ -71,5 +73,34 @@ var AliveApi = exports["default"] = /*#__PURE__*/function () {
return response_and_data.data;
});
}
+
+ /**
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
+ */
+ }, {
+ key: "getAliveDocWithHttpInfo",
+ value: function getAliveDocWithHttpInfo() {
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = [];
+ var returnType = null;
+ return this.apiClient.callApi('/billing/alive/doc', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
+ */
+ }, {
+ key: "getAliveDoc",
+ value: function getAliveDoc() {
+ return this.getAliveDocWithHttpInfo().then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
}]);
}();
\ No newline at end of file
diff --git a/dist/api/ApiKeyApi.js b/dist/api/ApiKeyApi.js
index f9edb3b8..1c089029 100644
--- a/dist/api/ApiKeyApi.js
+++ b/dist/api/ApiKeyApi.js
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* ApiKey service.
* @module api/ApiKeyApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var ApiKeyApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -53,12 +53,12 @@ var ApiKeyApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CommonResponseModel} and HTTP response
*/
return _createClass(ApiKeyApi, [{
- key: "deleteApiKeyWithHttpInfo",
- value: function deleteApiKeyWithHttpInfo(apiKeyId) {
+ key: "deleteAPIKeyWithHttpInfo",
+ value: function deleteAPIKeyWithHttpInfo(apiKeyId) {
var postBody = null;
// verify the required parameter 'apiKeyId' is set
if (apiKeyId === undefined || apiKeyId === null) {
- throw new Error("Missing the required parameter 'apiKeyId' when calling deleteApiKey");
+ throw new Error("Missing the required parameter 'apiKeyId' when calling deleteAPIKey");
}
var pathParams = {
'api_key_id': apiKeyId
@@ -66,7 +66,7 @@ var ApiKeyApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _CommonResponseModel["default"];
@@ -80,32 +80,32 @@ var ApiKeyApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CommonResponseModel}
*/
}, {
- key: "deleteApiKey",
- value: function deleteApiKey(apiKeyId) {
- return this.deleteApiKeyWithHttpInfo(apiKeyId).then(function (response_and_data) {
+ key: "deleteAPIKey",
+ value: function deleteAPIKey(apiKeyId) {
+ return this.deleteAPIKeyWithHttpInfo(apiKeyId).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Generate API Key
- * Generates your API key, providing access to the Infrahub APIs. For further details on API keys, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/api-key/generate-api-key).
+ * Generates your API key, providing access to the Infrahub APIs. For further details on API keys, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/api-key/generate-api-key).
* @param {module:model/GenerateUpdateApiKeyPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GenerateUpdateApiKeyResponseModel} and HTTP response
*/
}, {
- key: "generateApiKeyWithHttpInfo",
- value: function generateApiKeyWithHttpInfo(payload) {
+ key: "generateAPIKeyWithHttpInfo",
+ value: function generateAPIKeyWithHttpInfo(payload) {
var postBody = payload;
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling generateApiKey");
+ throw new Error("Missing the required parameter 'payload' when calling generateAPIKey");
}
var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _GenerateUpdateApiKeyResponseModel["default"];
@@ -114,32 +114,32 @@ var ApiKeyApi = exports["default"] = /*#__PURE__*/function () {
/**
* Generate API Key
- * Generates your API key, providing access to the Infrahub APIs. For further details on API keys, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/api-key/generate-api-key).
+ * Generates your API key, providing access to the Infrahub APIs. For further details on API keys, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/api-key/generate-api-key).
* @param {module:model/GenerateUpdateApiKeyPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GenerateUpdateApiKeyResponseModel}
*/
}, {
- key: "generateApiKey",
- value: function generateApiKey(payload) {
- return this.generateApiKeyWithHttpInfo(payload).then(function (response_and_data) {
+ key: "generateAPIKey",
+ value: function generateAPIKey(payload) {
+ return this.generateAPIKeyWithHttpInfo(payload).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Retrieve API Keys
- * Retrieves your API keys, granting access to the Infrahub APIs. For further details on API keys, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/api-key/retrieve-api-key).
+ * Retrieves your API keys, granting access to the Infrahub APIs. For further details on API keys, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/api-key/retrieve-api-key).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetApiKeysResponseModel} and HTTP response
*/
}, {
- key: "retrieveApiKeysWithHttpInfo",
- value: function retrieveApiKeysWithHttpInfo() {
+ key: "getAPIKeyWithHttpInfo",
+ value: function getAPIKeyWithHttpInfo() {
var postBody = null;
var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _GetApiKeysResponseModel["default"];
@@ -148,13 +148,13 @@ var ApiKeyApi = exports["default"] = /*#__PURE__*/function () {
/**
* Retrieve API Keys
- * Retrieves your API keys, granting access to the Infrahub APIs. For further details on API keys, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/api-key/retrieve-api-key).
+ * Retrieves your API keys, granting access to the Infrahub APIs. For further details on API keys, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/api-key/retrieve-api-key).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetApiKeysResponseModel}
*/
}, {
- key: "retrieveApiKeys",
- value: function retrieveApiKeys() {
- return this.retrieveApiKeysWithHttpInfo().then(function (response_and_data) {
+ key: "getAPIKey",
+ value: function getAPIKey() {
+ return this.getAPIKeyWithHttpInfo().then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -167,16 +167,16 @@ var ApiKeyApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GenerateUpdateApiKeyResponseModel} and HTTP response
*/
}, {
- key: "updateApiKeyWithHttpInfo",
- value: function updateApiKeyWithHttpInfo(apiKeyId, payload) {
+ key: "updateAPIKeyWithHttpInfo",
+ value: function updateAPIKeyWithHttpInfo(apiKeyId, payload) {
var postBody = payload;
// verify the required parameter 'apiKeyId' is set
if (apiKeyId === undefined || apiKeyId === null) {
- throw new Error("Missing the required parameter 'apiKeyId' when calling updateApiKey");
+ throw new Error("Missing the required parameter 'apiKeyId' when calling updateAPIKey");
}
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling updateApiKey");
+ throw new Error("Missing the required parameter 'payload' when calling updateAPIKey");
}
var pathParams = {
'api_key_id': apiKeyId
@@ -184,7 +184,7 @@ var ApiKeyApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _GenerateUpdateApiKeyResponseModel["default"];
@@ -199,9 +199,9 @@ var ApiKeyApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GenerateUpdateApiKeyResponseModel}
*/
}, {
- key: "updateApiKey",
- value: function updateApiKey(apiKeyId, payload) {
- return this.updateApiKeyWithHttpInfo(apiKeyId, payload).then(function (response_and_data) {
+ key: "updateAPIKey",
+ value: function updateAPIKey(apiKeyId, payload) {
+ return this.updateAPIKeyWithHttpInfo(apiKeyId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/AssigningMemberRoleApi.js b/dist/api/AssigningMemberRoleApi.js
index d18285ae..0277c2cc 100644
--- a/dist/api/AssigningMemberRoleApi.js
+++ b/dist/api/AssigningMemberRoleApi.js
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* AssigningMemberRole service.
* @module api/AssigningMemberRoleApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var AssigningMemberRoleApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -47,22 +47,22 @@ var AssigningMemberRoleApi = exports["default"] = /*#__PURE__*/function () {
/**
* Assign RBAC Role
- * Assigns a specific RBAC role to a user within your organization, granting them access to the resource actions permitted by the role. Provide the user ID in the path and the role ID in the request body. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/rbac/manage-member-roles/assign-rbac-role).
+ * Assigns a specific RBAC role to a user within your organization, granting them access to the resource actions permitted by the role. Provide the user ID in the path and the role ID in the request body. For additional information, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/rbac/manage-member-roles/assign-rbac-role).
* @param {Number} userId
* @param {module:model/AssignRbacRolePayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RbacRoleDetailResponseModel} and HTTP response
*/
return _createClass(AssigningMemberRoleApi, [{
- key: "assignRbacRoleWithHttpInfo",
- value: function assignRbacRoleWithHttpInfo(userId, payload) {
+ key: "assignRBACRoleToUserWithHttpInfo",
+ value: function assignRBACRoleToUserWithHttpInfo(userId, payload) {
var postBody = payload;
// verify the required parameter 'userId' is set
if (userId === undefined || userId === null) {
- throw new Error("Missing the required parameter 'userId' when calling assignRbacRole");
+ throw new Error("Missing the required parameter 'userId' when calling assignRBACRoleToUser");
}
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling assignRbacRole");
+ throw new Error("Missing the required parameter 'payload' when calling assignRBACRoleToUser");
}
var pathParams = {
'user_id': userId
@@ -70,7 +70,7 @@ var AssigningMemberRoleApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _RbacRoleDetailResponseModel["default"];
@@ -79,32 +79,32 @@ var AssigningMemberRoleApi = exports["default"] = /*#__PURE__*/function () {
/**
* Assign RBAC Role
- * Assigns a specific RBAC role to a user within your organization, granting them access to the resource actions permitted by the role. Provide the user ID in the path and the role ID in the request body. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/rbac/manage-member-roles/assign-rbac-role).
+ * Assigns a specific RBAC role to a user within your organization, granting them access to the resource actions permitted by the role. Provide the user ID in the path and the role ID in the request body. For additional information, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/rbac/manage-member-roles/assign-rbac-role).
* @param {Number} userId
* @param {module:model/AssignRbacRolePayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RbacRoleDetailResponseModel}
*/
}, {
- key: "assignRbacRole",
- value: function assignRbacRole(userId, payload) {
- return this.assignRbacRoleWithHttpInfo(userId, payload).then(function (response_and_data) {
+ key: "assignRBACRoleToUser",
+ value: function assignRBACRoleToUser(userId, payload) {
+ return this.assignRBACRoleToUserWithHttpInfo(userId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Remove RBAC Role From User
- * Removes an RBAC role from a user within your organization, revoking the resource permissions they had access to. Provide the user ID in the path. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/rbac/manage-member-roles/revoke-rbac-role).
+ * Removes an RBAC role from a user within your organization, revoking the resource permissions they had access to. Provide the user ID in the path. For additional information, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/rbac/manage-member-roles/revoke-rbac-role).
* @param {Number} userId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CommonResponseModel} and HTTP response
*/
}, {
- key: "removeRbacRoleFromUserWithHttpInfo",
- value: function removeRbacRoleFromUserWithHttpInfo(userId) {
+ key: "removeRBACRoleFromUserWithHttpInfo",
+ value: function removeRBACRoleFromUserWithHttpInfo(userId) {
var postBody = null;
// verify the required parameter 'userId' is set
if (userId === undefined || userId === null) {
- throw new Error("Missing the required parameter 'userId' when calling removeRbacRoleFromUser");
+ throw new Error("Missing the required parameter 'userId' when calling removeRBACRoleFromUser");
}
var pathParams = {
'user_id': userId
@@ -112,7 +112,7 @@ var AssigningMemberRoleApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _CommonResponseModel["default"];
@@ -121,14 +121,14 @@ var AssigningMemberRoleApi = exports["default"] = /*#__PURE__*/function () {
/**
* Remove RBAC Role From User
- * Removes an RBAC role from a user within your organization, revoking the resource permissions they had access to. Provide the user ID in the path. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/rbac/manage-member-roles/revoke-rbac-role).
+ * Removes an RBAC role from a user within your organization, revoking the resource permissions they had access to. Provide the user ID in the path. For additional information, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/rbac/manage-member-roles/revoke-rbac-role).
* @param {Number} userId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CommonResponseModel}
*/
}, {
- key: "removeRbacRoleFromUser",
- value: function removeRbacRoleFromUser(userId) {
- return this.removeRbacRoleFromUserWithHttpInfo(userId).then(function (response_and_data) {
+ key: "removeRBACRoleFromUser",
+ value: function removeRBACRoleFromUser(userId) {
+ return this.removeRBACRoleFromUserWithHttpInfo(userId).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/AuthApi.js b/dist/api/AuthApi.js
index e22a220c..59a7c85d 100644
--- a/dist/api/AuthApi.js
+++ b/dist/api/AuthApi.js
@@ -5,8 +5,12 @@ Object.defineProperty(exports, "__esModule", {
});
exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _AuthGetTokenResponseModel = _interopRequireDefault(require("../model/AuthGetTokenResponseModel"));
var _AuthUserInfoResponseModel = _interopRequireDefault(require("../model/AuthUserInfoResponseModel"));
+var _CommonResponseModel = _interopRequireDefault(require("../model/CommonResponseModel"));
var _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
+var _MFAStatusResponse = _interopRequireDefault(require("../model/MFAStatusResponse"));
+var _UserOrganizationsResponse = _interopRequireDefault(require("../model/UserOrganizationsResponse"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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); }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -28,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Auth service.
* @module api/AuthApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var AuthApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -44,11 +48,147 @@ var AuthApi = exports["default"] = /*#__PURE__*/function () {
}
/**
- * Retrieve Authenticated User Details
- * Retrieves detailed information about the currently authenticated user. For additional information, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/auth).
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AuthUserInfoResponseModel} and HTTP response
+ * Change the organization associated with the current token. This is useful for users who have access to multiple organizations.
+ * @param {Number} orgId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AuthGetTokenResponseModel} and HTTP response
*/
return _createClass(AuthApi, [{
+ key: "changeOrganizationForTokenWithHttpInfo",
+ value: function changeOrganizationForTokenWithHttpInfo(orgId) {
+ var postBody = null;
+ // verify the required parameter 'orgId' is set
+ if (orgId === undefined || orgId === null) {
+ throw new Error("Missing the required parameter 'orgId' when calling changeOrganizationForToken");
+ }
+ var pathParams = {
+ 'org_id': orgId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _AuthGetTokenResponseModel["default"];
+ return this.apiClient.callApi('/auth/token/change-org/{org_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Change the organization associated with the current token. This is useful for users who have access to multiple organizations.
+ * @param {Number} orgId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AuthGetTokenResponseModel}
+ */
+ }, {
+ key: "changeOrganizationForToken",
+ value: function changeOrganizationForToken(orgId) {
+ return this.changeOrganizationForTokenWithHttpInfo(orgId).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Disable Multi-Factor Authentication (MFA) for the currently authenticated user. This endpoint is used to turn off MFA.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CommonResponseModel} and HTTP response
+ */
+ }, {
+ key: "disableMFAWithHttpInfo",
+ value: function disableMFAWithHttpInfo() {
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _CommonResponseModel["default"];
+ return this.apiClient.callApi('/auth/me/mfa/disable', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Disable Multi-Factor Authentication (MFA) for the currently authenticated user. This endpoint is used to turn off MFA.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CommonResponseModel}
+ */
+ }, {
+ key: "disableMFA",
+ value: function disableMFA() {
+ return this.disableMFAWithHttpInfo().then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Get MFA status for authenticated user
+ * Retrieve the Multi-Factor Authentication (MFA) status for the currentlyauthenticated user. Includes whether MFA is enabled.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MFAStatusResponse} and HTTP response
+ */
+ }, {
+ key: "getUserMFAStatusWithHttpInfo",
+ value: function getUserMFAStatusWithHttpInfo() {
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _MFAStatusResponse["default"];
+ return this.apiClient.callApi('/auth/me/mfa', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Get MFA status for authenticated user
+ * Retrieve the Multi-Factor Authentication (MFA) status for the currentlyauthenticated user. Includes whether MFA is enabled.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MFAStatusResponse}
+ */
+ }, {
+ key: "getUserMFAStatus",
+ value: function getUserMFAStatus() {
+ return this.getUserMFAStatusWithHttpInfo().then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Get User Organizations
+ * Retrieve the organizations associated with a user by their user ID. This endpoint is useful for understanding the user's organizational affiliations.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserOrganizationsResponse} and HTTP response
+ */
+ }, {
+ key: "getUserOrganizationsWithHttpInfo",
+ value: function getUserOrganizationsWithHttpInfo() {
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _UserOrganizationsResponse["default"];
+ return this.apiClient.callApi('/auth/me/organizations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Get User Organizations
+ * Retrieve the organizations associated with a user by their user ID. This endpoint is useful for understanding the user's organizational affiliations.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserOrganizationsResponse}
+ */
+ }, {
+ key: "getUserOrganizations",
+ value: function getUserOrganizations() {
+ return this.getUserOrganizationsWithHttpInfo().then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve Authenticated User Details
+ * Retrieves detailed information about the currently authenticated user. For additional information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/auth).
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AuthUserInfoResponseModel} and HTTP response
+ */
+ }, {
key: "retrieveAuthenticatedUserDetailsWithHttpInfo",
value: function retrieveAuthenticatedUserDetailsWithHttpInfo() {
var postBody = null;
@@ -56,7 +196,7 @@ var AuthApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _AuthUserInfoResponseModel["default"];
@@ -65,7 +205,7 @@ var AuthApi = exports["default"] = /*#__PURE__*/function () {
/**
* Retrieve Authenticated User Details
- * Retrieves detailed information about the currently authenticated user. For additional information, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/auth).
+ * Retrieves detailed information about the currently authenticated user. For additional information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/auth).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AuthUserInfoResponseModel}
*/
}, {
diff --git a/dist/api/BetaAccessApi.js b/dist/api/BetaAccessApi.js
new file mode 100644
index 00000000..b0323bc9
--- /dev/null
+++ b/dist/api/BetaAccessApi.js
@@ -0,0 +1,161 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _BetaAccessRequestPayload = _interopRequireDefault(require("../model/BetaAccessRequestPayload"));
+var _BetaAccessRequestResponseModel = _interopRequireDefault(require("../model/BetaAccessRequestResponseModel"));
+var _BetaAccessStatusResponseModel = _interopRequireDefault(require("../model/BetaAccessStatusResponseModel"));
+var _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+* BetaAccess service.
+* @module api/BetaAccessApi
+* @version v1.51.1-alpha
+*/
+var BetaAccessApi = exports["default"] = /*#__PURE__*/function () {
+ /**
+ * Constructs a new BetaAccessApi.
+ * @alias module:api/BetaAccessApi
+ * @class
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
+ * default to {@link module:ApiClient#instance} if unspecified.
+ */
+ function BetaAccessApi(apiClient) {
+ _classCallCheck(this, BetaAccessApi);
+ this.apiClient = apiClient || _ApiClient["default"].instance;
+ }
+
+ /**
+ * Create a new beta access request
+ * Creates a new beta access request for the current user
+ * @param {module:model/BetaAccessRequestPayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BetaAccessRequestResponseModel} and HTTP response
+ */
+ return _createClass(BetaAccessApi, [{
+ key: "createBetaAccessRequestWithHttpInfo",
+ value: function createBetaAccessRequestWithHttpInfo(payload) {
+ var postBody = payload;
+ // verify the required parameter 'payload' is set
+ if (payload === undefined || payload === null) {
+ throw new Error("Missing the required parameter 'payload' when calling createBetaAccessRequest");
+ }
+ var pathParams = {};
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = ['application/json'];
+ var accepts = ['application/json'];
+ var returnType = _BetaAccessRequestResponseModel["default"];
+ return this.apiClient.callApi('/auth/beta-access/requests', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Create a new beta access request
+ * Creates a new beta access request for the current user
+ * @param {module:model/BetaAccessRequestPayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BetaAccessRequestResponseModel}
+ */
+ }, {
+ key: "createBetaAccessRequest",
+ value: function createBetaAccessRequest(payload) {
+ return this.createBetaAccessRequestWithHttpInfo(payload).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Check the status of beta access requests
+ * Check the status of a particular beta access requests.
+ * @param {String} program
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BetaAccessStatusResponseModel} and HTTP response
+ */
+ }, {
+ key: "getBetaAccessRequestsWithHttpInfo",
+ value: function getBetaAccessRequestsWithHttpInfo(program) {
+ var postBody = null;
+ // verify the required parameter 'program' is set
+ if (program === undefined || program === null) {
+ throw new Error("Missing the required parameter 'program' when calling getBetaAccessRequests");
+ }
+ var pathParams = {
+ 'program': program
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _BetaAccessStatusResponseModel["default"];
+ return this.apiClient.callApi('/auth/beta-access/requests/{program}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Check the status of beta access requests
+ * Check the status of a particular beta access requests.
+ * @param {String} program
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BetaAccessStatusResponseModel}
+ */
+ }, {
+ key: "getBetaAccessRequests",
+ value: function getBetaAccessRequests(program) {
+ return this.getBetaAccessRequestsWithHttpInfo(program).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Check the status of all beta access requests
+ * Check the status of all beta access requests.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BetaAccessStatusResponseModel} and HTTP response
+ */
+ }, {
+ key: "getBetaAccessStatusWithHttpInfo",
+ value: function getBetaAccessStatusWithHttpInfo() {
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _BetaAccessStatusResponseModel["default"];
+ return this.apiClient.callApi('/auth/beta-access/requests', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Check the status of all beta access requests
+ * Check the status of all beta access requests.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BetaAccessStatusResponseModel}
+ */
+ }, {
+ key: "getBetaAccessStatus",
+ value: function getBetaAccessStatus() {
+ return this.getBetaAccessStatusWithHttpInfo().then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+ }]);
+}();
\ No newline at end of file
diff --git a/dist/api/BillingApi.js b/dist/api/BillingApi.js
index bb001e86..861b4b2a 100644
--- a/dist/api/BillingApi.js
+++ b/dist/api/BillingApi.js
@@ -5,22 +5,33 @@ Object.defineProperty(exports, "__esModule", {
});
exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _Billingmetricesresponse = _interopRequireDefault(require("../model/Billingmetricesresponse"));
+var _BillingMetricesResponse = _interopRequireDefault(require("../model/BillingMetricesResponse"));
+var _DataSynthesisBillingHistoryDetailsResponseSchema = _interopRequireDefault(require("../model/DataSynthesisBillingHistoryDetailsResponseSchema"));
var _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
-var _Lastdaycostresponse = _interopRequireDefault(require("../model/Lastdaycostresponse"));
+var _LastDayCostResponse = _interopRequireDefault(require("../model/LastDayCostResponse"));
+var _ModelEvaluationBillingHistoryDetailsResponseSchema = _interopRequireDefault(require("../model/ModelEvaluationBillingHistoryDetailsResponseSchema"));
var _OrganizationLevelBillingHistoryResponseModel = _interopRequireDefault(require("../model/OrganizationLevelBillingHistoryResponseModel"));
-var _Organizationthresholdsresponse = _interopRequireDefault(require("../model/Organizationthresholdsresponse"));
-var _Organizationthresholdupdateresponse = _interopRequireDefault(require("../model/Organizationthresholdupdateresponse"));
+var _OrganizationThresholdUpdateResponse = _interopRequireDefault(require("../model/OrganizationThresholdUpdateResponse"));
+var _OrganizationThresholdsResponse = _interopRequireDefault(require("../model/OrganizationThresholdsResponse"));
var _ResourceBillingEventsHistoryResponse = _interopRequireDefault(require("../model/ResourceBillingEventsHistoryResponse"));
+var _ResourceLevelBucketBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelBucketBillingDetailsResponseModel"));
+var _ResourceLevelBucketBillingHistoryResponseModel = _interopRequireDefault(require("../model/ResourceLevelBucketBillingHistoryResponseModel"));
+var _ResourceLevelClusterBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelClusterBillingDetailsResponseModel"));
+var _ResourceLevelClusterBillingHistoryResponseModel = _interopRequireDefault(require("../model/ResourceLevelClusterBillingHistoryResponseModel"));
+var _ResourceLevelClusterGraphBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelClusterGraphBillingDetailsResponseModel"));
+var _ResourceLevelGraphBillingDetailsBucket = _interopRequireDefault(require("../model/ResourceLevelGraphBillingDetailsBucket"));
var _ResourceLevelVMBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelVMBillingDetailsResponseModel"));
var _ResourceLevelVmBillingHistoryResponseModel = _interopRequireDefault(require("../model/ResourceLevelVmBillingHistoryResponseModel"));
var _ResourceLevelVmGraphBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelVmGraphBillingDetailsResponseModel"));
var _ResourceLevelVolumeBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelVolumeBillingDetailsResponseModel"));
var _ResourceLevelVolumeBillingHistoryResponseModel = _interopRequireDefault(require("../model/ResourceLevelVolumeBillingHistoryResponseModel"));
var _ResourceLevelVolumeGraphBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelVolumeGraphBillingDetailsResponseModel"));
+var _ServerlessInferencedBillingHistoryDetailsResponseSchema = _interopRequireDefault(require("../model/ServerlessInferencedBillingHistoryDetailsResponseSchema"));
var _SubResourcesCostsResponseModel = _interopRequireDefault(require("../model/SubResourcesCostsResponseModel"));
var _SubResourcesGraphResponseModel = _interopRequireDefault(require("../model/SubResourcesGraphResponseModel"));
-var _Subscribeorunsubscribeupdatepayload = _interopRequireDefault(require("../model/Subscribeorunsubscribeupdatepayload"));
+var _SubscribeOrUnsubscribeUpdatePayload = _interopRequireDefault(require("../model/SubscribeOrUnsubscribeUpdatePayload"));
+var _TokenBasedBillingHistoryResponse = _interopRequireDefault(require("../model/TokenBasedBillingHistoryResponse"));
+var _WorkloadBillingHistoryResponse = _interopRequireDefault(require("../model/WorkloadBillingHistoryResponse"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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); }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -42,7 +53,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Billing service.
* @module api/BillingApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var BillingApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -58,180 +69,76 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
}
/**
- * GET: All Thresholds for Organization
- * Retrieve all the notification thresholds for an organization.
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Organizationthresholdsresponse} and HTTP response
+ * Retrieve hourly cost datapoints of a Specific Bucket for a specific billing cycle
+ * User will receive hourly cost datapoints for a Bucket for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+ * @param {Number} bucketId
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelGraphBillingDetailsBucket} and HTTP response
*/
return _createClass(BillingApi, [{
- key: "getAllThresholdsForOrganizationWithHttpInfo",
- value: function getAllThresholdsForOrganizationWithHttpInfo() {
- var postBody = null;
- var pathParams = {};
- var queryParams = {};
- var headerParams = {};
- var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
- var contentTypes = [];
- var accepts = ['application/json'];
- var returnType = _Organizationthresholdsresponse["default"];
- return this.apiClient.callApi('/billing/billing/threshold', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
- }
-
- /**
- * GET: All Thresholds for Organization
- * Retrieve all the notification thresholds for an organization.
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Organizationthresholdsresponse}
- */
- }, {
- key: "getAllThresholdsForOrganization",
- value: function getAllThresholdsForOrganization() {
- return this.getAllThresholdsForOrganizationWithHttpInfo().then(function (response_and_data) {
- return response_and_data.data;
- });
- }
-
- /**
- * GET: Billing usage
- * Retrieve active billing metrics for the organization's resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](https://infrahub-doc.nexgencloud.com/docs/billing-and-payment/billing-features#view-usage-costs-for-all-resources)
- * @param {Object} opts Optional parameters
- * @param {String} [deleted] `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
- * @param {String} [environment] Filter resources by environment ID or Name
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Billingmetricesresponse} and HTTP response
- */
- }, {
- key: "getBillingUsageWithHttpInfo",
- value: function getBillingUsageWithHttpInfo(opts) {
+ key: "bucketsBillingHistoryHourlyChartWithHttpInfo",
+ value: function bucketsBillingHistoryHourlyChartWithHttpInfo(bucketId, opts) {
opts = opts || {};
var postBody = null;
- var pathParams = {};
- var queryParams = {
- 'deleted': opts['deleted'],
- 'environment': opts['environment']
+ // verify the required parameter 'bucketId' is set
+ if (bucketId === undefined || bucketId === null) {
+ throw new Error("Missing the required parameter 'bucketId' when calling bucketsBillingHistoryHourlyChart");
+ }
+ var pathParams = {
+ 'bucket_id': bucketId
};
- var headerParams = {};
- var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
- var contentTypes = [];
- var accepts = ['application/json'];
- var returnType = _Billingmetricesresponse["default"];
- return this.apiClient.callApi('/billing/billing/usage', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
- }
-
- /**
- * GET: Billing usage
- * Retrieve active billing metrics for the organization's resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](https://infrahub-doc.nexgencloud.com/docs/billing-and-payment/billing-features#view-usage-costs-for-all-resources)
- * @param {Object} opts Optional parameters
- * @param {String} opts.deleted `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
- * @param {String} opts.environment Filter resources by environment ID or Name
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Billingmetricesresponse}
- */
- }, {
- key: "getBillingUsage",
- value: function getBillingUsage(opts) {
- return this.getBillingUsageWithHttpInfo(opts).then(function (response_and_data) {
- return response_and_data.data;
- });
- }
-
- /**
- * GET: Last Day Cost
- * Retrieve the previous day's costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/billing-resources/last-day-usage/)
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Lastdaycostresponse} and HTTP response
- */
- }, {
- key: "getLastDayCostWithHttpInfo",
- value: function getLastDayCostWithHttpInfo() {
- var postBody = null;
- var pathParams = {};
- var queryParams = {};
- var headerParams = {};
- var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
- var contentTypes = [];
- var accepts = ['application/json'];
- var returnType = _Lastdaycostresponse["default"];
- return this.apiClient.callApi('/billing/billing/last-day-cost', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
- }
-
- /**
- * GET: Last Day Cost
- * Retrieve the previous day's costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/billing-resources/last-day-usage/)
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Lastdaycostresponse}
- */
- }, {
- key: "getLastDayCost",
- value: function getLastDayCost() {
- return this.getLastDayCostWithHttpInfo().then(function (response_and_data) {
- return response_and_data.data;
- });
- }
-
- /**
- * Retrieve Billing History for a specific Billing Cycle
- * User will recieve billing history for the specified billing cycle. This data will include 'incurred_bill', 'non_discounted_bill', 'vm_cost', 'volume_cost'
- * @param {Object} opts Optional parameters
- * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} [graph] Set this value to \"true\" for getting graph value
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationLevelBillingHistoryResponseModel} and HTTP response
- */
- }, {
- key: "retrieveBillingHistoryForASpecificBillingCycleWithHttpInfo",
- value: function retrieveBillingHistoryForASpecificBillingCycleWithHttpInfo(opts) {
- opts = opts || {};
- var postBody = null;
- var pathParams = {};
var queryParams = {
'start_date': opts['startDate'],
- 'end_date': opts['endDate'],
- 'graph': opts['graph']
+ 'end_date': opts['endDate']
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _OrganizationLevelBillingHistoryResponseModel["default"];
- return this.apiClient.callApi('/billing/billing/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _ResourceLevelGraphBillingDetailsBucket["default"];
+ return this.apiClient.callApi('/billing/billing/history/bucket/{bucket_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve Billing History for a specific Billing Cycle
- * User will recieve billing history for the specified billing cycle. This data will include 'incurred_bill', 'non_discounted_bill', 'vm_cost', 'volume_cost'
+ * Retrieve hourly cost datapoints of a Specific Bucket for a specific billing cycle
+ * User will receive hourly cost datapoints for a Bucket for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+ * @param {Number} bucketId
* @param {Object} opts Optional parameters
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} opts.graph Set this value to \"true\" for getting graph value
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationLevelBillingHistoryResponseModel}
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelGraphBillingDetailsBucket}
*/
}, {
- key: "retrieveBillingHistoryForASpecificBillingCycle",
- value: function retrieveBillingHistoryForASpecificBillingCycle(opts) {
- return this.retrieveBillingHistoryForASpecificBillingCycleWithHttpInfo(opts).then(function (response_and_data) {
+ key: "bucketsBillingHistoryHourlyChart",
+ value: function bucketsBillingHistoryHourlyChart(bucketId, opts) {
+ return this.bucketsBillingHistoryHourlyChartWithHttpInfo(bucketId, opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
- * Retrieve billing history of a specific Snapshot for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
- * @param {Number} snapshotId
+ * Retrieve billing history of a specific Bucket for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
+ * @param {Number} bucketId
* @param {Object} opts Optional parameters
* @param {String} [startDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} [endDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel} and HTTP response
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelBucketBillingDetailsResponseModel} and HTTP response
*/
}, {
- key: "retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo",
- value: function retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo(snapshotId, opts) {
+ key: "getBucketBillingHistoryWithHttpInfo",
+ value: function getBucketBillingHistoryWithHttpInfo(bucketId, opts) {
opts = opts || {};
var postBody = null;
- // verify the required parameter 'snapshotId' is set
- if (snapshotId === undefined || snapshotId === null) {
- throw new Error("Missing the required parameter 'snapshotId' when calling retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle");
+ // verify the required parameter 'bucketId' is set
+ if (bucketId === undefined || bucketId === null) {
+ throw new Error("Missing the required parameter 'bucketId' when calling getBucketBillingHistory");
}
var pathParams = {
- 'snapshot_id': snapshotId
+ 'bucket_id': bucketId
};
var queryParams = {
'start_date': opts['startDate'],
@@ -239,50 +146,50 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _ResourceLevelVolumeBillingDetailsResponseModel["default"];
- return this.apiClient.callApi('/billing/billing/history/snapshot/{snapshot_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _ResourceLevelBucketBillingDetailsResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/history/bucket/{bucket_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
- * Retrieve billing history of a specific Snapshot for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
- * @param {Number} snapshotId
+ * Retrieve billing history of a specific Bucket for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
+ * @param {Number} bucketId
* @param {Object} opts Optional parameters
* @param {String} opts.startDate Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} opts.endDate Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel}
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelBucketBillingDetailsResponseModel}
*/
}, {
- key: "retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle",
- value: function retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle(snapshotId, opts) {
- return this.retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo(snapshotId, opts).then(function (response_and_data) {
+ key: "getBucketBillingHistory",
+ value: function getBucketBillingHistory(bucketId, opts) {
+ return this.getBucketBillingHistoryWithHttpInfo(bucketId, opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
- * User will recieve billing history of a specific Virtual Machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'
- * @param {Number} vmId
+ * Retrieve Billing History of a Specific Cluster for a specific Billing Cycle
+ * User will receive billing history of a specific Cluster for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'.
+ * @param {Number} clusterId
* @param {Object} opts Optional parameters
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVMBillingDetailsResponseModel} and HTTP response
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelClusterBillingDetailsResponseModel} and HTTP response
*/
}, {
- key: "retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo",
- value: function retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo(vmId, opts) {
+ key: "getClusterBillingHistoryWithHttpInfo",
+ value: function getClusterBillingHistoryWithHttpInfo(clusterId, opts) {
opts = opts || {};
var postBody = null;
- // verify the required parameter 'vmId' is set
- if (vmId === undefined || vmId === null) {
- throw new Error("Missing the required parameter 'vmId' when calling retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle");
+ // verify the required parameter 'clusterId' is set
+ if (clusterId === undefined || clusterId === null) {
+ throw new Error("Missing the required parameter 'clusterId' when calling getClusterBillingHistory");
}
var pathParams = {
- 'vm_id': vmId
+ 'cluster_id': clusterId
};
var queryParams = {
'start_date': opts['startDate'],
@@ -290,50 +197,50 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _ResourceLevelVMBillingDetailsResponseModel["default"];
- return this.apiClient.callApi('/billing/billing/history/virtual-machine/{vm_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _ResourceLevelClusterBillingDetailsResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/history/cluster/{cluster_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
- * User will recieve billing history of a specific Virtual Machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'
- * @param {Number} vmId
+ * Retrieve Billing History of a Specific Cluster for a specific Billing Cycle
+ * User will receive billing history of a specific Cluster for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'.
+ * @param {Number} clusterId
* @param {Object} opts Optional parameters
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVMBillingDetailsResponseModel}
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelClusterBillingDetailsResponseModel}
*/
}, {
- key: "retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle",
- value: function retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle(vmId, opts) {
- return this.retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo(vmId, opts).then(function (response_and_data) {
+ key: "getClusterBillingHistory",
+ value: function getClusterBillingHistory(clusterId, opts) {
+ return this.getClusterBillingHistoryWithHttpInfo(clusterId, opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Retrieve Billing History of a Specific Volume for a specific Billing Cycle
- * Retrieve billing history of a specific Volume for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
- * @param {Number} volumeId
+ * Retrieve hourly cost datapoints of a specific Cluster for a specific billing cycle
+ * User will receive hourly cost datapoints for a Cluster for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+ * @param {Number} clusterId
* @param {Object} opts Optional parameters
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel} and HTTP response
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelClusterGraphBillingDetailsResponseModel} and HTTP response
*/
}, {
- key: "retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycleWithHttpInfo",
- value: function retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycleWithHttpInfo(volumeId, opts) {
+ key: "getClusterBillingHistoryGraphWithHttpInfo",
+ value: function getClusterBillingHistoryGraphWithHttpInfo(clusterId, opts) {
opts = opts || {};
var postBody = null;
- // verify the required parameter 'volumeId' is set
- if (volumeId === undefined || volumeId === null) {
- throw new Error("Missing the required parameter 'volumeId' when calling retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle");
+ // verify the required parameter 'clusterId' is set
+ if (clusterId === undefined || clusterId === null) {
+ throw new Error("Missing the required parameter 'clusterId' when calling getClusterBillingHistoryGraph");
}
var pathParams = {
- 'volume_id': volumeId
+ 'cluster_id': clusterId
};
var queryParams = {
'start_date': opts['startDate'],
@@ -341,194 +248,196 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _ResourceLevelVolumeBillingDetailsResponseModel["default"];
- return this.apiClient.callApi('/billing/billing/history/volume/{volume_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _ResourceLevelClusterGraphBillingDetailsResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/history/cluster/{cluster_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve Billing History of a Specific Volume for a specific Billing Cycle
- * Retrieve billing history of a specific Volume for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
- * @param {Number} volumeId
+ * Retrieve hourly cost datapoints of a specific Cluster for a specific billing cycle
+ * User will receive hourly cost datapoints for a Cluster for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+ * @param {Number} clusterId
* @param {Object} opts Optional parameters
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel}
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelClusterGraphBillingDetailsResponseModel}
*/
}, {
- key: "retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle",
- value: function retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle(volumeId, opts) {
- return this.retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycleWithHttpInfo(volumeId, opts).then(function (response_and_data) {
+ key: "getClusterBillingHistoryGraph",
+ value: function getClusterBillingHistoryGraph(clusterId, opts) {
+ return this.getClusterBillingHistoryGraphWithHttpInfo(clusterId, opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Retrieve Billing History of Contract for a specific Billing Cycle
- * User will recieve billing history of contracts for the specified billing cycle. This data will include 'description', gpu_type','infrahub_id', 'status', 'incurred_bill', 'price_per_hour'
+ * Retrieve Billing History of data synthesis for a specific Billing Cycle
+ * User will receive billing history of data_synthesis for the specified billing cycle.
* @param {Object} opts Optional parameters
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} [search] Search by Contract \"Description\" or \"ID\"
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
+ * @param {Number} [perPage] Number of items to return per page
+ * @param {Number} [page] Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TokenBasedBillingHistoryResponse} and HTTP response
*/
}, {
- key: "retrieveBillingHistoryOfContractForASpecificBillingCycleWithHttpInfo",
- value: function retrieveBillingHistoryOfContractForASpecificBillingCycleWithHttpInfo(opts) {
+ key: "getDataSynthesisBillingHistoryWithHttpInfo",
+ value: function getDataSynthesisBillingHistoryWithHttpInfo(opts) {
opts = opts || {};
var postBody = null;
var pathParams = {};
var queryParams = {
'start_date': opts['startDate'],
'end_date': opts['endDate'],
- 'search': opts['search']
+ 'search': opts['search'],
+ 'per_page': opts['perPage'],
+ 'page': opts['page']
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = null;
- return this.apiClient.callApi('/billing/billing/history/contract', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _TokenBasedBillingHistoryResponse["default"];
+ return this.apiClient.callApi('/billing/billing/history/data_synthesis', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve Billing History of Contract for a specific Billing Cycle
- * User will recieve billing history of contracts for the specified billing cycle. This data will include 'description', gpu_type','infrahub_id', 'status', 'incurred_bill', 'price_per_hour'
+ * Retrieve Billing History of data synthesis for a specific Billing Cycle
+ * User will receive billing history of data_synthesis for the specified billing cycle.
* @param {Object} opts Optional parameters
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} opts.search Search by Contract \"Description\" or \"ID\"
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
+ * @param {Number} opts.perPage Number of items to return per page
+ * @param {Number} opts.page Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TokenBasedBillingHistoryResponse}
*/
}, {
- key: "retrieveBillingHistoryOfContractForASpecificBillingCycle",
- value: function retrieveBillingHistoryOfContractForASpecificBillingCycle(opts) {
- return this.retrieveBillingHistoryOfContractForASpecificBillingCycleWithHttpInfo(opts).then(function (response_and_data) {
+ key: "getDataSynthesisBillingHistory",
+ value: function getDataSynthesisBillingHistory(opts) {
+ return this.getDataSynthesisBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Retrieve Billing History of Snapshot for a specific Billing Cycle
- * User will recieve billing history of snapshots for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
+ * Retrieve hourly cost datapoints of a Specific Data Synthesis for a specific
+ * User will receive hourly cost datapoints for a data synthesis job for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
+ * @param {Number} resourceId
* @param {Object} opts Optional parameters
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} [search] Search by Volume \"Name\" or \"ID\"
- * @param {String} [page] Page number
- * @param {String} [perPage] Number of items to return per page
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel} and HTTP response
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DataSynthesisBillingHistoryDetailsResponseSchema} and HTTP response
*/
}, {
- key: "retrieveBillingHistoryOfSnapshotForASpecificBillingCycleWithHttpInfo",
- value: function retrieveBillingHistoryOfSnapshotForASpecificBillingCycleWithHttpInfo(opts) {
+ key: "getDataSynthesisBillingHistoryGraphWithHttpInfo",
+ value: function getDataSynthesisBillingHistoryGraphWithHttpInfo(resourceId, opts) {
opts = opts || {};
var postBody = null;
- var pathParams = {};
+ // verify the required parameter 'resourceId' is set
+ if (resourceId === undefined || resourceId === null) {
+ throw new Error("Missing the required parameter 'resourceId' when calling getDataSynthesisBillingHistoryGraph");
+ }
+ var pathParams = {
+ 'resource_id': resourceId
+ };
var queryParams = {
'start_date': opts['startDate'],
- 'end_date': opts['endDate'],
- 'search': opts['search'],
- 'page': opts['page'],
- 'per_page': opts['perPage']
+ 'end_date': opts['endDate']
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _ResourceLevelVolumeBillingHistoryResponseModel["default"];
- return this.apiClient.callApi('/billing/billing/history/snapshot', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _DataSynthesisBillingHistoryDetailsResponseSchema["default"];
+ return this.apiClient.callApi('/billing/billing/history/data_synthesis/{resource_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve Billing History of Snapshot for a specific Billing Cycle
- * User will recieve billing history of snapshots for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
+ * Retrieve hourly cost datapoints of a Specific Data Synthesis for a specific
+ * User will receive hourly cost datapoints for a data synthesis job for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
+ * @param {Number} resourceId
* @param {Object} opts Optional parameters
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} opts.search Search by Volume \"Name\" or \"ID\"
- * @param {String} opts.page Page number
- * @param {String} opts.perPage Number of items to return per page
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel}
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DataSynthesisBillingHistoryDetailsResponseSchema}
*/
}, {
- key: "retrieveBillingHistoryOfSnapshotForASpecificBillingCycle",
- value: function retrieveBillingHistoryOfSnapshotForASpecificBillingCycle(opts) {
- return this.retrieveBillingHistoryOfSnapshotForASpecificBillingCycleWithHttpInfo(opts).then(function (response_and_data) {
+ key: "getDataSynthesisBillingHistoryGraph",
+ value: function getDataSynthesisBillingHistoryGraph(resourceId, opts) {
+ return this.getDataSynthesisBillingHistoryGraphWithHttpInfo(resourceId, opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Retrieve Billing History of Virtual Machine for a specific Billing Cycle
- * User will recieve billing history of virtual machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
+ * Retrieve billing history for a specific Data Synthesis resource. Includes: 'resource_name', 'infrahub_id', 'base_model', 'base_model_display_name', 'lora_adapter', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'input_tokens', 'output_tokens', 'input_tokens_incurred_bill', 'input_tokens_non_discounted_bill', 'output_tokens_incurred_bill', 'output_tokens_non_discounted_bill'
+ * @param {Number} resourceId
* @param {Object} opts Optional parameters
- * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} [search] Search by Virtual Machine \"Name\" or \"ID\"
- * @param {String} [perPage] Number of items to return per page
- * @param {String} [page] Page number
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVmBillingHistoryResponseModel} and HTTP response
+ * @param {String} [startDate] YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DataSynthesisBillingHistoryDetailsResponseSchema} and HTTP response
*/
}, {
- key: "retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycleWithHttpInfo",
- value: function retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycleWithHttpInfo(opts) {
+ key: "getDataSynthesisHistoryForResourceWithHttpInfo",
+ value: function getDataSynthesisHistoryForResourceWithHttpInfo(resourceId, opts) {
opts = opts || {};
var postBody = null;
- var pathParams = {};
+ // verify the required parameter 'resourceId' is set
+ if (resourceId === undefined || resourceId === null) {
+ throw new Error("Missing the required parameter 'resourceId' when calling getDataSynthesisHistoryForResource");
+ }
+ var pathParams = {
+ 'resource_id': resourceId
+ };
var queryParams = {
'start_date': opts['startDate'],
- 'end_date': opts['endDate'],
- 'search': opts['search'],
- 'per_page': opts['perPage'],
- 'page': opts['page']
+ 'end_date': opts['endDate']
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _ResourceLevelVmBillingHistoryResponseModel["default"];
- return this.apiClient.callApi('/billing/billing/history/virtual-machine', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _DataSynthesisBillingHistoryDetailsResponseSchema["default"];
+ return this.apiClient.callApi('/billing/billing/history/data_synthesis/{resource_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve Billing History of Virtual Machine for a specific Billing Cycle
- * User will recieve billing history of virtual machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
+ * Retrieve billing history for a specific Data Synthesis resource. Includes: 'resource_name', 'infrahub_id', 'base_model', 'base_model_display_name', 'lora_adapter', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'input_tokens', 'output_tokens', 'input_tokens_incurred_bill', 'input_tokens_non_discounted_bill', 'output_tokens_incurred_bill', 'output_tokens_non_discounted_bill'
+ * @param {Number} resourceId
* @param {Object} opts Optional parameters
- * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} opts.search Search by Virtual Machine \"Name\" or \"ID\"
- * @param {String} opts.perPage Number of items to return per page
- * @param {String} opts.page Page number
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVmBillingHistoryResponseModel}
+ * @param {String} opts.startDate YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DataSynthesisBillingHistoryDetailsResponseSchema}
*/
}, {
- key: "retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle",
- value: function retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle(opts) {
- return this.retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycleWithHttpInfo(opts).then(function (response_and_data) {
+ key: "getDataSynthesisHistoryForResource",
+ value: function getDataSynthesisHistoryForResource(resourceId, opts) {
+ return this.getDataSynthesisHistoryForResourceWithHttpInfo(resourceId, opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Retrieve Billing History of Volume for a specific Billing Cycle
- * User will recieve billing history of volumes for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
+ * Retrieve Billing History of model evaluation for a specific Billing Cycle
+ * User will receive billing history of fine_tuning for the specified billing cycle.
* @param {Object} opts Optional parameters
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} [search] Search by Volume \"Name\" or \"ID\"
- * @param {String} [perPage] Number of items to return per page
- * @param {String} [page] Page number
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel} and HTTP response
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
+ * @param {Number} [perPage] Number of items to return per page
+ * @param {Number} [page] Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkloadBillingHistoryResponse} and HTTP response
*/
}, {
- key: "retrieveBillingHistoryOfVolumeForASpecificBillingCycleWithHttpInfo",
- value: function retrieveBillingHistoryOfVolumeForASpecificBillingCycleWithHttpInfo(opts) {
+ key: "getFineTuningBillingHistoryWithHttpInfo",
+ value: function getFineTuningBillingHistoryWithHttpInfo(opts) {
opts = opts || {};
var postBody = null;
var pathParams = {};
@@ -541,52 +450,52 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _ResourceLevelVolumeBillingHistoryResponseModel["default"];
- return this.apiClient.callApi('/billing/billing/history/volume', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _WorkloadBillingHistoryResponse["default"];
+ return this.apiClient.callApi('/billing/billing/history/fine_tuning', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve Billing History of Volume for a specific Billing Cycle
- * User will recieve billing history of volumes for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
+ * Retrieve Billing History of model evaluation for a specific Billing Cycle
+ * User will receive billing history of fine_tuning for the specified billing cycle.
* @param {Object} opts Optional parameters
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} opts.search Search by Volume \"Name\" or \"ID\"
- * @param {String} opts.perPage Number of items to return per page
- * @param {String} opts.page Page number
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel}
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
+ * @param {Number} opts.perPage Number of items to return per page
+ * @param {Number} opts.page Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WorkloadBillingHistoryResponse}
*/
}, {
- key: "retrieveBillingHistoryOfVolumeForASpecificBillingCycle",
- value: function retrieveBillingHistoryOfVolumeForASpecificBillingCycle(opts) {
- return this.retrieveBillingHistoryOfVolumeForASpecificBillingCycleWithHttpInfo(opts).then(function (response_and_data) {
+ key: "getFineTuningBillingHistory",
+ value: function getFineTuningBillingHistory(opts) {
+ return this.getFineTuningBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
- * User will recieve hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- * @param {Number} snapshotId
+ * Retrieve hourly cost datapoints of a Specific Fine Tuning for a specific billing cycle
+ * User will receive hourly cost datapoints for a Fine Tunings for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+ * @param {Number} resourceId
* @param {Object} opts Optional parameters
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel} and HTTP response
*/
}, {
- key: "retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo",
- value: function retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo(snapshotId, opts) {
+ key: "getFineTuningBillingHistoryGraphWithHttpInfo",
+ value: function getFineTuningBillingHistoryGraphWithHttpInfo(resourceId, opts) {
opts = opts || {};
var postBody = null;
- // verify the required parameter 'snapshotId' is set
- if (snapshotId === undefined || snapshotId === null) {
- throw new Error("Missing the required parameter 'snapshotId' when calling retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle");
+ // verify the required parameter 'resourceId' is set
+ if (resourceId === undefined || resourceId === null) {
+ throw new Error("Missing the required parameter 'resourceId' when calling getFineTuningBillingHistoryGraph");
}
var pathParams = {
- 'snapshot_id': snapshotId
+ 'resource_id': resourceId
};
var queryParams = {
'start_date': opts['startDate'],
@@ -594,152 +503,135 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResourceLevelVolumeGraphBillingDetailsResponseModel["default"];
- return this.apiClient.callApi('/billing/billing/history/snapshot/{snapshot_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/billing/billing/history/fine_tuning/{resource_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
- * User will recieve hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- * @param {Number} snapshotId
+ * Retrieve hourly cost datapoints of a Specific Fine Tuning for a specific billing cycle
+ * User will receive hourly cost datapoints for a Fine Tunings for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+ * @param {Number} resourceId
* @param {Object} opts Optional parameters
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel}
*/
}, {
- key: "retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle",
- value: function retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle(snapshotId, opts) {
- return this.retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo(snapshotId, opts).then(function (response_and_data) {
+ key: "getFineTuningBillingHistoryGraph",
+ value: function getFineTuningBillingHistoryGraph(resourceId, opts) {
+ return this.getFineTuningBillingHistoryGraphWithHttpInfo(resourceId, opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
- * User will recieve hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- * @param {Number} vmId
- * @param {Object} opts Optional parameters
- * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVmGraphBillingDetailsResponseModel} and HTTP response
+ * GET: Last Day Cost
+ * Retrieve the previous day's costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](None/docs/api-reference/billing-resources/last-day-usage/)
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/LastDayCostResponse} and HTTP response
*/
}, {
- key: "retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo",
- value: function retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo(vmId, opts) {
- opts = opts || {};
+ key: "getLastDayCostWithHttpInfo",
+ value: function getLastDayCostWithHttpInfo() {
var postBody = null;
- // verify the required parameter 'vmId' is set
- if (vmId === undefined || vmId === null) {
- throw new Error("Missing the required parameter 'vmId' when calling retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle");
- }
- var pathParams = {
- 'vm_id': vmId
- };
- var queryParams = {
- 'start_date': opts['startDate'],
- 'end_date': opts['endDate']
- };
+ var pathParams = {};
+ var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _ResourceLevelVmGraphBillingDetailsResponseModel["default"];
- return this.apiClient.callApi('/billing/billing/history/virtual-machine/{vm_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _LastDayCostResponse["default"];
+ return this.apiClient.callApi('/billing/billing/last-day-cost', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
- * User will recieve hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- * @param {Number} vmId
- * @param {Object} opts Optional parameters
- * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVmGraphBillingDetailsResponseModel}
+ * GET: Last Day Cost
+ * Retrieve the previous day's costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](None/docs/api-reference/billing-resources/last-day-usage/)
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/LastDayCostResponse}
*/
}, {
- key: "retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle",
- value: function retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle(vmId, opts) {
- return this.retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo(vmId, opts).then(function (response_and_data) {
+ key: "getLastDayCost",
+ value: function getLastDayCost() {
+ return this.getLastDayCostWithHttpInfo().then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
- * User will recieve hourly cost datapoints for a Volume for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- * @param {Number} volumeId
+ * Retrieve Billing History of model evaluation for a specific Billing Cycle
+ * User will receive billing history of model_evaluation for the specified billing cycle.
* @param {Object} opts Optional parameters
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel} and HTTP response
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
+ * @param {Number} [perPage] Number of items to return per page
+ * @param {Number} [page] Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TokenBasedBillingHistoryResponse} and HTTP response
*/
}, {
- key: "retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycleWithHttpInfo",
- value: function retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycleWithHttpInfo(volumeId, opts) {
+ key: "getModelEvaluationBillingHistoryWithHttpInfo",
+ value: function getModelEvaluationBillingHistoryWithHttpInfo(opts) {
opts = opts || {};
var postBody = null;
- // verify the required parameter 'volumeId' is set
- if (volumeId === undefined || volumeId === null) {
- throw new Error("Missing the required parameter 'volumeId' when calling retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle");
- }
- var pathParams = {
- 'volume_id': volumeId
- };
+ var pathParams = {};
var queryParams = {
'start_date': opts['startDate'],
- 'end_date': opts['endDate']
+ 'end_date': opts['endDate'],
+ 'search': opts['search'],
+ 'per_page': opts['perPage'],
+ 'page': opts['page']
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _ResourceLevelVolumeGraphBillingDetailsResponseModel["default"];
- return this.apiClient.callApi('/billing/billing/history/volume/{volume_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _TokenBasedBillingHistoryResponse["default"];
+ return this.apiClient.callApi('/billing/billing/history/model_evaluation', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
- * User will recieve hourly cost datapoints for a Volume for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- * @param {Number} volumeId
+ * Retrieve Billing History of model evaluation for a specific Billing Cycle
+ * User will receive billing history of model_evaluation for the specified billing cycle.
* @param {Object} opts Optional parameters
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel}
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
+ * @param {Number} opts.perPage Number of items to return per page
+ * @param {Number} opts.page Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TokenBasedBillingHistoryResponse}
*/
}, {
- key: "retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle",
- value: function retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle(volumeId, opts) {
- return this.retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycleWithHttpInfo(volumeId, opts).then(function (response_and_data) {
+ key: "getModelEvaluationBillingHistory",
+ value: function getModelEvaluationBillingHistory(opts) {
+ return this.getModelEvaluationBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Retrieve Sub-Resources Historical Cost datapoints of a Virtual
- * User will recieve sub-resources historical cost datapoints for a VM sub resources for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. Machine sub resources for a specific billing cycle
- * @param {Number} vmId
+ * Retrieve hourly cost datapoints of a Specific Model Evaluation for a specific
+ * User will receive hourly cost datapoints for a model evaluation for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
+ * @param {Number} resourceId
* @param {Object} opts Optional parameters
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubResourcesGraphResponseModel} and HTTP response
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ModelEvaluationBillingHistoryDetailsResponseSchema} and HTTP response
*/
}, {
- key: "retrieveSubResourcesHistoricalCostDatapointsOfAVirtualWithHttpInfo",
- value: function retrieveSubResourcesHistoricalCostDatapointsOfAVirtualWithHttpInfo(vmId, opts) {
+ key: "getModelEvaluationBillingHistoryGraphWithHttpInfo",
+ value: function getModelEvaluationBillingHistoryGraphWithHttpInfo(resourceId, opts) {
opts = opts || {};
var postBody = null;
- // verify the required parameter 'vmId' is set
- if (vmId === undefined || vmId === null) {
- throw new Error("Missing the required parameter 'vmId' when calling retrieveSubResourcesHistoricalCostDatapointsOfAVirtual");
+ // verify the required parameter 'resourceId' is set
+ if (resourceId === undefined || resourceId === null) {
+ throw new Error("Missing the required parameter 'resourceId' when calling getModelEvaluationBillingHistoryGraph");
}
var pathParams = {
- 'vm_id': vmId
+ 'resource_id': resourceId
};
var queryParams = {
'start_date': opts['startDate'],
@@ -747,26 +639,669 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _SubResourcesGraphResponseModel["default"];
- return this.apiClient.callApi('/billing/billing/virtual-machine/{vm_id}/sub-resource/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _ModelEvaluationBillingHistoryDetailsResponseSchema["default"];
+ return this.apiClient.callApi('/billing/billing/history/model_evaluation/{resource_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve Sub-Resources Historical Cost datapoints of a Virtual
- * User will recieve sub-resources historical cost datapoints for a VM sub resources for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. Machine sub resources for a specific billing cycle
- * @param {Number} vmId
+ * Retrieve hourly cost datapoints of a Specific Model Evaluation for a specific
+ * User will receive hourly cost datapoints for a model evaluation for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
+ * @param {Number} resourceId
* @param {Object} opts Optional parameters
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubResourcesGraphResponseModel}
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ModelEvaluationBillingHistoryDetailsResponseSchema}
*/
}, {
- key: "retrieveSubResourcesHistoricalCostDatapointsOfAVirtual",
- value: function retrieveSubResourcesHistoricalCostDatapointsOfAVirtual(vmId, opts) {
- return this.retrieveSubResourcesHistoricalCostDatapointsOfAVirtualWithHttpInfo(vmId, opts).then(function (response_and_data) {
+ key: "getModelEvaluationBillingHistoryGraph",
+ value: function getModelEvaluationBillingHistoryGraph(resourceId, opts) {
+ return this.getModelEvaluationBillingHistoryGraphWithHttpInfo(resourceId, opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Update: Subscribe or Unsubscribe Notification Threshold
+ * By default, you are subscribed to all the threshold values and you will be receiving the email notification for these default thresholds values. `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails.
+ * @param {Number} thresholdId
+ * @param {module:model/SubscribeOrUnsubscribeUpdatePayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationThresholdUpdateResponse} and HTTP response
+ */
+ }, {
+ key: "getNotificationThresholdWithHttpInfo",
+ value: function getNotificationThresholdWithHttpInfo(thresholdId, payload) {
+ var postBody = payload;
+ // verify the required parameter 'thresholdId' is set
+ if (thresholdId === undefined || thresholdId === null) {
+ throw new Error("Missing the required parameter 'thresholdId' when calling getNotificationThreshold");
+ }
+ // verify the required parameter 'payload' is set
+ if (payload === undefined || payload === null) {
+ throw new Error("Missing the required parameter 'payload' when calling getNotificationThreshold");
+ }
+ var pathParams = {
+ 'threshold_id': thresholdId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = ['application/json'];
+ var accepts = ['application/json'];
+ var returnType = _OrganizationThresholdUpdateResponse["default"];
+ return this.apiClient.callApi('/billing/billing/threshold/{threshold_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Update: Subscribe or Unsubscribe Notification Threshold
+ * By default, you are subscribed to all the threshold values and you will be receiving the email notification for these default thresholds values. `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails.
+ * @param {Number} thresholdId
+ * @param {module:model/SubscribeOrUnsubscribeUpdatePayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationThresholdUpdateResponse}
+ */
+ }, {
+ key: "getNotificationThreshold",
+ value: function getNotificationThreshold(thresholdId, payload) {
+ return this.getNotificationThresholdWithHttpInfo(thresholdId, payload).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve Billing History of a Specific Fine Tuning for a specific Billing Cycle
+ * Retrieve billing history of a specific Fine tuning for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
+ * @param {Number} resourceId
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel} and HTTP response
+ */
+ }, {
+ key: "getResourceFineTuningBillingHistoryWithHttpInfo",
+ value: function getResourceFineTuningBillingHistoryWithHttpInfo(resourceId, opts) {
+ opts = opts || {};
+ var postBody = null;
+ // verify the required parameter 'resourceId' is set
+ if (resourceId === undefined || resourceId === null) {
+ throw new Error("Missing the required parameter 'resourceId' when calling getResourceFineTuningBillingHistory");
+ }
+ var pathParams = {
+ 'resource_id': resourceId
+ };
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ResourceLevelVolumeBillingDetailsResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/history/fine_tuning/{resource_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve Billing History of a Specific Fine Tuning for a specific Billing Cycle
+ * Retrieve billing history of a specific Fine tuning for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
+ * @param {Number} resourceId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel}
+ */
+ }, {
+ key: "getResourceFineTuningBillingHistory",
+ value: function getResourceFineTuningBillingHistory(resourceId, opts) {
+ return this.getResourceFineTuningBillingHistoryWithHttpInfo(resourceId, opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve billing history for a specific Model Evaluation resource. Includes: 'resource_name', 'infrahub_id', 'base_model', 'base_model_display_name', 'lora_adapter', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'input_tokens', 'output_tokens', 'input_tokens_incurred_bill', 'input_tokens_non_discounted_bill', 'output_tokens_incurred_bill', 'output_tokens_non_discounted_bill'
+ * @param {Number} resourceId
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ModelEvaluationBillingHistoryDetailsResponseSchema} and HTTP response
+ */
+ }, {
+ key: "getResourceModelEvaluationBillingHistoryWithHttpInfo",
+ value: function getResourceModelEvaluationBillingHistoryWithHttpInfo(resourceId, opts) {
+ opts = opts || {};
+ var postBody = null;
+ // verify the required parameter 'resourceId' is set
+ if (resourceId === undefined || resourceId === null) {
+ throw new Error("Missing the required parameter 'resourceId' when calling getResourceModelEvaluationBillingHistory");
+ }
+ var pathParams = {
+ 'resource_id': resourceId
+ };
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ModelEvaluationBillingHistoryDetailsResponseSchema["default"];
+ return this.apiClient.callApi('/billing/billing/history/model_evaluation/{resource_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve billing history for a specific Model Evaluation resource. Includes: 'resource_name', 'infrahub_id', 'base_model', 'base_model_display_name', 'lora_adapter', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'input_tokens', 'output_tokens', 'input_tokens_incurred_bill', 'input_tokens_non_discounted_bill', 'output_tokens_incurred_bill', 'output_tokens_non_discounted_bill'
+ * @param {Number} resourceId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ModelEvaluationBillingHistoryDetailsResponseSchema}
+ */
+ }, {
+ key: "getResourceModelEvaluationBillingHistory",
+ value: function getResourceModelEvaluationBillingHistory(resourceId, opts) {
+ return this.getResourceModelEvaluationBillingHistoryWithHttpInfo(resourceId, opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve hourly cost datapoints of a Specific Serverless Inference for a specific
+ * User will receive hourly cost datapoints for a serverless inference for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
+ * @param {Number} resourceId
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ServerlessInferencedBillingHistoryDetailsResponseSchema} and HTTP response
+ */
+ }, {
+ key: "getServerlessInferenceBillingHistoryGraphWithHttpInfo",
+ value: function getServerlessInferenceBillingHistoryGraphWithHttpInfo(resourceId, opts) {
+ opts = opts || {};
+ var postBody = null;
+ // verify the required parameter 'resourceId' is set
+ if (resourceId === undefined || resourceId === null) {
+ throw new Error("Missing the required parameter 'resourceId' when calling getServerlessInferenceBillingHistoryGraph");
+ }
+ var pathParams = {
+ 'resource_id': resourceId
+ };
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ServerlessInferencedBillingHistoryDetailsResponseSchema["default"];
+ return this.apiClient.callApi('/billing/billing/history/serverless_inference/{resource_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve hourly cost datapoints of a Specific Serverless Inference for a specific
+ * User will receive hourly cost datapoints for a serverless inference for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
+ * @param {Number} resourceId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ServerlessInferencedBillingHistoryDetailsResponseSchema}
+ */
+ }, {
+ key: "getServerlessInferenceBillingHistoryGraph",
+ value: function getServerlessInferenceBillingHistoryGraph(resourceId, opts) {
+ return this.getServerlessInferenceBillingHistoryGraphWithHttpInfo(resourceId, opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve billing history for a specific Serverless Inference resource. Includes: 'resource_name', 'infrahub_id', 'base_model', 'base_model_display_name', 'lora_adapter', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'input_tokens', 'output_tokens', 'input_tokens_incurred_bill', 'input_tokens_non_discounted_bill', 'output_tokens_incurred_bill', 'output_tokens_non_discounted_bill'
+ * @param {Number} resourceId
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ServerlessInferencedBillingHistoryDetailsResponseSchema} and HTTP response
+ */
+ }, {
+ key: "getServerlessInferencesBillingHistoryWithHttpInfo",
+ value: function getServerlessInferencesBillingHistoryWithHttpInfo(resourceId, opts) {
+ opts = opts || {};
+ var postBody = null;
+ // verify the required parameter 'resourceId' is set
+ if (resourceId === undefined || resourceId === null) {
+ throw new Error("Missing the required parameter 'resourceId' when calling getServerlessInferencesBillingHistory");
+ }
+ var pathParams = {
+ 'resource_id': resourceId
+ };
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ServerlessInferencedBillingHistoryDetailsResponseSchema["default"];
+ return this.apiClient.callApi('/billing/billing/history/serverless_inference/{resource_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve billing history for a specific Serverless Inference resource. Includes: 'resource_name', 'infrahub_id', 'base_model', 'base_model_display_name', 'lora_adapter', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'input_tokens', 'output_tokens', 'input_tokens_incurred_bill', 'input_tokens_non_discounted_bill', 'output_tokens_incurred_bill', 'output_tokens_non_discounted_bill'
+ * @param {Number} resourceId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ServerlessInferencedBillingHistoryDetailsResponseSchema}
+ */
+ }, {
+ key: "getServerlessInferencesBillingHistory",
+ value: function getServerlessInferencesBillingHistory(resourceId, opts) {
+ return this.getServerlessInferencesBillingHistoryWithHttpInfo(resourceId, opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
+ * Retrieve billing history of a specific Snapshot for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
+ * @param {Number} snapshotId
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel} and HTTP response
+ */
+ }, {
+ key: "getSnapshotBillingHistoryWithHttpInfo",
+ value: function getSnapshotBillingHistoryWithHttpInfo(snapshotId, opts) {
+ opts = opts || {};
+ var postBody = null;
+ // verify the required parameter 'snapshotId' is set
+ if (snapshotId === undefined || snapshotId === null) {
+ throw new Error("Missing the required parameter 'snapshotId' when calling getSnapshotBillingHistory");
+ }
+ var pathParams = {
+ 'snapshot_id': snapshotId
+ };
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ResourceLevelVolumeBillingDetailsResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/history/snapshot/{snapshot_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
+ * Retrieve billing history of a specific Snapshot for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
+ * @param {Number} snapshotId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel}
+ */
+ }, {
+ key: "getSnapshotBillingHistory",
+ value: function getSnapshotBillingHistory(snapshotId, opts) {
+ return this.getSnapshotBillingHistoryWithHttpInfo(snapshotId, opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
+ * User will receive hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+ * @param {Number} snapshotId
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel} and HTTP response
+ */
+ }, {
+ key: "getSnapshotBillingHistoryGraphWithHttpInfo",
+ value: function getSnapshotBillingHistoryGraphWithHttpInfo(snapshotId, opts) {
+ opts = opts || {};
+ var postBody = null;
+ // verify the required parameter 'snapshotId' is set
+ if (snapshotId === undefined || snapshotId === null) {
+ throw new Error("Missing the required parameter 'snapshotId' when calling getSnapshotBillingHistoryGraph");
+ }
+ var pathParams = {
+ 'snapshot_id': snapshotId
+ };
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ResourceLevelVolumeGraphBillingDetailsResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/history/snapshot/{snapshot_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
+ * User will receive hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+ * @param {Number} snapshotId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel}
+ */
+ }, {
+ key: "getSnapshotBillingHistoryGraph",
+ value: function getSnapshotBillingHistoryGraph(snapshotId, opts) {
+ return this.getSnapshotBillingHistoryGraphWithHttpInfo(snapshotId, opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * GET: Billing usage
+ * Retrieve active billing metrics for the organization's resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](None/docs/billing/pricebook/)
+ * @param {Object} opts Optional parameters
+ * @param {String} [deleted] `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
+ * @param {String} [environment] Filter resources by environment ID or Name
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BillingMetricesResponse} and HTTP response
+ */
+ }, {
+ key: "getUsageWithHttpInfo",
+ value: function getUsageWithHttpInfo(opts) {
+ opts = opts || {};
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {
+ 'deleted': opts['deleted'],
+ 'environment': opts['environment']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _BillingMetricesResponse["default"];
+ return this.apiClient.callApi('/billing/billing/usage', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * GET: Billing usage
+ * Retrieve active billing metrics for the organization's resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](None/docs/billing/pricebook/)
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.deleted `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
+ * @param {String} opts.environment Filter resources by environment ID or Name
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BillingMetricesResponse}
+ */
+ }, {
+ key: "getUsage",
+ value: function getUsage(opts) {
+ return this.getUsageWithHttpInfo(opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve Billing History for a specific Billing Cycle
+ * User will receive billing history for the specified billing cycle. This data will include 'incurred_bill', 'non_discounted_bill', 'vm_cost', 'volume_cost'
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [graph] Set this value to \"true\" for getting graph value
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationLevelBillingHistoryResponseModel} and HTTP response
+ */
+ }, {
+ key: "getUserBillingHistoryWithHttpInfo",
+ value: function getUserBillingHistoryWithHttpInfo(opts) {
+ opts = opts || {};
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate'],
+ 'graph': opts['graph']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _OrganizationLevelBillingHistoryResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve Billing History for a specific Billing Cycle
+ * User will receive billing history for the specified billing cycle. This data will include 'incurred_bill', 'non_discounted_bill', 'vm_cost', 'volume_cost'
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.graph Set this value to \"true\" for getting graph value
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationLevelBillingHistoryResponseModel}
+ */
+ }, {
+ key: "getUserBillingHistory",
+ value: function getUserBillingHistory(opts) {
+ return this.getUserBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
+ * User will receive billing history of a specific Virtual Machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'
+ * @param {Number} vmId
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVMBillingDetailsResponseModel} and HTTP response
+ */
+ }, {
+ key: "getVMBillingDetailsWithHttpInfo",
+ value: function getVMBillingDetailsWithHttpInfo(vmId, opts) {
+ opts = opts || {};
+ var postBody = null;
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling getVMBillingDetails");
+ }
+ var pathParams = {
+ 'vm_id': vmId
+ };
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ResourceLevelVMBillingDetailsResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/history/virtual-machine/{vm_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
+ * User will receive billing history of a specific Virtual Machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'
+ * @param {Number} vmId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVMBillingDetailsResponseModel}
+ */
+ }, {
+ key: "getVMBillingDetails",
+ value: function getVMBillingDetails(vmId, opts) {
+ return this.getVMBillingDetailsWithHttpInfo(vmId, opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve VM billing events history
+ * User will receive vm billing events history
+ * @param {Number} vmId
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceBillingEventsHistoryResponse} and HTTP response
+ */
+ }, {
+ key: "getVMBillingEventsWithHttpInfo",
+ value: function getVMBillingEventsWithHttpInfo(vmId, opts) {
+ opts = opts || {};
+ var postBody = null;
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling getVMBillingEvents");
+ }
+ var pathParams = {
+ 'vm_id': vmId
+ };
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ResourceBillingEventsHistoryResponse["default"];
+ return this.apiClient.callApi('/billing/billing/virtual-machine/{vm_id}/billing-events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve VM billing events history
+ * User will receive vm billing events history
+ * @param {Number} vmId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceBillingEventsHistoryResponse}
+ */
+ }, {
+ key: "getVMBillingEvents",
+ value: function getVMBillingEvents(vmId, opts) {
+ return this.getVMBillingEventsWithHttpInfo(vmId, opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
+ * User will receive hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+ * @param {Number} vmId
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVmGraphBillingDetailsResponseModel} and HTTP response
+ */
+ }, {
+ key: "getVMBillingGraphWithHttpInfo",
+ value: function getVMBillingGraphWithHttpInfo(vmId, opts) {
+ opts = opts || {};
+ var postBody = null;
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling getVMBillingGraph");
+ }
+ var pathParams = {
+ 'vm_id': vmId
+ };
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ResourceLevelVmGraphBillingDetailsResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/history/virtual-machine/{vm_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
+ * User will receive hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+ * @param {Number} vmId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVmGraphBillingDetailsResponseModel}
+ */
+ }, {
+ key: "getVMBillingGraph",
+ value: function getVMBillingGraph(vmId, opts) {
+ return this.getVMBillingGraphWithHttpInfo(vmId, opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve Billing History of Virtual Machine for a specific Billing Cycle
+ * User will receive billing history of virtual machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
+ * @param {Number} [perPage] Number of items to return per page
+ * @param {Number} [page] Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVmBillingHistoryResponseModel} and HTTP response
+ */
+ }, {
+ key: "getVMBillingHistoryWithHttpInfo",
+ value: function getVMBillingHistoryWithHttpInfo(opts) {
+ opts = opts || {};
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate'],
+ 'search': opts['search'],
+ 'per_page': opts['perPage'],
+ 'page': opts['page']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ResourceLevelVmBillingHistoryResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/history/virtual-machine', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve Billing History of Virtual Machine for a specific Billing Cycle
+ * User will receive billing history of virtual machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
+ * @param {Number} opts.perPage Number of items to return per page
+ * @param {Number} opts.page Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVmBillingHistoryResponseModel}
+ */
+ }, {
+ key: "getVMBillingHistory",
+ value: function getVMBillingHistory(opts) {
+ return this.getVMBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -781,16 +1316,169 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubResourcesCostsResponseModel} and HTTP response
*/
}, {
- key: "retrieveTotalCostsAndNonDiscountCostsForSubResourcesWithHttpInfo",
- value: function retrieveTotalCostsAndNonDiscountCostsForSubResourcesWithHttpInfo(vmId, opts) {
+ key: "getVMSubResourceCostsWithHttpInfo",
+ value: function getVMSubResourceCostsWithHttpInfo(vmId, opts) {
+ opts = opts || {};
+ var postBody = null;
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling getVMSubResourceCosts");
+ }
+ var pathParams = {
+ 'vm_id': vmId
+ };
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _SubResourcesCostsResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/virtual-machine/{vm_id}/sub-resource', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve Total Costs and Non Discount Costs for Sub Resources
+ * User will get total costs and non_discount costs of sub resources on a specific Virtual Machine for the specified billing cycle. on a Specific VM for the Specified Billing Cycle
+ * @param {Number} vmId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubResourcesCostsResponseModel}
+ */
+ }, {
+ key: "getVMSubResourceCosts",
+ value: function getVMSubResourceCosts(vmId, opts) {
+ return this.getVMSubResourceCostsWithHttpInfo(vmId, opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve Sub-Resources Historical Cost datapoints of a Virtual
+ * User will receive sub-resources historical cost datapoints for a VM sub resources for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. Machine sub resources for a specific billing cycle
+ * @param {Number} vmId
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubResourcesGraphResponseModel} and HTTP response
+ */
+ }, {
+ key: "getVMSubResourceGraphWithHttpInfo",
+ value: function getVMSubResourceGraphWithHttpInfo(vmId, opts) {
+ opts = opts || {};
+ var postBody = null;
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling getVMSubResourceGraph");
+ }
+ var pathParams = {
+ 'vm_id': vmId
+ };
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _SubResourcesGraphResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/virtual-machine/{vm_id}/sub-resource/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve Sub-Resources Historical Cost datapoints of a Virtual
+ * User will receive sub-resources historical cost datapoints for a VM sub resources for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. Machine sub resources for a specific billing cycle
+ * @param {Number} vmId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubResourcesGraphResponseModel}
+ */
+ }, {
+ key: "getVMSubResourceGraph",
+ value: function getVMSubResourceGraph(vmId, opts) {
+ return this.getVMSubResourceGraphWithHttpInfo(vmId, opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve Billing History of a Specific Volume for a specific Billing Cycle
+ * Retrieve billing history of a specific Volume for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
+ * @param {Number} volumeId
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel} and HTTP response
+ */
+ }, {
+ key: "getVolumeBillingDetailsWithHttpInfo",
+ value: function getVolumeBillingDetailsWithHttpInfo(volumeId, opts) {
+ opts = opts || {};
+ var postBody = null;
+ // verify the required parameter 'volumeId' is set
+ if (volumeId === undefined || volumeId === null) {
+ throw new Error("Missing the required parameter 'volumeId' when calling getVolumeBillingDetails");
+ }
+ var pathParams = {
+ 'volume_id': volumeId
+ };
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ResourceLevelVolumeBillingDetailsResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/history/volume/{volume_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve Billing History of a Specific Volume for a specific Billing Cycle
+ * Retrieve billing history of a specific Volume for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
+ * @param {Number} volumeId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel}
+ */
+ }, {
+ key: "getVolumeBillingDetails",
+ value: function getVolumeBillingDetails(volumeId, opts) {
+ return this.getVolumeBillingDetailsWithHttpInfo(volumeId, opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve Volume billing events history
+ * User will receive volume billing events history
+ * @param {Number} volumeId
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceBillingEventsHistoryResponse} and HTTP response
+ */
+ }, {
+ key: "getVolumeBillingEventsWithHttpInfo",
+ value: function getVolumeBillingEventsWithHttpInfo(volumeId, opts) {
opts = opts || {};
var postBody = null;
- // verify the required parameter 'vmId' is set
- if (vmId === undefined || vmId === null) {
- throw new Error("Missing the required parameter 'vmId' when calling retrieveTotalCostsAndNonDiscountCostsForSubResources");
+ // verify the required parameter 'volumeId' is set
+ if (volumeId === undefined || volumeId === null) {
+ throw new Error("Missing the required parameter 'volumeId' when calling getVolumeBillingEvents");
}
var pathParams = {
- 'vm_id': vmId
+ 'volume_id': volumeId
};
var queryParams = {
'start_date': opts['startDate'],
@@ -798,98 +1486,99 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _SubResourcesCostsResponseModel["default"];
- return this.apiClient.callApi('/billing/billing/virtual-machine/{vm_id}/sub-resource', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _ResourceBillingEventsHistoryResponse["default"];
+ return this.apiClient.callApi('/billing/billing/volume/{volume_id}/billing-events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve Total Costs and Non Discount Costs for Sub Resources
- * User will get total costs and non_discount costs of sub resources on a specific Virtual Machine for the specified billing cycle. on a Specific VM for the Specified Billing Cycle
- * @param {Number} vmId
+ * Retrieve Volume billing events history
+ * User will receive volume billing events history
+ * @param {Number} volumeId
* @param {Object} opts Optional parameters
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubResourcesCostsResponseModel}
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceBillingEventsHistoryResponse}
*/
}, {
- key: "retrieveTotalCostsAndNonDiscountCostsForSubResources",
- value: function retrieveTotalCostsAndNonDiscountCostsForSubResources(vmId, opts) {
- return this.retrieveTotalCostsAndNonDiscountCostsForSubResourcesWithHttpInfo(vmId, opts).then(function (response_and_data) {
+ key: "getVolumeBillingEvents",
+ value: function getVolumeBillingEvents(volumeId, opts) {
+ return this.getVolumeBillingEventsWithHttpInfo(volumeId, opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Retrieve VM billing events history
- * User will receive vm billing events history
- * @param {Number} vmId
+ * Retrieve Billing History of Volume for a specific Billing Cycle
+ * User will receive billing history of volumes for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
* @param {Object} opts Optional parameters
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceBillingEventsHistoryResponse} and HTTP response
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
+ * @param {Number} [perPage] Number of items to return per page
+ * @param {Number} [page] Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel} and HTTP response
*/
}, {
- key: "retrieveVmBillingEventsHistoryWithHttpInfo",
- value: function retrieveVmBillingEventsHistoryWithHttpInfo(vmId, opts) {
+ key: "getVolumeBillingHistoryWithHttpInfo",
+ value: function getVolumeBillingHistoryWithHttpInfo(opts) {
opts = opts || {};
var postBody = null;
- // verify the required parameter 'vmId' is set
- if (vmId === undefined || vmId === null) {
- throw new Error("Missing the required parameter 'vmId' when calling retrieveVmBillingEventsHistory");
- }
- var pathParams = {
- 'vm_id': vmId
- };
+ var pathParams = {};
var queryParams = {
'start_date': opts['startDate'],
- 'end_date': opts['endDate']
+ 'end_date': opts['endDate'],
+ 'search': opts['search'],
+ 'per_page': opts['perPage'],
+ 'page': opts['page']
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _ResourceBillingEventsHistoryResponse["default"];
- return this.apiClient.callApi('/billing/billing/virtual-machine/{vm_id}/billing-events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _ResourceLevelVolumeBillingHistoryResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/history/volume', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve VM billing events history
- * User will receive vm billing events history
- * @param {Number} vmId
+ * Retrieve Billing History of Volume for a specific Billing Cycle
+ * User will receive billing history of volumes for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
* @param {Object} opts Optional parameters
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceBillingEventsHistoryResponse}
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
+ * @param {Number} opts.perPage Number of items to return per page
+ * @param {Number} opts.page Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel}
*/
}, {
- key: "retrieveVmBillingEventsHistory",
- value: function retrieveVmBillingEventsHistory(vmId, opts) {
- return this.retrieveVmBillingEventsHistoryWithHttpInfo(vmId, opts).then(function (response_and_data) {
+ key: "getVolumeBillingHistory",
+ value: function getVolumeBillingHistory(opts) {
+ return this.getVolumeBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Retrieve Volume billing events history
- * User will receive volume billing events history
+ * Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
+ * User will receive hourly cost datapoints for a Volume for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
* @param {Number} volumeId
* @param {Object} opts Optional parameters
* @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceBillingEventsHistoryResponse} and HTTP response
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel} and HTTP response
*/
}, {
- key: "retrieveVolumeBillingEventsHistoryWithHttpInfo",
- value: function retrieveVolumeBillingEventsHistoryWithHttpInfo(volumeId, opts) {
+ key: "getVolumeBillingHistoryGraphWithHttpInfo",
+ value: function getVolumeBillingHistoryGraphWithHttpInfo(volumeId, opts) {
opts = opts || {};
var postBody = null;
// verify the required parameter 'volumeId' is set
if (volumeId === undefined || volumeId === null) {
- throw new Error("Missing the required parameter 'volumeId' when calling retrieveVolumeBillingEventsHistory");
+ throw new Error("Missing the required parameter 'volumeId' when calling getVolumeBillingHistoryGraph");
}
var pathParams = {
'volume_id': volumeId
@@ -900,73 +1589,313 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _ResourceBillingEventsHistoryResponse["default"];
- return this.apiClient.callApi('/billing/billing/volume/{volume_id}/billing-events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _ResourceLevelVolumeGraphBillingDetailsResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/history/volume/{volume_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve Volume billing events history
- * User will receive volume billing events history
+ * Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
+ * User will receive hourly cost datapoints for a Volume for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
* @param {Number} volumeId
* @param {Object} opts Optional parameters
* @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
* @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceBillingEventsHistoryResponse}
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel}
*/
}, {
- key: "retrieveVolumeBillingEventsHistory",
- value: function retrieveVolumeBillingEventsHistory(volumeId, opts) {
- return this.retrieveVolumeBillingEventsHistoryWithHttpInfo(volumeId, opts).then(function (response_and_data) {
+ key: "getVolumeBillingHistoryGraph",
+ value: function getVolumeBillingHistoryGraph(volumeId, opts) {
+ return this.getVolumeBillingHistoryGraphWithHttpInfo(volumeId, opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Update: Subscribe or Unsubscribe Notification Threshold
- * By default, you are subscribed to all the threshold values and you will be receiving the email notification for these default thresholds values. `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails.
- * @param {Number} thresholdId
- * @param {module:model/Subscribeorunsubscribeupdatepayload} payload
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Organizationthresholdupdateresponse} and HTTP response
+ * Retrieve Billing History of Contract for a specific Billing Cycle
+ * User will receive billing history of contracts for the specified billing cycle. This data will include 'description', gpu_type','infrahub_id', 'status', 'incurred_bill', 'price_per_hour'
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [search] Search by Contract \"Description\" or \"ID\"
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
}, {
- key: "updateSubscribeOrUnsubscribeNotificationThresholdWithHttpInfo",
- value: function updateSubscribeOrUnsubscribeNotificationThresholdWithHttpInfo(thresholdId, payload) {
- var postBody = payload;
- // verify the required parameter 'thresholdId' is set
- if (thresholdId === undefined || thresholdId === null) {
- throw new Error("Missing the required parameter 'thresholdId' when calling updateSubscribeOrUnsubscribeNotificationThreshold");
- }
- // verify the required parameter 'payload' is set
- if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling updateSubscribeOrUnsubscribeNotificationThreshold");
- }
- var pathParams = {
- 'threshold_id': thresholdId
+ key: "listBillingContractHistoryWithHttpInfo",
+ value: function listBillingContractHistoryWithHttpInfo(opts) {
+ opts = opts || {};
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate'],
+ 'search': opts['search']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = null;
+ return this.apiClient.callApi('/billing/billing/history/contract', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve Billing History of Contract for a specific Billing Cycle
+ * User will receive billing history of contracts for the specified billing cycle. This data will include 'description', gpu_type','infrahub_id', 'status', 'incurred_bill', 'price_per_hour'
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.search Search by Contract \"Description\" or \"ID\"
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
+ */
+ }, {
+ key: "listBillingContractHistory",
+ value: function listBillingContractHistory(opts) {
+ return this.listBillingContractHistoryWithHttpInfo(opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve Billing History of a Bucket for a specific Billing Cycle
+ * User will receive billing history of buckets for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
+ * @param {Number} [perPage] Number of items to return per page
+ * @param {Number} [page] Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelBucketBillingHistoryResponseModel} and HTTP response
+ */
+ }, {
+ key: "listBucketBillingHistoryWithHttpInfo",
+ value: function listBucketBillingHistoryWithHttpInfo(opts) {
+ opts = opts || {};
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate'],
+ 'search': opts['search'],
+ 'per_page': opts['perPage'],
+ 'page': opts['page']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ResourceLevelBucketBillingHistoryResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/history/bucket', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve Billing History of a Bucket for a specific Billing Cycle
+ * User will receive billing history of buckets for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
+ * @param {Number} opts.perPage Number of items to return per page
+ * @param {Number} opts.page Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelBucketBillingHistoryResponseModel}
+ */
+ }, {
+ key: "listBucketBillingHistory",
+ value: function listBucketBillingHistory(opts) {
+ return this.listBucketBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve Billing History of Clusters for a specific Billing Cycle
+ * User will receive billing history of clusters for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
+ * @param {Number} [perPage] Number of items to return per page
+ * @param {Number} [page] Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelClusterBillingHistoryResponseModel} and HTTP response
+ */
+ }, {
+ key: "listClustersBillingHistoryWithHttpInfo",
+ value: function listClustersBillingHistoryWithHttpInfo(opts) {
+ opts = opts || {};
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate'],
+ 'search': opts['search'],
+ 'per_page': opts['perPage'],
+ 'page': opts['page']
};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ResourceLevelClusterBillingHistoryResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/history/cluster', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve Billing History of Clusters for a specific Billing Cycle
+ * User will receive billing history of clusters for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
+ * @param {Number} opts.perPage Number of items to return per page
+ * @param {Number} opts.page Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelClusterBillingHistoryResponseModel}
+ */
+ }, {
+ key: "listClustersBillingHistory",
+ value: function listClustersBillingHistory(opts) {
+ return this.listClustersBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * GET: All Thresholds for Organization
+ * Retrieve all the notification thresholds for an organization.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationThresholdsResponse} and HTTP response
+ */
+ }, {
+ key: "listOrgNotificationThresholdsWithHttpInfo",
+ value: function listOrgNotificationThresholdsWithHttpInfo() {
+ var postBody = null;
+ var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
- var contentTypes = ['application/json'];
+ var authNames = ['apiKey'];
+ var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _Organizationthresholdupdateresponse["default"];
- return this.apiClient.callApi('/billing/billing/threshold/{threshold_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _OrganizationThresholdsResponse["default"];
+ return this.apiClient.callApi('/billing/billing/threshold', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Update: Subscribe or Unsubscribe Notification Threshold
- * By default, you are subscribed to all the threshold values and you will be receiving the email notification for these default thresholds values. `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails.
- * @param {Number} thresholdId
- * @param {module:model/Subscribeorunsubscribeupdatepayload} payload
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Organizationthresholdupdateresponse}
+ * GET: All Thresholds for Organization
+ * Retrieve all the notification thresholds for an organization.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationThresholdsResponse}
+ */
+ }, {
+ key: "listOrgNotificationThresholds",
+ value: function listOrgNotificationThresholds() {
+ return this.listOrgNotificationThresholdsWithHttpInfo().then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve Billing History of serverless inference for a specific Billing Cycle
+ * User will receive billing history of serverless_inference for the specified billing cycle.
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
+ * @param {Number} [perPage] Number of items to return per page
+ * @param {Number} [page] Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TokenBasedBillingHistoryResponse} and HTTP response
+ */
+ }, {
+ key: "listServerlessInferenceBillingHistoryWithHttpInfo",
+ value: function listServerlessInferenceBillingHistoryWithHttpInfo(opts) {
+ opts = opts || {};
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate'],
+ 'search': opts['search'],
+ 'per_page': opts['perPage'],
+ 'page': opts['page']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _TokenBasedBillingHistoryResponse["default"];
+ return this.apiClient.callApi('/billing/billing/history/serverless_inference', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve Billing History of serverless inference for a specific Billing Cycle
+ * User will receive billing history of serverless_inference for the specified billing cycle.
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
+ * @param {Number} opts.perPage Number of items to return per page
+ * @param {Number} opts.page Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TokenBasedBillingHistoryResponse}
+ */
+ }, {
+ key: "listServerlessInferenceBillingHistory",
+ value: function listServerlessInferenceBillingHistory(opts) {
+ return this.listServerlessInferenceBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve Billing History of Snapshot for a specific Billing Cycle
+ * User will receive billing history of snapshots for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
+ * @param {Object} opts Optional parameters
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
+ * @param {Number} [perPage] Number of items to return per page
+ * @param {Number} [page] Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel} and HTTP response
+ */
+ }, {
+ key: "listSnapshotBillingHistoryWithHttpInfo",
+ value: function listSnapshotBillingHistoryWithHttpInfo(opts) {
+ opts = opts || {};
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate'],
+ 'search': opts['search'],
+ 'per_page': opts['perPage'],
+ 'page': opts['page']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ResourceLevelVolumeBillingHistoryResponseModel["default"];
+ return this.apiClient.callApi('/billing/billing/history/snapshot', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve Billing History of Snapshot for a specific Billing Cycle
+ * User will receive billing history of snapshots for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
+ * @param {Number} opts.perPage Number of items to return per page
+ * @param {Number} opts.page Page number
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel}
*/
}, {
- key: "updateSubscribeOrUnsubscribeNotificationThreshold",
- value: function updateSubscribeOrUnsubscribeNotificationThreshold(thresholdId, payload) {
- return this.updateSubscribeOrUnsubscribeNotificationThresholdWithHttpInfo(thresholdId, payload).then(function (response_and_data) {
+ key: "listSnapshotBillingHistory",
+ value: function listSnapshotBillingHistory(opts) {
+ return this.listSnapshotBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/BucketsApi.js b/dist/api/BucketsApi.js
new file mode 100644
index 00000000..ab737d30
--- /dev/null
+++ b/dist/api/BucketsApi.js
@@ -0,0 +1,180 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _ObjectStorageBucketListResponse = _interopRequireDefault(require("../model/ObjectStorageBucketListResponse"));
+var _ObjectStorageBucketResponse = _interopRequireDefault(require("../model/ObjectStorageBucketResponse"));
+var _ObjectStorageDeleteResponse = _interopRequireDefault(require("../model/ObjectStorageDeleteResponse"));
+var _ObjectStorageErrorResponse = _interopRequireDefault(require("../model/ObjectStorageErrorResponse"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+* Buckets service.
+* @module api/BucketsApi
+* @version v1.51.1-alpha
+*/
+var BucketsApi = exports["default"] = /*#__PURE__*/function () {
+ /**
+ * Constructs a new BucketsApi.
+ * @alias module:api/BucketsApi
+ * @class
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
+ * default to {@link module:ApiClient#instance} if unspecified.
+ */
+ function BucketsApi(apiClient) {
+ _classCallCheck(this, BucketsApi);
+ this.apiClient = apiClient || _ApiClient["default"].instance;
+ }
+
+ /**
+ * Delete a bucket
+ * @param {String} bucketName
+ * @param {String} region
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ObjectStorageDeleteResponse} and HTTP response
+ */
+ return _createClass(BucketsApi, [{
+ key: "deleteBucketEndpointWithHttpInfo",
+ value: function deleteBucketEndpointWithHttpInfo(bucketName, region) {
+ var postBody = null;
+ // verify the required parameter 'bucketName' is set
+ if (bucketName === undefined || bucketName === null) {
+ throw new Error("Missing the required parameter 'bucketName' when calling deleteBucketEndpoint");
+ }
+ // verify the required parameter 'region' is set
+ if (region === undefined || region === null) {
+ throw new Error("Missing the required parameter 'region' when calling deleteBucketEndpoint");
+ }
+ var pathParams = {
+ 'bucket_name': bucketName
+ };
+ var queryParams = {
+ 'region': region
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ObjectStorageDeleteResponse["default"];
+ return this.apiClient.callApi('/object-storage/buckets/{bucket_name}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Delete a bucket
+ * @param {String} bucketName
+ * @param {String} region
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ObjectStorageDeleteResponse}
+ */
+ }, {
+ key: "deleteBucketEndpoint",
+ value: function deleteBucketEndpoint(bucketName, region) {
+ return this.deleteBucketEndpointWithHttpInfo(bucketName, region).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * List buckets
+ * @param {Object} opts Optional parameters
+ * @param {String} [search]
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ObjectStorageBucketListResponse} and HTTP response
+ */
+ }, {
+ key: "listBucketsEndpointWithHttpInfo",
+ value: function listBucketsEndpointWithHttpInfo(opts) {
+ opts = opts || {};
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {
+ 'search': opts['search']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ObjectStorageBucketListResponse["default"];
+ return this.apiClient.callApi('/object-storage/buckets', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * List buckets
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.search
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ObjectStorageBucketListResponse}
+ */
+ }, {
+ key: "listBucketsEndpoint",
+ value: function listBucketsEndpoint(opts) {
+ return this.listBucketsEndpointWithHttpInfo(opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve a bucket
+ * @param {String} bucketName
+ * @param {String} region
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ObjectStorageBucketResponse} and HTTP response
+ */
+ }, {
+ key: "retrieveBucketEndpointWithHttpInfo",
+ value: function retrieveBucketEndpointWithHttpInfo(bucketName, region) {
+ var postBody = null;
+ // verify the required parameter 'bucketName' is set
+ if (bucketName === undefined || bucketName === null) {
+ throw new Error("Missing the required parameter 'bucketName' when calling retrieveBucketEndpoint");
+ }
+ // verify the required parameter 'region' is set
+ if (region === undefined || region === null) {
+ throw new Error("Missing the required parameter 'region' when calling retrieveBucketEndpoint");
+ }
+ var pathParams = {
+ 'bucket_name': bucketName
+ };
+ var queryParams = {
+ 'region': region
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ObjectStorageBucketResponse["default"];
+ return this.apiClient.callApi('/object-storage/buckets/{bucket_name}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve a bucket
+ * @param {String} bucketName
+ * @param {String} region
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ObjectStorageBucketResponse}
+ */
+ }, {
+ key: "retrieveBucketEndpoint",
+ value: function retrieveBucketEndpoint(bucketName, region) {
+ return this.retrieveBucketEndpointWithHttpInfo(bucketName, region).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+ }]);
+}();
\ No newline at end of file
diff --git a/dist/api/CalculateApi.js b/dist/api/CalculateApi.js
index 0acd9606..a0d313cc 100644
--- a/dist/api/CalculateApi.js
+++ b/dist/api/CalculateApi.js
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Calculate service.
* @module api/CalculateApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var CalculateApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -51,16 +51,16 @@ var CalculateApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceBillingResponseForCustomer} and HTTP response
*/
return _createClass(CalculateApi, [{
- key: "retrieveBillingRateForResourceWithHttpInfo",
- value: function retrieveBillingRateForResourceWithHttpInfo(resourceType, id) {
+ key: "calculateResourceBillingRateWithHttpInfo",
+ value: function calculateResourceBillingRateWithHttpInfo(resourceType, id) {
var postBody = null;
// verify the required parameter 'resourceType' is set
if (resourceType === undefined || resourceType === null) {
- throw new Error("Missing the required parameter 'resourceType' when calling retrieveBillingRateForResource");
+ throw new Error("Missing the required parameter 'resourceType' when calling calculateResourceBillingRate");
}
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling retrieveBillingRateForResource");
+ throw new Error("Missing the required parameter 'id' when calling calculateResourceBillingRate");
}
var pathParams = {
'resource_type': resourceType,
@@ -69,7 +69,7 @@ var CalculateApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResourceBillingResponseForCustomer["default"];
@@ -84,9 +84,9 @@ var CalculateApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceBillingResponseForCustomer}
*/
}, {
- key: "retrieveBillingRateForResource",
- value: function retrieveBillingRateForResource(resourceType, id) {
- return this.retrieveBillingRateForResourceWithHttpInfo(resourceType, id).then(function (response_and_data) {
+ key: "calculateResourceBillingRate",
+ value: function calculateResourceBillingRate(resourceType, id) {
+ return this.calculateResourceBillingRateWithHttpInfo(resourceType, id).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/CallbacksApi.js b/dist/api/CallbacksApi.js
index 9ae75a5e..968fc375 100644
--- a/dist/api/CallbacksApi.js
+++ b/dist/api/CallbacksApi.js
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Callbacks service.
* @module api/CallbacksApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var CallbacksApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -47,270 +47,270 @@ var CallbacksApi = exports["default"] = /*#__PURE__*/function () {
/**
* Attach callback to virtual machine
- * Creates a callback URL for a specified virtual machine, enabling the posting of action events executed on the virtual machine to the specified URL. Provide the callback URL in the request body and the ID of the virtual machine to which it is being attached in the path. For more details on virtual machine callback URLs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/webhooks-callbacks#attach-a-callback-url-to-an-existing-virtual-machine).
- * @param {Number} id
+ * Creates a callback URL for a specified virtual machine, enabling the posting of action events executed on the virtual machine to the specified URL. Provide the callback URL in the request body and the ID of the virtual machine to which it is being attached in the path. For more details on virtual machine callback URLs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/attach-callback-vm).
+ * @param {Number} vmId
* @param {module:model/AttachCallbackPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AttachCallbackResponse} and HTTP response
*/
return _createClass(CallbacksApi, [{
- key: "attachCallbackToVirtualMachineWithHttpInfo",
- value: function attachCallbackToVirtualMachineWithHttpInfo(id, payload) {
+ key: "attachCallbackToVMWithHttpInfo",
+ value: function attachCallbackToVMWithHttpInfo(vmId, payload) {
var postBody = payload;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling attachCallbackToVirtualMachine");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling attachCallbackToVM");
}
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling attachCallbackToVirtualMachine");
+ throw new Error("Missing the required parameter 'payload' when calling attachCallbackToVM");
}
var pathParams = {
- 'id': id
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _AttachCallbackResponse["default"];
- return this.apiClient.callApi('/core/virtual-machines/{id}/attach-callback', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/attach-callback', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Attach callback to virtual machine
- * Creates a callback URL for a specified virtual machine, enabling the posting of action events executed on the virtual machine to the specified URL. Provide the callback URL in the request body and the ID of the virtual machine to which it is being attached in the path. For more details on virtual machine callback URLs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/webhooks-callbacks#attach-a-callback-url-to-an-existing-virtual-machine).
- * @param {Number} id
+ * Creates a callback URL for a specified virtual machine, enabling the posting of action events executed on the virtual machine to the specified URL. Provide the callback URL in the request body and the ID of the virtual machine to which it is being attached in the path. For more details on virtual machine callback URLs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/attach-callback-vm).
+ * @param {Number} vmId
* @param {module:model/AttachCallbackPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AttachCallbackResponse}
*/
}, {
- key: "attachCallbackToVirtualMachine",
- value: function attachCallbackToVirtualMachine(id, payload) {
- return this.attachCallbackToVirtualMachineWithHttpInfo(id, payload).then(function (response_and_data) {
+ key: "attachCallbackToVM",
+ value: function attachCallbackToVM(vmId, payload) {
+ return this.attachCallbackToVMWithHttpInfo(vmId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Attach callback to volume
- * Creates a callback URL for a specified volume, enabling the posting of action events executed on the volume to the specified URL. Provide the callback URL in the request body and the ID of the volume to which it is being attached in the path. For more details on volume callback URLs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/webhooks-callbacks).
- * @param {Number} id
+ * Creates a callback URL for a specified volume, enabling the posting of action events executed on the volume to the specified URL. Provide the callback URL in the request body and the ID of the volume to which it is being attached in the path. For more details on volume callback URLs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/volumes/volume-callbacks/attach-callback-volume).
+ * @param {Number} volumeId
* @param {module:model/AttachCallbackPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AttachCallbackResponse} and HTTP response
*/
}, {
key: "attachCallbackToVolumeWithHttpInfo",
- value: function attachCallbackToVolumeWithHttpInfo(id, payload) {
+ value: function attachCallbackToVolumeWithHttpInfo(volumeId, payload) {
var postBody = payload;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling attachCallbackToVolume");
+ // verify the required parameter 'volumeId' is set
+ if (volumeId === undefined || volumeId === null) {
+ throw new Error("Missing the required parameter 'volumeId' when calling attachCallbackToVolume");
}
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
throw new Error("Missing the required parameter 'payload' when calling attachCallbackToVolume");
}
var pathParams = {
- 'id': id
+ 'volume_id': volumeId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _AttachCallbackResponse["default"];
- return this.apiClient.callApi('/core/volumes/{id}/attach-callback', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/volumes/{volume_id}/attach-callback', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Attach callback to volume
- * Creates a callback URL for a specified volume, enabling the posting of action events executed on the volume to the specified URL. Provide the callback URL in the request body and the ID of the volume to which it is being attached in the path. For more details on volume callback URLs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/webhooks-callbacks).
- * @param {Number} id
+ * Creates a callback URL for a specified volume, enabling the posting of action events executed on the volume to the specified URL. Provide the callback URL in the request body and the ID of the volume to which it is being attached in the path. For more details on volume callback URLs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/volumes/volume-callbacks/attach-callback-volume).
+ * @param {Number} volumeId
* @param {module:model/AttachCallbackPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AttachCallbackResponse}
*/
}, {
key: "attachCallbackToVolume",
- value: function attachCallbackToVolume(id, payload) {
- return this.attachCallbackToVolumeWithHttpInfo(id, payload).then(function (response_and_data) {
+ value: function attachCallbackToVolume(volumeId, payload) {
+ return this.attachCallbackToVolumeWithHttpInfo(volumeId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Delete virtual machine callback
- * Permanently deletes the callback URL associated with a specified virtual machine by providing the virtual machine ID in the request path. For additional information on virtual machine callback URLs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/webhooks-callbacks).
- * @param {Number} id
+ * Permanently deletes the callback URL associated with a specified virtual machine by providing the virtual machine ID in the request path. For additional information on virtual machine callback URLs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/delete-callback-vm).
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
- key: "deleteVirtualMachineCallbackWithHttpInfo",
- value: function deleteVirtualMachineCallbackWithHttpInfo(id) {
+ key: "deleteVMCallbackWithHttpInfo",
+ value: function deleteVMCallbackWithHttpInfo(vmId) {
var postBody = null;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling deleteVirtualMachineCallback");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling deleteVMCallback");
}
var pathParams = {
- 'id': id
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
- return this.apiClient.callApi('/core/virtual-machines/{id}/delete-callback', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/delete-callback', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Delete virtual machine callback
- * Permanently deletes the callback URL associated with a specified virtual machine by providing the virtual machine ID in the request path. For additional information on virtual machine callback URLs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/webhooks-callbacks).
- * @param {Number} id
+ * Permanently deletes the callback URL associated with a specified virtual machine by providing the virtual machine ID in the request path. For additional information on virtual machine callback URLs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/delete-callback-vm).
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "deleteVirtualMachineCallback",
- value: function deleteVirtualMachineCallback(id) {
- return this.deleteVirtualMachineCallbackWithHttpInfo(id).then(function (response_and_data) {
+ key: "deleteVMCallback",
+ value: function deleteVMCallback(vmId) {
+ return this.deleteVMCallbackWithHttpInfo(vmId).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Delete volume callback
- * Permanently deletes the callback URL associated with a specified volume by providing the volume ID in the request path. For additional information on volume callback URLs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/webhooks-callbacks).
- * @param {Number} id
+ * Permanently deletes the callback URL associated with a specified volume by providing the volume ID in the request path. For additional information on volume callback URLs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/volumes/volume-callbacks/delete-callback-volume).
+ * @param {Number} volumeId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
key: "deleteVolumeCallbackWithHttpInfo",
- value: function deleteVolumeCallbackWithHttpInfo(id) {
+ value: function deleteVolumeCallbackWithHttpInfo(volumeId) {
var postBody = null;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling deleteVolumeCallback");
+ // verify the required parameter 'volumeId' is set
+ if (volumeId === undefined || volumeId === null) {
+ throw new Error("Missing the required parameter 'volumeId' when calling deleteVolumeCallback");
}
var pathParams = {
- 'id': id
+ 'volume_id': volumeId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
- return this.apiClient.callApi('/core/volumes/{id}/delete-callback', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/volumes/{volume_id}/delete-callback', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Delete volume callback
- * Permanently deletes the callback URL associated with a specified volume by providing the volume ID in the request path. For additional information on volume callback URLs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/webhooks-callbacks).
- * @param {Number} id
+ * Permanently deletes the callback URL associated with a specified volume by providing the volume ID in the request path. For additional information on volume callback URLs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/volumes/volume-callbacks/delete-callback-volume).
+ * @param {Number} volumeId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
key: "deleteVolumeCallback",
- value: function deleteVolumeCallback(id) {
- return this.deleteVolumeCallbackWithHttpInfo(id).then(function (response_and_data) {
+ value: function deleteVolumeCallback(volumeId) {
+ return this.deleteVolumeCallbackWithHttpInfo(volumeId).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Update virtual machine callback
- * Updates the callback URL for a specified virtual machine. Provide the new callback URL in the request body, along with the ID of the associated virtual machine in the path. For additional information on virtual machine callback URLs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/webhooks-callbacks).
- * @param {Number} id
+ * Updates the callback URL for a specified virtual machine. Provide the new callback URL in the request body, along with the ID of the associated virtual machine in the path. For additional information on virtual machine callback URLs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms).
+ * @param {Number} vmId
* @param {module:model/AttachCallbackPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AttachCallbackResponse} and HTTP response
*/
}, {
- key: "updateVirtualMachineCallbackWithHttpInfo",
- value: function updateVirtualMachineCallbackWithHttpInfo(id, payload) {
+ key: "updateVMCallbackWithHttpInfo",
+ value: function updateVMCallbackWithHttpInfo(vmId, payload) {
var postBody = payload;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling updateVirtualMachineCallback");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling updateVMCallback");
}
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling updateVirtualMachineCallback");
+ throw new Error("Missing the required parameter 'payload' when calling updateVMCallback");
}
var pathParams = {
- 'id': id
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _AttachCallbackResponse["default"];
- return this.apiClient.callApi('/core/virtual-machines/{id}/update-callback', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/update-callback', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Update virtual machine callback
- * Updates the callback URL for a specified virtual machine. Provide the new callback URL in the request body, along with the ID of the associated virtual machine in the path. For additional information on virtual machine callback URLs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/webhooks-callbacks).
- * @param {Number} id
+ * Updates the callback URL for a specified virtual machine. Provide the new callback URL in the request body, along with the ID of the associated virtual machine in the path. For additional information on virtual machine callback URLs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms).
+ * @param {Number} vmId
* @param {module:model/AttachCallbackPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AttachCallbackResponse}
*/
}, {
- key: "updateVirtualMachineCallback",
- value: function updateVirtualMachineCallback(id, payload) {
- return this.updateVirtualMachineCallbackWithHttpInfo(id, payload).then(function (response_and_data) {
+ key: "updateVMCallback",
+ value: function updateVMCallback(vmId, payload) {
+ return this.updateVMCallbackWithHttpInfo(vmId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Update volume callback
- * Updates the callback URL for a specified volume. Provide the new callback URL in the request body, along with the ID of the associated volume in the path. For additional information on volume callback URLs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/webhooks-callbacks).
- * @param {Number} id
+ * Updates the callback URL for a specified volume. Provide the new callback URL in the request body, along with the ID of the associated volume in the path. For additional information on volume callback URLs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/volumes/volume-callbacks/update-callback-volume/).
+ * @param {Number} volumeId
* @param {module:model/AttachCallbackPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AttachCallbackResponse} and HTTP response
*/
}, {
key: "updateVolumeCallbackWithHttpInfo",
- value: function updateVolumeCallbackWithHttpInfo(id, payload) {
+ value: function updateVolumeCallbackWithHttpInfo(volumeId, payload) {
var postBody = payload;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling updateVolumeCallback");
+ // verify the required parameter 'volumeId' is set
+ if (volumeId === undefined || volumeId === null) {
+ throw new Error("Missing the required parameter 'volumeId' when calling updateVolumeCallback");
}
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
throw new Error("Missing the required parameter 'payload' when calling updateVolumeCallback");
}
var pathParams = {
- 'id': id
+ 'volume_id': volumeId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _AttachCallbackResponse["default"];
- return this.apiClient.callApi('/core/volumes/{id}/update-callback', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/volumes/{volume_id}/update-callback', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Update volume callback
- * Updates the callback URL for a specified volume. Provide the new callback URL in the request body, along with the ID of the associated volume in the path. For additional information on volume callback URLs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/webhooks-callbacks).
- * @param {Number} id
+ * Updates the callback URL for a specified volume. Provide the new callback URL in the request body, along with the ID of the associated volume in the path. For additional information on volume callback URLs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/volumes/volume-callbacks/update-callback-volume/).
+ * @param {Number} volumeId
* @param {module:model/AttachCallbackPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AttachCallbackResponse}
*/
}, {
key: "updateVolumeCallback",
- value: function updateVolumeCallback(id, payload) {
- return this.updateVolumeCallbackWithHttpInfo(id, payload).then(function (response_and_data) {
+ value: function updateVolumeCallback(volumeId, payload) {
+ return this.updateVolumeCallbackWithHttpInfo(volumeId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/ClusterEventsApi.js b/dist/api/ClusterEventsApi.js
index 38434dba..c3787890 100644
--- a/dist/api/ClusterEventsApi.js
+++ b/dist/api/ClusterEventsApi.js
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* ClusterEvents service.
* @module api/ClusterEventsApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var ClusterEventsApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -49,12 +49,12 @@ var ClusterEventsApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ClusterEvents} and HTTP response
*/
return _createClass(ClusterEventsApi, [{
- key: "fetchAllOfAClusterEventsWithHttpInfo",
- value: function fetchAllOfAClusterEventsWithHttpInfo(clusterId) {
+ key: "listClusterEventsWithHttpInfo",
+ value: function listClusterEventsWithHttpInfo(clusterId) {
var postBody = null;
// verify the required parameter 'clusterId' is set
if (clusterId === undefined || clusterId === null) {
- throw new Error("Missing the required parameter 'clusterId' when calling fetchAllOfAClusterEvents");
+ throw new Error("Missing the required parameter 'clusterId' when calling listClusterEvents");
}
var pathParams = {
'cluster_id': clusterId
@@ -62,7 +62,7 @@ var ClusterEventsApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ClusterEvents["default"];
@@ -75,9 +75,9 @@ var ClusterEventsApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ClusterEvents}
*/
}, {
- key: "fetchAllOfAClusterEvents",
- value: function fetchAllOfAClusterEvents(clusterId) {
- return this.fetchAllOfAClusterEventsWithHttpInfo(clusterId).then(function (response_and_data) {
+ key: "listClusterEvents",
+ value: function listClusterEvents(clusterId) {
+ return this.listClusterEventsWithHttpInfo(clusterId).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/ClustersApi.js b/dist/api/ClustersApi.js
index 93af5804..06ad22d4 100644
--- a/dist/api/ClustersApi.js
+++ b/dist/api/ClustersApi.js
@@ -6,12 +6,22 @@ Object.defineProperty(exports, "__esModule", {
exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
var _ClusterListResponse = _interopRequireDefault(require("../model/ClusterListResponse"));
+var _ClusterNodeGroupsCreateResponse = _interopRequireDefault(require("../model/ClusterNodeGroupsCreateResponse"));
+var _ClusterNodeGroupsGetResponse = _interopRequireDefault(require("../model/ClusterNodeGroupsGetResponse"));
+var _ClusterNodeGroupsListResponse = _interopRequireDefault(require("../model/ClusterNodeGroupsListResponse"));
+var _ClusterNodesListResponse = _interopRequireDefault(require("../model/ClusterNodesListResponse"));
var _ClusterResponse = _interopRequireDefault(require("../model/ClusterResponse"));
var _ClusterVersions = _interopRequireDefault(require("../model/ClusterVersions"));
+var _CreateClusterNodeFields = _interopRequireDefault(require("../model/CreateClusterNodeFields"));
+var _CreateClusterNodeGroupPayload = _interopRequireDefault(require("../model/CreateClusterNodeGroupPayload"));
var _CreateClusterPayload = _interopRequireDefault(require("../model/CreateClusterPayload"));
+var _DeleteClusterNodesFields = _interopRequireDefault(require("../model/DeleteClusterNodesFields"));
var _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
+var _ManualReconciliationModel = _interopRequireDefault(require("../model/ManualReconciliationModel"));
+var _MasterFlavorsResponse = _interopRequireDefault(require("../model/MasterFlavorsResponse"));
var _NameAvailableModel = _interopRequireDefault(require("../model/NameAvailableModel"));
var _ResponseModel = _interopRequireDefault(require("../model/ResponseModel"));
+var _UpdateClusterNodeGroupPayload = _interopRequireDefault(require("../model/UpdateClusterNodeGroupPayload"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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); }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -33,7 +43,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Clusters service.
* @module api/ClustersApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var ClustersApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -65,7 +75,7 @@ var ClustersApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _ClusterResponse["default"];
@@ -85,18 +95,108 @@ var ClustersApi = exports["default"] = /*#__PURE__*/function () {
});
}
+ /**
+ * Create Node
+ * @param {Number} clusterId
+ * @param {module:model/CreateClusterNodeFields} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ClusterNodesListResponse} and HTTP response
+ */
+ }, {
+ key: "createNodeWithHttpInfo",
+ value: function createNodeWithHttpInfo(clusterId, payload) {
+ var postBody = payload;
+ // verify the required parameter 'clusterId' is set
+ if (clusterId === undefined || clusterId === null) {
+ throw new Error("Missing the required parameter 'clusterId' when calling createNode");
+ }
+ // verify the required parameter 'payload' is set
+ if (payload === undefined || payload === null) {
+ throw new Error("Missing the required parameter 'payload' when calling createNode");
+ }
+ var pathParams = {
+ 'cluster_id': clusterId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = ['application/json'];
+ var accepts = ['application/json'];
+ var returnType = _ClusterNodesListResponse["default"];
+ return this.apiClient.callApi('/core/clusters/{cluster_id}/nodes', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Create Node
+ * @param {Number} clusterId
+ * @param {module:model/CreateClusterNodeFields} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ClusterNodesListResponse}
+ */
+ }, {
+ key: "createNode",
+ value: function createNode(clusterId, payload) {
+ return this.createNodeWithHttpInfo(clusterId, payload).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Create a node group in a cluster
+ * @param {Number} clusterId
+ * @param {module:model/CreateClusterNodeGroupPayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ClusterNodeGroupsCreateResponse} and HTTP response
+ */
+ }, {
+ key: "createNodeGroupWithHttpInfo",
+ value: function createNodeGroupWithHttpInfo(clusterId, payload) {
+ var postBody = payload;
+ // verify the required parameter 'clusterId' is set
+ if (clusterId === undefined || clusterId === null) {
+ throw new Error("Missing the required parameter 'clusterId' when calling createNodeGroup");
+ }
+ // verify the required parameter 'payload' is set
+ if (payload === undefined || payload === null) {
+ throw new Error("Missing the required parameter 'payload' when calling createNodeGroup");
+ }
+ var pathParams = {
+ 'cluster_id': clusterId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = ['application/json'];
+ var accepts = ['application/json'];
+ var returnType = _ClusterNodeGroupsCreateResponse["default"];
+ return this.apiClient.callApi('/core/clusters/{cluster_id}/node-groups', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Create a node group in a cluster
+ * @param {Number} clusterId
+ * @param {module:model/CreateClusterNodeGroupPayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ClusterNodeGroupsCreateResponse}
+ */
+ }, {
+ key: "createNodeGroup",
+ value: function createNodeGroup(clusterId, payload) {
+ return this.createNodeGroupWithHttpInfo(clusterId, payload).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
/**
* Delete a cluster
* @param {Number} id
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
- key: "deleteAClusterWithHttpInfo",
- value: function deleteAClusterWithHttpInfo(id) {
+ key: "deleteClusterWithHttpInfo",
+ value: function deleteClusterWithHttpInfo(id) {
var postBody = null;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling deleteACluster");
+ throw new Error("Missing the required parameter 'id' when calling deleteCluster");
}
var pathParams = {
'id': id
@@ -104,7 +204,7 @@ var ClustersApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
@@ -117,9 +217,146 @@ var ClustersApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "deleteACluster",
- value: function deleteACluster(id) {
- return this.deleteAClusterWithHttpInfo(id).then(function (response_and_data) {
+ key: "deleteCluster",
+ value: function deleteCluster(id) {
+ return this.deleteClusterWithHttpInfo(id).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Delete Cluster Node
+ * @param {Number} clusterId
+ * @param {Number} nodeId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
+ */
+ }, {
+ key: "deleteClusterNodeWithHttpInfo",
+ value: function deleteClusterNodeWithHttpInfo(clusterId, nodeId) {
+ var postBody = null;
+ // verify the required parameter 'clusterId' is set
+ if (clusterId === undefined || clusterId === null) {
+ throw new Error("Missing the required parameter 'clusterId' when calling deleteClusterNode");
+ }
+ // verify the required parameter 'nodeId' is set
+ if (nodeId === undefined || nodeId === null) {
+ throw new Error("Missing the required parameter 'nodeId' when calling deleteClusterNode");
+ }
+ var pathParams = {
+ 'cluster_id': clusterId,
+ 'node_id': nodeId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ResponseModel["default"];
+ return this.apiClient.callApi('/core/clusters/{cluster_id}/nodes/{node_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Delete Cluster Node
+ * @param {Number} clusterId
+ * @param {Number} nodeId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
+ */
+ }, {
+ key: "deleteClusterNode",
+ value: function deleteClusterNode(clusterId, nodeId) {
+ return this.deleteClusterNodeWithHttpInfo(clusterId, nodeId).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Delete Multiple Cluster Nodes
+ * @param {Number} clusterId
+ * @param {module:model/DeleteClusterNodesFields} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
+ */
+ }, {
+ key: "deleteClusterNodesWithHttpInfo",
+ value: function deleteClusterNodesWithHttpInfo(clusterId, payload) {
+ var postBody = payload;
+ // verify the required parameter 'clusterId' is set
+ if (clusterId === undefined || clusterId === null) {
+ throw new Error("Missing the required parameter 'clusterId' when calling deleteClusterNodes");
+ }
+ // verify the required parameter 'payload' is set
+ if (payload === undefined || payload === null) {
+ throw new Error("Missing the required parameter 'payload' when calling deleteClusterNodes");
+ }
+ var pathParams = {
+ 'cluster_id': clusterId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = ['application/json'];
+ var accepts = ['application/json'];
+ var returnType = _ResponseModel["default"];
+ return this.apiClient.callApi('/core/clusters/{cluster_id}/nodes/delete', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Delete Multiple Cluster Nodes
+ * @param {Number} clusterId
+ * @param {module:model/DeleteClusterNodesFields} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
+ */
+ }, {
+ key: "deleteClusterNodes",
+ value: function deleteClusterNodes(clusterId, payload) {
+ return this.deleteClusterNodesWithHttpInfo(clusterId, payload).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Delete a node group
+ * @param {Number} clusterId
+ * @param {Number} nodeGroupId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
+ */
+ }, {
+ key: "deleteNodeGroupWithHttpInfo",
+ value: function deleteNodeGroupWithHttpInfo(clusterId, nodeGroupId) {
+ var postBody = null;
+ // verify the required parameter 'clusterId' is set
+ if (clusterId === undefined || clusterId === null) {
+ throw new Error("Missing the required parameter 'clusterId' when calling deleteNodeGroup");
+ }
+ // verify the required parameter 'nodeGroupId' is set
+ if (nodeGroupId === undefined || nodeGroupId === null) {
+ throw new Error("Missing the required parameter 'nodeGroupId' when calling deleteNodeGroup");
+ }
+ var pathParams = {
+ 'cluster_id': clusterId,
+ 'node_group_id': nodeGroupId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ResponseModel["default"];
+ return this.apiClient.callApi('/core/clusters/{cluster_id}/node-groups/{node_group_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Delete a node group
+ * @param {Number} clusterId
+ * @param {Number} nodeGroupId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
+ */
+ }, {
+ key: "deleteNodeGroup",
+ value: function deleteNodeGroup(clusterId, nodeGroupId) {
+ return this.deleteNodeGroupWithHttpInfo(clusterId, nodeGroupId).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -144,7 +381,7 @@ var ClustersApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _NameAvailableModel["default"];
@@ -166,18 +403,94 @@ var ClustersApi = exports["default"] = /*#__PURE__*/function () {
}
/**
- * GET Cluster Versions
+ * Get Cluster Master Flavors
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MasterFlavorsResponse} and HTTP response
+ */
+ }, {
+ key: "getClusterMasterFlavorsWithHttpInfo",
+ value: function getClusterMasterFlavorsWithHttpInfo() {
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _MasterFlavorsResponse["default"];
+ return this.apiClient.callApi('/core/clusters/master-flavors', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Get Cluster Master Flavors
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MasterFlavorsResponse}
+ */
+ }, {
+ key: "getClusterMasterFlavors",
+ value: function getClusterMasterFlavors() {
+ return this.getClusterMasterFlavorsWithHttpInfo().then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Get Cluster Nodes
+ * @param {Number} clusterId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ClusterNodesListResponse} and HTTP response
+ */
+ }, {
+ key: "getClusterNodesWithHttpInfo",
+ value: function getClusterNodesWithHttpInfo(clusterId) {
+ var postBody = null;
+ // verify the required parameter 'clusterId' is set
+ if (clusterId === undefined || clusterId === null) {
+ throw new Error("Missing the required parameter 'clusterId' when calling getClusterNodes");
+ }
+ var pathParams = {
+ 'cluster_id': clusterId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ClusterNodesListResponse["default"];
+ return this.apiClient.callApi('/core/clusters/{cluster_id}/nodes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Get Cluster Nodes
+ * @param {Number} clusterId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ClusterNodesListResponse}
+ */
+ }, {
+ key: "getClusterNodes",
+ value: function getClusterNodes(clusterId) {
+ return this.getClusterNodesWithHttpInfo(clusterId).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * List Cluster Versions
+ * Lists available Kubernetes versions, optionally filtered by region.
+ * @param {Object} opts Optional parameters
+ * @param {String} [region] Filter versions by region name (optional)
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ClusterVersions} and HTTP response
*/
}, {
key: "getClusterVersionsWithHttpInfo",
- value: function getClusterVersionsWithHttpInfo() {
+ value: function getClusterVersionsWithHttpInfo(opts) {
+ opts = opts || {};
var postBody = null;
var pathParams = {};
- var queryParams = {};
+ var queryParams = {
+ 'region': opts['region']
+ };
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ClusterVersions["default"];
@@ -185,13 +498,62 @@ var ClustersApi = exports["default"] = /*#__PURE__*/function () {
}
/**
- * GET Cluster Versions
+ * List Cluster Versions
+ * Lists available Kubernetes versions, optionally filtered by region.
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.region Filter versions by region name (optional)
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ClusterVersions}
*/
}, {
key: "getClusterVersions",
- value: function getClusterVersions() {
- return this.getClusterVersionsWithHttpInfo().then(function (response_and_data) {
+ value: function getClusterVersions(opts) {
+ return this.getClusterVersionsWithHttpInfo(opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve a node group in a cluster
+ * @param {Number} clusterId
+ * @param {Number} nodeGroupId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ClusterNodeGroupsGetResponse} and HTTP response
+ */
+ }, {
+ key: "getNodeGroupWithHttpInfo",
+ value: function getNodeGroupWithHttpInfo(clusterId, nodeGroupId) {
+ var postBody = null;
+ // verify the required parameter 'clusterId' is set
+ if (clusterId === undefined || clusterId === null) {
+ throw new Error("Missing the required parameter 'clusterId' when calling getNodeGroup");
+ }
+ // verify the required parameter 'nodeGroupId' is set
+ if (nodeGroupId === undefined || nodeGroupId === null) {
+ throw new Error("Missing the required parameter 'nodeGroupId' when calling getNodeGroup");
+ }
+ var pathParams = {
+ 'cluster_id': clusterId,
+ 'node_group_id': nodeGroupId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ClusterNodeGroupsGetResponse["default"];
+ return this.apiClient.callApi('/core/clusters/{cluster_id}/node-groups/{node_group_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve a node group in a cluster
+ * @param {Number} clusterId
+ * @param {Number} nodeGroupId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ClusterNodeGroupsGetResponse}
+ */
+ }, {
+ key: "getNodeGroup",
+ value: function getNodeGroup(clusterId, nodeGroupId) {
+ return this.getNodeGroupWithHttpInfo(clusterId, nodeGroupId).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -215,7 +577,7 @@ var ClustersApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ClusterResponse["default"];
@@ -237,17 +599,28 @@ var ClustersApi = exports["default"] = /*#__PURE__*/function () {
/**
* List Clusters
+ * @param {Object} opts Optional parameters
+ * @param {Number} [page] Page number for pagination
+ * @param {Number} [pageSize] Number of items per page
+ * @param {String} [environment] Environment Filter
+ * @param {String} [search] Search query to filter cluster by name
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ClusterListResponse} and HTTP response
*/
}, {
key: "listClustersWithHttpInfo",
- value: function listClustersWithHttpInfo() {
+ value: function listClustersWithHttpInfo(opts) {
+ opts = opts || {};
var postBody = null;
var pathParams = {};
- var queryParams = {};
+ var queryParams = {
+ 'page': opts['page'],
+ 'pageSize': opts['pageSize'],
+ 'environment': opts['environment'],
+ 'search': opts['search']
+ };
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ClusterListResponse["default"];
@@ -256,12 +629,147 @@ var ClustersApi = exports["default"] = /*#__PURE__*/function () {
/**
* List Clusters
+ * @param {Object} opts Optional parameters
+ * @param {Number} opts.page Page number for pagination
+ * @param {Number} opts.pageSize Number of items per page
+ * @param {String} opts.environment Environment Filter
+ * @param {String} opts.search Search query to filter cluster by name
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ClusterListResponse}
*/
}, {
key: "listClusters",
- value: function listClusters() {
- return this.listClustersWithHttpInfo().then(function (response_and_data) {
+ value: function listClusters(opts) {
+ return this.listClustersWithHttpInfo(opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * List node groups for a cluster
+ * @param {Number} clusterId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ClusterNodeGroupsListResponse} and HTTP response
+ */
+ }, {
+ key: "listNodeGroupsWithHttpInfo",
+ value: function listNodeGroupsWithHttpInfo(clusterId) {
+ var postBody = null;
+ // verify the required parameter 'clusterId' is set
+ if (clusterId === undefined || clusterId === null) {
+ throw new Error("Missing the required parameter 'clusterId' when calling listNodeGroups");
+ }
+ var pathParams = {
+ 'cluster_id': clusterId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ClusterNodeGroupsListResponse["default"];
+ return this.apiClient.callApi('/core/clusters/{cluster_id}/node-groups', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * List node groups for a cluster
+ * @param {Number} clusterId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ClusterNodeGroupsListResponse}
+ */
+ }, {
+ key: "listNodeGroups",
+ value: function listNodeGroups(clusterId) {
+ return this.listNodeGroupsWithHttpInfo(clusterId).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Reconcile a cluster
+ * @param {Number} clusterId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ManualReconciliationModel} and HTTP response
+ */
+ }, {
+ key: "reconcileClusterWithHttpInfo",
+ value: function reconcileClusterWithHttpInfo(clusterId) {
+ var postBody = null;
+ // verify the required parameter 'clusterId' is set
+ if (clusterId === undefined || clusterId === null) {
+ throw new Error("Missing the required parameter 'clusterId' when calling reconcileCluster");
+ }
+ var pathParams = {
+ 'cluster_id': clusterId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ManualReconciliationModel["default"];
+ return this.apiClient.callApi('/core/clusters/{cluster_id}/reconcile', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Reconcile a cluster
+ * @param {Number} clusterId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ManualReconciliationModel}
+ */
+ }, {
+ key: "reconcileCluster",
+ value: function reconcileCluster(clusterId) {
+ return this.reconcileClusterWithHttpInfo(clusterId).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Update a node group in a cluster
+ * @param {Number} clusterId
+ * @param {Number} nodeGroupId
+ * @param {module:model/UpdateClusterNodeGroupPayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ClusterNodeGroupsCreateResponse} and HTTP response
+ */
+ }, {
+ key: "updateNodeGroupWithHttpInfo",
+ value: function updateNodeGroupWithHttpInfo(clusterId, nodeGroupId, payload) {
+ var postBody = payload;
+ // verify the required parameter 'clusterId' is set
+ if (clusterId === undefined || clusterId === null) {
+ throw new Error("Missing the required parameter 'clusterId' when calling updateNodeGroup");
+ }
+ // verify the required parameter 'nodeGroupId' is set
+ if (nodeGroupId === undefined || nodeGroupId === null) {
+ throw new Error("Missing the required parameter 'nodeGroupId' when calling updateNodeGroup");
+ }
+ // verify the required parameter 'payload' is set
+ if (payload === undefined || payload === null) {
+ throw new Error("Missing the required parameter 'payload' when calling updateNodeGroup");
+ }
+ var pathParams = {
+ 'cluster_id': clusterId,
+ 'node_group_id': nodeGroupId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = ['application/json'];
+ var accepts = ['application/json'];
+ var returnType = _ClusterNodeGroupsCreateResponse["default"];
+ return this.apiClient.callApi('/core/clusters/{cluster_id}/node-groups/{node_group_id}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Update a node group in a cluster
+ * @param {Number} clusterId
+ * @param {Number} nodeGroupId
+ * @param {module:model/UpdateClusterNodeGroupPayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ClusterNodeGroupsCreateResponse}
+ */
+ }, {
+ key: "updateNodeGroup",
+ value: function updateNodeGroup(clusterId, nodeGroupId, payload) {
+ return this.updateNodeGroupWithHttpInfo(clusterId, nodeGroupId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/ComplianceApi.js b/dist/api/ComplianceApi.js
index 87fa2d55..37c93525 100644
--- a/dist/api/ComplianceApi.js
+++ b/dist/api/ComplianceApi.js
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Compliance service.
* @module api/ComplianceApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -63,7 +63,7 @@ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _CreateUpdateComplianceResponse["default"];
@@ -89,12 +89,12 @@ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
- key: "deleteAComplianceWithHttpInfo",
- value: function deleteAComplianceWithHttpInfo(gpuModel) {
+ key: "deleteComplianceWithHttpInfo",
+ value: function deleteComplianceWithHttpInfo(gpuModel) {
var postBody = null;
// verify the required parameter 'gpuModel' is set
if (gpuModel === undefined || gpuModel === null) {
- throw new Error("Missing the required parameter 'gpuModel' when calling deleteACompliance");
+ throw new Error("Missing the required parameter 'gpuModel' when calling deleteCompliance");
}
var pathParams = {
'gpu_model': gpuModel
@@ -102,7 +102,7 @@ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
@@ -115,23 +115,23 @@ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "deleteACompliance",
- value: function deleteACompliance(gpuModel) {
- return this.deleteAComplianceWithHttpInfo(gpuModel).then(function (response_and_data) {
+ key: "deleteCompliance",
+ value: function deleteCompliance(gpuModel) {
+ return this.deleteComplianceWithHttpInfo(gpuModel).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Retrieve GPU compliance
- * Returns a list of compliance objects each corresponding to available GPU models. These compliance objects contain minimum and maximum values for RAM in GB, number of vCPUs, and system disk capacity in GB. Use the optional `gpu` model parameter in the query string to filter responses by GPU model. For additional details on GPU compliance, [**click here**](https://infrahub-doc.nexgencloud.com/docs/hardware/flavors#adhering-to-gpu-compliance).
+ * Returns a list of compliance objects each corresponding to available GPU models. These compliance objects contain minimum and maximum values for RAM in GB, number of vCPUs, and system disk capacity in GB. Use the optional `gpu` model parameter in the query string to filter responses by GPU model. For additional details on GPU compliance, [**click here**](https://docs.hyperstack.cloud/docs/hardware/flavors#adhering-to-gpu-compliance).
* @param {Object} opts Optional parameters
* @param {String} [gpu] This is for gpu model
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ComplianceResponse} and HTTP response
*/
}, {
- key: "retrieveGpuComplianceWithHttpInfo",
- value: function retrieveGpuComplianceWithHttpInfo(opts) {
+ key: "getComplianceWithHttpInfo",
+ value: function getComplianceWithHttpInfo(opts) {
opts = opts || {};
var postBody = null;
var pathParams = {};
@@ -140,7 +140,7 @@ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ComplianceResponse["default"];
@@ -149,15 +149,15 @@ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
/**
* Retrieve GPU compliance
- * Returns a list of compliance objects each corresponding to available GPU models. These compliance objects contain minimum and maximum values for RAM in GB, number of vCPUs, and system disk capacity in GB. Use the optional `gpu` model parameter in the query string to filter responses by GPU model. For additional details on GPU compliance, [**click here**](https://infrahub-doc.nexgencloud.com/docs/hardware/flavors#adhering-to-gpu-compliance).
+ * Returns a list of compliance objects each corresponding to available GPU models. These compliance objects contain minimum and maximum values for RAM in GB, number of vCPUs, and system disk capacity in GB. Use the optional `gpu` model parameter in the query string to filter responses by GPU model. For additional details on GPU compliance, [**click here**](https://docs.hyperstack.cloud/docs/hardware/flavors#adhering-to-gpu-compliance).
* @param {Object} opts Optional parameters
* @param {String} opts.gpu This is for gpu model
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ComplianceResponse}
*/
}, {
- key: "retrieveGpuCompliance",
- value: function retrieveGpuCompliance(opts) {
- return this.retrieveGpuComplianceWithHttpInfo(opts).then(function (response_and_data) {
+ key: "getCompliance",
+ value: function getCompliance(opts) {
+ return this.getComplianceWithHttpInfo(opts).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -168,18 +168,18 @@ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateUpdateComplianceResponse} and HTTP response
*/
}, {
- key: "updateAComplianceWithHttpInfo",
- value: function updateAComplianceWithHttpInfo(payload) {
+ key: "updateComplianceWithHttpInfo",
+ value: function updateComplianceWithHttpInfo(payload) {
var postBody = payload;
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling updateACompliance");
+ throw new Error("Missing the required parameter 'payload' when calling updateCompliance");
}
var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _CreateUpdateComplianceResponse["default"];
@@ -192,9 +192,9 @@ var ComplianceApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateUpdateComplianceResponse}
*/
}, {
- key: "updateACompliance",
- value: function updateACompliance(payload) {
- return this.updateAComplianceWithHttpInfo(payload).then(function (response_and_data) {
+ key: "updateCompliance",
+ value: function updateCompliance(payload) {
+ return this.updateComplianceWithHttpInfo(payload).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/CreditApi.js b/dist/api/CreditApi.js
index dac9e35d..961e4ed3 100644
--- a/dist/api/CreditApi.js
+++ b/dist/api/CreditApi.js
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
var _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
-var _Getcreditandthresholdinfoinresponse = _interopRequireDefault(require("../model/Getcreditandthresholdinfoinresponse"));
+var _GetCreditAndThresholdInfoInResponse = _interopRequireDefault(require("../model/GetCreditAndThresholdInfoInResponse"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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); }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Credit service.
* @module api/CreditApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var CreditApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -45,31 +45,33 @@ var CreditApi = exports["default"] = /*#__PURE__*/function () {
/**
* GET: View credit and threshold
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Getcreditandthresholdinfoinresponse} and HTTP response
+ * Retrieves the current credit balance for your [**organization**](/docs/rbac/organization). Ensuring a positive credit balance allows you to create resources. However, for prepaid accounts, if the credit balance falls below $0, all associated resources will be temporarily suspended until a [**payment**](/docs/api-reference/billing-resources/create-payment) is made. For additional information, [**click here**](None/docs/api-reference/billing-resources/retrieve-credit-balance/).
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetCreditAndThresholdInfoInResponse} and HTTP response
*/
return _createClass(CreditApi, [{
- key: "getViewCreditAndThresholdWithHttpInfo",
- value: function getViewCreditAndThresholdWithHttpInfo() {
+ key: "getUserCreditWithHttpInfo",
+ value: function getUserCreditWithHttpInfo() {
var postBody = null;
var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _Getcreditandthresholdinfoinresponse["default"];
+ var returnType = _GetCreditAndThresholdInfoInResponse["default"];
return this.apiClient.callApi('/billing/user-credit/credit', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* GET: View credit and threshold
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Getcreditandthresholdinfoinresponse}
+ * Retrieves the current credit balance for your [**organization**](/docs/rbac/organization). Ensuring a positive credit balance allows you to create resources. However, for prepaid accounts, if the credit balance falls below $0, all associated resources will be temporarily suspended until a [**payment**](/docs/api-reference/billing-resources/create-payment) is made. For additional information, [**click here**](None/docs/api-reference/billing-resources/retrieve-credit-balance/).
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetCreditAndThresholdInfoInResponse}
*/
}, {
- key: "getViewCreditAndThreshold",
- value: function getViewCreditAndThreshold() {
- return this.getViewCreditAndThresholdWithHttpInfo().then(function (response_and_data) {
+ key: "getUserCredit",
+ value: function getUserCredit() {
+ return this.getUserCreditWithHttpInfo().then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/CustomerContractApi.js b/dist/api/CustomerContractApi.js
index 39d18f01..5ad2265e 100644
--- a/dist/api/CustomerContractApi.js
+++ b/dist/api/CustomerContractApi.js
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* CustomerContract service.
* @module api/CustomerContractApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var CustomerContractApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -46,136 +46,136 @@ var CustomerContractApi = exports["default"] = /*#__PURE__*/function () {
}
/**
- * List Contracts
- * Retrieves a list of contracts and their details, including the terms of each contract and the discounts applied to all resources under each contract. Pagination can be controlled using the `page` and `per_page` query parameters. For additional information about contracts, click [**here**](https://infrahub-doc.nexgencloud.com/docs/billing-and-payment/contracts).
+ * Retrieve GPU Allocation Graph for Contract
+ * Retrieve GPU allocation count graph for a specific contract by providing the contract ID in the path. The endpoint returns the GPU allocation count graph for the contract within the specified date range.
+ * @param {Number} contractId
* @param {Object} opts Optional parameters
- * @param {Number} [page]
- * @param {Number} [perPage]
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetCustomerContractsListResponseModel} and HTTP response
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ContractGPUAllocationGraphResponse} and HTTP response
*/
return _createClass(CustomerContractApi, [{
- key: "listContractsWithHttpInfo",
- value: function listContractsWithHttpInfo(opts) {
+ key: "getContractGPUAllocationGraphWithHttpInfo",
+ value: function getContractGPUAllocationGraphWithHttpInfo(contractId, opts) {
opts = opts || {};
var postBody = null;
- var pathParams = {};
+ // verify the required parameter 'contractId' is set
+ if (contractId === undefined || contractId === null) {
+ throw new Error("Missing the required parameter 'contractId' when calling getContractGPUAllocationGraph");
+ }
+ var pathParams = {
+ 'contract_id': contractId
+ };
var queryParams = {
- 'page': opts['page'],
- 'per_page': opts['perPage']
+ 'start_date': opts['startDate'],
+ 'end_date': opts['endDate']
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _GetCustomerContractsListResponseModel["default"];
- return this.apiClient.callApi('/pricebook/contracts', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _ContractGPUAllocationGraphResponse["default"];
+ return this.apiClient.callApi('/pricebook/contracts/{contract_id}/gpu_allocation_graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * List Contracts
- * Retrieves a list of contracts and their details, including the terms of each contract and the discounts applied to all resources under each contract. Pagination can be controlled using the `page` and `per_page` query parameters. For additional information about contracts, click [**here**](https://infrahub-doc.nexgencloud.com/docs/billing-and-payment/contracts).
+ * Retrieve GPU Allocation Graph for Contract
+ * Retrieve GPU allocation count graph for a specific contract by providing the contract ID in the path. The endpoint returns the GPU allocation count graph for the contract within the specified date range.
+ * @param {Number} contractId
* @param {Object} opts Optional parameters
- * @param {Number} opts.page
- * @param {Number} opts.perPage
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetCustomerContractsListResponseModel}
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ContractGPUAllocationGraphResponse}
*/
}, {
- key: "listContracts",
- value: function listContracts(opts) {
- return this.listContractsWithHttpInfo(opts).then(function (response_and_data) {
+ key: "getContractGPUAllocationGraph",
+ value: function getContractGPUAllocationGraph(contractId, opts) {
+ return this.getContractGPUAllocationGraphWithHttpInfo(contractId, opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Retrieve Contract Details
- * Retrieve details of a specific contract by providing the contract ID in the path. The endpoint returns the contract object along with its associated discount plans. For more information, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/pricebook-resources/retrieve-contract-details).
- * @param {Number} contractId
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CustomerContractDetailResponseModel} and HTTP response
+ * List Contracts
+ * Retrieves a list of contracts and their details, including the terms of each contract and the discounts applied to all resources under each contract. Pagination can be controlled using the `page` and `per_page` query parameters. For additional information about contracts, click [**here**](None/docs/billing-and-payment/contracts).
+ * @param {Object} opts Optional parameters
+ * @param {Number} [page]
+ * @param {Number} [perPage]
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetCustomerContractsListResponseModel} and HTTP response
*/
}, {
- key: "retrieveContractDetailsWithHttpInfo",
- value: function retrieveContractDetailsWithHttpInfo(contractId) {
+ key: "listCustomerContractsWithHttpInfo",
+ value: function listCustomerContractsWithHttpInfo(opts) {
+ opts = opts || {};
var postBody = null;
- // verify the required parameter 'contractId' is set
- if (contractId === undefined || contractId === null) {
- throw new Error("Missing the required parameter 'contractId' when calling retrieveContractDetails");
- }
- var pathParams = {
- 'contract_id': contractId
+ var pathParams = {};
+ var queryParams = {
+ 'page': opts['page'],
+ 'per_page': opts['perPage']
};
- var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _CustomerContractDetailResponseModel["default"];
- return this.apiClient.callApi('/pricebook/contracts/{contract_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _GetCustomerContractsListResponseModel["default"];
+ return this.apiClient.callApi('/pricebook/contracts', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve Contract Details
- * Retrieve details of a specific contract by providing the contract ID in the path. The endpoint returns the contract object along with its associated discount plans. For more information, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/pricebook-resources/retrieve-contract-details).
- * @param {Number} contractId
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomerContractDetailResponseModel}
+ * List Contracts
+ * Retrieves a list of contracts and their details, including the terms of each contract and the discounts applied to all resources under each contract. Pagination can be controlled using the `page` and `per_page` query parameters. For additional information about contracts, click [**here**](None/docs/billing-and-payment/contracts).
+ * @param {Object} opts Optional parameters
+ * @param {Number} opts.page
+ * @param {Number} opts.perPage
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetCustomerContractsListResponseModel}
*/
}, {
- key: "retrieveContractDetails",
- value: function retrieveContractDetails(contractId) {
- return this.retrieveContractDetailsWithHttpInfo(contractId).then(function (response_and_data) {
+ key: "listCustomerContracts",
+ value: function listCustomerContracts(opts) {
+ return this.listCustomerContractsWithHttpInfo(opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Retrieve GPU Allocation Graph for Contract
- * Retrieve GPU allocation count graph for a specific contract by providing the contract ID in the path. The endpoint returns the GPU allocation count graph for the contract within the specified date range.
+ * Retrieve Contract Details
+ * Retrieve details of a specific contract by providing the contract ID in the path. The endpoint returns the contract object along with its associated discount plans. For more information, [**click here**](None/docs/api-reference/pricebook-resources/retrieve-contract-details).
* @param {Number} contractId
- * @param {Object} opts Optional parameters
- * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ContractGPUAllocationGraphResponse} and HTTP response
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CustomerContractDetailResponseModel} and HTTP response
*/
}, {
- key: "retrieveGpuAllocationGraphForContractWithHttpInfo",
- value: function retrieveGpuAllocationGraphForContractWithHttpInfo(contractId, opts) {
- opts = opts || {};
+ key: "retrieveContractWithHttpInfo",
+ value: function retrieveContractWithHttpInfo(contractId) {
var postBody = null;
// verify the required parameter 'contractId' is set
if (contractId === undefined || contractId === null) {
- throw new Error("Missing the required parameter 'contractId' when calling retrieveGpuAllocationGraphForContract");
+ throw new Error("Missing the required parameter 'contractId' when calling retrieveContract");
}
var pathParams = {
'contract_id': contractId
};
- var queryParams = {
- 'start_date': opts['startDate'],
- 'end_date': opts['endDate']
- };
+ var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _ContractGPUAllocationGraphResponse["default"];
- return this.apiClient.callApi('/pricebook/contracts/{contract_id}/gpu_allocation_graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _CustomerContractDetailResponseModel["default"];
+ return this.apiClient.callApi('/pricebook/contracts/{contract_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve GPU Allocation Graph for Contract
- * Retrieve GPU allocation count graph for a specific contract by providing the contract ID in the path. The endpoint returns the GPU allocation count graph for the contract within the specified date range.
+ * Retrieve Contract Details
+ * Retrieve details of a specific contract by providing the contract ID in the path. The endpoint returns the contract object along with its associated discount plans. For more information, [**click here**](None/docs/api-reference/pricebook-resources/retrieve-contract-details).
* @param {Number} contractId
- * @param {Object} opts Optional parameters
- * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ContractGPUAllocationGraphResponse}
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomerContractDetailResponseModel}
*/
}, {
- key: "retrieveGpuAllocationGraphForContract",
- value: function retrieveGpuAllocationGraphForContract(contractId, opts) {
- return this.retrieveGpuAllocationGraphForContractWithHttpInfo(contractId, opts).then(function (response_and_data) {
+ key: "retrieveContract",
+ value: function retrieveContract(contractId) {
+ return this.retrieveContractWithHttpInfo(contractId).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/DashboardApi.js b/dist/api/DashboardApi.js
index 81bc4012..af99b2fb 100644
--- a/dist/api/DashboardApi.js
+++ b/dist/api/DashboardApi.js
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Dashboard service.
* @module api/DashboardApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var DashboardApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -45,18 +45,18 @@ var DashboardApi = exports["default"] = /*#__PURE__*/function () {
/**
* Retrieve Dashboard
- * Returns hardware and pricing overview for your active resources, including virtual machines, containers, and volumes. For additional information on the Dashboard feature, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/dashboard).
+ * Returns hardware and pricing overview for your active resources, includingvirtual machines, containers, and volumes. For more details on the Dashboard feature, [**click here**](https://docs.hyperstack.cloud/docs/resource-management/dashboard/).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DashboardInfoResponse} and HTTP response
*/
return _createClass(DashboardApi, [{
- key: "retrieveDashboardWithHttpInfo",
- value: function retrieveDashboardWithHttpInfo() {
+ key: "getDashboardWithHttpInfo",
+ value: function getDashboardWithHttpInfo() {
var postBody = null;
var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _DashboardInfoResponse["default"];
@@ -65,13 +65,13 @@ var DashboardApi = exports["default"] = /*#__PURE__*/function () {
/**
* Retrieve Dashboard
- * Returns hardware and pricing overview for your active resources, including virtual machines, containers, and volumes. For additional information on the Dashboard feature, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/dashboard).
+ * Returns hardware and pricing overview for your active resources, includingvirtual machines, containers, and volumes. For more details on the Dashboard feature, [**click here**](https://docs.hyperstack.cloud/docs/resource-management/dashboard/).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DashboardInfoResponse}
*/
}, {
- key: "retrieveDashboard",
- value: function retrieveDashboard() {
- return this.retrieveDashboardWithHttpInfo().then(function (response_and_data) {
+ key: "getDashboard",
+ value: function getDashboard() {
+ return this.getDashboardWithHttpInfo().then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/DeploymentApi.js b/dist/api/DeploymentApi.js
index 6706805b..216c3e20 100644
--- a/dist/api/DeploymentApi.js
+++ b/dist/api/DeploymentApi.js
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Deployment service.
* @module api/DeploymentApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var DeploymentApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -65,7 +65,7 @@ var DeploymentApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
@@ -91,12 +91,12 @@ var DeploymentApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/StartDeployment} and HTTP response
*/
}, {
- key: "detailsOfDeploymentByIdWithHttpInfo",
- value: function detailsOfDeploymentByIdWithHttpInfo(id) {
+ key: "getDeploymentWithHttpInfo",
+ value: function getDeploymentWithHttpInfo(id) {
var postBody = null;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling detailsOfDeploymentById");
+ throw new Error("Missing the required parameter 'id' when calling getDeployment");
}
var pathParams = {
'id': id
@@ -104,7 +104,7 @@ var DeploymentApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _StartDeployment["default"];
@@ -117,9 +117,9 @@ var DeploymentApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/StartDeployment}
*/
}, {
- key: "detailsOfDeploymentById",
- value: function detailsOfDeploymentById(id) {
- return this.detailsOfDeploymentByIdWithHttpInfo(id).then(function (response_and_data) {
+ key: "getDeployment",
+ value: function getDeployment(id) {
+ return this.getDeploymentWithHttpInfo(id).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -136,7 +136,7 @@ var DeploymentApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _Deployments["default"];
@@ -172,7 +172,7 @@ var DeploymentApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _StartDeployment["default"];
diff --git a/dist/api/EnvironmentApi.js b/dist/api/EnvironmentApi.js
index a348502d..765cd6fd 100644
--- a/dist/api/EnvironmentApi.js
+++ b/dist/api/EnvironmentApi.js
@@ -9,8 +9,10 @@ var _CreateEnvironment = _interopRequireDefault(require("../model/CreateEnvironm
var _Environment = _interopRequireDefault(require("../model/Environment"));
var _Environments = _interopRequireDefault(require("../model/Environments"));
var _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
+var _NameAvailableModel = _interopRequireDefault(require("../model/NameAvailableModel"));
var _ResponseModel = _interopRequireDefault(require("../model/ResponseModel"));
var _UpdateEnvironment = _interopRequireDefault(require("../model/UpdateEnvironment"));
+var _VMQuota = _interopRequireDefault(require("../model/VMQuota"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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); }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -32,7 +34,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Environment service.
* @module api/EnvironmentApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var EnvironmentApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -49,7 +51,7 @@ var EnvironmentApi = exports["default"] = /*#__PURE__*/function () {
/**
* Create environment
- * Creates an environment—a container to organize your resources, including SSH key pairs, virtual machines, and volumes. To create your environment, provide your desired environment name, and [**region**](https://infrahub-doc.nexgencloud.com/docs/features/regions) in the request body.
+ * Creates an environment—a container to organize your resources, including SSH key pairs, virtual machines, and volumes. To create your environment, provide your desired environment name, and [**region**](https://docs.hyperstack.cloud/docs/resource-management/regions/) in the request body.
* @param {module:model/CreateEnvironment} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Environment} and HTTP response
*/
@@ -65,7 +67,7 @@ var EnvironmentApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _Environment["default"];
@@ -74,7 +76,7 @@ var EnvironmentApi = exports["default"] = /*#__PURE__*/function () {
/**
* Create environment
- * Creates an environment—a container to organize your resources, including SSH key pairs, virtual machines, and volumes. To create your environment, provide your desired environment name, and [**region**](https://infrahub-doc.nexgencloud.com/docs/features/regions) in the request body.
+ * Creates an environment—a container to organize your resources, including SSH key pairs, virtual machines, and volumes. To create your environment, provide your desired environment name, and [**region**](https://docs.hyperstack.cloud/docs/resource-management/regions/) in the request body.
* @param {module:model/CreateEnvironment} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Environment}
*/
@@ -106,7 +108,7 @@ var EnvironmentApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
@@ -128,47 +130,42 @@ var EnvironmentApi = exports["default"] = /*#__PURE__*/function () {
}
/**
- * List environments
- * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://infrahub-doc.nexgencloud.com/docs/features/regions), and the date and time of creation. For more information on environments, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/environments-available-features).
- * @param {Object} opts Optional parameters
- * @param {String} [page] Page Number
- * @param {String} [pageSize] Data Per Page
- * @param {String} [search] Search By ID or Name or Region
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Environments} and HTTP response
+ * Fetch environment name availability
+ * Check if a Environment name is available
+ * @param {String} name
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NameAvailableModel} and HTTP response
*/
}, {
- key: "listEnvironmentsWithHttpInfo",
- value: function listEnvironmentsWithHttpInfo(opts) {
- opts = opts || {};
+ key: "fetchEnvironmentNameAvailabilityWithHttpInfo",
+ value: function fetchEnvironmentNameAvailabilityWithHttpInfo(name) {
var postBody = null;
- var pathParams = {};
- var queryParams = {
- 'page': opts['page'],
- 'pageSize': opts['pageSize'],
- 'search': opts['search']
+ // verify the required parameter 'name' is set
+ if (name === undefined || name === null) {
+ throw new Error("Missing the required parameter 'name' when calling fetchEnvironmentNameAvailability");
+ }
+ var pathParams = {
+ 'name': name
};
+ var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _Environments["default"];
- return this.apiClient.callApi('/core/environments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _NameAvailableModel["default"];
+ return this.apiClient.callApi('/core/environments/name-availability/{name}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * List environments
- * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://infrahub-doc.nexgencloud.com/docs/features/regions), and the date and time of creation. For more information on environments, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/environments-available-features).
- * @param {Object} opts Optional parameters
- * @param {String} opts.page Page Number
- * @param {String} opts.pageSize Data Per Page
- * @param {String} opts.search Search By ID or Name or Region
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Environments}
+ * Fetch environment name availability
+ * Check if a Environment name is available
+ * @param {String} name
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NameAvailableModel}
*/
}, {
- key: "listEnvironments",
- value: function listEnvironments(opts) {
- return this.listEnvironmentsWithHttpInfo(opts).then(function (response_and_data) {
+ key: "fetchEnvironmentNameAvailability",
+ value: function fetchEnvironmentNameAvailability(name) {
+ return this.fetchEnvironmentNameAvailabilityWithHttpInfo(name).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -180,12 +177,12 @@ var EnvironmentApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Environment} and HTTP response
*/
}, {
- key: "retrieveEnvironmentWithHttpInfo",
- value: function retrieveEnvironmentWithHttpInfo(id) {
+ key: "getEnvironmentWithHttpInfo",
+ value: function getEnvironmentWithHttpInfo(id) {
var postBody = null;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling retrieveEnvironment");
+ throw new Error("Missing the required parameter 'id' when calling getEnvironment");
}
var pathParams = {
'id': id
@@ -193,7 +190,7 @@ var EnvironmentApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _Environment["default"];
@@ -207,9 +204,96 @@ var EnvironmentApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Environment}
*/
}, {
- key: "retrieveEnvironment",
- value: function retrieveEnvironment(id) {
- return this.retrieveEnvironmentWithHttpInfo(id).then(function (response_and_data) {
+ key: "getEnvironment",
+ value: function getEnvironment(id) {
+ return this.getEnvironmentWithHttpInfo(id).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Get environment VM quota
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
+ * @param {Number} id
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VMQuota} and HTTP response
+ */
+ }, {
+ key: "getEnvironmentVMQuotaWithHttpInfo",
+ value: function getEnvironmentVMQuotaWithHttpInfo(id) {
+ var postBody = null;
+ // verify the required parameter 'id' is set
+ if (id === undefined || id === null) {
+ throw new Error("Missing the required parameter 'id' when calling getEnvironmentVMQuota");
+ }
+ var pathParams = {
+ 'id': id
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _VMQuota["default"];
+ return this.apiClient.callApi('/core/environments/{id}/vm-quota', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Get environment VM quota
+ * Retrieves VM quota information for a specific environment, including current VM count, maximum VMs allowed, available VMs, and percentage used in an environment before reaching the subnet IP limit.
+ * @param {Number} id
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VMQuota}
+ */
+ }, {
+ key: "getEnvironmentVMQuota",
+ value: function getEnvironmentVMQuota(id) {
+ return this.getEnvironmentVMQuotaWithHttpInfo(id).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * List environments
+ * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
+ * @param {Object} opts Optional parameters
+ * @param {String} [page] Page Number
+ * @param {String} [pageSize] Data Per Page
+ * @param {String} [search] Search By ID or Name or Region
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Environments} and HTTP response
+ */
+ }, {
+ key: "listEnvironmentsWithHttpInfo",
+ value: function listEnvironmentsWithHttpInfo(opts) {
+ opts = opts || {};
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {
+ 'page': opts['page'],
+ 'pageSize': opts['pageSize'],
+ 'search': opts['search']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _Environments["default"];
+ return this.apiClient.callApi('/core/environments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * List environments
+ * Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/), and the date and time of creation. For more information on environments, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/).
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.page Page Number
+ * @param {String} opts.pageSize Data Per Page
+ * @param {String} opts.search Search By ID or Name or Region
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Environments}
+ */
+ }, {
+ key: "listEnvironments",
+ value: function listEnvironments(opts) {
+ return this.listEnvironmentsWithHttpInfo(opts).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -239,7 +323,7 @@ var EnvironmentApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _Environment["default"];
diff --git a/dist/api/FIPExclusionsApi.js b/dist/api/FIPExclusionsApi.js
new file mode 100644
index 00000000..0f83f030
--- /dev/null
+++ b/dist/api/FIPExclusionsApi.js
@@ -0,0 +1,85 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
+var _ResponseModel = _interopRequireDefault(require("../model/ResponseModel"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+* FIPExclusions service.
+* @module api/FIPExclusionsApi
+* @version v1.51.1-alpha
+*/
+var FIPExclusionsApi = exports["default"] = /*#__PURE__*/function () {
+ /**
+ * Constructs a new FIPExclusionsApi.
+ * @alias module:api/FIPExclusionsApi
+ * @class
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
+ * default to {@link module:ApiClient#instance} if unspecified.
+ */
+ function FIPExclusionsApi(apiClient) {
+ _classCallCheck(this, FIPExclusionsApi);
+ this.apiClient = apiClient || _ApiClient["default"].instance;
+ }
+
+ /**
+ * is org excluded from floating ip detachment
+ * @param {Number} orgId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
+ */
+ return _createClass(FIPExclusionsApi, [{
+ key: "checkIfOrgIsExcludedFromFloatingIPDetachmentWithHttpInfo",
+ value: function checkIfOrgIsExcludedFromFloatingIPDetachmentWithHttpInfo(orgId) {
+ var postBody = null;
+ // verify the required parameter 'orgId' is set
+ if (orgId === undefined || orgId === null) {
+ throw new Error("Missing the required parameter 'orgId' when calling checkIfOrgIsExcludedFromFloatingIPDetachment");
+ }
+ var pathParams = {
+ 'org_id': orgId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ResponseModel["default"];
+ return this.apiClient.callApi('/core/fip-detachment-exclusions/org/{org_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * is org excluded from floating ip detachment
+ * @param {Number} orgId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
+ */
+ }, {
+ key: "checkIfOrgIsExcludedFromFloatingIPDetachment",
+ value: function checkIfOrgIsExcludedFromFloatingIPDetachment(orgId) {
+ return this.checkIfOrgIsExcludedFromFloatingIPDetachmentWithHttpInfo(orgId).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+ }]);
+}();
\ No newline at end of file
diff --git a/dist/api/FirewallAttachmentApi.js b/dist/api/FirewallAttachmentApi.js
index 54a4b358..9587e8c8 100644
--- a/dist/api/FirewallAttachmentApi.js
+++ b/dist/api/FirewallAttachmentApi.js
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* FirewallAttachment service.
* @module api/FirewallAttachmentApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var FirewallAttachmentApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -46,21 +46,22 @@ var FirewallAttachmentApi = exports["default"] = /*#__PURE__*/function () {
/**
* Attach Firewalls to VMs
+ * Attach a firewall to one or more virtual machines by providing the virtual machine IDs in the request body and the firewall ID in the path. For more information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/firewalls/attach-firewall-to-vms).
* @param {Number} firewallId
* @param {module:model/AttachFirewallWithVM} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
return _createClass(FirewallAttachmentApi, [{
- key: "attachFirewallsToVmsWithHttpInfo",
- value: function attachFirewallsToVmsWithHttpInfo(firewallId, payload) {
+ key: "attachFirewallToVMsWithHttpInfo",
+ value: function attachFirewallToVMsWithHttpInfo(firewallId, payload) {
var postBody = payload;
// verify the required parameter 'firewallId' is set
if (firewallId === undefined || firewallId === null) {
- throw new Error("Missing the required parameter 'firewallId' when calling attachFirewallsToVms");
+ throw new Error("Missing the required parameter 'firewallId' when calling attachFirewallToVMs");
}
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling attachFirewallsToVms");
+ throw new Error("Missing the required parameter 'payload' when calling attachFirewallToVMs");
}
var pathParams = {
'firewall_id': firewallId
@@ -68,7 +69,7 @@ var FirewallAttachmentApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
@@ -77,14 +78,15 @@ var FirewallAttachmentApi = exports["default"] = /*#__PURE__*/function () {
/**
* Attach Firewalls to VMs
+ * Attach a firewall to one or more virtual machines by providing the virtual machine IDs in the request body and the firewall ID in the path. For more information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/firewalls/attach-firewall-to-vms).
* @param {Number} firewallId
* @param {module:model/AttachFirewallWithVM} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "attachFirewallsToVms",
- value: function attachFirewallsToVms(firewallId, payload) {
- return this.attachFirewallsToVmsWithHttpInfo(firewallId, payload).then(function (response_and_data) {
+ key: "attachFirewallToVMs",
+ value: function attachFirewallToVMs(firewallId, payload) {
+ return this.attachFirewallToVMsWithHttpInfo(firewallId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/FirewallsApi.js b/dist/api/FirewallsApi.js
index ea991943..76df2179 100644
--- a/dist/api/FirewallsApi.js
+++ b/dist/api/FirewallsApi.js
@@ -34,7 +34,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Firewalls service.
* @module api/FirewallsApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var FirewallsApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -51,22 +51,22 @@ var FirewallsApi = exports["default"] = /*#__PURE__*/function () {
/**
* Add firewall rule to firewall
- * Creates a [**firewall rule**](https://infrahub-doc.nexgencloud.com/docs/network-security/security-rules) and adds it to an existing firewall. Include the firewall ID in the path, and provide the firewall rule configuration in the request body.
+ * Creates a [**firewall rule**](https://docs.hyperstack.cloud/docs/network-security/security-rules) and adds it to an existing firewall. Include the firewall ID in the path, and provide the firewall rule configuration in the request body.
* @param {Number} firewallId
* @param {module:model/CreateFirewallRulePayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FirewallRule} and HTTP response
*/
return _createClass(FirewallsApi, [{
- key: "addFirewallRuleToFirewallWithHttpInfo",
- value: function addFirewallRuleToFirewallWithHttpInfo(firewallId, payload) {
+ key: "addRuleToFirewallWithHttpInfo",
+ value: function addRuleToFirewallWithHttpInfo(firewallId, payload) {
var postBody = payload;
// verify the required parameter 'firewallId' is set
if (firewallId === undefined || firewallId === null) {
- throw new Error("Missing the required parameter 'firewallId' when calling addFirewallRuleToFirewall");
+ throw new Error("Missing the required parameter 'firewallId' when calling addRuleToFirewall");
}
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling addFirewallRuleToFirewall");
+ throw new Error("Missing the required parameter 'payload' when calling addRuleToFirewall");
}
var pathParams = {
'firewall_id': firewallId
@@ -74,7 +74,7 @@ var FirewallsApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _FirewallRule["default"];
@@ -83,22 +83,22 @@ var FirewallsApi = exports["default"] = /*#__PURE__*/function () {
/**
* Add firewall rule to firewall
- * Creates a [**firewall rule**](https://infrahub-doc.nexgencloud.com/docs/network-security/security-rules) and adds it to an existing firewall. Include the firewall ID in the path, and provide the firewall rule configuration in the request body.
+ * Creates a [**firewall rule**](https://docs.hyperstack.cloud/docs/network-security/security-rules) and adds it to an existing firewall. Include the firewall ID in the path, and provide the firewall rule configuration in the request body.
* @param {Number} firewallId
* @param {module:model/CreateFirewallRulePayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FirewallRule}
*/
}, {
- key: "addFirewallRuleToFirewall",
- value: function addFirewallRuleToFirewall(firewallId, payload) {
- return this.addFirewallRuleToFirewallWithHttpInfo(firewallId, payload).then(function (response_and_data) {
+ key: "addRuleToFirewall",
+ value: function addRuleToFirewall(firewallId, payload) {
+ return this.addRuleToFirewallWithHttpInfo(firewallId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Create firewall
- * Creates a firewall to which firewall rules can be added. A firewall can be attached to one or more virtual machines to control inbound and outbound traffic. In the body of the request, include the name of the firewall, the ID of the environment within which the firewall will be created, and an optional description. To obtain the ID of the environment, make a request to the [**list environments**](https://infrahub-doc.nexgencloud.com/docs/api-reference/core-resources/environments/list-environments) endpoint.
+ * Creates a firewall to which firewall rules can be added. A firewall can be attached to one or more virtual machines to control inbound and outbound traffic. In the body of the request, include the name of the firewall, the ID of the environment within which the firewall will be created, and an optional description. To obtain the ID of the environment, make a request to the [**list environments**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/list-environments) endpoint.
* @param {module:model/CreateFirewallPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FirewallResponse} and HTTP response
*/
@@ -114,7 +114,7 @@ var FirewallsApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _FirewallResponse["default"];
@@ -123,7 +123,7 @@ var FirewallsApi = exports["default"] = /*#__PURE__*/function () {
/**
* Create firewall
- * Creates a firewall to which firewall rules can be added. A firewall can be attached to one or more virtual machines to control inbound and outbound traffic. In the body of the request, include the name of the firewall, the ID of the environment within which the firewall will be created, and an optional description. To obtain the ID of the environment, make a request to the [**list environments**](https://infrahub-doc.nexgencloud.com/docs/api-reference/core-resources/environments/list-environments) endpoint.
+ * Creates a firewall to which firewall rules can be added. A firewall can be attached to one or more virtual machines to control inbound and outbound traffic. In the body of the request, include the name of the firewall, the ID of the environment within which the firewall will be created, and an optional description. To obtain the ID of the environment, make a request to the [**list environments**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/list-environments) endpoint.
* @param {module:model/CreateFirewallPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FirewallResponse}
*/
@@ -137,17 +137,17 @@ var FirewallsApi = exports["default"] = /*#__PURE__*/function () {
/**
* Delete firewall
- * Deletes a firewall by specifying the firewall ID in the path. If the firewall is currently attached to a virtual machine, it must be detached before deletion. For more information, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/core-resources/firewalls/delete-firewall).
+ * Deletes a firewall by specifying the firewall ID in the path. If the firewall is currently attached to a virtual machine, it must be detached before deletion. For more information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/firewalls/delete-firewall).
* @param {Number} id
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
- key: "deleteFirewallWithHttpInfo",
- value: function deleteFirewallWithHttpInfo(id) {
+ key: "deleteExistingFirewallWithHttpInfo",
+ value: function deleteExistingFirewallWithHttpInfo(id) {
var postBody = null;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling deleteFirewall");
+ throw new Error("Missing the required parameter 'id' when calling deleteExistingFirewall");
}
var pathParams = {
'id': id
@@ -155,7 +155,7 @@ var FirewallsApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
@@ -164,36 +164,36 @@ var FirewallsApi = exports["default"] = /*#__PURE__*/function () {
/**
* Delete firewall
- * Deletes a firewall by specifying the firewall ID in the path. If the firewall is currently attached to a virtual machine, it must be detached before deletion. For more information, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/core-resources/firewalls/delete-firewall).
+ * Deletes a firewall by specifying the firewall ID in the path. If the firewall is currently attached to a virtual machine, it must be detached before deletion. For more information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/firewalls/delete-firewall).
* @param {Number} id
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "deleteFirewall",
- value: function deleteFirewall(id) {
- return this.deleteFirewallWithHttpInfo(id).then(function (response_and_data) {
+ key: "deleteExistingFirewall",
+ value: function deleteExistingFirewall(id) {
+ return this.deleteExistingFirewallWithHttpInfo(id).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Delete firewall rules from firewall
- * Removes a firewall rule from firewall by providing the firewall ID and firewall rule ID in the path. For more information, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/core-resources/firewalls/remove-firewall-rule-from-firewall).
+ * Removes a firewall rule from firewall by providing the firewall ID and firewall rule ID in the path. For more information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/firewalls/remove-firewall-rule-from-firewall).
* @param {Number} firewallId
* @param {Number} firewallRuleId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
- key: "deleteFirewallRulesFromFirewallWithHttpInfo",
- value: function deleteFirewallRulesFromFirewallWithHttpInfo(firewallId, firewallRuleId) {
+ key: "deleteRuleFromFirewallWithHttpInfo",
+ value: function deleteRuleFromFirewallWithHttpInfo(firewallId, firewallRuleId) {
var postBody = null;
// verify the required parameter 'firewallId' is set
if (firewallId === undefined || firewallId === null) {
- throw new Error("Missing the required parameter 'firewallId' when calling deleteFirewallRulesFromFirewall");
+ throw new Error("Missing the required parameter 'firewallId' when calling deleteRuleFromFirewall");
}
// verify the required parameter 'firewallRuleId' is set
if (firewallRuleId === undefined || firewallRuleId === null) {
- throw new Error("Missing the required parameter 'firewallRuleId' when calling deleteFirewallRulesFromFirewall");
+ throw new Error("Missing the required parameter 'firewallRuleId' when calling deleteRuleFromFirewall");
}
var pathParams = {
'firewall_id': firewallId,
@@ -202,7 +202,7 @@ var FirewallsApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
@@ -211,22 +211,63 @@ var FirewallsApi = exports["default"] = /*#__PURE__*/function () {
/**
* Delete firewall rules from firewall
- * Removes a firewall rule from firewall by providing the firewall ID and firewall rule ID in the path. For more information, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/core-resources/firewalls/remove-firewall-rule-from-firewall).
+ * Removes a firewall rule from firewall by providing the firewall ID and firewall rule ID in the path. For more information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/firewalls/remove-firewall-rule-from-firewall).
* @param {Number} firewallId
* @param {Number} firewallRuleId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "deleteFirewallRulesFromFirewall",
- value: function deleteFirewallRulesFromFirewall(firewallId, firewallRuleId) {
- return this.deleteFirewallRulesFromFirewallWithHttpInfo(firewallId, firewallRuleId).then(function (response_and_data) {
+ key: "deleteRuleFromFirewall",
+ value: function deleteRuleFromFirewall(firewallId, firewallRuleId) {
+ return this.deleteRuleFromFirewallWithHttpInfo(firewallId, firewallRuleId).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve firewall details
+ * Retrieves the details of an existing firewall, including the security rules it contains and information about the virtual machines to which it is attached.
+ * @param {Number} id
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FirewallDetailResponse} and HTTP response
+ */
+ }, {
+ key: "getFirewallWithHttpInfo",
+ value: function getFirewallWithHttpInfo(id) {
+ var postBody = null;
+ // verify the required parameter 'id' is set
+ if (id === undefined || id === null) {
+ throw new Error("Missing the required parameter 'id' when calling getFirewall");
+ }
+ var pathParams = {
+ 'id': id
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _FirewallDetailResponse["default"];
+ return this.apiClient.callApi('/core/firewalls/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve firewall details
+ * Retrieves the details of an existing firewall, including the security rules it contains and information about the virtual machines to which it is attached.
+ * @param {Number} id
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FirewallDetailResponse}
+ */
+ }, {
+ key: "getFirewall",
+ value: function getFirewall(id) {
+ return this.getFirewallWithHttpInfo(id).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* List firewalls
- * Retrieves a list of existing firewalls and their details, including the security rules they contain and information about the virtual machines to which they are attached. For more information about the firewalls features offered by Infrahub, [**click here**](https://infrahub-doc.nexgencloud.com/docs/network-security/security-groups).
+ * Retrieves a list of existing firewalls and their details, including the security rules they contain and information about the virtual machines to which they are attached. For more information about the firewalls features offered by Infrahub, [**click here**](https://docs.hyperstack.cloud/docs/network-security/security-groups).
* @param {Object} opts Optional parameters
* @param {Number} [page]
* @param {Number} [pageSize]
@@ -235,8 +276,8 @@ var FirewallsApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FirewallsListResponse} and HTTP response
*/
}, {
- key: "listFirewallsWithHttpInfo",
- value: function listFirewallsWithHttpInfo(opts) {
+ key: "listExistingFirewallsWithHttpInfo",
+ value: function listExistingFirewallsWithHttpInfo(opts) {
opts = opts || {};
var postBody = null;
var pathParams = {};
@@ -248,7 +289,7 @@ var FirewallsApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _FirewallsListResponse["default"];
@@ -257,7 +298,7 @@ var FirewallsApi = exports["default"] = /*#__PURE__*/function () {
/**
* List firewalls
- * Retrieves a list of existing firewalls and their details, including the security rules they contain and information about the virtual machines to which they are attached. For more information about the firewalls features offered by Infrahub, [**click here**](https://infrahub-doc.nexgencloud.com/docs/network-security/security-groups).
+ * Retrieves a list of existing firewalls and their details, including the security rules they contain and information about the virtual machines to which they are attached. For more information about the firewalls features offered by Infrahub, [**click here**](https://docs.hyperstack.cloud/docs/network-security/security-groups).
* @param {Object} opts Optional parameters
* @param {Number} opts.page
* @param {Number} opts.pageSize
@@ -266,50 +307,9 @@ var FirewallsApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FirewallsListResponse}
*/
}, {
- key: "listFirewalls",
- value: function listFirewalls(opts) {
- return this.listFirewallsWithHttpInfo(opts).then(function (response_and_data) {
- return response_and_data.data;
- });
- }
-
- /**
- * Retrieve firewall details
- * Retrieves the details of an existing firewall, including the security rules it contains and information about the virtual machines to which it is attached.
- * @param {Number} id
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FirewallDetailResponse} and HTTP response
- */
- }, {
- key: "retrieveFirewallDetailsWithHttpInfo",
- value: function retrieveFirewallDetailsWithHttpInfo(id) {
- var postBody = null;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling retrieveFirewallDetails");
- }
- var pathParams = {
- 'id': id
- };
- var queryParams = {};
- var headerParams = {};
- var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
- var contentTypes = [];
- var accepts = ['application/json'];
- var returnType = _FirewallDetailResponse["default"];
- return this.apiClient.callApi('/core/firewalls/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
- }
-
- /**
- * Retrieve firewall details
- * Retrieves the details of an existing firewall, including the security rules it contains and information about the virtual machines to which it is attached.
- * @param {Number} id
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FirewallDetailResponse}
- */
- }, {
- key: "retrieveFirewallDetails",
- value: function retrieveFirewallDetails(id) {
- return this.retrieveFirewallDetailsWithHttpInfo(id).then(function (response_and_data) {
+ key: "listExistingFirewalls",
+ value: function listExistingFirewalls(opts) {
+ return this.listExistingFirewallsWithHttpInfo(opts).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/FlavorApi.js b/dist/api/FlavorApi.js
index 185a02b8..bf1c1b14 100644
--- a/dist/api/FlavorApi.js
+++ b/dist/api/FlavorApi.js
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Flavor service.
* @module api/FlavorApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var FlavorApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -45,7 +45,7 @@ var FlavorApi = exports["default"] = /*#__PURE__*/function () {
/**
* List Flavors
- * Returns a list of available virtual machine hardware configurations, known as **flavors**. You can specify a `region_name` in the query string of the request to retrieve flavors available only in the specified region; by default, it returns flavors available in all regions. For more details on flavors, [**click here**](https://infrahub-doc.nexgencloud.com/docs/hardware/flavors).
+ * Returns a list of available virtual machine hardware configurations, known as**flavors**. You can specify a `region_name` in the query string of the request toretrieve flavors available only in the specified region; by default, it returnsflavors available in all regions. For more details on flavors,[**click here**](https://docs.hyperstack.cloud/docs/hardware/flavors).
* @param {Object} opts Optional parameters
* @param {String} [region] Region Name
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FlavorListResponse} and HTTP response
@@ -61,7 +61,7 @@ var FlavorApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _FlavorListResponse["default"];
@@ -70,7 +70,7 @@ var FlavorApi = exports["default"] = /*#__PURE__*/function () {
/**
* List Flavors
- * Returns a list of available virtual machine hardware configurations, known as **flavors**. You can specify a `region_name` in the query string of the request to retrieve flavors available only in the specified region; by default, it returns flavors available in all regions. For more details on flavors, [**click here**](https://infrahub-doc.nexgencloud.com/docs/hardware/flavors).
+ * Returns a list of available virtual machine hardware configurations, known as**flavors**. You can specify a `region_name` in the query string of the request toretrieve flavors available only in the specified region; by default, it returnsflavors available in all regions. For more details on flavors,[**click here**](https://docs.hyperstack.cloud/docs/hardware/flavors).
* @param {Object} opts Optional parameters
* @param {String} opts.region Region Name
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FlavorListResponse}
diff --git a/dist/api/FloatingIpApi.js b/dist/api/FloatingIpApi.js
index fa658a95..865b9386 100644
--- a/dist/api/FloatingIpApi.js
+++ b/dist/api/FloatingIpApi.js
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* FloatingIp service.
* @module api/FloatingIpApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var FloatingIpApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -45,82 +45,82 @@ var FloatingIpApi = exports["default"] = /*#__PURE__*/function () {
/**
* Attach public IP to virtual machine
- * Initiates the creation of a public IP address and attaches it to an existing virtual machine, making it accessible through the internet. Include the virtual machine ID in the path to attach a public IP to the specified VM. For more information on public IP addresses, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/public-ip).
- * @param {Number} id
+ * Initiates the creation of a public IP address and attaches it to an existing virtual machine, making it accessible through the internet. Include the virtual machine ID in the path to attach a public IP to the specified VM. For more information on public IP addresses, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/floating-ip/attach-floating-ip/).
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
return _createClass(FloatingIpApi, [{
- key: "attachPublicIpToVirtualMachineWithHttpInfo",
- value: function attachPublicIpToVirtualMachineWithHttpInfo(id) {
+ key: "attachPublicIPToVMWithHttpInfo",
+ value: function attachPublicIPToVMWithHttpInfo(vmId) {
var postBody = null;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling attachPublicIpToVirtualMachine");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling attachPublicIPToVM");
}
var pathParams = {
- 'id': id
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
- return this.apiClient.callApi('/core/virtual-machines/{id}/attach-floatingip', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/attach-floatingip', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Attach public IP to virtual machine
- * Initiates the creation of a public IP address and attaches it to an existing virtual machine, making it accessible through the internet. Include the virtual machine ID in the path to attach a public IP to the specified VM. For more information on public IP addresses, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/public-ip).
- * @param {Number} id
+ * Initiates the creation of a public IP address and attaches it to an existing virtual machine, making it accessible through the internet. Include the virtual machine ID in the path to attach a public IP to the specified VM. For more information on public IP addresses, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/floating-ip/attach-floating-ip/).
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "attachPublicIpToVirtualMachine",
- value: function attachPublicIpToVirtualMachine(id) {
- return this.attachPublicIpToVirtualMachineWithHttpInfo(id).then(function (response_and_data) {
+ key: "attachPublicIPToVM",
+ value: function attachPublicIPToVM(vmId) {
+ return this.attachPublicIPToVMWithHttpInfo(vmId).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Detach public IP from virtual machine
- * Removes a public IP address from an existing virtual machine, disabling internet accessibility to the VM. Include the virtual machine ID in the path to detach the public IP from the specified VM. For more information on public IP addresses, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/public-ip).
- * @param {Number} id
+ * Removes a public IP address from an existing virtual machine, disabling internet accessibility to the VM. Include the virtual machine ID in the path to detach the public IP from the specified VM. For more information on public IP addresses, [**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/public-ip).
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
- key: "detachPublicIpFromVirtualMachineWithHttpInfo",
- value: function detachPublicIpFromVirtualMachineWithHttpInfo(id) {
+ key: "detachPublicIPFromVMWithHttpInfo",
+ value: function detachPublicIPFromVMWithHttpInfo(vmId) {
var postBody = null;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling detachPublicIpFromVirtualMachine");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling detachPublicIPFromVM");
}
var pathParams = {
- 'id': id
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
- return this.apiClient.callApi('/core/virtual-machines/{id}/detach-floatingip', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/detach-floatingip', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Detach public IP from virtual machine
- * Removes a public IP address from an existing virtual machine, disabling internet accessibility to the VM. Include the virtual machine ID in the path to detach the public IP from the specified VM. For more information on public IP addresses, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/public-ip).
- * @param {Number} id
+ * Removes a public IP address from an existing virtual machine, disabling internet accessibility to the VM. Include the virtual machine ID in the path to detach the public IP from the specified VM. For more information on public IP addresses, [**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/public-ip).
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "detachPublicIpFromVirtualMachine",
- value: function detachPublicIpFromVirtualMachine(id) {
- return this.detachPublicIpFromVirtualMachineWithHttpInfo(id).then(function (response_and_data) {
+ key: "detachPublicIPFromVM",
+ value: function detachPublicIPFromVM(vmId) {
+ return this.detachPublicIPFromVMWithHttpInfo(vmId).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/GpuApi.js b/dist/api/GpuApi.js
index 4c8146f0..bfe7c9ce 100644
--- a/dist/api/GpuApi.js
+++ b/dist/api/GpuApi.js
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Gpu service.
* @module api/GpuApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var GpuApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -49,14 +49,14 @@ var GpuApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GPUList} and HTTP response
*/
return _createClass(GpuApi, [{
- key: "listGpusWithHttpInfo",
- value: function listGpusWithHttpInfo() {
+ key: "listGPUsWithHttpInfo",
+ value: function listGPUsWithHttpInfo() {
var postBody = null;
var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _GPUList["default"];
@@ -69,9 +69,9 @@ var GpuApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GPUList}
*/
}, {
- key: "listGpus",
- value: function listGpus() {
- return this.listGpusWithHttpInfo().then(function (response_and_data) {
+ key: "listGPUs",
+ value: function listGPUs() {
+ return this.listGPUsWithHttpInfo().then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/HealthApi.js b/dist/api/HealthApi.js
new file mode 100644
index 00000000..334879fb
--- /dev/null
+++ b/dist/api/HealthApi.js
@@ -0,0 +1,76 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _ObjectStorageHealthResponse = _interopRequireDefault(require("../model/ObjectStorageHealthResponse"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+* Health service.
+* @module api/HealthApi
+* @version v1.51.1-alpha
+*/
+var HealthApi = exports["default"] = /*#__PURE__*/function () {
+ /**
+ * Constructs a new HealthApi.
+ * @alias module:api/HealthApi
+ * @class
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
+ * default to {@link module:ApiClient#instance} if unspecified.
+ */
+ function HealthApi(apiClient) {
+ _classCallCheck(this, HealthApi);
+ this.apiClient = apiClient || _ApiClient["default"].instance;
+ }
+
+ /**
+ * Healthcheck
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ObjectStorageHealthResponse} and HTTP response
+ */
+ return _createClass(HealthApi, [{
+ key: "healthzEndpointWithHttpInfo",
+ value: function healthzEndpointWithHttpInfo() {
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ObjectStorageHealthResponse["default"];
+ return this.apiClient.callApi('/object-storage/healthz', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Healthcheck
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ObjectStorageHealthResponse}
+ */
+ }, {
+ key: "healthzEndpoint",
+ value: function healthzEndpoint() {
+ return this.healthzEndpointWithHttpInfo().then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+ }]);
+}();
\ No newline at end of file
diff --git a/dist/api/ImageApi.js b/dist/api/ImageApi.js
index e0036ce6..96d835ba 100644
--- a/dist/api/ImageApi.js
+++ b/dist/api/ImageApi.js
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Image service.
* @module api/ImageApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var ImageApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -53,12 +53,12 @@ var ImageApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
return _createClass(ImageApi, [{
- key: "deleteAnImageWithHttpInfo",
- value: function deleteAnImageWithHttpInfo(id) {
+ key: "deleteImageWithHttpInfo",
+ value: function deleteImageWithHttpInfo(id) {
var postBody = null;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling deleteAnImage");
+ throw new Error("Missing the required parameter 'id' when calling deleteImage");
}
var pathParams = {
'id': id
@@ -66,7 +66,7 @@ var ImageApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
@@ -80,9 +80,9 @@ var ImageApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "deleteAnImage",
- value: function deleteAnImage(id) {
- return this.deleteAnImageWithHttpInfo(id).then(function (response_and_data) {
+ key: "deleteImage",
+ value: function deleteImage(id) {
+ return this.deleteImageWithHttpInfo(id).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -94,12 +94,12 @@ var ImageApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NameAvailableModel} and HTTP response
*/
}, {
- key: "fetchNameAvailabilityForImagesWithHttpInfo",
- value: function fetchNameAvailabilityForImagesWithHttpInfo(name) {
+ key: "fetchImageNameAvailabilityWithHttpInfo",
+ value: function fetchImageNameAvailabilityWithHttpInfo(name) {
var postBody = null;
// verify the required parameter 'name' is set
if (name === undefined || name === null) {
- throw new Error("Missing the required parameter 'name' when calling fetchNameAvailabilityForImages");
+ throw new Error("Missing the required parameter 'name' when calling fetchImageNameAvailability");
}
var pathParams = {
'name': name
@@ -107,7 +107,7 @@ var ImageApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _NameAvailableModel["default"];
@@ -121,9 +121,9 @@ var ImageApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NameAvailableModel}
*/
}, {
- key: "fetchNameAvailabilityForImages",
- value: function fetchNameAvailabilityForImages(name) {
- return this.fetchNameAvailabilityForImagesWithHttpInfo(name).then(function (response_and_data) {
+ key: "fetchImageNameAvailability",
+ value: function fetchImageNameAvailability(name) {
+ return this.fetchImageNameAvailabilityWithHttpInfo(name).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -137,13 +137,13 @@ var ImageApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Image} and HTTP response
*/
}, {
- key: "getPrivateImageDetailsWithHttpInfo",
- value: function getPrivateImageDetailsWithHttpInfo(id, opts) {
+ key: "getImageWithHttpInfo",
+ value: function getImageWithHttpInfo(id, opts) {
opts = opts || {};
var postBody = null;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling getPrivateImageDetails");
+ throw new Error("Missing the required parameter 'id' when calling getImage");
}
var pathParams = {
'id': id
@@ -153,7 +153,7 @@ var ImageApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _Image["default"];
@@ -169,16 +169,16 @@ var ImageApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Image}
*/
}, {
- key: "getPrivateImageDetails",
- value: function getPrivateImageDetails(id, opts) {
- return this.getPrivateImageDetailsWithHttpInfo(id, opts).then(function (response_and_data) {
+ key: "getImage",
+ value: function getImage(id, opts) {
+ return this.getImageWithHttpInfo(id, opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* List Images
- * Returns a list of all available operating system (OS) images, providing details about each image's corresponding virtual machine operating system. You can include the optional `region` parameter in the query string of the request to specifically return OS images from the designated region. Additionally, use the `include_public` parameter to specify whether to include public images in the response. For more information onOS images, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/images).
+ * Returns a list of all available operating system (OS) images, providing details about each image's corresponding virtual machine operating system. You can include the optional `region` parameter in the query string of the request to specifically return OS images from the designated region. Additionally, use the `include_public` parameter to specify whether to include public images in the response. For more information onOS images, [**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/images).
* @param {Object} opts Optional parameters
* @param {String} [region] Region Name
* @param {Boolean} [includePublic] Flag to include public images in the response (true/false). Default is true.
@@ -202,7 +202,7 @@ var ImageApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _Images["default"];
@@ -211,7 +211,7 @@ var ImageApi = exports["default"] = /*#__PURE__*/function () {
/**
* List Images
- * Returns a list of all available operating system (OS) images, providing details about each image's corresponding virtual machine operating system. You can include the optional `region` parameter in the query string of the request to specifically return OS images from the designated region. Additionally, use the `include_public` parameter to specify whether to include public images in the response. For more information onOS images, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/images).
+ * Returns a list of all available operating system (OS) images, providing details about each image's corresponding virtual machine operating system. You can include the optional `region` parameter in the query string of the request to specifically return OS images from the designated region. Additionally, use the `include_public` parameter to specify whether to include public images in the response. For more information onOS images, [**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/images).
* @param {Object} opts Optional parameters
* @param {String} opts.region Region Name
* @param {Boolean} opts.includePublic Flag to include public images in the response (true/false). Default is true.
diff --git a/dist/api/InviteApi.js b/dist/api/InviteApi.js
index 5a6af716..fd7119db 100644
--- a/dist/api/InviteApi.js
+++ b/dist/api/InviteApi.js
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Invite service.
* @module api/InviteApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var InviteApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -47,12 +47,53 @@ var InviteApi = exports["default"] = /*#__PURE__*/function () {
}
/**
- * Delete Invite
- * Deletes an invitation for a user to join your organization. For additional information on deleting an invitation, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/delete-invite).
+ * Accept Invite
+ * Accept an invitation for a user to join your organization.
* @param {Number} id
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CommonResponseModel} and HTTP response
*/
return _createClass(InviteApi, [{
+ key: "acceptInviteWithHttpInfo",
+ value: function acceptInviteWithHttpInfo(id) {
+ var postBody = null;
+ // verify the required parameter 'id' is set
+ if (id === undefined || id === null) {
+ throw new Error("Missing the required parameter 'id' when calling acceptInvite");
+ }
+ var pathParams = {
+ 'id': id
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _CommonResponseModel["default"];
+ return this.apiClient.callApi('/auth/invites/{id}/accept', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Accept Invite
+ * Accept an invitation for a user to join your organization.
+ * @param {Number} id
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CommonResponseModel}
+ */
+ }, {
+ key: "acceptInvite",
+ value: function acceptInvite(id) {
+ return this.acceptInviteWithHttpInfo(id).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Accept Invite
+ * Deletes an invitation for a user to join your organization. For additional information on deleting an invitation, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/organization/invites/delete-invite).
+ * @param {Number} id
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CommonResponseModel} and HTTP response
+ */
+ }, {
key: "deleteInviteWithHttpInfo",
value: function deleteInviteWithHttpInfo(id) {
var postBody = null;
@@ -66,7 +107,7 @@ var InviteApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _CommonResponseModel["default"];
@@ -74,8 +115,8 @@ var InviteApi = exports["default"] = /*#__PURE__*/function () {
}
/**
- * Delete Invite
- * Deletes an invitation for a user to join your organization. For additional information on deleting an invitation, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/delete-invite).
+ * Accept Invite
+ * Deletes an invitation for a user to join your organization. For additional information on deleting an invitation, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/organization/invites/delete-invite).
* @param {Number} id
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CommonResponseModel}
*/
@@ -89,7 +130,7 @@ var InviteApi = exports["default"] = /*#__PURE__*/function () {
/**
* Invite User to Organization
- * Invites a user to join your organization. For additional information on inviting users to the organization, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/invite-member).
+ * Invites a user to join your organization. For additional information on inviting users to the organization, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/organization/invites/invite-member).
* @param {module:model/InviteUserPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InviteUserResponseModel} and HTTP response
*/
@@ -105,7 +146,7 @@ var InviteApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _InviteUserResponseModel["default"];
@@ -114,7 +155,7 @@ var InviteApi = exports["default"] = /*#__PURE__*/function () {
/**
* Invite User to Organization
- * Invites a user to join your organization. For additional information on inviting users to the organization, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/invite-member).
+ * Invites a user to join your organization. For additional information on inviting users to the organization, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/organization/invites/invite-member).
* @param {module:model/InviteUserPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InviteUserResponseModel}
*/
@@ -128,7 +169,7 @@ var InviteApi = exports["default"] = /*#__PURE__*/function () {
/**
* List Invites
- * Retrieve a list of email invitations from your organization. For additional information on listing invited users, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/list-invites).
+ * Retrieve a list of email invitations from your organization. For additional information on listing invited users, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/organization/invites/list-invites).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetInvitesResponseModel} and HTTP response
*/
}, {
@@ -139,7 +180,7 @@ var InviteApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _GetInvitesResponseModel["default"];
@@ -148,7 +189,7 @@ var InviteApi = exports["default"] = /*#__PURE__*/function () {
/**
* List Invites
- * Retrieve a list of email invitations from your organization. For additional information on listing invited users, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/invites/list-invites).
+ * Retrieve a list of email invitations from your organization. For additional information on listing invited users, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/organization/invites/list-invites).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetInvitesResponseModel}
*/
}, {
diff --git a/dist/api/KeypairApi.js b/dist/api/KeypairApi.js
index e3ca2d29..8d248461 100644
--- a/dist/api/KeypairApi.js
+++ b/dist/api/KeypairApi.js
@@ -11,7 +11,7 @@ var _ImportKeypairResponse = _interopRequireDefault(require("../model/ImportKeyp
var _Keypairs = _interopRequireDefault(require("../model/Keypairs"));
var _ResponseModel = _interopRequireDefault(require("../model/ResponseModel"));
var _UpdateKeypairName = _interopRequireDefault(require("../model/UpdateKeypairName"));
-var _UpdateKeypairnameresponse = _interopRequireDefault(require("../model/UpdateKeypairnameresponse"));
+var _UpdateKeypairNameResponse = _interopRequireDefault(require("../model/UpdateKeypairNameResponse"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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); }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -33,7 +33,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Keypair service.
* @module api/KeypairApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var KeypairApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -50,7 +50,7 @@ var KeypairApi = exports["default"] = /*#__PURE__*/function () {
/**
* Delete key pair
- * Permanently deletes a specified key pair. Include the key pair ID in the request path to remove the designated key pair.
+ * Permanently deletes a specified key pair. Provide the key pair ID in the path to remove the designated key pair.
* @param {Number} id
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
@@ -68,7 +68,7 @@ var KeypairApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
@@ -77,7 +77,7 @@ var KeypairApi = exports["default"] = /*#__PURE__*/function () {
/**
* Delete key pair
- * Permanently deletes a specified key pair. Include the key pair ID in the request path to remove the designated key pair.
+ * Permanently deletes a specified key pair. Provide the key pair ID in the path to remove the designated key pair.
* @param {Number} id
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
@@ -91,7 +91,7 @@ var KeypairApi = exports["default"] = /*#__PURE__*/function () {
/**
* Import key pair
- * Imports a new key pair for secure shell (SSH) access to your resources. To import a new key pair, include the key name, environment name, and public key in the request body. For additional information on importing SSH key pairs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/getting-started/create-keypair#importing-an-ssh-key).
+ * Imports a new key pair for secure shell (SSH) access to your resources. Provide the key name, environment name, and public key in the request body. For more details on importing SSH key pairs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/keypairs/import-keypair).
* @param {module:model/ImportKeypairPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ImportKeypairResponse} and HTTP response
*/
@@ -107,7 +107,7 @@ var KeypairApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _ImportKeypairResponse["default"];
@@ -116,7 +116,7 @@ var KeypairApi = exports["default"] = /*#__PURE__*/function () {
/**
* Import key pair
- * Imports a new key pair for secure shell (SSH) access to your resources. To import a new key pair, include the key name, environment name, and public key in the request body. For additional information on importing SSH key pairs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/getting-started/create-keypair#importing-an-ssh-key).
+ * Imports a new key pair for secure shell (SSH) access to your resources. Provide the key name, environment name, and public key in the request body. For more details on importing SSH key pairs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/keypairs/import-keypair).
* @param {module:model/ImportKeypairPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ImportKeypairResponse}
*/
@@ -130,7 +130,7 @@ var KeypairApi = exports["default"] = /*#__PURE__*/function () {
/**
* List key pairs
- * Retrieves a list of your existing SSH key pairs, providing details for each. For additional information on SSH key pairs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/keypairs-available-features).
+ * Retrieves a list of your existing SSH key pairs, providing details for each. For more information on SSH key pairs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/keypairs/).
* @param {Object} opts Optional parameters
* @param {String} [page] Page Number
* @param {String} [pageSize] Data Per Page
@@ -150,7 +150,7 @@ var KeypairApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _Keypairs["default"];
@@ -159,7 +159,7 @@ var KeypairApi = exports["default"] = /*#__PURE__*/function () {
/**
* List key pairs
- * Retrieves a list of your existing SSH key pairs, providing details for each. For additional information on SSH key pairs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/keypairs-available-features).
+ * Retrieves a list of your existing SSH key pairs, providing details for each. For more information on SSH key pairs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/keypairs/).
* @param {Object} opts Optional parameters
* @param {String} opts.page Page Number
* @param {String} opts.pageSize Data Per Page
@@ -176,10 +176,10 @@ var KeypairApi = exports["default"] = /*#__PURE__*/function () {
/**
* Update key pair name
- * Updates the name of a specified key pair. Include the key pair ID in the request path and the new `name` of the key pair in the request body.
+ * Updates the name of a specified key pair. Provide the key pair ID in the path, and include the new `name` in the request body.
* @param {Number} id
* @param {module:model/UpdateKeypairName} payload
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateKeypairnameresponse} and HTTP response
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateKeypairNameResponse} and HTTP response
*/
}, {
key: "updateKeyPairNameWithHttpInfo",
@@ -199,19 +199,19 @@ var KeypairApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
- var returnType = _UpdateKeypairnameresponse["default"];
+ var returnType = _UpdateKeypairNameResponse["default"];
return this.apiClient.callApi('/core/keypair/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Update key pair name
- * Updates the name of a specified key pair. Include the key pair ID in the request path and the new `name` of the key pair in the request body.
+ * Updates the name of a specified key pair. Provide the key pair ID in the path, and include the new `name` in the request body.
* @param {Number} id
* @param {module:model/UpdateKeypairName} payload
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateKeypairnameresponse}
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateKeypairNameResponse}
*/
}, {
key: "updateKeyPairName",
diff --git a/dist/api/OrganizationApi.js b/dist/api/OrganizationApi.js
index 5c8abd2e..f67ee362 100644
--- a/dist/api/OrganizationApi.js
+++ b/dist/api/OrganizationApi.js
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Organization service.
* @module api/OrganizationApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -49,7 +49,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
/**
* Remove Organization Member
- * Removes a member from your organization. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/remove-member).
+ * Removes a member from your organization. For additional information, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/organization/remove-member).
* @param {module:model/RemoveMemberPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemoveMemberFromOrganizationResponseModel} and HTTP response
*/
@@ -65,7 +65,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _RemoveMemberFromOrganizationResponseModel["default"];
@@ -74,7 +74,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
/**
* Remove Organization Member
- * Removes a member from your organization. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/remove-member).
+ * Removes a member from your organization. For additional information, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/organization/remove-member).
* @param {module:model/RemoveMemberPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemoveMemberFromOrganizationResponseModel}
*/
@@ -88,7 +88,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
/**
* Retrieve Organization Information
- * Retrieves detailed information about your organization, including current credit, threshold, number of instances, and number of volumes. For additional information on organizations, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/retrieve-org-details).
+ * Retrieves detailed information about your organization, including current credit, threshold, number of instances, and number of volumes. For additional information on organizations, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/organization/retrieve-org-details).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetOrganizationResponseModel} and HTTP response
*/
}, {
@@ -99,7 +99,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _GetOrganizationResponseModel["default"];
@@ -108,7 +108,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
/**
* Retrieve Organization Information
- * Retrieves detailed information about your organization, including current credit, threshold, number of instances, and number of volumes. For additional information on organizations, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/retrieve-org-details).
+ * Retrieves detailed information about your organization, including current credit, threshold, number of instances, and number of volumes. For additional information on organizations, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/organization/retrieve-org-details).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetOrganizationResponseModel}
*/
}, {
@@ -121,7 +121,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
/**
* Update Organization Information
- * Updates the name of the organization. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/update-org-name).
+ * Updates the name of the organization. For additional information, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/organization/update-org-name).
* @param {module:model/UpdateOrganizationPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateOrganizationResponseModel} and HTTP response
*/
@@ -137,7 +137,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _UpdateOrganizationResponseModel["default"];
@@ -146,7 +146,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
/**
* Update Organization Information
- * Updates the name of the organization. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/organization/update-org-name).
+ * Updates the name of the organization. For additional information, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/organization/update-org-name).
* @param {module:model/UpdateOrganizationPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateOrganizationResponseModel}
*/
diff --git a/dist/api/PartnerConfigApi.js b/dist/api/PartnerConfigApi.js
new file mode 100644
index 00000000..38c07ae3
--- /dev/null
+++ b/dist/api/PartnerConfigApi.js
@@ -0,0 +1,117 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
+var _PartnerConfig = _interopRequireDefault(require("../model/PartnerConfig"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+* PartnerConfig service.
+* @module api/PartnerConfigApi
+* @version v1.51.1-alpha
+*/
+var PartnerConfigApi = exports["default"] = /*#__PURE__*/function () {
+ /**
+ * Constructs a new PartnerConfigApi.
+ * @alias module:api/PartnerConfigApi
+ * @class
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
+ * default to {@link module:ApiClient#instance} if unspecified.
+ */
+ function PartnerConfigApi(apiClient) {
+ _classCallCheck(this, PartnerConfigApi);
+ this.apiClient = apiClient || _ApiClient["default"].instance;
+ }
+
+ /**
+ * Get partner config
+ * Fetch the customised customer configuration for Hyperstack.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PartnerConfig} and HTTP response
+ */
+ return _createClass(PartnerConfigApi, [{
+ key: "getPartnerConfigWithHttpInfo",
+ value: function getPartnerConfigWithHttpInfo() {
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _PartnerConfig["default"];
+ return this.apiClient.callApi('/auth/partner-config', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Get partner config
+ * Fetch the customised customer configuration for Hyperstack.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PartnerConfig}
+ */
+ }, {
+ key: "getPartnerConfig",
+ value: function getPartnerConfig() {
+ return this.getPartnerConfigWithHttpInfo().then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Fetch the partner config for a given domain.
+ * @param {Object} opts Optional parameters
+ * @param {String} [domain] The domain to look up the partner config for.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PartnerConfig} and HTTP response
+ */
+ }, {
+ key: "getPartnerConfigByDomainWithHttpInfo",
+ value: function getPartnerConfigByDomainWithHttpInfo(opts) {
+ opts = opts || {};
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {
+ 'domain': opts['domain']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _PartnerConfig["default"];
+ return this.apiClient.callApi('/auth/partner-config/docs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Fetch the partner config for a given domain.
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.domain The domain to look up the partner config for.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PartnerConfig}
+ */
+ }, {
+ key: "getPartnerConfigByDomain",
+ value: function getPartnerConfigByDomain(opts) {
+ return this.getPartnerConfigByDomainWithHttpInfo(opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+ }]);
+}();
\ No newline at end of file
diff --git a/dist/api/PaymentApi.js b/dist/api/PaymentApi.js
index afddcd54..58529b3e 100644
--- a/dist/api/PaymentApi.js
+++ b/dist/api/PaymentApi.js
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Payment service.
* @module api/PaymentApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var PaymentApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -46,54 +46,65 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
}
/**
- * GET: View payment details
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentDetailsResponse} and HTTP response
+ * Retrieve Payment Receipt
+ * Retrieve the payment receipt from Stripe for a specific payment
+ * @param {String} paymentId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
return _createClass(PaymentApi, [{
- key: "getViewPaymentDetailsWithHttpInfo",
- value: function getViewPaymentDetailsWithHttpInfo() {
+ key: "getPaymentReceiptWithHttpInfo",
+ value: function getPaymentReceiptWithHttpInfo(paymentId) {
var postBody = null;
- var pathParams = {};
+ // verify the required parameter 'paymentId' is set
+ if (paymentId === undefined || paymentId === null) {
+ throw new Error("Missing the required parameter 'paymentId' when calling getPaymentReceipt");
+ }
+ var pathParams = {
+ 'payment_id': paymentId
+ };
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _PaymentDetailsResponse["default"];
- return this.apiClient.callApi('/billing/payment/payment-details', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = null;
+ return this.apiClient.callApi('/billing/payment/receipt/{payment_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * GET: View payment details
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentDetailsResponse}
+ * Retrieve Payment Receipt
+ * Retrieve the payment receipt from Stripe for a specific payment
+ * @param {String} paymentId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
}, {
- key: "getViewPaymentDetails",
- value: function getViewPaymentDetails() {
- return this.getViewPaymentDetailsWithHttpInfo().then(function (response_and_data) {
+ key: "getPaymentReceipt",
+ value: function getPaymentReceipt(paymentId) {
+ return this.getPaymentReceiptWithHttpInfo(paymentId).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* POST: Initiate payment
+ * Creates a payment for a specified amount, adding credit to the balance of your [**organization**](/docs/rbac/organization). Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the [**Retrieve Payment History**](/docs/api-reference/billing-resources/retrieve-payment-history) API. For additional information [**click here**](None/docs/api-reference/billing-resources/create-payment).
* @param {module:model/PaymentInitiatePayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentInitiateResponse} and HTTP response
*/
}, {
- key: "postInitiatePaymentWithHttpInfo",
- value: function postInitiatePaymentWithHttpInfo(payload) {
+ key: "initiatePaymentWithHttpInfo",
+ value: function initiatePaymentWithHttpInfo(payload) {
var postBody = payload;
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling postInitiatePayment");
+ throw new Error("Missing the required parameter 'payload' when calling initiatePayment");
}
var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _PaymentInitiateResponse["default"];
@@ -102,13 +113,47 @@ var PaymentApi = exports["default"] = /*#__PURE__*/function () {
/**
* POST: Initiate payment
+ * Creates a payment for a specified amount, adding credit to the balance of your [**organization**](/docs/rbac/organization). Include the `amount` in the body of the request to make a payment for the specified value in dollars. View a history of past payments by calling the [**Retrieve Payment History**](/docs/api-reference/billing-resources/retrieve-payment-history) API. For additional information [**click here**](None/docs/api-reference/billing-resources/create-payment).
* @param {module:model/PaymentInitiatePayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentInitiateResponse}
*/
}, {
- key: "postInitiatePayment",
- value: function postInitiatePayment(payload) {
- return this.postInitiatePaymentWithHttpInfo(payload).then(function (response_and_data) {
+ key: "initiatePayment",
+ value: function initiatePayment(payload) {
+ return this.initiatePaymentWithHttpInfo(payload).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * GET: View payment details
+ * Retrieves a list of all payments made within your [**organization**](/docs/rbac/organization) and their details, including the amount, payment status, and more. For additional information [**click here**](None/docs/api-reference/billing-resources/retrieve-payment-history/).
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentDetailsResponse} and HTTP response
+ */
+ }, {
+ key: "listPaymentDetailsWithHttpInfo",
+ value: function listPaymentDetailsWithHttpInfo() {
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _PaymentDetailsResponse["default"];
+ return this.apiClient.callApi('/billing/payment/payment-details', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * GET: View payment details
+ * Retrieves a list of all payments made within your [**organization**](/docs/rbac/organization) and their details, including the amount, payment status, and more. For additional information [**click here**](None/docs/api-reference/billing-resources/retrieve-payment-history/).
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentDetailsResponse}
+ */
+ }, {
+ key: "listPaymentDetails",
+ value: function listPaymentDetails() {
+ return this.listPaymentDetailsWithHttpInfo().then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/PermissionApi.js b/dist/api/PermissionApi.js
index 54851f08..cb4603e0 100644
--- a/dist/api/PermissionApi.js
+++ b/dist/api/PermissionApi.js
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Permission service.
* @module api/PermissionApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var PermissionApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -45,7 +45,7 @@ var PermissionApi = exports["default"] = /*#__PURE__*/function () {
/**
* List Permissions
- * Retrieves a list of permissions that users can be granted to access a particular resource action. For additional information on permissions, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/permission/permissions).
+ * Retrieves a list of permissions that users can be granted to access a particular resource action. For additional information on permissions, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/permission/permissions).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetPermissionsResponseModel} and HTTP response
*/
return _createClass(PermissionApi, [{
@@ -56,7 +56,7 @@ var PermissionApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _GetPermissionsResponseModel["default"];
@@ -65,7 +65,7 @@ var PermissionApi = exports["default"] = /*#__PURE__*/function () {
/**
* List Permissions
- * Retrieves a list of permissions that users can be granted to access a particular resource action. For additional information on permissions, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/permission/permissions).
+ * Retrieves a list of permissions that users can be granted to access a particular resource action. For additional information on permissions, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/permission/permissions).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetPermissionsResponseModel}
*/
}, {
diff --git a/dist/api/PolicyApi.js b/dist/api/PolicyApi.js
index 85d96225..0bf977ef 100644
--- a/dist/api/PolicyApi.js
+++ b/dist/api/PolicyApi.js
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Policy service.
* @module api/PolicyApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var PolicyApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -45,7 +45,7 @@ var PolicyApi = exports["default"] = /*#__PURE__*/function () {
/**
* List Policies
- * Retrieves a list of policies available for addition to RBAC roles. For additional information on policies, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/policies).
+ * Retrieves a list of policies available for addition to RBAC roles. For additional information on policies, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/policies).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetPoliciesResponseModel} and HTTP response
*/
return _createClass(PolicyApi, [{
@@ -56,7 +56,7 @@ var PolicyApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _GetPoliciesResponseModel["default"];
@@ -65,7 +65,7 @@ var PolicyApi = exports["default"] = /*#__PURE__*/function () {
/**
* List Policies
- * Retrieves a list of policies available for addition to RBAC roles. For additional information on policies, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/policies).
+ * Retrieves a list of policies available for addition to RBAC roles. For additional information on policies, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/policies).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetPoliciesResponseModel}
*/
}, {
diff --git a/dist/api/PricebookApi.js b/dist/api/PricebookApi.js
index 5a34e2ca..0d50771b 100644
--- a/dist/api/PricebookApi.js
+++ b/dist/api/PricebookApi.js
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Pricebook service.
* @module api/PricebookApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var PricebookApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -44,17 +44,18 @@ var PricebookApi = exports["default"] = /*#__PURE__*/function () {
}
/**
+ * Retrieves the Infrahub Pricebook, detailing hourly running costs for all resources offered by Infrahub. For more information on Pricebook [**click here**](None/docs/api-reference/pricebook-resources/pricebook/).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response
*/
return _createClass(PricebookApi, [{
- key: "retrivePricebookWithHttpInfo",
- value: function retrivePricebookWithHttpInfo() {
+ key: "getPricebookWithHttpInfo",
+ value: function getPricebookWithHttpInfo() {
var postBody = null;
var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = [_PricebookModel["default"]];
@@ -62,12 +63,13 @@ var PricebookApi = exports["default"] = /*#__PURE__*/function () {
}
/**
+ * Retrieves the Infrahub Pricebook, detailing hourly running costs for all resources offered by Infrahub. For more information on Pricebook [**click here**](None/docs/api-reference/pricebook-resources/pricebook/).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.}
*/
}, {
- key: "retrivePricebook",
- value: function retrivePricebook() {
- return this.retrivePricebookWithHttpInfo().then(function (response_and_data) {
+ key: "getPricebook",
+ value: function getPricebook() {
+ return this.getPricebookWithHttpInfo().then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/ProfileApi.js b/dist/api/ProfileApi.js
index a28f708a..cd83762c 100644
--- a/dist/api/ProfileApi.js
+++ b/dist/api/ProfileApi.js
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Profile service.
* @module api/ProfileApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var ProfileApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -48,7 +48,7 @@ var ProfileApi = exports["default"] = /*#__PURE__*/function () {
/**
* Create profile
- * Creates a provisioning profile to save the configuration of a virtual machine for future use. Include the profile name, description, and virtual machine configuration details in the request body. For more information about virtual machine profiles, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/provisioning-profiles).
+ * Creates a provisioning profile to save the configuration of a virtual machinefor future use. Include the profile name, description, and virtual machine configuration details in the request body. For more information about virtual machine profiles,[**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/provisioning-profiles).
* @param {module:model/CreateProfilePayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateProfileResponse} and HTTP response
*/
@@ -64,7 +64,7 @@ var ProfileApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _CreateProfileResponse["default"];
@@ -73,7 +73,7 @@ var ProfileApi = exports["default"] = /*#__PURE__*/function () {
/**
* Create profile
- * Creates a provisioning profile to save the configuration of a virtual machine for future use. Include the profile name, description, and virtual machine configuration details in the request body. For more information about virtual machine profiles, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/provisioning-profiles).
+ * Creates a provisioning profile to save the configuration of a virtual machinefor future use. Include the profile name, description, and virtual machine configuration details in the request body. For more information about virtual machine profiles,[**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/provisioning-profiles).
* @param {module:model/CreateProfilePayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateProfileResponse}
*/
@@ -105,7 +105,7 @@ var ProfileApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
@@ -127,75 +127,75 @@ var ProfileApi = exports["default"] = /*#__PURE__*/function () {
}
/**
- * List profiles
- * Returns a list of your existing provisioning profiles, providing virtual machine configuration details for each. For additional information about profiles, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/provisioning-profiles#retrieve-a-list-of-profiles).
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProfileListResponse} and HTTP response
+ * Retrieve profile details
+ * Retrieves details for an existing provisioning profile by supplying the profile ID in the request path. For more information about profiles, [**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/provisioning-profiles).
+ * @param {Number} id
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateProfileResponse} and HTTP response
*/
}, {
- key: "listProfilesWithHttpInfo",
- value: function listProfilesWithHttpInfo() {
+ key: "getProfileWithHttpInfo",
+ value: function getProfileWithHttpInfo(id) {
var postBody = null;
- var pathParams = {};
+ // verify the required parameter 'id' is set
+ if (id === undefined || id === null) {
+ throw new Error("Missing the required parameter 'id' when calling getProfile");
+ }
+ var pathParams = {
+ 'id': id
+ };
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _ProfileListResponse["default"];
- return this.apiClient.callApi('/core/profiles', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _CreateProfileResponse["default"];
+ return this.apiClient.callApi('/core/profiles/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * List profiles
- * Returns a list of your existing provisioning profiles, providing virtual machine configuration details for each. For additional information about profiles, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/provisioning-profiles#retrieve-a-list-of-profiles).
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProfileListResponse}
+ * Retrieve profile details
+ * Retrieves details for an existing provisioning profile by supplying the profile ID in the request path. For more information about profiles, [**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/provisioning-profiles).
+ * @param {Number} id
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateProfileResponse}
*/
}, {
- key: "listProfiles",
- value: function listProfiles() {
- return this.listProfilesWithHttpInfo().then(function (response_and_data) {
+ key: "getProfile",
+ value: function getProfile(id) {
+ return this.getProfileWithHttpInfo(id).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Retrieve profile details
- * Retrieves details for an existing provisioning profile by supplying the profile ID in the request path. For more information about profiles, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/provisioning-profiles).
- * @param {Number} id
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateProfileResponse} and HTTP response
+ * List profiles
+ * Returns a list of your existing provisioning profiles, providing virtual machine configuration details for each. For additional information about profiles,[**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/provisioning-profiles#load-a-provisioning-profile).
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProfileListResponse} and HTTP response
*/
}, {
- key: "retrieveProfileDetailsWithHttpInfo",
- value: function retrieveProfileDetailsWithHttpInfo(id) {
+ key: "listProfilesWithHttpInfo",
+ value: function listProfilesWithHttpInfo() {
var postBody = null;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling retrieveProfileDetails");
- }
- var pathParams = {
- 'id': id
- };
+ var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _CreateProfileResponse["default"];
- return this.apiClient.callApi('/core/profiles/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _ProfileListResponse["default"];
+ return this.apiClient.callApi('/core/profiles', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve profile details
- * Retrieves details for an existing provisioning profile by supplying the profile ID in the request path. For more information about profiles, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/provisioning-profiles).
- * @param {Number} id
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateProfileResponse}
+ * List profiles
+ * Returns a list of your existing provisioning profiles, providing virtual machine configuration details for each. For additional information about profiles,[**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/provisioning-profiles#load-a-provisioning-profile).
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProfileListResponse}
*/
}, {
- key: "retrieveProfileDetails",
- value: function retrieveProfileDetails(id) {
- return this.retrieveProfileDetailsWithHttpInfo(id).then(function (response_and_data) {
+ key: "listProfiles",
+ value: function listProfiles() {
+ return this.listProfilesWithHttpInfo().then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/RbacRoleApi.js b/dist/api/RbacRoleApi.js
index 8327a2b0..92ad6ffa 100644
--- a/dist/api/RbacRoleApi.js
+++ b/dist/api/RbacRoleApi.js
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* RbacRole service.
* @module api/RbacRoleApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var RbacRoleApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -49,23 +49,23 @@ var RbacRoleApi = exports["default"] = /*#__PURE__*/function () {
/**
* Create RBAC Role
- * Creates an RBAC role that can be assigned to users, granting them access to specific resource actions. Provide the configuration of the RBAC role, including its name, description, and list of permissions and policy IDs in the request body. For additional information on creating RBAC roles, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/rbac/create-rbac-role).
+ * Creates an RBAC role that can be assigned to users, granting them access to specific resource actions. Provide the configuration of the RBAC role, including its name, description, and list of permissions and policy IDs in the request body. For additional information on creating RBAC roles, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/rbac/create-rbac-role).
* @param {module:model/CreateUpdateRbacRolePayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RbacRoleDetailResponseModel} and HTTP response
*/
return _createClass(RbacRoleApi, [{
- key: "createRbacRoleWithHttpInfo",
- value: function createRbacRoleWithHttpInfo(payload) {
+ key: "createRBACRoleWithHttpInfo",
+ value: function createRBACRoleWithHttpInfo(payload) {
var postBody = payload;
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling createRbacRole");
+ throw new Error("Missing the required parameter 'payload' when calling createRBACRole");
}
var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _RbacRoleDetailResponseModel["default"];
@@ -74,31 +74,31 @@ var RbacRoleApi = exports["default"] = /*#__PURE__*/function () {
/**
* Create RBAC Role
- * Creates an RBAC role that can be assigned to users, granting them access to specific resource actions. Provide the configuration of the RBAC role, including its name, description, and list of permissions and policy IDs in the request body. For additional information on creating RBAC roles, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/rbac/create-rbac-role).
+ * Creates an RBAC role that can be assigned to users, granting them access to specific resource actions. Provide the configuration of the RBAC role, including its name, description, and list of permissions and policy IDs in the request body. For additional information on creating RBAC roles, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/rbac/create-rbac-role).
* @param {module:model/CreateUpdateRbacRolePayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RbacRoleDetailResponseModel}
*/
}, {
- key: "createRbacRole",
- value: function createRbacRole(payload) {
- return this.createRbacRoleWithHttpInfo(payload).then(function (response_and_data) {
+ key: "createRBACRole",
+ value: function createRBACRole(payload) {
+ return this.createRBACRoleWithHttpInfo(payload).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Delete RBAC Role
- * Deletes an RBAC role by providing its ID in the path. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/rbac/delete-rbac-role).
+ * Deletes an RBAC role by providing its ID in the path. For additional information, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/rbac/delete-rbac-role).
* @param {Number} id
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CommonResponseModel} and HTTP response
*/
}, {
- key: "deleteRbacRoleWithHttpInfo",
- value: function deleteRbacRoleWithHttpInfo(id) {
+ key: "deleteRBACRoleWithHttpInfo",
+ value: function deleteRBACRoleWithHttpInfo(id) {
var postBody = null;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling deleteRbacRole");
+ throw new Error("Missing the required parameter 'id' when calling deleteRBACRole");
}
var pathParams = {
'id': id
@@ -106,7 +106,7 @@ var RbacRoleApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _CommonResponseModel["default"];
@@ -115,32 +115,32 @@ var RbacRoleApi = exports["default"] = /*#__PURE__*/function () {
/**
* Delete RBAC Role
- * Deletes an RBAC role by providing its ID in the path. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/rbac/delete-rbac-role).
+ * Deletes an RBAC role by providing its ID in the path. For additional information, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/rbac/delete-rbac-role).
* @param {Number} id
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CommonResponseModel}
*/
}, {
- key: "deleteRbacRole",
- value: function deleteRbacRole(id) {
- return this.deleteRbacRoleWithHttpInfo(id).then(function (response_and_data) {
+ key: "deleteRBACRole",
+ value: function deleteRBACRole(id) {
+ return this.deleteRBACRoleWithHttpInfo(id).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* List RBAC Roles
- * Retrieves a list of RBAC roles that can be assigned to the users within an organization. For additional information on RBAC roles, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/rbac/list-rbac-roles).
+ * Retrieves a list of RBAC roles that can be assigned to the users within an organization. For additional information on RBAC roles, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/rbac/list-rbac-roles).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRbacRolesResponseModel} and HTTP response
*/
}, {
- key: "listRbacRolesWithHttpInfo",
- value: function listRbacRolesWithHttpInfo() {
+ key: "listRBACRolesWithHttpInfo",
+ value: function listRBACRolesWithHttpInfo() {
var postBody = null;
var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _GetRbacRolesResponseModel["default"];
@@ -149,30 +149,30 @@ var RbacRoleApi = exports["default"] = /*#__PURE__*/function () {
/**
* List RBAC Roles
- * Retrieves a list of RBAC roles that can be assigned to the users within an organization. For additional information on RBAC roles, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/rbac/list-rbac-roles).
+ * Retrieves a list of RBAC roles that can be assigned to the users within an organization. For additional information on RBAC roles, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/rbac/list-rbac-roles).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRbacRolesResponseModel}
*/
}, {
- key: "listRbacRoles",
- value: function listRbacRoles() {
- return this.listRbacRolesWithHttpInfo().then(function (response_and_data) {
+ key: "listRBACRoles",
+ value: function listRBACRoles() {
+ return this.listRBACRolesWithHttpInfo().then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Retrieve RBAC Role Details
- * Retrieves the details of a specified RBAC role by providing the RBAC role ID in the path. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/rbac/retrieve-rbac-details).
+ * Retrieves the details of a specified RBAC role by providing the RBAC role ID in the path. For additional information, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/rbac/retrieve-rbac-details).
* @param {Number} id
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RbacRoleDetailResponseModelFixed} and HTTP response
*/
}, {
- key: "retrieveRbacRoleDetailsWithHttpInfo",
- value: function retrieveRbacRoleDetailsWithHttpInfo(id) {
+ key: "retrieveRBACRoleDetailsWithHttpInfo",
+ value: function retrieveRBACRoleDetailsWithHttpInfo(id) {
var postBody = null;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling retrieveRbacRoleDetails");
+ throw new Error("Missing the required parameter 'id' when calling retrieveRBACRoleDetails");
}
var pathParams = {
'id': id
@@ -180,7 +180,7 @@ var RbacRoleApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _RbacRoleDetailResponseModelFixed["default"];
@@ -189,36 +189,36 @@ var RbacRoleApi = exports["default"] = /*#__PURE__*/function () {
/**
* Retrieve RBAC Role Details
- * Retrieves the details of a specified RBAC role by providing the RBAC role ID in the path. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/rbac/retrieve-rbac-details).
+ * Retrieves the details of a specified RBAC role by providing the RBAC role ID in the path. For additional information, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/rbac/retrieve-rbac-details).
* @param {Number} id
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RbacRoleDetailResponseModelFixed}
*/
}, {
- key: "retrieveRbacRoleDetails",
- value: function retrieveRbacRoleDetails(id) {
- return this.retrieveRbacRoleDetailsWithHttpInfo(id).then(function (response_and_data) {
+ key: "retrieveRBACRoleDetails",
+ value: function retrieveRBACRoleDetails(id) {
+ return this.retrieveRBACRoleDetailsWithHttpInfo(id).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Update RBAC Role
- * Updates an RBAC role by providing the role ID in the path and the modified role configuration in the request body, including its name, description, and list of permissions and policy IDs. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/rbac/update-rbac-role).
+ * Updates an RBAC role by providing the role ID in the path and the modified role configuration in the request body, including its name, description, and list of permissions and policy IDs. For additional information, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/rbac/update-rbac-role).
* @param {Number} id
* @param {module:model/CreateUpdateRbacRolePayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RbacRoleDetailResponseModel} and HTTP response
*/
}, {
- key: "updateRbacRoleWithHttpInfo",
- value: function updateRbacRoleWithHttpInfo(id, payload) {
+ key: "updateRBACRoleWithHttpInfo",
+ value: function updateRBACRoleWithHttpInfo(id, payload) {
var postBody = payload;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling updateRbacRole");
+ throw new Error("Missing the required parameter 'id' when calling updateRBACRole");
}
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling updateRbacRole");
+ throw new Error("Missing the required parameter 'payload' when calling updateRBACRole");
}
var pathParams = {
'id': id
@@ -226,7 +226,7 @@ var RbacRoleApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _RbacRoleDetailResponseModel["default"];
@@ -235,15 +235,15 @@ var RbacRoleApi = exports["default"] = /*#__PURE__*/function () {
/**
* Update RBAC Role
- * Updates an RBAC role by providing the role ID in the path and the modified role configuration in the request body, including its name, description, and list of permissions and policy IDs. For additional information, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/rbac/update-rbac-role).
+ * Updates an RBAC role by providing the role ID in the path and the modified role configuration in the request body, including its name, description, and list of permissions and policy IDs. For additional information, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/rbac/update-rbac-role).
* @param {Number} id
* @param {module:model/CreateUpdateRbacRolePayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RbacRoleDetailResponseModel}
*/
}, {
- key: "updateRbacRole",
- value: function updateRbacRole(id, payload) {
- return this.updateRbacRoleWithHttpInfo(id, payload).then(function (response_and_data) {
+ key: "updateRBACRole",
+ value: function updateRBACRole(id, payload) {
+ return this.updateRBACRoleWithHttpInfo(id, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/RegionApi.js b/dist/api/RegionApi.js
index ee370fd2..cdfc8cd2 100644
--- a/dist/api/RegionApi.js
+++ b/dist/api/RegionApi.js
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Region service.
* @module api/RegionApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var RegionApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -44,8 +44,8 @@ var RegionApi = exports["default"] = /*#__PURE__*/function () {
}
/**
- * List regions
- * Lists the currently available regions, each representing a distinct geographic location housing a data center. For additional information on regions, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/regions).
+ * List Regions
+ * Lists the currently available regions, each representing a distinct geographic location housing a data center. For additional information on regions, [**click here**](https://docs.hyperstack.cloud/docs/resource-management/regions).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Regions} and HTTP response
*/
return _createClass(RegionApi, [{
@@ -56,7 +56,7 @@ var RegionApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _Regions["default"];
@@ -64,8 +64,8 @@ var RegionApi = exports["default"] = /*#__PURE__*/function () {
}
/**
- * List regions
- * Lists the currently available regions, each representing a distinct geographic location housing a data center. For additional information on regions, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/regions).
+ * List Regions
+ * Lists the currently available regions, each representing a distinct geographic location housing a data center. For additional information on regions, [**click here**](https://docs.hyperstack.cloud/docs/resource-management/regions).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Regions}
*/
}, {
diff --git a/dist/api/RegionsApi.js b/dist/api/RegionsApi.js
new file mode 100644
index 00000000..b58c3ee2
--- /dev/null
+++ b/dist/api/RegionsApi.js
@@ -0,0 +1,76 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _ObjectStorageRegionListResponse = _interopRequireDefault(require("../model/ObjectStorageRegionListResponse"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+* Regions service.
+* @module api/RegionsApi
+* @version v1.51.1-alpha
+*/
+var RegionsApi = exports["default"] = /*#__PURE__*/function () {
+ /**
+ * Constructs a new RegionsApi.
+ * @alias module:api/RegionsApi
+ * @class
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
+ * default to {@link module:ApiClient#instance} if unspecified.
+ */
+ function RegionsApi(apiClient) {
+ _classCallCheck(this, RegionsApi);
+ this.apiClient = apiClient || _ApiClient["default"].instance;
+ }
+
+ /**
+ * Get a list of supported regions
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ObjectStorageRegionListResponse} and HTTP response
+ */
+ return _createClass(RegionsApi, [{
+ key: "listRegionsEndpointWithHttpInfo",
+ value: function listRegionsEndpointWithHttpInfo() {
+ var postBody = null;
+ var pathParams = {};
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ObjectStorageRegionListResponse["default"];
+ return this.apiClient.callApi('/object-storage/regions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Get a list of supported regions
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ObjectStorageRegionListResponse}
+ */
+ }, {
+ key: "listRegionsEndpoint",
+ value: function listRegionsEndpoint() {
+ return this.listRegionsEndpointWithHttpInfo().then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+ }]);
+}();
\ No newline at end of file
diff --git a/dist/api/SecurityRulesApi.js b/dist/api/SecurityRulesApi.js
index 4a1cccb7..14449ca7 100644
--- a/dist/api/SecurityRulesApi.js
+++ b/dist/api/SecurityRulesApi.js
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* SecurityRules service.
* @module api/SecurityRulesApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var SecurityRulesApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -56,7 +56,7 @@ var SecurityRulesApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _SecurityRulesProtocolFields["default"];
diff --git a/dist/api/SnapshotEventsApi.js b/dist/api/SnapshotEventsApi.js
index 54f730d8..6d654e53 100644
--- a/dist/api/SnapshotEventsApi.js
+++ b/dist/api/SnapshotEventsApi.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* SnapshotEvents service.
* @module api/SnapshotEventsApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var SnapshotEventsApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -48,12 +48,12 @@ var SnapshotEventsApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
return _createClass(SnapshotEventsApi, [{
- key: "fetchAllEventsForASnapshotWithHttpInfo",
- value: function fetchAllEventsForASnapshotWithHttpInfo(snapshotId) {
+ key: "listSnapshotEventsWithHttpInfo",
+ value: function listSnapshotEventsWithHttpInfo(snapshotId) {
var postBody = null;
// verify the required parameter 'snapshotId' is set
if (snapshotId === undefined || snapshotId === null) {
- throw new Error("Missing the required parameter 'snapshotId' when calling fetchAllEventsForASnapshot");
+ throw new Error("Missing the required parameter 'snapshotId' when calling listSnapshotEvents");
}
var pathParams = {
'snapshot_id': snapshotId
@@ -61,7 +61,7 @@ var SnapshotEventsApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = [];
var returnType = null;
@@ -75,9 +75,9 @@ var SnapshotEventsApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
}, {
- key: "fetchAllEventsForASnapshot",
- value: function fetchAllEventsForASnapshot(snapshotId) {
- return this.fetchAllEventsForASnapshotWithHttpInfo(snapshotId).then(function (response_and_data) {
+ key: "listSnapshotEvents",
+ value: function listSnapshotEvents(snapshotId) {
+ return this.listSnapshotEventsWithHttpInfo(snapshotId).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/SnapshotsApi.js b/dist/api/SnapshotsApi.js
index ad2fa9dd..8d0361eb 100644
--- a/dist/api/SnapshotsApi.js
+++ b/dist/api/SnapshotsApi.js
@@ -35,7 +35,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Snapshots service.
* @module api/SnapshotsApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var SnapshotsApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -58,16 +58,16 @@ var SnapshotsApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateImage} and HTTP response
*/
return _createClass(SnapshotsApi, [{
- key: "createAnImageFromASnapshotWithHttpInfo",
- value: function createAnImageFromASnapshotWithHttpInfo(snapshotId, payload) {
+ key: "createCustomImageWithHttpInfo",
+ value: function createCustomImageWithHttpInfo(snapshotId, payload) {
var postBody = payload;
// verify the required parameter 'snapshotId' is set
if (snapshotId === undefined || snapshotId === null) {
- throw new Error("Missing the required parameter 'snapshotId' when calling createAnImageFromASnapshot");
+ throw new Error("Missing the required parameter 'snapshotId' when calling createCustomImage");
}
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling createAnImageFromASnapshot");
+ throw new Error("Missing the required parameter 'payload' when calling createCustomImage");
}
var pathParams = {
'snapshot_id': snapshotId
@@ -75,7 +75,7 @@ var SnapshotsApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _CreateImage["default"];
@@ -90,9 +90,9 @@ var SnapshotsApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateImage}
*/
}, {
- key: "createAnImageFromASnapshot",
- value: function createAnImageFromASnapshot(snapshotId, payload) {
- return this.createAnImageFromASnapshotWithHttpInfo(snapshotId, payload).then(function (response_and_data) {
+ key: "createCustomImage",
+ value: function createCustomImage(snapshotId, payload) {
+ return this.createCustomImageWithHttpInfo(snapshotId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -117,7 +117,7 @@ var SnapshotsApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
@@ -158,7 +158,7 @@ var SnapshotsApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _NameAvailableModel["default"];
@@ -179,53 +179,6 @@ var SnapshotsApi = exports["default"] = /*#__PURE__*/function () {
});
}
- /**
- * Restore a snapshot
- * Restore a snapshot.
- * @param {Number} id
- * @param {module:model/SnapshotRestoreRequest} payload
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Instance} and HTTP response
- */
- }, {
- key: "restoreASnapshotWithHttpInfo",
- value: function restoreASnapshotWithHttpInfo(id, payload) {
- var postBody = payload;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling restoreASnapshot");
- }
- // verify the required parameter 'payload' is set
- if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling restoreASnapshot");
- }
- var pathParams = {
- 'id': id
- };
- var queryParams = {};
- var headerParams = {};
- var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
- var contentTypes = ['application/json'];
- var accepts = ['application/json'];
- var returnType = _Instance["default"];
- return this.apiClient.callApi('/core/snapshots/{id}/restore', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
- }
-
- /**
- * Restore a snapshot
- * Restore a snapshot.
- * @param {Number} id
- * @param {module:model/SnapshotRestoreRequest} payload
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Instance}
- */
- }, {
- key: "restoreASnapshot",
- value: function restoreASnapshot(id, payload) {
- return this.restoreASnapshotWithHttpInfo(id, payload).then(function (response_and_data) {
- return response_and_data.data;
- });
- }
-
/**
* Retrieve a snapshot
* Retrieve a snapshot.
@@ -233,12 +186,12 @@ var SnapshotsApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SnapshotRetrieve} and HTTP response
*/
}, {
- key: "retrieveASnapshotWithHttpInfo",
- value: function retrieveASnapshotWithHttpInfo(id) {
+ key: "getSnapshotWithHttpInfo",
+ value: function getSnapshotWithHttpInfo(id) {
var postBody = null;
// verify the required parameter 'id' is set
if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling retrieveASnapshot");
+ throw new Error("Missing the required parameter 'id' when calling getSnapshot");
}
var pathParams = {
'id': id
@@ -246,7 +199,7 @@ var SnapshotsApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _SnapshotRetrieve["default"];
@@ -260,16 +213,16 @@ var SnapshotsApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SnapshotRetrieve}
*/
}, {
- key: "retrieveASnapshot",
- value: function retrieveASnapshot(id) {
- return this.retrieveASnapshotWithHttpInfo(id).then(function (response_and_data) {
+ key: "getSnapshot",
+ value: function getSnapshot(id) {
+ return this.getSnapshotWithHttpInfo(id).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Retrieve list of snapshots with pagination
- * Retrieves a list of snapshot, providing details such as snapshot name, timestamp, VM ID, and other relevant information.
+ * Retrieves a list of snapshots, providing details such as snapshot name, timestamp, VM ID, and other relevant information.
* @param {Object} opts Optional parameters
* @param {String} [page] Page Number
* @param {String} [pageSize] Data Per Page
@@ -277,8 +230,8 @@ var SnapshotsApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Snapshots} and HTTP response
*/
}, {
- key: "retrieveListOfSnapshotsWithPaginationWithHttpInfo",
- value: function retrieveListOfSnapshotsWithPaginationWithHttpInfo(opts) {
+ key: "listSnapshotsWithHttpInfo",
+ value: function listSnapshotsWithHttpInfo(opts) {
opts = opts || {};
var postBody = null;
var pathParams = {};
@@ -289,7 +242,7 @@ var SnapshotsApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _Snapshots["default"];
@@ -298,7 +251,7 @@ var SnapshotsApi = exports["default"] = /*#__PURE__*/function () {
/**
* Retrieve list of snapshots with pagination
- * Retrieves a list of snapshot, providing details such as snapshot name, timestamp, VM ID, and other relevant information.
+ * Retrieves a list of snapshots, providing details such as snapshot name, timestamp, VM ID, and other relevant information.
* @param {Object} opts Optional parameters
* @param {String} opts.page Page Number
* @param {String} opts.pageSize Data Per Page
@@ -306,9 +259,56 @@ var SnapshotsApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Snapshots}
*/
}, {
- key: "retrieveListOfSnapshotsWithPagination",
- value: function retrieveListOfSnapshotsWithPagination(opts) {
- return this.retrieveListOfSnapshotsWithPaginationWithHttpInfo(opts).then(function (response_and_data) {
+ key: "listSnapshots",
+ value: function listSnapshots(opts) {
+ return this.listSnapshotsWithHttpInfo(opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Restore a snapshot
+ * Restore a snapshot.
+ * @param {Number} id
+ * @param {module:model/SnapshotRestoreRequest} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Instance} and HTTP response
+ */
+ }, {
+ key: "restoreSnapshotWithHttpInfo",
+ value: function restoreSnapshotWithHttpInfo(id, payload) {
+ var postBody = payload;
+ // verify the required parameter 'id' is set
+ if (id === undefined || id === null) {
+ throw new Error("Missing the required parameter 'id' when calling restoreSnapshot");
+ }
+ // verify the required parameter 'payload' is set
+ if (payload === undefined || payload === null) {
+ throw new Error("Missing the required parameter 'payload' when calling restoreSnapshot");
+ }
+ var pathParams = {
+ 'id': id
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = ['application/json'];
+ var accepts = ['application/json'];
+ var returnType = _Instance["default"];
+ return this.apiClient.callApi('/core/snapshots/{id}/restore', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Restore a snapshot
+ * Restore a snapshot.
+ * @param {Number} id
+ * @param {module:model/SnapshotRestoreRequest} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Instance}
+ */
+ }, {
+ key: "restoreSnapshot",
+ value: function restoreSnapshot(id, payload) {
+ return this.restoreSnapshotWithHttpInfo(id, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/StockApi.js b/dist/api/StockApi.js
index 1ac03d36..72097d69 100644
--- a/dist/api/StockApi.js
+++ b/dist/api/StockApi.js
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Stock service.
* @module api/StockApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var StockApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -45,18 +45,18 @@ var StockApi = exports["default"] = /*#__PURE__*/function () {
/**
* Retrieve GPU stocks
- * Returns information on current and upcoming GPU availability, organized by region and GPU model. For additional information on GPU stocks, [**click here**](https://infrahub-doc.nexgencloud.com/docs/hardware/gpu-stock-information).
+ * Returns information on current and upcoming GPU availability, organized byregion and GPU model. For additional information on GPU stocks,[**click here**](https://docs.hyperstack.cloud/docs/hardware/gpu-stock-information).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NewStockRetriveResponse} and HTTP response
*/
return _createClass(StockApi, [{
- key: "retrieveGpuStocksWithHttpInfo",
- value: function retrieveGpuStocksWithHttpInfo() {
+ key: "getGPUStockWithHttpInfo",
+ value: function getGPUStockWithHttpInfo() {
var postBody = null;
var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _NewStockRetriveResponse["default"];
@@ -65,13 +65,13 @@ var StockApi = exports["default"] = /*#__PURE__*/function () {
/**
* Retrieve GPU stocks
- * Returns information on current and upcoming GPU availability, organized by region and GPU model. For additional information on GPU stocks, [**click here**](https://infrahub-doc.nexgencloud.com/docs/hardware/gpu-stock-information).
+ * Returns information on current and upcoming GPU availability, organized byregion and GPU model. For additional information on GPU stocks,[**click here**](https://docs.hyperstack.cloud/docs/hardware/gpu-stock-information).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NewStockRetriveResponse}
*/
}, {
- key: "retrieveGpuStocks",
- value: function retrieveGpuStocks() {
- return this.retrieveGpuStocksWithHttpInfo().then(function (response_and_data) {
+ key: "getGPUStock",
+ value: function getGPUStock() {
+ return this.getGPUStockWithHttpInfo().then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/TemplateApi.js b/dist/api/TemplateApi.js
index 170cefbd..3b2121d6 100644
--- a/dist/api/TemplateApi.js
+++ b/dist/api/TemplateApi.js
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Template service.
* @module api/TemplateApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var TemplateApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -84,7 +84,7 @@ var TemplateApi = exports["default"] = /*#__PURE__*/function () {
'is_public': isPublic,
'name': name
};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['multipart/form-data'];
var accepts = ['application/json'];
var returnType = _Template["default"];
@@ -128,7 +128,7 @@ var TemplateApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
@@ -149,9 +149,50 @@ var TemplateApi = exports["default"] = /*#__PURE__*/function () {
});
}
+ /**
+ * Retrieve template details
+ * 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/).
+ * @param {Number} id
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Template} and HTTP response
+ */
+ }, {
+ key: "getTemplateWithHttpInfo",
+ value: function getTemplateWithHttpInfo(id) {
+ var postBody = null;
+ // verify the required parameter 'id' is set
+ if (id === undefined || id === null) {
+ throw new Error("Missing the required parameter 'id' when calling getTemplate");
+ }
+ var pathParams = {
+ 'id': id
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _Template["default"];
+ return this.apiClient.callApi('/core/marketplace/templates/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve template details
+ * 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/).
+ * @param {Number} id
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Template}
+ */
+ }, {
+ key: "getTemplate",
+ value: function getTemplate(id) {
+ return this.getTemplateWithHttpInfo(id).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
/**
* List templates
- * 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://infrahub-doc.nexgencloud.com/docs/features/templates#view-a-list-of-templates).
+ * 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).
* @param {Object} opts Optional parameters
* @param {String} [visibility] Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Templates} and HTTP response
@@ -167,7 +208,7 @@ var TemplateApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _Templates["default"];
@@ -176,7 +217,7 @@ var TemplateApi = exports["default"] = /*#__PURE__*/function () {
/**
* List templates
- * 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://infrahub-doc.nexgencloud.com/docs/features/templates#view-a-list-of-templates).
+ * 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).
* @param {Object} opts Optional parameters
* @param {String} opts.visibility Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Templates}
@@ -189,50 +230,9 @@ var TemplateApi = exports["default"] = /*#__PURE__*/function () {
});
}
- /**
- * Retrieve template details
- * 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://infrahub-doc.nexgencloud.com/docs/features/templates#retrieve-the-details-for-a-template).
- * @param {Number} id
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Template} and HTTP response
- */
- }, {
- key: "retrieveTemplateDetailsWithHttpInfo",
- value: function retrieveTemplateDetailsWithHttpInfo(id) {
- var postBody = null;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling retrieveTemplateDetails");
- }
- var pathParams = {
- 'id': id
- };
- var queryParams = {};
- var headerParams = {};
- var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
- var contentTypes = [];
- var accepts = ['application/json'];
- var returnType = _Template["default"];
- return this.apiClient.callApi('/core/marketplace/templates/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
- }
-
- /**
- * Retrieve template details
- * 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://infrahub-doc.nexgencloud.com/docs/features/templates#retrieve-the-details-for-a-template).
- * @param {Number} id
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Template}
- */
- }, {
- key: "retrieveTemplateDetails",
- value: function retrieveTemplateDetails(id) {
- return this.retrieveTemplateDetailsWithHttpInfo(id).then(function (response_and_data) {
- return response_and_data.data;
- });
- }
-
/**
* Update template
- * 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.
+ * 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.
* @param {Number} id
* @param {module:model/UpdateTemplate} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Template} and HTTP response
@@ -255,7 +255,7 @@ var TemplateApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _Template["default"];
@@ -264,7 +264,7 @@ var TemplateApi = exports["default"] = /*#__PURE__*/function () {
/**
* Update template
- * 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.
+ * 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.
* @param {Number} id
* @param {module:model/UpdateTemplate} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Template}
diff --git a/dist/api/UserApi.js b/dist/api/UserApi.js
index d89781ee..aadc95ce 100644
--- a/dist/api/UserApi.js
+++ b/dist/api/UserApi.js
@@ -7,7 +7,7 @@ exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
var _AddUserInfoSuccessResponseModel = _interopRequireDefault(require("../model/AddUserInfoSuccessResponseModel"));
var _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
-var _Userinfopostpayload = _interopRequireDefault(require("../model/Userinfopostpayload"));
+var _UserInfoPostPayload = _interopRequireDefault(require("../model/UserInfoPostPayload"));
var _UsersInfoListResponse = _interopRequireDefault(require("../model/UsersInfoListResponse"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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); }
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* User service.
* @module api/UserApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var UserApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -46,91 +46,96 @@ var UserApi = exports["default"] = /*#__PURE__*/function () {
}
/**
- * GET: Fetch User Info
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UsersInfoListResponse} and HTTP response
+ * POST: Insert billing info
+ * Add billing details associated with your user in the request body.
+ * @param {module:model/UserInfoPostPayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddUserInfoSuccessResponseModel} and HTTP response
*/
return _createClass(UserApi, [{
- key: "getFetchUserInfoWithHttpInfo",
- value: function getFetchUserInfoWithHttpInfo() {
- var postBody = null;
+ key: "addUserBillingInfoWithHttpInfo",
+ value: function addUserBillingInfoWithHttpInfo(payload) {
+ var postBody = payload;
+ // verify the required parameter 'payload' is set
+ if (payload === undefined || payload === null) {
+ throw new Error("Missing the required parameter 'payload' when calling addUserBillingInfo");
+ }
var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
- var contentTypes = [];
+ var authNames = ['apiKey'];
+ var contentTypes = ['application/json'];
var accepts = ['application/json'];
- var returnType = _UsersInfoListResponse["default"];
- return this.apiClient.callApi('/billing/user/info', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _AddUserInfoSuccessResponseModel["default"];
+ return this.apiClient.callApi('/billing/user/info', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * GET: Fetch User Info
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UsersInfoListResponse}
+ * POST: Insert billing info
+ * Add billing details associated with your user in the request body.
+ * @param {module:model/UserInfoPostPayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddUserInfoSuccessResponseModel}
*/
}, {
- key: "getFetchUserInfo",
- value: function getFetchUserInfo() {
- return this.getFetchUserInfoWithHttpInfo().then(function (response_and_data) {
+ key: "addUserBillingInfo",
+ value: function addUserBillingInfo(payload) {
+ return this.addUserBillingInfoWithHttpInfo(payload).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * POST: Insert user info
- * @param {module:model/Userinfopostpayload} payload
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddUserInfoSuccessResponseModel} and HTTP response
+ * GET: Retrieve billing info
+ * Retrieve the billing details associated with your user.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UsersInfoListResponse} and HTTP response
*/
}, {
- key: "postInsertUserInfoWithHttpInfo",
- value: function postInsertUserInfoWithHttpInfo(payload) {
- var postBody = payload;
- // verify the required parameter 'payload' is set
- if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling postInsertUserInfo");
- }
+ key: "getUserBillingInfoWithHttpInfo",
+ value: function getUserBillingInfoWithHttpInfo() {
+ var postBody = null;
var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
- var contentTypes = ['application/json'];
+ var authNames = ['apiKey'];
+ var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _AddUserInfoSuccessResponseModel["default"];
- return this.apiClient.callApi('/billing/user/info', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _UsersInfoListResponse["default"];
+ return this.apiClient.callApi('/billing/user/info', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * POST: Insert user info
- * @param {module:model/Userinfopostpayload} payload
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddUserInfoSuccessResponseModel}
+ * GET: Retrieve billing info
+ * Retrieve the billing details associated with your user.
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UsersInfoListResponse}
*/
}, {
- key: "postInsertUserInfo",
- value: function postInsertUserInfo(payload) {
- return this.postInsertUserInfoWithHttpInfo(payload).then(function (response_and_data) {
+ key: "getUserBillingInfo",
+ value: function getUserBillingInfo() {
+ return this.getUserBillingInfoWithHttpInfo().then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * PUT: Update user info
- * @param {module:model/Userinfopostpayload} payload
+ * PUT: Update billing info
+ * Update the billing information for your user in the request body.
+ * @param {module:model/UserInfoPostPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddUserInfoSuccessResponseModel} and HTTP response
*/
}, {
- key: "putUpdateUserInfoWithHttpInfo",
- value: function putUpdateUserInfoWithHttpInfo(payload) {
+ key: "updateUserBillingInfoWithHttpInfo",
+ value: function updateUserBillingInfoWithHttpInfo(payload) {
var postBody = payload;
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling putUpdateUserInfo");
+ throw new Error("Missing the required parameter 'payload' when calling updateUserBillingInfo");
}
var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _AddUserInfoSuccessResponseModel["default"];
@@ -138,14 +143,15 @@ var UserApi = exports["default"] = /*#__PURE__*/function () {
}
/**
- * PUT: Update user info
- * @param {module:model/Userinfopostpayload} payload
+ * PUT: Update billing info
+ * Update the billing information for your user in the request body.
+ * @param {module:model/UserInfoPostPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddUserInfoSuccessResponseModel}
*/
}, {
- key: "putUpdateUserInfo",
- value: function putUpdateUserInfo(payload) {
- return this.putUpdateUserInfoWithHttpInfo(payload).then(function (response_and_data) {
+ key: "updateUserBillingInfo",
+ value: function updateUserBillingInfo(payload) {
+ return this.updateUserBillingInfoWithHttpInfo(payload).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/UserDetailChoiceApi.js b/dist/api/UserDetailChoiceApi.js
index db9fad4f..6675d5b1 100644
--- a/dist/api/UserDetailChoiceApi.js
+++ b/dist/api/UserDetailChoiceApi.js
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* UserDetailChoice service.
* @module api/UserDetailChoiceApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var UserDetailChoiceApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -45,18 +45,18 @@ var UserDetailChoiceApi = exports["default"] = /*#__PURE__*/function () {
/**
* Retrieve Default Flavors and Images
- * Retrieve the default choices for virtual machine deployment, including the default region, flavor, and image.
+ * Retrieves the default options for virtual machine deployment, including the default region, flavor, and image.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserDefaultChoicesForUserResponse} and HTTP response
*/
return _createClass(UserDetailChoiceApi, [{
- key: "retrieveDefaultFlavorsAndImagesWithHttpInfo",
- value: function retrieveDefaultFlavorsAndImagesWithHttpInfo() {
+ key: "listDefaultFlavorsAndImagesWithHttpInfo",
+ value: function listDefaultFlavorsAndImagesWithHttpInfo() {
var postBody = null;
var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _UserDefaultChoicesForUserResponse["default"];
@@ -65,13 +65,13 @@ var UserDetailChoiceApi = exports["default"] = /*#__PURE__*/function () {
/**
* Retrieve Default Flavors and Images
- * Retrieve the default choices for virtual machine deployment, including the default region, flavor, and image.
+ * Retrieves the default options for virtual machine deployment, including the default region, flavor, and image.
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserDefaultChoicesForUserResponse}
*/
}, {
- key: "retrieveDefaultFlavorsAndImages",
- value: function retrieveDefaultFlavorsAndImages() {
- return this.retrieveDefaultFlavorsAndImagesWithHttpInfo().then(function (response_and_data) {
+ key: "listDefaultFlavorsAndImages",
+ value: function listDefaultFlavorsAndImages() {
+ return this.listDefaultFlavorsAndImagesWithHttpInfo().then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/UserPermissionApi.js b/dist/api/UserPermissionApi.js
index a36ac8c4..3855f526 100644
--- a/dist/api/UserPermissionApi.js
+++ b/dist/api/UserPermissionApi.js
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* UserPermission service.
* @module api/UserPermissionApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var UserPermissionApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -45,7 +45,7 @@ var UserPermissionApi = exports["default"] = /*#__PURE__*/function () {
/**
* List My User Permissions
- * Retrieves a list of permissions granted to your account. For additional information on your permissions, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/permission/list-my-permissions).
+ * Retrieves a list of permissions granted to your account. For additional information on your permissions, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/permission/list-my-permissions).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetUserPermissionsResponseModel} and HTTP response
*/
return _createClass(UserPermissionApi, [{
@@ -56,7 +56,7 @@ var UserPermissionApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _GetUserPermissionsResponseModel["default"];
@@ -65,7 +65,7 @@ var UserPermissionApi = exports["default"] = /*#__PURE__*/function () {
/**
* List My User Permissions
- * Retrieves a list of permissions granted to your account. For additional information on your permissions, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/permission/list-my-permissions).
+ * Retrieves a list of permissions granted to your account. For additional information on your permissions, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/permission/list-my-permissions).
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetUserPermissionsResponseModel}
*/
}, {
@@ -78,7 +78,7 @@ var UserPermissionApi = exports["default"] = /*#__PURE__*/function () {
/**
* List User Permissions
- * Retrieves a list of permissions granted to a specific user within your organization. Provide the ID of the user in the path. For additional information on user permissions, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/permission/list-user-permissions).
+ * Retrieves a list of permissions granted to a specific user within your organization. Provide the ID of the user in the path. For additional information on user permissions, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/permission/list-user-permissions).
* @param {Number} id
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetUserPermissionsResponseModel} and HTTP response
*/
@@ -96,7 +96,7 @@ var UserPermissionApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _GetUserPermissionsResponseModel["default"];
@@ -105,7 +105,7 @@ var UserPermissionApi = exports["default"] = /*#__PURE__*/function () {
/**
* List User Permissions
- * Retrieves a list of permissions granted to a specific user within your organization. Provide the ID of the user in the path. For additional information on user permissions, [click here](https://infrahub-doc.nexgencloud.com/docs/api-reference/auth-resources/permission/list-user-permissions).
+ * Retrieves a list of permissions granted to a specific user within your organization. Provide the ID of the user in the path. For additional information on user permissions, [click here](https://docs.hyperstack.cloud/docs/api-reference/auth-resources/permission/list-user-permissions).
* @param {Number} id
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetUserPermissionsResponseModel}
*/
diff --git a/dist/api/VirtualMachineApi.js b/dist/api/VirtualMachineApi.js
index 13a553f8..48d38df1 100644
--- a/dist/api/VirtualMachineApi.js
+++ b/dist/api/VirtualMachineApi.js
@@ -12,13 +12,16 @@ var _CreateInstancesResponse = _interopRequireDefault(require("../model/CreateIn
var _CreateSecurityRulePayload = _interopRequireDefault(require("../model/CreateSecurityRulePayload"));
var _CreateSnapshotPayload = _interopRequireDefault(require("../model/CreateSnapshotPayload"));
var _CreateSnapshotResponse = _interopRequireDefault(require("../model/CreateSnapshotResponse"));
-var _EditlabelofanexistingVMPayload = _interopRequireDefault(require("../model/EditlabelofanexistingVMPayload"));
+var _EditLabelOfAnExistingVMPayload = _interopRequireDefault(require("../model/EditLabelOfAnExistingVMPayload"));
var _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
+var _GetInstanceLogsResponse = _interopRequireDefault(require("../model/GetInstanceLogsResponse"));
var _Instance = _interopRequireDefault(require("../model/Instance"));
var _InstanceResizePayload = _interopRequireDefault(require("../model/InstanceResizePayload"));
var _Instances = _interopRequireDefault(require("../model/Instances"));
var _MetricsFields = _interopRequireDefault(require("../model/MetricsFields"));
var _NameAvailableModel = _interopRequireDefault(require("../model/NameAvailableModel"));
+var _RequestInstanceLogsPayload = _interopRequireDefault(require("../model/RequestInstanceLogsPayload"));
+var _RequestInstanceLogsResponse = _interopRequireDefault(require("../model/RequestInstanceLogsResponse"));
var _ResponseModel = _interopRequireDefault(require("../model/ResponseModel"));
var _SecurityGroupRule = _interopRequireDefault(require("../model/SecurityGroupRule"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
@@ -42,7 +45,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* VirtualMachine service.
* @module api/VirtualMachineApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -58,48 +61,48 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
}
/**
- * Add firewall rule to virtual machine
- * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
- * @param {Number} id
- * @param {module:model/CreateSecurityRulePayload} payload
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SecurityGroupRule} and HTTP response
+ * Edit virtual machine labels
+ * Adds one or more labels to an existing virtual machine. Provide the virtual machine ID in the path to add labels to the specified VM. For multiple labels, add a space between each label in the request body.
+ * @param {Number} vmId
+ * @param {module:model/EditLabelOfAnExistingVMPayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
return _createClass(VirtualMachineApi, [{
- key: "addFirewallRuleToVirtualMachineWithHttpInfo",
- value: function addFirewallRuleToVirtualMachineWithHttpInfo(id, payload) {
+ key: "addVMLabelWithHttpInfo",
+ value: function addVMLabelWithHttpInfo(vmId, payload) {
var postBody = payload;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling addFirewallRuleToVirtualMachine");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling addVMLabel");
}
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling addFirewallRuleToVirtualMachine");
+ throw new Error("Missing the required parameter 'payload' when calling addVMLabel");
}
var pathParams = {
- 'id': id
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
- var returnType = _SecurityGroupRule["default"];
- return this.apiClient.callApi('/core/virtual-machines/{id}/sg-rules', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _ResponseModel["default"];
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/label', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Add firewall rule to virtual machine
- * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
- * @param {Number} id
- * @param {module:model/CreateSecurityRulePayload} payload
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SecurityGroupRule}
+ * Edit virtual machine labels
+ * Adds one or more labels to an existing virtual machine. Provide the virtual machine ID in the path to add labels to the specified VM. For multiple labels, add a space between each label in the request body.
+ * @param {Number} vmId
+ * @param {module:model/EditLabelOfAnExistingVMPayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "addFirewallRuleToVirtualMachine",
- value: function addFirewallRuleToVirtualMachine(id, payload) {
- return this.addFirewallRuleToVirtualMachineWithHttpInfo(id, payload).then(function (response_and_data) {
+ key: "addVMLabel",
+ value: function addVMLabel(vmId, payload) {
+ return this.addVMLabelWithHttpInfo(vmId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -112,16 +115,16 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
- key: "attachFirewallsToAVirtualMachineWithHttpInfo",
- value: function attachFirewallsToAVirtualMachineWithHttpInfo(vmId, payload) {
+ key: "attachFirewallsToVMWithHttpInfo",
+ value: function attachFirewallsToVMWithHttpInfo(vmId, payload) {
var postBody = payload;
// verify the required parameter 'vmId' is set
if (vmId === undefined || vmId === null) {
- throw new Error("Missing the required parameter 'vmId' when calling attachFirewallsToAVirtualMachine");
+ throw new Error("Missing the required parameter 'vmId' when calling attachFirewallsToVM");
}
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling attachFirewallsToAVirtualMachine");
+ throw new Error("Missing the required parameter 'payload' when calling attachFirewallsToVM");
}
var pathParams = {
'vm_id': vmId
@@ -129,7 +132,7 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
@@ -144,9 +147,104 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "attachFirewallsToAVirtualMachine",
- value: function attachFirewallsToAVirtualMachine(vmId, payload) {
- return this.attachFirewallsToAVirtualMachineWithHttpInfo(vmId, payload).then(function (response_and_data) {
+ key: "attachFirewallsToVM",
+ value: function attachFirewallsToVM(vmId, payload) {
+ return this.attachFirewallsToVMWithHttpInfo(vmId, payload).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Fetch virtual machine name availability
+ * Check if a Virtual Machine name is available
+ * @param {String} name
+ * @param {Object} opts Optional parameters
+ * @param {String} [count] Nr of instances to handle (optional, default: 1)
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NameAvailableModel} and HTTP response
+ */
+ }, {
+ key: "checkVMNameAvailabilityWithHttpInfo",
+ value: function checkVMNameAvailabilityWithHttpInfo(name, opts) {
+ opts = opts || {};
+ var postBody = null;
+ // verify the required parameter 'name' is set
+ if (name === undefined || name === null) {
+ throw new Error("Missing the required parameter 'name' when calling checkVMNameAvailability");
+ }
+ var pathParams = {
+ 'name': name
+ };
+ var queryParams = {
+ 'count': opts['count']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _NameAvailableModel["default"];
+ return this.apiClient.callApi('/core/virtual-machines/name-availability/{name}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Fetch virtual machine name availability
+ * Check if a Virtual Machine name is available
+ * @param {String} name
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.count Nr of instances to handle (optional, default: 1)
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NameAvailableModel}
+ */
+ }, {
+ key: "checkVMNameAvailability",
+ value: function checkVMNameAvailability(name, opts) {
+ return this.checkVMNameAvailabilityWithHttpInfo(name, opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Add firewall rule to virtual machine
+ * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
+ * @param {Number} vmId
+ * @param {module:model/CreateSecurityRulePayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SecurityGroupRule} and HTTP response
+ */
+ }, {
+ key: "createFirewallRuleForVMWithHttpInfo",
+ value: function createFirewallRuleForVMWithHttpInfo(vmId, payload) {
+ var postBody = payload;
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling createFirewallRuleForVM");
+ }
+ // verify the required parameter 'payload' is set
+ if (payload === undefined || payload === null) {
+ throw new Error("Missing the required parameter 'payload' when calling createFirewallRuleForVM");
+ }
+ var pathParams = {
+ 'vm_id': vmId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = ['application/json'];
+ var accepts = ['application/json'];
+ var returnType = _SecurityGroupRule["default"];
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/sg-rules', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Add firewall rule to virtual machine
+ * Creates a firewall rule for a virtual machine. Include the virtual machine ID in the path, and provide the firewall rule configuration in the request body, as detailed below. For additional information on firewall rules, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
+ * @param {Number} vmId
+ * @param {module:model/CreateSecurityRulePayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SecurityGroupRule}
+ */
+ }, {
+ key: "createFirewallRuleForVM",
+ value: function createFirewallRuleForVM(vmId, payload) {
+ return this.createFirewallRuleForVMWithHttpInfo(vmId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -159,16 +257,16 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateSnapshotResponse} and HTTP response
*/
}, {
- key: "createSnapshotFromAVirtualMachineWithHttpInfo",
- value: function createSnapshotFromAVirtualMachineWithHttpInfo(vmId, payload) {
+ key: "createSnapshotForVMWithHttpInfo",
+ value: function createSnapshotForVMWithHttpInfo(vmId, payload) {
var postBody = payload;
// verify the required parameter 'vmId' is set
if (vmId === undefined || vmId === null) {
- throw new Error("Missing the required parameter 'vmId' when calling createSnapshotFromAVirtualMachine");
+ throw new Error("Missing the required parameter 'vmId' when calling createSnapshotForVM");
}
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling createSnapshotFromAVirtualMachine");
+ throw new Error("Missing the required parameter 'payload' when calling createSnapshotForVM");
}
var pathParams = {
'vm_id': vmId
@@ -176,7 +274,7 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _CreateSnapshotResponse["default"];
@@ -191,32 +289,32 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateSnapshotResponse}
*/
}, {
- key: "createSnapshotFromAVirtualMachine",
- value: function createSnapshotFromAVirtualMachine(vmId, payload) {
- return this.createSnapshotFromAVirtualMachineWithHttpInfo(vmId, payload).then(function (response_and_data) {
+ key: "createSnapshotForVM",
+ value: function createSnapshotForVM(vmId, payload) {
+ return this.createSnapshotForVMWithHttpInfo(vmId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Create virtual machines
- * Creates one or more virtual machines with the specified custom configuration and features provided in the request body. For more information about the virtual machine features offered by Infrahub, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/virtual-machine-features#create-a-virtual-machine-with-custom-features).
+ * Creates one or more virtual machines with the specified custom configuration and features provided in the request body. For more information about the virtual machine features offered by Infrahub, [**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/virtual-machine-features#create-a-virtual-machine-with-custom-features).
* @param {module:model/CreateInstancesPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateInstancesResponse} and HTTP response
*/
}, {
- key: "createVirtualMachinesWithHttpInfo",
- value: function createVirtualMachinesWithHttpInfo(payload) {
+ key: "createVMsWithHttpInfo",
+ value: function createVMsWithHttpInfo(payload) {
var postBody = payload;
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling createVirtualMachines");
+ throw new Error("Missing the required parameter 'payload' when calling createVMs");
}
var pathParams = {};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _CreateInstancesResponse["default"];
@@ -225,14 +323,14 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
/**
* Create virtual machines
- * Creates one or more virtual machines with the specified custom configuration and features provided in the request body. For more information about the virtual machine features offered by Infrahub, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/virtual-machine-features#create-a-virtual-machine-with-custom-features).
+ * Creates one or more virtual machines with the specified custom configuration and features provided in the request body. For more information about the virtual machine features offered by Infrahub, [**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/virtual-machine-features#create-a-virtual-machine-with-custom-features).
* @param {module:model/CreateInstancesPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateInstancesResponse}
*/
}, {
- key: "createVirtualMachines",
- value: function createVirtualMachines(payload) {
- return this.createVirtualMachinesWithHttpInfo(payload).then(function (response_and_data) {
+ key: "createVMs",
+ value: function createVMs(payload) {
+ return this.createVMsWithHttpInfo(payload).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -240,47 +338,47 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
/**
* Delete firewall rule from virtual machine
* Deletes a firewall rule associated with a virtual machine. Provide the virtual machine ID and the firewall rule ID in the path to remove the specified rule from the specified virtual machine.
- * @param {Number} virtualMachineId
+ * @param {Number} vmId
* @param {Number} sgRuleId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
- key: "deleteFirewallRuleFromVirtualMachineWithHttpInfo",
- value: function deleteFirewallRuleFromVirtualMachineWithHttpInfo(virtualMachineId, sgRuleId) {
+ key: "deleteFirewallRuleForVMWithHttpInfo",
+ value: function deleteFirewallRuleForVMWithHttpInfo(vmId, sgRuleId) {
var postBody = null;
- // verify the required parameter 'virtualMachineId' is set
- if (virtualMachineId === undefined || virtualMachineId === null) {
- throw new Error("Missing the required parameter 'virtualMachineId' when calling deleteFirewallRuleFromVirtualMachine");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling deleteFirewallRuleForVM");
}
// verify the required parameter 'sgRuleId' is set
if (sgRuleId === undefined || sgRuleId === null) {
- throw new Error("Missing the required parameter 'sgRuleId' when calling deleteFirewallRuleFromVirtualMachine");
+ throw new Error("Missing the required parameter 'sgRuleId' when calling deleteFirewallRuleForVM");
}
var pathParams = {
- 'virtual_machine_id': virtualMachineId,
+ 'vm_id': vmId,
'sg_rule_id': sgRuleId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
- return this.apiClient.callApi('/core/virtual-machines/{virtual_machine_id}/sg-rules/{sg_rule_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/sg-rules/{sg_rule_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Delete firewall rule from virtual machine
* Deletes a firewall rule associated with a virtual machine. Provide the virtual machine ID and the firewall rule ID in the path to remove the specified rule from the specified virtual machine.
- * @param {Number} virtualMachineId
+ * @param {Number} vmId
* @param {Number} sgRuleId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "deleteFirewallRuleFromVirtualMachine",
- value: function deleteFirewallRuleFromVirtualMachine(virtualMachineId, sgRuleId) {
- return this.deleteFirewallRuleFromVirtualMachineWithHttpInfo(virtualMachineId, sgRuleId).then(function (response_and_data) {
+ key: "deleteFirewallRuleForVM",
+ value: function deleteFirewallRuleForVM(vmId, sgRuleId) {
+ return this.deleteFirewallRuleForVMWithHttpInfo(vmId, sgRuleId).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -288,128 +386,232 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
/**
* Delete virtual machine
* Permanently deletes a virtual machine. Provide the virtual machine ID in the path to delete the specified virtual machine.
- * @param {Number} id
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
- key: "deleteVirtualMachineWithHttpInfo",
- value: function deleteVirtualMachineWithHttpInfo(id) {
+ key: "deleteVMWithHttpInfo",
+ value: function deleteVMWithHttpInfo(vmId) {
var postBody = null;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling deleteVirtualMachine");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling deleteVM");
}
var pathParams = {
- 'id': id
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
- return this.apiClient.callApi('/core/virtual-machines/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Delete virtual machine
* Permanently deletes a virtual machine. Provide the virtual machine ID in the path to delete the specified virtual machine.
- * @param {Number} id
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "deleteVirtualMachine",
- value: function deleteVirtualMachine(id) {
- return this.deleteVirtualMachineWithHttpInfo(id).then(function (response_and_data) {
+ key: "deleteVM",
+ value: function deleteVM(vmId) {
+ return this.deleteVMWithHttpInfo(vmId).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Edit virtual machine labels
- * Adds one or more labels to an existing virtual machine. Provide the virtual machine ID in the path to add labels to the specified VM. For multiple labels, add a space between each label in the request body.
- * @param {Number} virtualMachineId
- * @param {module:model/EditlabelofanexistingVMPayload} payload
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
+ * Retrieve virtual machines associated with a contract
+ * Retrieves a list of virtual machines associated with a contract, providing details such as virtual machine name, timestamp, flavor name, and other relevant information. Please provide the ID of the relevant contract in the path.
+ * @param {Number} contractId
+ * @param {Object} opts Optional parameters
+ * @param {String} [page] Page Number
+ * @param {String} [pageSize] Data Per Page
+ * @param {String} [search] Search By Instance ID or Name
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ContractInstancesResponse} and HTTP response
*/
}, {
- key: "editVirtualMachineLabelsWithHttpInfo",
- value: function editVirtualMachineLabelsWithHttpInfo(virtualMachineId, payload) {
- var postBody = payload;
- // verify the required parameter 'virtualMachineId' is set
- if (virtualMachineId === undefined || virtualMachineId === null) {
- throw new Error("Missing the required parameter 'virtualMachineId' when calling editVirtualMachineLabels");
+ key: "getContractVMsWithHttpInfo",
+ value: function getContractVMsWithHttpInfo(contractId, opts) {
+ opts = opts || {};
+ var postBody = null;
+ // verify the required parameter 'contractId' is set
+ if (contractId === undefined || contractId === null) {
+ throw new Error("Missing the required parameter 'contractId' when calling getContractVMs");
}
- // verify the required parameter 'payload' is set
- if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling editVirtualMachineLabels");
+ var pathParams = {
+ 'contract_id': contractId
+ };
+ var queryParams = {
+ 'page': opts['page'],
+ 'pageSize': opts['pageSize'],
+ 'search': opts['search']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _ContractInstancesResponse["default"];
+ return this.apiClient.callApi('/core/virtual-machines/contract/{contract_id}/virtual-machines', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve virtual machines associated with a contract
+ * Retrieves a list of virtual machines associated with a contract, providing details such as virtual machine name, timestamp, flavor name, and other relevant information. Please provide the ID of the relevant contract in the path.
+ * @param {Number} contractId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.page Page Number
+ * @param {String} opts.pageSize Data Per Page
+ * @param {String} opts.search Search By Instance ID or Name
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ContractInstancesResponse}
+ */
+ }, {
+ key: "getContractVMs",
+ value: function getContractVMs(contractId, opts) {
+ return this.getContractVMsWithHttpInfo(contractId, opts).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve virtual machine details
+ * Retrieves the details of an existing virtual machine. Provide the virtual machine ID in the path, and Infrahub will return information about the corresponding VM.
+ * @param {Number} vmId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Instance} and HTTP response
+ */
+ }, {
+ key: "getVMWithHttpInfo",
+ value: function getVMWithHttpInfo(vmId) {
+ var postBody = null;
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling getVM");
}
var pathParams = {
- 'virtual_machine_id': virtualMachineId
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
- var contentTypes = ['application/json'];
+ var authNames = ['apiKey'];
+ var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _ResponseModel["default"];
- return this.apiClient.callApi('/core/virtual-machines/{virtual_machine_id}/label', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _Instance["default"];
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Edit virtual machine labels
- * Adds one or more labels to an existing virtual machine. Provide the virtual machine ID in the path to add labels to the specified VM. For multiple labels, add a space between each label in the request body.
- * @param {Number} virtualMachineId
- * @param {module:model/EditlabelofanexistingVMPayload} payload
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
+ * Retrieve virtual machine details
+ * Retrieves the details of an existing virtual machine. Provide the virtual machine ID in the path, and Infrahub will return information about the corresponding VM.
+ * @param {Number} vmId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Instance}
*/
}, {
- key: "editVirtualMachineLabels",
- value: function editVirtualMachineLabels(virtualMachineId, payload) {
- return this.editVirtualMachineLabelsWithHttpInfo(virtualMachineId, payload).then(function (response_and_data) {
+ key: "getVM",
+ value: function getVM(vmId) {
+ return this.getVMWithHttpInfo(vmId).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Fetch virtual machine name availability
- * Check if a Virtual Machine name is available
- * @param {String} name
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NameAvailableModel} and HTTP response
+ * Get virtual machine logs
+ * Retrieve console logs for a virtual machine
+ * @param {Number} vmId
+ * @param {Number} requestId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetInstanceLogsResponse} and HTTP response
*/
}, {
- key: "fetchVirtualMachineNameAvailabilityWithHttpInfo",
- value: function fetchVirtualMachineNameAvailabilityWithHttpInfo(name) {
+ key: "getVMLogsWithHttpInfo",
+ value: function getVMLogsWithHttpInfo(vmId, requestId) {
var postBody = null;
- // verify the required parameter 'name' is set
- if (name === undefined || name === null) {
- throw new Error("Missing the required parameter 'name' when calling fetchVirtualMachineNameAvailability");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling getVMLogs");
+ }
+ // verify the required parameter 'requestId' is set
+ if (requestId === undefined || requestId === null) {
+ throw new Error("Missing the required parameter 'requestId' when calling getVMLogs");
}
var pathParams = {
- 'name': name
+ 'vm_id': vmId
+ };
+ var queryParams = {
+ 'request_id': requestId
};
- var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _NameAvailableModel["default"];
- return this.apiClient.callApi('/core/virtual-machines/name-availability/{name}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _GetInstanceLogsResponse["default"];
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/logs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Fetch virtual machine name availability
- * Check if a Virtual Machine name is available
- * @param {String} name
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NameAvailableModel}
+ * Get virtual machine logs
+ * Retrieve console logs for a virtual machine
+ * @param {Number} vmId
+ * @param {Number} requestId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetInstanceLogsResponse}
+ */
+ }, {
+ key: "getVMLogs",
+ value: function getVMLogs(vmId, requestId) {
+ return this.getVMLogsWithHttpInfo(vmId, requestId).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Retrieve virtual machine performance metrics
+ * Retrieves performance metrics data for a virtual machine. Provide the virtual machine ID in the path to retrieve the following data for the specified virtual machine: CPU usage, memory usage (RAM), `network.in`, `network.out`, `disk.read`, and `disk.write`. The optional `duration` parameter can be used to specify the period for retrieving performance metrics; the default value will retrieve all available data. To learn more about virtual machine performance metrics, [**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/vm-performance-metrics-and-events-history#performance-metrics).
+ * @param {Number} vmId
+ * @param {Object} opts Optional parameters
+ * @param {module:model/String} [duration]
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MetricsFields} and HTTP response
+ */
+ }, {
+ key: "getVMMetricsWithHttpInfo",
+ value: function getVMMetricsWithHttpInfo(vmId, opts) {
+ opts = opts || {};
+ var postBody = null;
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling getVMMetrics");
+ }
+ var pathParams = {
+ 'vm_id': vmId
+ };
+ var queryParams = {
+ 'duration': opts['duration']
+ };
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = [];
+ var accepts = ['application/json'];
+ var returnType = _MetricsFields["default"];
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/metrics', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Retrieve virtual machine performance metrics
+ * Retrieves performance metrics data for a virtual machine. Provide the virtual machine ID in the path to retrieve the following data for the specified virtual machine: CPU usage, memory usage (RAM), `network.in`, `network.out`, `disk.read`, and `disk.write`. The optional `duration` parameter can be used to specify the period for retrieving performance metrics; the default value will retrieve all available data. To learn more about virtual machine performance metrics, [**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/vm-performance-metrics-and-events-history#performance-metrics).
+ * @param {Number} vmId
+ * @param {Object} opts Optional parameters
+ * @param {module:model/String} opts.duration
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MetricsFields}
*/
}, {
- key: "fetchVirtualMachineNameAvailability",
- value: function fetchVirtualMachineNameAvailability(name) {
- return this.fetchVirtualMachineNameAvailabilityWithHttpInfo(name).then(function (response_and_data) {
+ key: "getVMMetrics",
+ value: function getVMMetrics(vmId, opts) {
+ return this.getVMMetricsWithHttpInfo(vmId, opts).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -417,40 +619,40 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
/**
* Hard reboot virtual machine
* Initiates a hard reboot for a virtual machine, simulating the process of unplugging and rebooting a physical machine. Provide the virtual machine ID in the path to execute a hard reboot for the specified virtual machine.
- * @param {Number} id
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
- key: "hardRebootVirtualMachineWithHttpInfo",
- value: function hardRebootVirtualMachineWithHttpInfo(id) {
+ key: "hardRebootVMWithHttpInfo",
+ value: function hardRebootVMWithHttpInfo(vmId) {
var postBody = null;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling hardRebootVirtualMachine");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling hardRebootVM");
}
var pathParams = {
- 'id': id
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
- return this.apiClient.callApi('/core/virtual-machines/{id}/hard-reboot', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/hard-reboot', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Hard reboot virtual machine
* Initiates a hard reboot for a virtual machine, simulating the process of unplugging and rebooting a physical machine. Provide the virtual machine ID in the path to execute a hard reboot for the specified virtual machine.
- * @param {Number} id
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "hardRebootVirtualMachine",
- value: function hardRebootVirtualMachine(id) {
- return this.hardRebootVirtualMachineWithHttpInfo(id).then(function (response_and_data) {
+ key: "hardRebootVM",
+ value: function hardRebootVM(vmId) {
+ return this.hardRebootVMWithHttpInfo(vmId).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -458,40 +660,47 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
/**
* Hibernate virtual machine
* Initiates the hibernation of a virtual machine, saving its current state to disk before powering off. Provide the virtual machine ID in the path to specify the virtual machine to be hibernated.
- * @param {Number} virtualMachineId
+ * @param {Number} vmId
+ * @param {Object} opts Optional parameters
+ * @param {String} [retainIp] false
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
- key: "hibernateVirtualMachineWithHttpInfo",
- value: function hibernateVirtualMachineWithHttpInfo(virtualMachineId) {
+ key: "hibernateVMWithHttpInfo",
+ value: function hibernateVMWithHttpInfo(vmId, opts) {
+ opts = opts || {};
var postBody = null;
- // verify the required parameter 'virtualMachineId' is set
- if (virtualMachineId === undefined || virtualMachineId === null) {
- throw new Error("Missing the required parameter 'virtualMachineId' when calling hibernateVirtualMachine");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling hibernateVM");
}
var pathParams = {
- 'virtual_machine_id': virtualMachineId
+ 'vm_id': vmId
+ };
+ var queryParams = {
+ 'retain_ip': opts['retainIp']
};
- var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
- return this.apiClient.callApi('/core/virtual-machines/{virtual_machine_id}/hibernate', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/hibernate', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Hibernate virtual machine
* Initiates the hibernation of a virtual machine, saving its current state to disk before powering off. Provide the virtual machine ID in the path to specify the virtual machine to be hibernated.
- * @param {Number} virtualMachineId
+ * @param {Number} vmId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.retainIp false
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "hibernateVirtualMachine",
- value: function hibernateVirtualMachine(virtualMachineId) {
- return this.hibernateVirtualMachineWithHttpInfo(virtualMachineId).then(function (response_and_data) {
+ key: "hibernateVM",
+ value: function hibernateVM(vmId, opts) {
+ return this.hibernateVMWithHttpInfo(vmId, opts).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -500,15 +709,17 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
* List virtual machines
* Returns a list of your existing virtual machines, providing configuration details for each. The list is sorted by creation date, with the oldest virtual machines displayed first.
* @param {Object} opts Optional parameters
- * @param {String} [page] Page Number
- * @param {String} [pageSize] Data Per Page
+ * @param {Number} [page]
+ * @param {Number} [pageSize]
* @param {String} [search]
- * @param {String} [environment] Filter Environment ID or Name
+ * @param {String} [environment]
+ * @param {Array.} [excludeFirewalls] Comma-separated list of Security Group IDs to ignore instances attached
+ * @param {Boolean} [exactEnvironmentMatch = false)] Flag to filter environment by exact match instead of partial match
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Instances} and HTTP response
*/
}, {
- key: "listVirtualMachinesWithHttpInfo",
- value: function listVirtualMachinesWithHttpInfo(opts) {
+ key: "listVMsWithHttpInfo",
+ value: function listVMsWithHttpInfo(opts) {
opts = opts || {};
var postBody = null;
var pathParams = {};
@@ -516,11 +727,13 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
'page': opts['page'],
'pageSize': opts['pageSize'],
'search': opts['search'],
- 'environment': opts['environment']
+ 'environment': opts['environment'],
+ 'exclude_firewalls': this.apiClient.buildCollectionParam(opts['excludeFirewalls'], 'multi'),
+ 'exact_environment_match': opts['exactEnvironmentMatch']
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _Instances["default"];
@@ -531,247 +744,153 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
* List virtual machines
* Returns a list of your existing virtual machines, providing configuration details for each. The list is sorted by creation date, with the oldest virtual machines displayed first.
* @param {Object} opts Optional parameters
- * @param {String} opts.page Page Number
- * @param {String} opts.pageSize Data Per Page
+ * @param {Number} opts.page
+ * @param {Number} opts.pageSize
* @param {String} opts.search
- * @param {String} opts.environment Filter Environment ID or Name
+ * @param {String} opts.environment
+ * @param {Array.} opts.excludeFirewalls Comma-separated list of Security Group IDs to ignore instances attached
+ * @param {Boolean} opts.exactEnvironmentMatch Flag to filter environment by exact match instead of partial match (default to false)
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Instances}
*/
}, {
- key: "listVirtualMachines",
- value: function listVirtualMachines(opts) {
- return this.listVirtualMachinesWithHttpInfo(opts).then(function (response_and_data) {
+ key: "listVMs",
+ value: function listVMs(opts) {
+ return this.listVMsWithHttpInfo(opts).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Resize virtual machine
- * Updates the hardware configuration for an existing virtual machine. Include the virtual machine ID in the path and provide the new configuration, referred to as a `flavor`, in the body of the request. For additional information resizing, [**click here**](https://infrahub-doc.nexgencloud.com/docs/hardware/flavors#modify-the-flavor-of-an-existing-virtual-machine).
- * @param {Number} virtualMachineId
- * @param {module:model/InstanceResizePayload} payload
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
+ * Request virtual machine logs
+ * Request console logs for a virtual machine
+ * @param {Number} vmId
+ * @param {module:model/RequestInstanceLogsPayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RequestInstanceLogsResponse} and HTTP response
*/
}, {
- key: "resizeVirtualMachineWithHttpInfo",
- value: function resizeVirtualMachineWithHttpInfo(virtualMachineId, payload) {
+ key: "requestVMLogsWithHttpInfo",
+ value: function requestVMLogsWithHttpInfo(vmId, payload) {
var postBody = payload;
- // verify the required parameter 'virtualMachineId' is set
- if (virtualMachineId === undefined || virtualMachineId === null) {
- throw new Error("Missing the required parameter 'virtualMachineId' when calling resizeVirtualMachine");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling requestVMLogs");
}
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling resizeVirtualMachine");
+ throw new Error("Missing the required parameter 'payload' when calling requestVMLogs");
}
var pathParams = {
- 'virtual_machine_id': virtualMachineId
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
- var returnType = _ResponseModel["default"];
- return this.apiClient.callApi('/core/virtual-machines/{virtual_machine_id}/resize', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _RequestInstanceLogsResponse["default"];
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/logs', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Resize virtual machine
- * Updates the hardware configuration for an existing virtual machine. Include the virtual machine ID in the path and provide the new configuration, referred to as a `flavor`, in the body of the request. For additional information resizing, [**click here**](https://infrahub-doc.nexgencloud.com/docs/hardware/flavors#modify-the-flavor-of-an-existing-virtual-machine).
- * @param {Number} virtualMachineId
- * @param {module:model/InstanceResizePayload} payload
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
+ * Request virtual machine logs
+ * Request console logs for a virtual machine
+ * @param {Number} vmId
+ * @param {module:model/RequestInstanceLogsPayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RequestInstanceLogsResponse}
*/
}, {
- key: "resizeVirtualMachine",
- value: function resizeVirtualMachine(virtualMachineId, payload) {
- return this.resizeVirtualMachineWithHttpInfo(virtualMachineId, payload).then(function (response_and_data) {
+ key: "requestVMLogs",
+ value: function requestVMLogs(vmId, payload) {
+ return this.requestVMLogsWithHttpInfo(vmId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Restore virtual machine from hibernation
- * Resumes a virtual machine from hibernation, bringing it back to an active state. Provide the virtual machine ID in the path to specify the virtual machine to be restored from hibernation.
- * @param {Number} virtualMachineId
+ * Resize virtual machine
+ * Updates the hardware configuration for an existing virtual machine. Include the virtual machine ID in the path and provide the new configuration, referred to as a `flavor`, in the body of the request. For additional information resizing, [**click here**](https://docs.hyperstack.cloud/docs/hardware/flavors#modify-the-flavor-of-an-existing-virtual-machine).
+ * @param {Number} vmId
+ * @param {module:model/InstanceResizePayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
- key: "restoreVirtualMachineFromHibernationWithHttpInfo",
- value: function restoreVirtualMachineFromHibernationWithHttpInfo(virtualMachineId) {
- var postBody = null;
- // verify the required parameter 'virtualMachineId' is set
- if (virtualMachineId === undefined || virtualMachineId === null) {
- throw new Error("Missing the required parameter 'virtualMachineId' when calling restoreVirtualMachineFromHibernation");
+ key: "resizeVMWithHttpInfo",
+ value: function resizeVMWithHttpInfo(vmId, payload) {
+ var postBody = payload;
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling resizeVM");
+ }
+ // verify the required parameter 'payload' is set
+ if (payload === undefined || payload === null) {
+ throw new Error("Missing the required parameter 'payload' when calling resizeVM");
}
var pathParams = {
- 'virtual_machine_id': virtualMachineId
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
- var contentTypes = [];
+ var authNames = ['apiKey'];
+ var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
- return this.apiClient.callApi('/core/virtual-machines/{virtual_machine_id}/hibernate-restore', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/resize', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Restore virtual machine from hibernation
- * Resumes a virtual machine from hibernation, bringing it back to an active state. Provide the virtual machine ID in the path to specify the virtual machine to be restored from hibernation.
- * @param {Number} virtualMachineId
+ * Resize virtual machine
+ * Updates the hardware configuration for an existing virtual machine. Include the virtual machine ID in the path and provide the new configuration, referred to as a `flavor`, in the body of the request. For additional information resizing, [**click here**](https://docs.hyperstack.cloud/docs/hardware/flavors#modify-the-flavor-of-an-existing-virtual-machine).
+ * @param {Number} vmId
+ * @param {module:model/InstanceResizePayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "restoreVirtualMachineFromHibernation",
- value: function restoreVirtualMachineFromHibernation(virtualMachineId) {
- return this.restoreVirtualMachineFromHibernationWithHttpInfo(virtualMachineId).then(function (response_and_data) {
+ key: "resizeVM",
+ value: function resizeVM(vmId, payload) {
+ return this.resizeVMWithHttpInfo(vmId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Retrieve virtual machine details
- * Retrieves the details of an existing virtual machine. Provide the virtual machine ID in the path, and Infrahub will return information about the corresponding VM.
- * @param {Number} id
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Instance} and HTTP response
+ * Restore virtual machine from hibernation
+ * Resumes a virtual machine from hibernation, bringing it back to an active state. Provide the virtual machine ID that you want to restore from hibernation.
+ * @param {Number} vmId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
- key: "retrieveVirtualMachineDetailsWithHttpInfo",
- value: function retrieveVirtualMachineDetailsWithHttpInfo(id) {
+ key: "restoreVMFromHibernationWithHttpInfo",
+ value: function restoreVMFromHibernationWithHttpInfo(vmId) {
var postBody = null;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling retrieveVirtualMachineDetails");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling restoreVMFromHibernation");
}
var pathParams = {
- 'id': id
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _Instance["default"];
- return this.apiClient.callApi('/core/virtual-machines/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
- }
-
- /**
- * Retrieve virtual machine details
- * Retrieves the details of an existing virtual machine. Provide the virtual machine ID in the path, and Infrahub will return information about the corresponding VM.
- * @param {Number} id
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Instance}
- */
- }, {
- key: "retrieveVirtualMachineDetails",
- value: function retrieveVirtualMachineDetails(id) {
- return this.retrieveVirtualMachineDetailsWithHttpInfo(id).then(function (response_and_data) {
- return response_and_data.data;
- });
- }
-
- /**
- * Retrieve virtual machine performance metrics
- * Retrieves performance metrics data for a virtual machine. Provide the virtual machine ID in the path to retrieve the following data for the specified virtual machine: CPU usage, memory usage (RAM), `network.in`, `network.out`, `disk.read`, and `disk.write`. The optional `duration` parameter can be used to specify the period for retrieving performance metrics; the default value will retrieve all available data. To learn more about virtual machine performance metrics, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/vm-performance-metrics-and-events-history#performance-metrics).
- * @param {Number} virtualMachineId
- * @param {Object} opts Optional parameters
- * @param {module:model/String} [duration]
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MetricsFields} and HTTP response
- */
- }, {
- key: "retrieveVirtualMachinePerformanceMetricsWithHttpInfo",
- value: function retrieveVirtualMachinePerformanceMetricsWithHttpInfo(virtualMachineId, opts) {
- opts = opts || {};
- var postBody = null;
- // verify the required parameter 'virtualMachineId' is set
- if (virtualMachineId === undefined || virtualMachineId === null) {
- throw new Error("Missing the required parameter 'virtualMachineId' when calling retrieveVirtualMachinePerformanceMetrics");
- }
- var pathParams = {
- 'virtual_machine_id': virtualMachineId
- };
- var queryParams = {
- 'duration': opts['duration']
- };
- var headerParams = {};
- var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
- var contentTypes = [];
- var accepts = ['application/json'];
- var returnType = _MetricsFields["default"];
- return this.apiClient.callApi('/core/virtual-machines/{virtual_machine_id}/metrics', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
- }
-
- /**
- * Retrieve virtual machine performance metrics
- * Retrieves performance metrics data for a virtual machine. Provide the virtual machine ID in the path to retrieve the following data for the specified virtual machine: CPU usage, memory usage (RAM), `network.in`, `network.out`, `disk.read`, and `disk.write`. The optional `duration` parameter can be used to specify the period for retrieving performance metrics; the default value will retrieve all available data. To learn more about virtual machine performance metrics, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/vm-performance-metrics-and-events-history#performance-metrics).
- * @param {Number} virtualMachineId
- * @param {Object} opts Optional parameters
- * @param {module:model/String} opts.duration
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MetricsFields}
- */
- }, {
- key: "retrieveVirtualMachinePerformanceMetrics",
- value: function retrieveVirtualMachinePerformanceMetrics(virtualMachineId, opts) {
- return this.retrieveVirtualMachinePerformanceMetricsWithHttpInfo(virtualMachineId, opts).then(function (response_and_data) {
- return response_and_data.data;
- });
- }
-
- /**
- * Retrieve virtual machines associated with a contract
- * Retrieves a list of virtual machines associated with a contract, providing details such as virtual machine name, timestamp, flavor name, and other relevant information. Please provide the ID of the relevant contract in the path.
- * @param {Number} contractId
- * @param {Object} opts Optional parameters
- * @param {String} [page] Page Number
- * @param {String} [pageSize] Data Per Page
- * @param {String} [search] Search By Instance ID or Name
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ContractInstancesResponse} and HTTP response
- */
- }, {
- key: "retrieveVirtualMachinesAssociatedWithAContractWithHttpInfo",
- value: function retrieveVirtualMachinesAssociatedWithAContractWithHttpInfo(contractId, opts) {
- opts = opts || {};
- var postBody = null;
- // verify the required parameter 'contractId' is set
- if (contractId === undefined || contractId === null) {
- throw new Error("Missing the required parameter 'contractId' when calling retrieveVirtualMachinesAssociatedWithAContract");
- }
- var pathParams = {
- 'contract_id': contractId
- };
- var queryParams = {
- 'page': opts['page'],
- 'pageSize': opts['pageSize'],
- 'search': opts['search']
- };
- var headerParams = {};
- var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
- var contentTypes = [];
- var accepts = ['application/json'];
- var returnType = _ContractInstancesResponse["default"];
- return this.apiClient.callApi('/core/virtual-machines/contract/{contract_id}/virtual-machines', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _ResponseModel["default"];
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/hibernate-restore', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Retrieve virtual machines associated with a contract
- * Retrieves a list of virtual machines associated with a contract, providing details such as virtual machine name, timestamp, flavor name, and other relevant information. Please provide the ID of the relevant contract in the path.
- * @param {Number} contractId
- * @param {Object} opts Optional parameters
- * @param {String} opts.page Page Number
- * @param {String} opts.pageSize Data Per Page
- * @param {String} opts.search Search By Instance ID or Name
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ContractInstancesResponse}
+ * Restore virtual machine from hibernation
+ * Resumes a virtual machine from hibernation, bringing it back to an active state. Provide the virtual machine ID that you want to restore from hibernation.
+ * @param {Number} vmId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "retrieveVirtualMachinesAssociatedWithAContract",
- value: function retrieveVirtualMachinesAssociatedWithAContract(contractId, opts) {
- return this.retrieveVirtualMachinesAssociatedWithAContractWithHttpInfo(contractId, opts).then(function (response_and_data) {
+ key: "restoreVMFromHibernation",
+ value: function restoreVMFromHibernation(vmId) {
+ return this.restoreVMFromHibernationWithHttpInfo(vmId).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -779,40 +898,40 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
/**
* Start virtual machine
* Initiates the startup of a virtual machine. Provide the virtual machine ID in the path to initiate the starting of the specified virtual machine.
- * @param {Number} id
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
- key: "startVirtualMachineWithHttpInfo",
- value: function startVirtualMachineWithHttpInfo(id) {
+ key: "startVMWithHttpInfo",
+ value: function startVMWithHttpInfo(vmId) {
var postBody = null;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling startVirtualMachine");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling startVM");
}
var pathParams = {
- 'id': id
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
- return this.apiClient.callApi('/core/virtual-machines/{id}/start', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/start', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Start virtual machine
* Initiates the startup of a virtual machine. Provide the virtual machine ID in the path to initiate the starting of the specified virtual machine.
- * @param {Number} id
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "startVirtualMachine",
- value: function startVirtualMachine(id) {
- return this.startVirtualMachineWithHttpInfo(id).then(function (response_and_data) {
+ key: "startVM",
+ value: function startVM(vmId) {
+ return this.startVMWithHttpInfo(vmId).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -820,40 +939,40 @@ var VirtualMachineApi = exports["default"] = /*#__PURE__*/function () {
/**
* Stop virtual machine
* Shuts down a virtual machine. Provide the virtual machine ID in the path to initiate the shutdown process for the specified virtual machine.
- * @param {Number} id
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
- key: "stopVirtualMachineWithHttpInfo",
- value: function stopVirtualMachineWithHttpInfo(id) {
+ key: "stopVMWithHttpInfo",
+ value: function stopVMWithHttpInfo(vmId) {
var postBody = null;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling stopVirtualMachine");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling stopVM");
}
var pathParams = {
- 'id': id
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
- return this.apiClient.callApi('/core/virtual-machines/{id}/stop', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/stop', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Stop virtual machine
* Shuts down a virtual machine. Provide the virtual machine ID in the path to initiate the shutdown process for the specified virtual machine.
- * @param {Number} id
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
- key: "stopVirtualMachine",
- value: function stopVirtualMachine(id) {
- return this.stopVirtualMachineWithHttpInfo(id).then(function (response_and_data) {
+ key: "stopVM",
+ value: function stopVM(vmId) {
+ return this.stopVMWithHttpInfo(vmId).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/VirtualMachineEventsApi.js b/dist/api/VirtualMachineEventsApi.js
index 1bb619c4..08802bd0 100644
--- a/dist/api/VirtualMachineEventsApi.js
+++ b/dist/api/VirtualMachineEventsApi.js
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* VirtualMachineEvents service.
* @module api/VirtualMachineEventsApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var VirtualMachineEventsApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -45,41 +45,41 @@ var VirtualMachineEventsApi = exports["default"] = /*#__PURE__*/function () {
/**
* List virtual machine events
- * Retrieves a list of all events in a virtual machine's history, which records actions performed on the specified virtual machine. Include the virtual machine ID in the path to retrieve the history of events. For more details on virtual machine events history, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/vm-performance-metrics-and-events-history#events-history).
- * @param {String} virtualMachineId
+ * Retrieves a list of all events in a virtual machine's history, which records actions performed on the specified virtual machine. Include the virtual machine ID in the path to retrieve the history of events. For more details on virtual machine events history, [**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/vm-performance-metrics-and-events-history#events-history).
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InstanceEvents} and HTTP response
*/
return _createClass(VirtualMachineEventsApi, [{
- key: "listVirtualMachineEventsWithHttpInfo",
- value: function listVirtualMachineEventsWithHttpInfo(virtualMachineId) {
+ key: "listVMEventsWithHttpInfo",
+ value: function listVMEventsWithHttpInfo(vmId) {
var postBody = null;
- // verify the required parameter 'virtualMachineId' is set
- if (virtualMachineId === undefined || virtualMachineId === null) {
- throw new Error("Missing the required parameter 'virtualMachineId' when calling listVirtualMachineEvents");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling listVMEvents");
}
var pathParams = {
- 'virtual_machine_id': virtualMachineId
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _InstanceEvents["default"];
- return this.apiClient.callApi('/core/virtual-machines/{virtual_machine_id}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* List virtual machine events
- * Retrieves a list of all events in a virtual machine's history, which records actions performed on the specified virtual machine. Include the virtual machine ID in the path to retrieve the history of events. For more details on virtual machine events history, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/vm-performance-metrics-and-events-history#events-history).
- * @param {String} virtualMachineId
+ * Retrieves a list of all events in a virtual machine's history, which records actions performed on the specified virtual machine. Include the virtual machine ID in the path to retrieve the history of events. For more details on virtual machine events history, [**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/vm-performance-metrics-and-events-history#events-history).
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InstanceEvents}
*/
}, {
- key: "listVirtualMachineEvents",
- value: function listVirtualMachineEvents(virtualMachineId) {
- return this.listVirtualMachineEventsWithHttpInfo(virtualMachineId).then(function (response_and_data) {
+ key: "listVMEvents",
+ value: function listVMEvents(vmId) {
+ return this.listVMEventsWithHttpInfo(vmId).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/VncUrlApi.js b/dist/api/VncUrlApi.js
index 83d0fbf0..f8d3fe0a 100644
--- a/dist/api/VncUrlApi.js
+++ b/dist/api/VncUrlApi.js
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* VncUrl service.
* @module api/VncUrlApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var VncUrlApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -46,85 +46,89 @@ var VncUrlApi = exports["default"] = /*#__PURE__*/function () {
/**
* Get VNC Console Link
- * @param {Number} virtualMachineId
+ * Retrieves the URL to access the VNC console for a specified virtual machine by providing the virtual machine ID and the job ID in the path. For more information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-vnc-url).
+ * @param {Number} vmId
* @param {Number} jobId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VNCURL} and HTTP response
*/
return _createClass(VncUrlApi, [{
- key: "getVncConsoleLinkWithHttpInfo",
- value: function getVncConsoleLinkWithHttpInfo(virtualMachineId, jobId) {
+ key: "getVNCURLWithHttpInfo",
+ value: function getVNCURLWithHttpInfo(vmId, jobId) {
var postBody = null;
- // verify the required parameter 'virtualMachineId' is set
- if (virtualMachineId === undefined || virtualMachineId === null) {
- throw new Error("Missing the required parameter 'virtualMachineId' when calling getVncConsoleLink");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling getVNCURL");
}
// verify the required parameter 'jobId' is set
if (jobId === undefined || jobId === null) {
- throw new Error("Missing the required parameter 'jobId' when calling getVncConsoleLink");
+ throw new Error("Missing the required parameter 'jobId' when calling getVNCURL");
}
var pathParams = {
- 'virtual_machine_id': virtualMachineId,
+ 'vm_id': vmId,
'job_id': jobId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _VNCURL["default"];
- return this.apiClient.callApi('/core/virtual-machines/{virtual_machine_id}/console/{job_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/console/{job_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Get VNC Console Link
- * @param {Number} virtualMachineId
+ * Retrieves the URL to access the VNC console for a specified virtual machine by providing the virtual machine ID and the job ID in the path. For more information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-vnc-url).
+ * @param {Number} vmId
* @param {Number} jobId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VNCURL}
*/
}, {
- key: "getVncConsoleLink",
- value: function getVncConsoleLink(virtualMachineId, jobId) {
- return this.getVncConsoleLinkWithHttpInfo(virtualMachineId, jobId).then(function (response_and_data) {
+ key: "getVNCURL",
+ value: function getVNCURL(vmId, jobId) {
+ return this.getVNCURLWithHttpInfo(vmId, jobId).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Request Instance Console
- * @param {Number} id
+ * Retrieves the path of the VNC console for the given virtual machine ID by providing the virtual machine ID in the path. For more information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-console-path).
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RequestConsole} and HTTP response
*/
}, {
- key: "requestInstanceConsoleWithHttpInfo",
- value: function requestInstanceConsoleWithHttpInfo(id) {
+ key: "requestVMConsoleWithHttpInfo",
+ value: function requestVMConsoleWithHttpInfo(vmId) {
var postBody = null;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling requestInstanceConsole");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling requestVMConsole");
}
var pathParams = {
- 'id': id
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _RequestConsole["default"];
- return this.apiClient.callApi('/core/virtual-machines/{id}/request-console', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/request-console', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Request Instance Console
- * @param {Number} id
+ * Retrieves the path of the VNC console for the given virtual machine ID by providing the virtual machine ID in the path. For more information, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-console-path).
+ * @param {Number} vmId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RequestConsole}
*/
}, {
- key: "requestInstanceConsole",
- value: function requestInstanceConsole(id) {
- return this.requestInstanceConsoleWithHttpInfo(id).then(function (response_and_data) {
+ key: "requestVMConsole",
+ value: function requestVMConsole(vmId) {
+ return this.requestVMConsoleWithHttpInfo(vmId).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/VolumeApi.js b/dist/api/VolumeApi.js
index cad554ac..aea349d2 100644
--- a/dist/api/VolumeApi.js
+++ b/dist/api/VolumeApi.js
@@ -9,6 +9,8 @@ var _CreateVolumePayload = _interopRequireDefault(require("../model/CreateVolume
var _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
var _NameAvailableModel = _interopRequireDefault(require("../model/NameAvailableModel"));
var _ResponseModel = _interopRequireDefault(require("../model/ResponseModel"));
+var _UpdateVolumePayload = _interopRequireDefault(require("../model/UpdateVolumePayload"));
+var _UpdateVolumeResponse = _interopRequireDefault(require("../model/UpdateVolumeResponse"));
var _Volume = _interopRequireDefault(require("../model/Volume"));
var _VolumeTypes = _interopRequireDefault(require("../model/VolumeTypes"));
var _Volumes = _interopRequireDefault(require("../model/Volumes"));
@@ -33,7 +35,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* Volume service.
* @module api/VolumeApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var VolumeApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -50,7 +52,7 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
/**
* Create volume
- * Creates a volume that can be attached to a virtual machine, expanding its storage capacity. Specify the volume type and custom configuration in the request body. For additional details on volumes, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/volumes-available-features).
+ * Creates a volume that can be attached to a virtual machine, expanding its storage capacity. Specify the volume type and custom configuration in the request body. For additional details on volumes, [**click here**]({Config.INFRAHUB_DOCS_BASE}/docs/api-reference/core-resources/volumes/create-volume).
* @param {module:model/CreateVolumePayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Volume} and HTTP response
*/
@@ -66,7 +68,7 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _Volume["default"];
@@ -75,7 +77,7 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
/**
* Create volume
- * Creates a volume that can be attached to a virtual machine, expanding its storage capacity. Specify the volume type and custom configuration in the request body. For additional details on volumes, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/volumes-available-features).
+ * Creates a volume that can be attached to a virtual machine, expanding its storage capacity. Specify the volume type and custom configuration in the request body. For additional details on volumes, [**click here**]({Config.INFRAHUB_DOCS_BASE}/docs/api-reference/core-resources/volumes/create-volume).
* @param {module:model/CreateVolumePayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Volume}
*/
@@ -90,122 +92,122 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
/**
* Delete volume
* Deletes a volume permanently. Provide the volume ID in the path to specify the volume to be deleted.
- * @param {Number} id
+ * @param {Number} volumeId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response
*/
}, {
key: "deleteVolumeWithHttpInfo",
- value: function deleteVolumeWithHttpInfo(id) {
+ value: function deleteVolumeWithHttpInfo(volumeId) {
var postBody = null;
- // verify the required parameter 'id' is set
- if (id === undefined || id === null) {
- throw new Error("Missing the required parameter 'id' when calling deleteVolume");
+ // verify the required parameter 'volumeId' is set
+ if (volumeId === undefined || volumeId === null) {
+ throw new Error("Missing the required parameter 'volumeId' when calling deleteVolume");
}
var pathParams = {
- 'id': id
+ 'volume_id': volumeId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _ResponseModel["default"];
- return this.apiClient.callApi('/core/volumes/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/volumes/{volume_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Delete volume
* Deletes a volume permanently. Provide the volume ID in the path to specify the volume to be deleted.
- * @param {Number} id
+ * @param {Number} volumeId
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel}
*/
}, {
key: "deleteVolume",
- value: function deleteVolume(id) {
- return this.deleteVolumeWithHttpInfo(id).then(function (response_and_data) {
+ value: function deleteVolume(volumeId) {
+ return this.deleteVolumeWithHttpInfo(volumeId).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Fetch Volume Details
- * Fetch volume details for specific volume. This endpoint returns id, name, volume size, volume type, status, description, image_id, os_image, created_at, updated_at etc.
- * @param {Number} volumeId
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Volumes} and HTTP response
+ * Fetch volume name availability
+ * Check if a Volume name is available
+ * @param {String} name
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NameAvailableModel} and HTTP response
*/
}, {
- key: "fetchVolumeDetailsWithHttpInfo",
- value: function fetchVolumeDetailsWithHttpInfo(volumeId) {
+ key: "fetchVolumeNameAvailabilityWithHttpInfo",
+ value: function fetchVolumeNameAvailabilityWithHttpInfo(name) {
var postBody = null;
- // verify the required parameter 'volumeId' is set
- if (volumeId === undefined || volumeId === null) {
- throw new Error("Missing the required parameter 'volumeId' when calling fetchVolumeDetails");
+ // verify the required parameter 'name' is set
+ if (name === undefined || name === null) {
+ throw new Error("Missing the required parameter 'name' when calling fetchVolumeNameAvailability");
}
var pathParams = {
- 'volume_id': volumeId
+ 'name': name
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _Volumes["default"];
- return this.apiClient.callApi('/core/volume/{volume_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _NameAvailableModel["default"];
+ return this.apiClient.callApi('/core/volume/name-availability/{name}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Fetch Volume Details
- * Fetch volume details for specific volume. This endpoint returns id, name, volume size, volume type, status, description, image_id, os_image, created_at, updated_at etc.
- * @param {Number} volumeId
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Volumes}
+ * Fetch volume name availability
+ * Check if a Volume name is available
+ * @param {String} name
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NameAvailableModel}
*/
}, {
- key: "fetchVolumeDetails",
- value: function fetchVolumeDetails(volumeId) {
- return this.fetchVolumeDetailsWithHttpInfo(volumeId).then(function (response_and_data) {
+ key: "fetchVolumeNameAvailability",
+ value: function fetchVolumeNameAvailability(name) {
+ return this.fetchVolumeNameAvailabilityWithHttpInfo(name).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
- * Fetch volume name availability
- * Check if a Volume name is available
- * @param {String} name
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NameAvailableModel} and HTTP response
+ * Fetch Volume Details
+ * Fetch volume details for specific volume. This endpoint returns id, name, volume size, volume type, status, description, image_id, os_image, created_at, updated_at etc.
+ * @param {Number} volumeId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Volume} and HTTP response
*/
}, {
- key: "fetchVolumeNameAvailabilityWithHttpInfo",
- value: function fetchVolumeNameAvailabilityWithHttpInfo(name) {
+ key: "getVolumeWithHttpInfo",
+ value: function getVolumeWithHttpInfo(volumeId) {
var postBody = null;
- // verify the required parameter 'name' is set
- if (name === undefined || name === null) {
- throw new Error("Missing the required parameter 'name' when calling fetchVolumeNameAvailability");
+ // verify the required parameter 'volumeId' is set
+ if (volumeId === undefined || volumeId === null) {
+ throw new Error("Missing the required parameter 'volumeId' when calling getVolume");
}
var pathParams = {
- 'name': name
+ 'volume_id': volumeId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
- var returnType = _NameAvailableModel["default"];
- return this.apiClient.callApi('/core/volume/name-availability/{name}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ var returnType = _Volume["default"];
+ return this.apiClient.callApi('/core/volumes/{volume_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
- * Fetch volume name availability
- * Check if a Volume name is available
- * @param {String} name
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NameAvailableModel}
+ * Fetch Volume Details
+ * Fetch volume details for specific volume. This endpoint returns id, name, volume size, volume type, status, description, image_id, os_image, created_at, updated_at etc.
+ * @param {Number} volumeId
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Volume}
*/
}, {
- key: "fetchVolumeNameAvailability",
- value: function fetchVolumeNameAvailability(name) {
- return this.fetchVolumeNameAvailabilityWithHttpInfo(name).then(function (response_and_data) {
+ key: "getVolume",
+ value: function getVolume(volumeId) {
+ return this.getVolumeWithHttpInfo(volumeId).then(function (response_and_data) {
return response_and_data.data;
});
}
@@ -223,7 +225,7 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _VolumeTypes["default"];
@@ -245,7 +247,7 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
/**
* List volumes
- * Returns a list of your existing volumes, providing details for each. For more information on volumes, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/volumes-available-features).
+ * Returns a list of your existing volumes, providing details for each. For more information on volumes, [**click here**]({Config.INFRAHUB_DOCS_BASE}/docs/api-reference/core-resources/volumes/).
* @param {Object} opts Optional parameters
* @param {String} [page] Page Number
* @param {String} [pageSize] Data Per Page
@@ -267,7 +269,7 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = _Volumes["default"];
@@ -276,7 +278,7 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
/**
* List volumes
- * Returns a list of your existing volumes, providing details for each. For more information on volumes, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/volumes-available-features).
+ * Returns a list of your existing volumes, providing details for each. For more information on volumes, [**click here**]({Config.INFRAHUB_DOCS_BASE}/docs/api-reference/core-resources/volumes/).
* @param {Object} opts Optional parameters
* @param {String} opts.page Page Number
* @param {String} opts.pageSize Data Per Page
@@ -291,5 +293,52 @@ var VolumeApi = exports["default"] = /*#__PURE__*/function () {
return response_and_data.data;
});
}
+
+ /**
+ * Update volume fields
+ * Update volume properties. Currently supports updating the environment by providing 'environment_name'. The volume must not be attached to any instance when changing environments, and the target environment must be in the same region.
+ * @param {Number} volumeId
+ * @param {module:model/UpdateVolumePayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateVolumeResponse} and HTTP response
+ */
+ }, {
+ key: "updateVolumeWithHttpInfo",
+ value: function updateVolumeWithHttpInfo(volumeId, payload) {
+ var postBody = payload;
+ // verify the required parameter 'volumeId' is set
+ if (volumeId === undefined || volumeId === null) {
+ throw new Error("Missing the required parameter 'volumeId' when calling updateVolume");
+ }
+ // verify the required parameter 'payload' is set
+ if (payload === undefined || payload === null) {
+ throw new Error("Missing the required parameter 'payload' when calling updateVolume");
+ }
+ var pathParams = {
+ 'volume_id': volumeId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = ['application/json'];
+ var accepts = ['application/json'];
+ var returnType = _UpdateVolumeResponse["default"];
+ return this.apiClient.callApi('/core/volumes/{volume_id}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Update volume fields
+ * Update volume properties. Currently supports updating the environment by providing 'environment_name'. The volume must not be attached to any instance when changing environments, and the target environment must be in the same region.
+ * @param {Number} volumeId
+ * @param {module:model/UpdateVolumePayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateVolumeResponse}
+ */
+ }, {
+ key: "updateVolume",
+ value: function updateVolume(volumeId, payload) {
+ return this.updateVolumeWithHttpInfo(volumeId, payload).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
}]);
}();
\ No newline at end of file
diff --git a/dist/api/VolumeAttachmentApi.js b/dist/api/VolumeAttachmentApi.js
index cb359b5e..4ea94da6 100644
--- a/dist/api/VolumeAttachmentApi.js
+++ b/dist/api/VolumeAttachmentApi.js
@@ -10,6 +10,7 @@ var _AttachVolumesPayload = _interopRequireDefault(require("../model/AttachVolum
var _DetachVolumes = _interopRequireDefault(require("../model/DetachVolumes"));
var _DetachVolumesPayload = _interopRequireDefault(require("../model/DetachVolumesPayload"));
var _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
+var _UpdateVolumeAttachmentPayload = _interopRequireDefault(require("../model/UpdateVolumeAttachmentPayload"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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); }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -31,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* VolumeAttachment service.
* @module api/VolumeAttachmentApi
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
var VolumeAttachmentApi = exports["default"] = /*#__PURE__*/function () {
/**
@@ -48,94 +49,139 @@ var VolumeAttachmentApi = exports["default"] = /*#__PURE__*/function () {
/**
* Attach volumes to virtual machine
- * Attaches one or more volumes to an existing virtual machine, expanding its storage capacity by 2PB per attached volume. Include the virtual machine ID in the path and the volume IDs in the request body to attach the specified volumes to the designated virtual machine. For additional details on volume attachment, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/volumes-available-features#attach-a-volume-to-a-virtual-machine-1).
- * @param {Number} virtualMachineId
+ * Attaches one or more volumes to an existing virtual machine, expanding its storage capacity by 2PB per attached volume. Include the VM ID in the path and the volume IDs in the request body to attach the specified volumes. For more detailson volume attachment, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/volumes/volume-attachment/attach-volumes/).
+ * @param {Number} vmId
* @param {module:model/AttachVolumesPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AttachVolumes} and HTTP response
*/
return _createClass(VolumeAttachmentApi, [{
- key: "attachVolumesToVirtualMachineWithHttpInfo",
- value: function attachVolumesToVirtualMachineWithHttpInfo(virtualMachineId, payload) {
+ key: "attachVolumesToVMWithHttpInfo",
+ value: function attachVolumesToVMWithHttpInfo(vmId, payload) {
var postBody = payload;
- // verify the required parameter 'virtualMachineId' is set
- if (virtualMachineId === undefined || virtualMachineId === null) {
- throw new Error("Missing the required parameter 'virtualMachineId' when calling attachVolumesToVirtualMachine");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling attachVolumesToVM");
}
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling attachVolumesToVirtualMachine");
+ throw new Error("Missing the required parameter 'payload' when calling attachVolumesToVM");
}
var pathParams = {
- 'virtual_machine_id': virtualMachineId
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _AttachVolumes["default"];
- return this.apiClient.callApi('/core/virtual-machines/{virtual_machine_id}/attach-volumes', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/attach-volumes', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Attach volumes to virtual machine
- * Attaches one or more volumes to an existing virtual machine, expanding its storage capacity by 2PB per attached volume. Include the virtual machine ID in the path and the volume IDs in the request body to attach the specified volumes to the designated virtual machine. For additional details on volume attachment, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/volumes-available-features#attach-a-volume-to-a-virtual-machine-1).
- * @param {Number} virtualMachineId
+ * Attaches one or more volumes to an existing virtual machine, expanding its storage capacity by 2PB per attached volume. Include the VM ID in the path and the volume IDs in the request body to attach the specified volumes. For more detailson volume attachment, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/volumes/volume-attachment/attach-volumes/).
+ * @param {Number} vmId
* @param {module:model/AttachVolumesPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AttachVolumes}
*/
}, {
- key: "attachVolumesToVirtualMachine",
- value: function attachVolumesToVirtualMachine(virtualMachineId, payload) {
- return this.attachVolumesToVirtualMachineWithHttpInfo(virtualMachineId, payload).then(function (response_and_data) {
+ key: "attachVolumesToVM",
+ value: function attachVolumesToVM(vmId, payload) {
+ return this.attachVolumesToVMWithHttpInfo(vmId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
/**
* Detach volumes from virtual machine
- * Detaches one or more volumes currently attached to an existing virtual machine. Include the virtual machine ID in the path and the volume IDs in the request body to detach the specified volumes from the designated virtual machine.
- * @param {Number} virtualMachineId
+ * Detaches one or more volumes attached to an existing virtual machine. Include the VM ID in the path and volume IDs in the request body to detach the specified volumes from the virtual machine.
+ * @param {Number} vmId
* @param {module:model/DetachVolumesPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DetachVolumes} and HTTP response
*/
}, {
- key: "detachVolumesFromVirtualMachineWithHttpInfo",
- value: function detachVolumesFromVirtualMachineWithHttpInfo(virtualMachineId, payload) {
+ key: "detachVolumesFromVMWithHttpInfo",
+ value: function detachVolumesFromVMWithHttpInfo(vmId, payload) {
var postBody = payload;
- // verify the required parameter 'virtualMachineId' is set
- if (virtualMachineId === undefined || virtualMachineId === null) {
- throw new Error("Missing the required parameter 'virtualMachineId' when calling detachVolumesFromVirtualMachine");
+ // verify the required parameter 'vmId' is set
+ if (vmId === undefined || vmId === null) {
+ throw new Error("Missing the required parameter 'vmId' when calling detachVolumesFromVM");
}
// verify the required parameter 'payload' is set
if (payload === undefined || payload === null) {
- throw new Error("Missing the required parameter 'payload' when calling detachVolumesFromVirtualMachine");
+ throw new Error("Missing the required parameter 'payload' when calling detachVolumesFromVM");
}
var pathParams = {
- 'virtual_machine_id': virtualMachineId
+ 'vm_id': vmId
};
var queryParams = {};
var headerParams = {};
var formParams = {};
- var authNames = ['apiKey', 'accessToken'];
+ var authNames = ['apiKey'];
var contentTypes = ['application/json'];
var accepts = ['application/json'];
var returnType = _DetachVolumes["default"];
- return this.apiClient.callApi('/core/virtual-machines/{virtual_machine_id}/detach-volumes', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ return this.apiClient.callApi('/core/virtual-machines/{vm_id}/detach-volumes', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
}
/**
* Detach volumes from virtual machine
- * Detaches one or more volumes currently attached to an existing virtual machine. Include the virtual machine ID in the path and the volume IDs in the request body to detach the specified volumes from the designated virtual machine.
- * @param {Number} virtualMachineId
+ * Detaches one or more volumes attached to an existing virtual machine. Include the VM ID in the path and volume IDs in the request body to detach the specified volumes from the virtual machine.
+ * @param {Number} vmId
* @param {module:model/DetachVolumesPayload} payload
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DetachVolumes}
*/
}, {
- key: "detachVolumesFromVirtualMachine",
- value: function detachVolumesFromVirtualMachine(virtualMachineId, payload) {
- return this.detachVolumesFromVirtualMachineWithHttpInfo(virtualMachineId, payload).then(function (response_and_data) {
+ key: "detachVolumesFromVM",
+ value: function detachVolumesFromVM(vmId, payload) {
+ return this.detachVolumesFromVMWithHttpInfo(vmId, payload).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+
+ /**
+ * Update a volume attachment
+ * @param {Number} volumeAttachmentId
+ * @param {module:model/UpdateVolumeAttachmentPayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AttachVolumes} and HTTP response
+ */
+ }, {
+ key: "updateVolumeAttachmentWithHttpInfo",
+ value: function updateVolumeAttachmentWithHttpInfo(volumeAttachmentId, payload) {
+ var postBody = payload;
+ // verify the required parameter 'volumeAttachmentId' is set
+ if (volumeAttachmentId === undefined || volumeAttachmentId === null) {
+ throw new Error("Missing the required parameter 'volumeAttachmentId' when calling updateVolumeAttachment");
+ }
+ // verify the required parameter 'payload' is set
+ if (payload === undefined || payload === null) {
+ throw new Error("Missing the required parameter 'payload' when calling updateVolumeAttachment");
+ }
+ var pathParams = {
+ 'volume_attachment_id': volumeAttachmentId
+ };
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = ['application/json'];
+ var accepts = ['application/json'];
+ var returnType = _AttachVolumes["default"];
+ return this.apiClient.callApi('/core/volume-attachments/{volume_attachment_id}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Update a volume attachment
+ * @param {Number} volumeAttachmentId
+ * @param {module:model/UpdateVolumeAttachmentPayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AttachVolumes}
+ */
+ }, {
+ key: "updateVolumeAttachment",
+ value: function updateVolumeAttachment(volumeAttachmentId, payload) {
+ return this.updateVolumeAttachmentWithHttpInfo(volumeAttachmentId, payload).then(function (response_and_data) {
return response_and_data.data;
});
}
diff --git a/dist/api/VouchersApi.js b/dist/api/VouchersApi.js
new file mode 100644
index 00000000..2447c5f0
--- /dev/null
+++ b/dist/api/VouchersApi.js
@@ -0,0 +1,86 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
+var _RedeemVoucherPayload = _interopRequireDefault(require("../model/RedeemVoucherPayload"));
+var _VoucherRedeemResponseSchema = _interopRequireDefault(require("../model/VoucherRedeemResponseSchema"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+* Vouchers service.
+* @module api/VouchersApi
+* @version v1.51.1-alpha
+*/
+var VouchersApi = exports["default"] = /*#__PURE__*/function () {
+ /**
+ * Constructs a new VouchersApi.
+ * @alias module:api/VouchersApi
+ * @class
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
+ * default to {@link module:ApiClient#instance} if unspecified.
+ */
+ function VouchersApi(apiClient) {
+ _classCallCheck(this, VouchersApi);
+ this.apiClient = apiClient || _ApiClient["default"].instance;
+ }
+
+ /**
+ * Redeem a voucher with a voucher_code
+ * Request to redeem a voucher with a voucher code.
+ * @param {module:model/RedeemVoucherPayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/VoucherRedeemResponseSchema} and HTTP response
+ */
+ return _createClass(VouchersApi, [{
+ key: "redeemAVoucherWithHttpInfo",
+ value: function redeemAVoucherWithHttpInfo(payload) {
+ var postBody = payload;
+ // verify the required parameter 'payload' is set
+ if (payload === undefined || payload === null) {
+ throw new Error("Missing the required parameter 'payload' when calling redeemAVoucher");
+ }
+ var pathParams = {};
+ var queryParams = {};
+ var headerParams = {};
+ var formParams = {};
+ var authNames = ['apiKey'];
+ var contentTypes = ['application/json'];
+ var accepts = ['application/json'];
+ var returnType = _VoucherRedeemResponseSchema["default"];
+ return this.apiClient.callApi('/billing/billing/vouchers/redeem', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
+ }
+
+ /**
+ * Redeem a voucher with a voucher_code
+ * Request to redeem a voucher with a voucher code.
+ * @param {module:model/RedeemVoucherPayload} payload
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VoucherRedeemResponseSchema}
+ */
+ }, {
+ key: "redeemAVoucher",
+ value: function redeemAVoucher(payload) {
+ return this.redeemAVoucherWithHttpInfo(payload).then(function (response_and_data) {
+ return response_and_data.data;
+ });
+ }
+ }]);
+}();
\ No newline at end of file
diff --git a/dist/index.js b/dist/index.js
index eab51714..14037b25 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -3,10 +3,16 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
-Object.defineProperty(exports, "AddUpdateFlavorOrganizationPayload", {
+Object.defineProperty(exports, "AccessKeysApi", {
enumerable: true,
get: function get() {
- return _AddUpdateFlavorOrganizationPayload["default"];
+ return _AccessKeysApi["default"];
+ }
+});
+Object.defineProperty(exports, "AccessTokenField", {
+ enumerable: true,
+ get: function get() {
+ return _AccessTokenField["default"];
}
});
Object.defineProperty(exports, "AddUserInfoSuccessResponseModel", {
@@ -45,12 +51,6 @@ Object.defineProperty(exports, "ApiKeyFields", {
return _ApiKeyFields["default"];
}
});
-Object.defineProperty(exports, "ApiKeyVerifyFields", {
- enumerable: true,
- get: function get() {
- return _ApiKeyVerifyFields["default"];
- }
-});
Object.defineProperty(exports, "AssignRbacRolePayload", {
enumerable: true,
get: function get() {
@@ -105,28 +105,28 @@ Object.defineProperty(exports, "AttachVolumesPayload", {
return _AttachVolumesPayload["default"];
}
});
-Object.defineProperty(exports, "AuthApi", {
+Object.defineProperty(exports, "AttachmentsFieldsForVolume", {
enumerable: true,
get: function get() {
- return _AuthApi["default"];
+ return _AttachmentsFieldsForVolume["default"];
}
});
-Object.defineProperty(exports, "AuthGetTokenResponseModel", {
+Object.defineProperty(exports, "Attributes", {
enumerable: true,
get: function get() {
- return _AuthGetTokenResponseModel["default"];
+ return _Attributes["default"];
}
});
-Object.defineProperty(exports, "AuthRequestLoginFields", {
+Object.defineProperty(exports, "AuthApi", {
enumerable: true,
get: function get() {
- return _AuthRequestLoginFields["default"];
+ return _AuthApi["default"];
}
});
-Object.defineProperty(exports, "AuthRequestLoginResponseModel", {
+Object.defineProperty(exports, "AuthGetTokenResponseModel", {
enumerable: true,
get: function get() {
- return _AuthRequestLoginResponseModel["default"];
+ return _AuthGetTokenResponseModel["default"];
}
});
Object.defineProperty(exports, "AuthUserFields", {
@@ -141,34 +141,100 @@ Object.defineProperty(exports, "AuthUserInfoResponseModel", {
return _AuthUserInfoResponseModel["default"];
}
});
+Object.defineProperty(exports, "BetaAccessApi", {
+ enumerable: true,
+ get: function get() {
+ return _BetaAccessApi["default"];
+ }
+});
+Object.defineProperty(exports, "BetaAccessRequestFields", {
+ enumerable: true,
+ get: function get() {
+ return _BetaAccessRequestFields["default"];
+ }
+});
+Object.defineProperty(exports, "BetaAccessRequestPayload", {
+ enumerable: true,
+ get: function get() {
+ return _BetaAccessRequestPayload["default"];
+ }
+});
+Object.defineProperty(exports, "BetaAccessRequestResponseModel", {
+ enumerable: true,
+ get: function get() {
+ return _BetaAccessRequestResponseModel["default"];
+ }
+});
+Object.defineProperty(exports, "BetaAccessStatusItem", {
+ enumerable: true,
+ get: function get() {
+ return _BetaAccessStatusItem["default"];
+ }
+});
+Object.defineProperty(exports, "BetaAccessStatusResponseModel", {
+ enumerable: true,
+ get: function get() {
+ return _BetaAccessStatusResponseModel["default"];
+ }
+});
Object.defineProperty(exports, "BillingApi", {
enumerable: true,
get: function get() {
return _BillingApi["default"];
}
});
-Object.defineProperty(exports, "BillingImmuneResourcesResponse", {
+Object.defineProperty(exports, "BillingHistory", {
+ enumerable: true,
+ get: function get() {
+ return _BillingHistory["default"];
+ }
+});
+Object.defineProperty(exports, "BillingHistoryDataSynthesisDetails", {
+ enumerable: true,
+ get: function get() {
+ return _BillingHistoryDataSynthesisDetails["default"];
+ }
+});
+Object.defineProperty(exports, "BillingHistoryFineTuning", {
enumerable: true,
get: function get() {
- return _BillingImmuneResourcesResponse["default"];
+ return _BillingHistoryFineTuning["default"];
}
});
-Object.defineProperty(exports, "BillingResponse", {
+Object.defineProperty(exports, "BillingHistoryModelEvalutationDetails", {
enumerable: true,
get: function get() {
- return _BillingResponse["default"];
+ return _BillingHistoryModelEvalutationDetails["default"];
}
});
-Object.defineProperty(exports, "Billingmetricesfields", {
+Object.defineProperty(exports, "BillingHistoryServerlessInference", {
enumerable: true,
get: function get() {
- return _Billingmetricesfields["default"];
+ return _BillingHistoryServerlessInference["default"];
}
});
-Object.defineProperty(exports, "Billingmetricesresponse", {
+Object.defineProperty(exports, "BillingHistoryServerlessInferenceDetails", {
enumerable: true,
get: function get() {
- return _Billingmetricesresponse["default"];
+ return _BillingHistoryServerlessInferenceDetails["default"];
+ }
+});
+Object.defineProperty(exports, "BillingMetricesFields", {
+ enumerable: true,
+ get: function get() {
+ return _BillingMetricesFields["default"];
+ }
+});
+Object.defineProperty(exports, "BillingMetricesResponse", {
+ enumerable: true,
+ get: function get() {
+ return _BillingMetricesResponse["default"];
+ }
+});
+Object.defineProperty(exports, "BucketsApi", {
+ enumerable: true,
+ get: function get() {
+ return _BucketsApi["default"];
}
});
Object.defineProperty(exports, "CalculateApi", {
@@ -207,184 +273,190 @@ Object.defineProperty(exports, "ClusterFields", {
return _ClusterFields["default"];
}
});
+Object.defineProperty(exports, "ClusterFlavorFields", {
+ enumerable: true,
+ get: function get() {
+ return _ClusterFlavorFields["default"];
+ }
+});
Object.defineProperty(exports, "ClusterListResponse", {
enumerable: true,
get: function get() {
return _ClusterListResponse["default"];
}
});
-Object.defineProperty(exports, "ClusterResponse", {
+Object.defineProperty(exports, "ClusterNodeFields", {
enumerable: true,
get: function get() {
- return _ClusterResponse["default"];
+ return _ClusterNodeFields["default"];
}
});
-Object.defineProperty(exports, "ClusterVersions", {
+Object.defineProperty(exports, "ClusterNodeGroupFields", {
enumerable: true,
get: function get() {
- return _ClusterVersions["default"];
+ return _ClusterNodeGroupFields["default"];
}
});
-Object.defineProperty(exports, "ClustersApi", {
+Object.defineProperty(exports, "ClusterNodeGroupFirewallFields", {
enumerable: true,
get: function get() {
- return _ClustersApi["default"];
+ return _ClusterNodeGroupFirewallFields["default"];
}
});
-Object.defineProperty(exports, "CommonResponseModel", {
+Object.defineProperty(exports, "ClusterNodeGroupsCreateResponse", {
enumerable: true,
get: function get() {
- return _CommonResponseModel["default"];
+ return _ClusterNodeGroupsCreateResponse["default"];
}
});
-Object.defineProperty(exports, "ComplianceApi", {
+Object.defineProperty(exports, "ClusterNodeGroupsGetResponse", {
enumerable: true,
get: function get() {
- return _ComplianceApi["default"];
+ return _ClusterNodeGroupsGetResponse["default"];
}
});
-Object.defineProperty(exports, "ComplianceFields", {
+Object.defineProperty(exports, "ClusterNodeGroupsListResponse", {
enumerable: true,
get: function get() {
- return _ComplianceFields["default"];
+ return _ClusterNodeGroupsListResponse["default"];
}
});
-Object.defineProperty(exports, "ComplianceModelFields", {
+Object.defineProperty(exports, "ClusterNodeInstanceFields", {
enumerable: true,
get: function get() {
- return _ComplianceModelFields["default"];
+ return _ClusterNodeInstanceFields["default"];
}
});
-Object.defineProperty(exports, "CompliancePayload", {
+Object.defineProperty(exports, "ClusterNodesListResponse", {
enumerable: true,
get: function get() {
- return _CompliancePayload["default"];
+ return _ClusterNodesListResponse["default"];
}
});
-Object.defineProperty(exports, "ComplianceResponse", {
+Object.defineProperty(exports, "ClusterResponse", {
enumerable: true,
get: function get() {
- return _ComplianceResponse["default"];
+ return _ClusterResponse["default"];
}
});
-Object.defineProperty(exports, "ContainerOverviewFields", {
+Object.defineProperty(exports, "ClusterVersion", {
enumerable: true,
get: function get() {
- return _ContainerOverviewFields["default"];
+ return _ClusterVersion["default"];
}
});
-Object.defineProperty(exports, "Contract", {
+Object.defineProperty(exports, "ClusterVersions", {
enumerable: true,
get: function get() {
- return _Contract["default"];
+ return _ClusterVersions["default"];
}
});
-Object.defineProperty(exports, "ContractBillingHistory", {
+Object.defineProperty(exports, "ClustersApi", {
enumerable: true,
get: function get() {
- return _ContractBillingHistory["default"];
+ return _ClustersApi["default"];
}
});
-Object.defineProperty(exports, "ContractBillingHistoryResponseAttributes", {
+Object.defineProperty(exports, "Colors", {
enumerable: true,
get: function get() {
- return _ContractBillingHistoryResponseAttributes["default"];
+ return _Colors["default"];
}
});
-Object.defineProperty(exports, "ContractBillingHistoryResponseModel", {
+Object.defineProperty(exports, "CommonResponseModel", {
enumerable: true,
get: function get() {
- return _ContractBillingHistoryResponseModel["default"];
+ return _CommonResponseModel["default"];
}
});
-Object.defineProperty(exports, "ContractChangePayload", {
+Object.defineProperty(exports, "CompatibleFlavor", {
enumerable: true,
get: function get() {
- return _ContractChangePayload["default"];
+ return _CompatibleFlavor["default"];
}
});
-Object.defineProperty(exports, "ContractDiscountPlanFields", {
+Object.defineProperty(exports, "ComplianceApi", {
enumerable: true,
get: function get() {
- return _ContractDiscountPlanFields["default"];
+ return _ComplianceApi["default"];
}
});
-Object.defineProperty(exports, "ContractEligibleInstanceFields", {
+Object.defineProperty(exports, "ComplianceFields", {
enumerable: true,
get: function get() {
- return _ContractEligibleInstanceFields["default"];
+ return _ComplianceFields["default"];
}
});
-Object.defineProperty(exports, "ContractEligibleInstancesResponse", {
+Object.defineProperty(exports, "ComplianceModelFields", {
enumerable: true,
get: function get() {
- return _ContractEligibleInstancesResponse["default"];
+ return _ComplianceModelFields["default"];
}
});
-Object.defineProperty(exports, "ContractEventCreateModel", {
+Object.defineProperty(exports, "CompliancePayload", {
enumerable: true,
get: function get() {
- return _ContractEventCreateModel["default"];
+ return _CompliancePayload["default"];
}
});
-Object.defineProperty(exports, "ContractGPUAllocationGraphResponse", {
+Object.defineProperty(exports, "ComplianceResponse", {
enumerable: true,
get: function get() {
- return _ContractGPUAllocationGraphResponse["default"];
+ return _ComplianceResponse["default"];
}
});
-Object.defineProperty(exports, "ContractInstanceFields", {
+Object.defineProperty(exports, "ContainerOverviewFields", {
enumerable: true,
get: function get() {
- return _ContractInstanceFields["default"];
+ return _ContainerOverviewFields["default"];
}
});
-Object.defineProperty(exports, "ContractInstancesResponse", {
+Object.defineProperty(exports, "Contract", {
enumerable: true,
get: function get() {
- return _ContractInstancesResponse["default"];
+ return _Contract["default"];
}
});
-Object.defineProperty(exports, "ContractResourcePayload", {
+Object.defineProperty(exports, "ContractDiscountPlanFields", {
enumerable: true,
get: function get() {
- return _ContractResourcePayload["default"];
+ return _ContractDiscountPlanFields["default"];
}
});
-Object.defineProperty(exports, "ContractlBillingHistoryResponseMetrics", {
+Object.defineProperty(exports, "ContractGPUAllocationGraphResponse", {
enumerable: true,
get: function get() {
- return _ContractlBillingHistoryResponseMetrics["default"];
+ return _ContractGPUAllocationGraphResponse["default"];
}
});
-Object.defineProperty(exports, "CreateClusterPayload", {
+Object.defineProperty(exports, "ContractInstanceFields", {
enumerable: true,
get: function get() {
- return _CreateClusterPayload["default"];
+ return _ContractInstanceFields["default"];
}
});
-Object.defineProperty(exports, "CreateContractFields", {
+Object.defineProperty(exports, "ContractInstancesResponse", {
enumerable: true,
get: function get() {
- return _CreateContractFields["default"];
+ return _ContractInstancesResponse["default"];
}
});
-Object.defineProperty(exports, "CreateContractPayload", {
+Object.defineProperty(exports, "CreateClusterNodeFields", {
enumerable: true,
get: function get() {
- return _CreateContractPayload["default"];
+ return _CreateClusterNodeFields["default"];
}
});
-Object.defineProperty(exports, "CreateDiscountResponse", {
+Object.defineProperty(exports, "CreateClusterNodeGroupPayload", {
enumerable: true,
get: function get() {
- return _CreateDiscountResponse["default"];
+ return _CreateClusterNodeGroupPayload["default"];
}
});
-Object.defineProperty(exports, "CreateDiscountsPayload", {
+Object.defineProperty(exports, "CreateClusterPayload", {
enumerable: true,
get: function get() {
- return _CreateDiscountsPayload["default"];
+ return _CreateClusterPayload["default"];
}
});
Object.defineProperty(exports, "CreateEnvironment", {
@@ -405,12 +477,6 @@ Object.defineProperty(exports, "CreateFirewallRulePayload", {
return _CreateFirewallRulePayload["default"];
}
});
-Object.defineProperty(exports, "CreateGPU", {
- enumerable: true,
- get: function get() {
- return _CreateGPU["default"];
- }
-});
Object.defineProperty(exports, "CreateImage", {
enumerable: true,
get: function get() {
@@ -471,30 +537,6 @@ Object.defineProperty(exports, "CreateUpdateComplianceResponse", {
return _CreateUpdateComplianceResponse["default"];
}
});
-Object.defineProperty(exports, "CreateUpdatePermissionPayload", {
- enumerable: true,
- get: function get() {
- return _CreateUpdatePermissionPayload["default"];
- }
-});
-Object.defineProperty(exports, "CreateUpdatePermissionResponseModel", {
- enumerable: true,
- get: function get() {
- return _CreateUpdatePermissionResponseModel["default"];
- }
-});
-Object.defineProperty(exports, "CreateUpdatePolicyPayload", {
- enumerable: true,
- get: function get() {
- return _CreateUpdatePolicyPayload["default"];
- }
-});
-Object.defineProperty(exports, "CreateUpdatePolicyResponseModel", {
- enumerable: true,
- get: function get() {
- return _CreateUpdatePolicyResponseModel["default"];
- }
-});
Object.defineProperty(exports, "CreateUpdateRbacRolePayload", {
enumerable: true,
get: function get() {
@@ -513,30 +555,6 @@ Object.defineProperty(exports, "CreditApi", {
return _CreditApi["default"];
}
});
-Object.defineProperty(exports, "Creditrechargelimitfield", {
- enumerable: true,
- get: function get() {
- return _Creditrechargelimitfield["default"];
- }
-});
-Object.defineProperty(exports, "Creditrechargelimitresponse", {
- enumerable: true,
- get: function get() {
- return _Creditrechargelimitresponse["default"];
- }
-});
-Object.defineProperty(exports, "Creditrequestresponse", {
- enumerable: true,
- get: function get() {
- return _Creditrequestresponse["default"];
- }
-});
-Object.defineProperty(exports, "Creditrequests", {
- enumerable: true,
- get: function get() {
- return _Creditrequests["default"];
- }
-});
Object.defineProperty(exports, "CustomerContractApi", {
enumerable: true,
get: function get() {
@@ -555,18 +573,6 @@ Object.defineProperty(exports, "CustomerContractFields", {
return _CustomerContractFields["default"];
}
});
-Object.defineProperty(exports, "CustomerFields", {
- enumerable: true,
- get: function get() {
- return _CustomerFields["default"];
- }
-});
-Object.defineProperty(exports, "CustomerPayload", {
- enumerable: true,
- get: function get() {
- return _CustomerPayload["default"];
- }
-});
Object.defineProperty(exports, "DashboardApi", {
enumerable: true,
get: function get() {
@@ -579,10 +585,16 @@ Object.defineProperty(exports, "DashboardInfoResponse", {
return _DashboardInfoResponse["default"];
}
});
-Object.defineProperty(exports, "Data", {
+Object.defineProperty(exports, "DataSynthesisBillingHistoryDetailsResponseSchema", {
+ enumerable: true,
+ get: function get() {
+ return _DataSynthesisBillingHistoryDetailsResponseSchema["default"];
+ }
+});
+Object.defineProperty(exports, "DeleteClusterNodesFields", {
enumerable: true,
get: function get() {
- return _Data["default"];
+ return _DeleteClusterNodesFields["default"];
}
});
Object.defineProperty(exports, "DeploymentApi", {
@@ -597,10 +609,10 @@ Object.defineProperty(exports, "DeploymentFields", {
return _DeploymentFields["default"];
}
});
-Object.defineProperty(exports, "DeploymentFieldsforstartdeployments", {
+Object.defineProperty(exports, "DeploymentFieldsForStartDeployments", {
enumerable: true,
get: function get() {
- return _DeploymentFieldsforstartdeployments["default"];
+ return _DeploymentFieldsForStartDeployments["default"];
}
});
Object.defineProperty(exports, "Deployments", {
@@ -621,40 +633,10 @@ Object.defineProperty(exports, "DetachVolumesPayload", {
return _DetachVolumesPayload["default"];
}
});
-Object.defineProperty(exports, "DiscountEntityModel", {
- enumerable: true,
- get: function get() {
- return _DiscountEntityModel["default"];
- }
-});
-Object.defineProperty(exports, "DiscountFields", {
- enumerable: true,
- get: function get() {
- return _DiscountFields["default"];
- }
-});
-Object.defineProperty(exports, "DiscountPlanFields", {
- enumerable: true,
- get: function get() {
- return _DiscountPlanFields["default"];
- }
-});
-Object.defineProperty(exports, "DiscountResourceFields", {
+Object.defineProperty(exports, "EditLabelOfAnExistingVMPayload", {
enumerable: true,
get: function get() {
- return _DiscountResourceFields["default"];
- }
-});
-Object.defineProperty(exports, "DiscountResourcePayload", {
- enumerable: true,
- get: function get() {
- return _DiscountResourcePayload["default"];
- }
-});
-Object.defineProperty(exports, "EditlabelofanexistingVMPayload", {
- enumerable: true,
- get: function get() {
- return _EditlabelofanexistingVMPayload["default"];
+ return _EditLabelOfAnExistingVMPayload["default"];
}
});
Object.defineProperty(exports, "Environment", {
@@ -681,10 +663,10 @@ Object.defineProperty(exports, "EnvironmentFields", {
return _EnvironmentFields["default"];
}
});
-Object.defineProperty(exports, "EnvironmentFieldsforVolume", {
+Object.defineProperty(exports, "EnvironmentFieldsForVolume", {
enumerable: true,
get: function get() {
- return _EnvironmentFieldsforVolume["default"];
+ return _EnvironmentFieldsForVolume["default"];
}
});
Object.defineProperty(exports, "Environments", {
@@ -699,34 +681,10 @@ Object.defineProperty(exports, "ErrorResponseModel", {
return _ErrorResponseModel["default"];
}
});
-Object.defineProperty(exports, "ExcludeBillingPostPayload", {
- enumerable: true,
- get: function get() {
- return _ExcludeBillingPostPayload["default"];
- }
-});
-Object.defineProperty(exports, "ExcludeBillingPostResponse", {
- enumerable: true,
- get: function get() {
- return _ExcludeBillingPostResponse["default"];
- }
-});
-Object.defineProperty(exports, "ExportBillingDataRequest", {
- enumerable: true,
- get: function get() {
- return _ExportBillingDataRequest["default"];
- }
-});
-Object.defineProperty(exports, "ExportBillingDataResponse", {
- enumerable: true,
- get: function get() {
- return _ExportBillingDataResponse["default"];
- }
-});
-Object.defineProperty(exports, "FieldChange", {
+Object.defineProperty(exports, "FIPExclusionsApi", {
enumerable: true,
get: function get() {
- return _FieldChange["default"];
+ return _FIPExclusionsApi["default"];
}
});
Object.defineProperty(exports, "FirewallAttachmentApi", {
@@ -813,40 +771,28 @@ Object.defineProperty(exports, "FlavorItemGetResponse", {
return _FlavorItemGetResponse["default"];
}
});
-Object.defineProperty(exports, "FlavorListResponse", {
- enumerable: true,
- get: function get() {
- return _FlavorListResponse["default"];
- }
-});
-Object.defineProperty(exports, "FlavorObjectFields", {
+Object.defineProperty(exports, "FlavorLabelFields", {
enumerable: true,
get: function get() {
- return _FlavorObjectFields["default"];
+ return _FlavorLabelFields["default"];
}
});
-Object.defineProperty(exports, "FlavorPayload", {
- enumerable: true,
- get: function get() {
- return _FlavorPayload["default"];
- }
-});
-Object.defineProperty(exports, "FlavorResponse", {
+Object.defineProperty(exports, "FlavorListResponse", {
enumerable: true,
get: function get() {
- return _FlavorResponse["default"];
+ return _FlavorListResponse["default"];
}
});
-Object.defineProperty(exports, "FlavorVMFields", {
+Object.defineProperty(exports, "FlavorObjectFields", {
enumerable: true,
get: function get() {
- return _FlavorVMFields["default"];
+ return _FlavorObjectFields["default"];
}
});
-Object.defineProperty(exports, "FlavorVMsResponse", {
+Object.defineProperty(exports, "FlavorRestrictions", {
enumerable: true,
get: function get() {
- return _FlavorVMsResponse["default"];
+ return _FlavorRestrictions["default"];
}
});
Object.defineProperty(exports, "FloatingIpApi", {
@@ -855,42 +801,6 @@ Object.defineProperty(exports, "FloatingIpApi", {
return _FloatingIpApi["default"];
}
});
-Object.defineProperty(exports, "FutureNodeModel", {
- enumerable: true,
- get: function get() {
- return _FutureNodeModel["default"];
- }
-});
-Object.defineProperty(exports, "FutureNodeResponseModel", {
- enumerable: true,
- get: function get() {
- return _FutureNodeResponseModel["default"];
- }
-});
-Object.defineProperty(exports, "FutureNodeStockModel", {
- enumerable: true,
- get: function get() {
- return _FutureNodeStockModel["default"];
- }
-});
-Object.defineProperty(exports, "FutureNodeUpdateModel", {
- enumerable: true,
- get: function get() {
- return _FutureNodeUpdateModel["default"];
- }
-});
-Object.defineProperty(exports, "FutureNodesStockModel", {
- enumerable: true,
- get: function get() {
- return _FutureNodesStockModel["default"];
- }
-});
-Object.defineProperty(exports, "GPU", {
- enumerable: true,
- get: function get() {
- return _GPU["default"];
- }
-});
Object.defineProperty(exports, "GPUFields", {
enumerable: true,
get: function get() {
@@ -921,58 +831,34 @@ Object.defineProperty(exports, "GenerateUpdateApiKeyResponseModel", {
return _GenerateUpdateApiKeyResponseModel["default"];
}
});
-Object.defineProperty(exports, "GetAllContractFields", {
- enumerable: true,
- get: function get() {
- return _GetAllContractFields["default"];
- }
-});
-Object.defineProperty(exports, "GetAllContractsResponseModel", {
- enumerable: true,
- get: function get() {
- return _GetAllContractsResponseModel["default"];
- }
-});
-Object.defineProperty(exports, "GetAllDiscountForAllOrganizationResponse", {
- enumerable: true,
- get: function get() {
- return _GetAllDiscountForAllOrganizationResponse["default"];
- }
-});
-Object.defineProperty(exports, "GetAllDiscountsFields", {
- enumerable: true,
- get: function get() {
- return _GetAllDiscountsFields["default"];
- }
-});
Object.defineProperty(exports, "GetApiKeysResponseModel", {
enumerable: true,
get: function get() {
return _GetApiKeysResponseModel["default"];
}
});
-Object.defineProperty(exports, "GetCustomerContractsListResponseModel", {
+Object.defineProperty(exports, "GetCreditAndThresholdInfo", {
enumerable: true,
get: function get() {
- return _GetCustomerContractsListResponseModel["default"];
+ return _GetCreditAndThresholdInfo["default"];
}
});
-Object.defineProperty(exports, "GetDiscountDetailResponse", {
+Object.defineProperty(exports, "GetCreditAndThresholdInfoInResponse", {
enumerable: true,
get: function get() {
- return _GetDiscountDetailResponse["default"];
+ return _GetCreditAndThresholdInfoInResponse["default"];
}
});
-Object.defineProperty(exports, "GetDiscountResponse", {
+Object.defineProperty(exports, "GetCustomerContractsListResponseModel", {
enumerable: true,
get: function get() {
- return _GetDiscountResponse["default"];
+ return _GetCustomerContractsListResponseModel["default"];
}
});
-Object.defineProperty(exports, "GetEntityDiscountDetailResponse", {
+Object.defineProperty(exports, "GetInstanceLogsResponse", {
enumerable: true,
get: function get() {
- return _GetEntityDiscountDetailResponse["default"];
+ return _GetInstanceLogsResponse["default"];
}
});
Object.defineProperty(exports, "GetInvitesResponseModel", {
@@ -1005,36 +891,12 @@ Object.defineProperty(exports, "GetRbacRolesResponseModel", {
return _GetRbacRolesResponseModel["default"];
}
});
-Object.defineProperty(exports, "GetTokenPayload", {
- enumerable: true,
- get: function get() {
- return _GetTokenPayload["default"];
- }
-});
Object.defineProperty(exports, "GetUserPermissionsResponseModel", {
enumerable: true,
get: function get() {
return _GetUserPermissionsResponseModel["default"];
}
});
-Object.defineProperty(exports, "GetVersionResponse", {
- enumerable: true,
- get: function get() {
- return _GetVersionResponse["default"];
- }
-});
-Object.defineProperty(exports, "Getcreditandthresholdinfo", {
- enumerable: true,
- get: function get() {
- return _Getcreditandthresholdinfo["default"];
- }
-});
-Object.defineProperty(exports, "Getcreditandthresholdinfoinresponse", {
- enumerable: true,
- get: function get() {
- return _Getcreditandthresholdinfoinresponse["default"];
- }
-});
Object.defineProperty(exports, "GpuApi", {
enumerable: true,
get: function get() {
@@ -1047,16 +909,10 @@ Object.defineProperty(exports, "GraphDatetimeValueModel", {
return _GraphDatetimeValueModel["default"];
}
});
-Object.defineProperty(exports, "HistoricalInstance", {
- enumerable: true,
- get: function get() {
- return _HistoricalInstance["default"];
- }
-});
-Object.defineProperty(exports, "HistoricalInstancesFields", {
+Object.defineProperty(exports, "HealthApi", {
enumerable: true,
get: function get() {
- return _HistoricalInstancesFields["default"];
+ return _HealthApi["default"];
}
});
Object.defineProperty(exports, "Image", {
@@ -1083,12 +939,6 @@ Object.defineProperty(exports, "ImageGetResponse", {
return _ImageGetResponse["default"];
}
});
-Object.defineProperty(exports, "ImageLogos", {
- enumerable: true,
- get: function get() {
- return _ImageLogos["default"];
- }
-});
Object.defineProperty(exports, "Images", {
enumerable: true,
get: function get() {
@@ -1107,24 +957,12 @@ Object.defineProperty(exports, "ImportKeypairResponse", {
return _ImportKeypairResponse["default"];
}
});
-Object.defineProperty(exports, "InfrahubResourceObjectResponse", {
- enumerable: true,
- get: function get() {
- return _InfrahubResourceObjectResponse["default"];
- }
-});
Object.defineProperty(exports, "InfrahubResourceObjectResponseForCustomer", {
enumerable: true,
get: function get() {
return _InfrahubResourceObjectResponseForCustomer["default"];
}
});
-Object.defineProperty(exports, "InsertDiscountPlanFields", {
- enumerable: true,
- get: function get() {
- return _InsertDiscountPlanFields["default"];
- }
-});
Object.defineProperty(exports, "Instance", {
enumerable: true,
get: function get() {
@@ -1191,232 +1029,232 @@ Object.defineProperty(exports, "Instances", {
return _Instances["default"];
}
});
-Object.defineProperty(exports, "InstancesSummaryFields", {
+Object.defineProperty(exports, "InviteApi", {
enumerable: true,
get: function get() {
- return _InstancesSummaryFields["default"];
+ return _InviteApi["default"];
}
});
-Object.defineProperty(exports, "InternalEnvironmentFields", {
+Object.defineProperty(exports, "InviteFields", {
enumerable: true,
get: function get() {
- return _InternalEnvironmentFields["default"];
+ return _InviteFields["default"];
}
});
-Object.defineProperty(exports, "InternalInstanceFields", {
+Object.defineProperty(exports, "InviteUserPayload", {
enumerable: true,
get: function get() {
- return _InternalInstanceFields["default"];
+ return _InviteUserPayload["default"];
}
});
-Object.defineProperty(exports, "InternalInstanceFlavorFields", {
+Object.defineProperty(exports, "InviteUserResponseModel", {
enumerable: true,
get: function get() {
- return _InternalInstanceFlavorFields["default"];
+ return _InviteUserResponseModel["default"];
}
});
-Object.defineProperty(exports, "InternalInstanceImageFields", {
+Object.defineProperty(exports, "KeypairApi", {
enumerable: true,
get: function get() {
- return _InternalInstanceImageFields["default"];
+ return _KeypairApi["default"];
}
});
-Object.defineProperty(exports, "InternalInstanceKeypairFields", {
+Object.defineProperty(exports, "KeypairEnvironmentFeatures", {
enumerable: true,
get: function get() {
- return _InternalInstanceKeypairFields["default"];
+ return _KeypairEnvironmentFeatures["default"];
}
});
-Object.defineProperty(exports, "InternalInstancesResponse", {
+Object.defineProperty(exports, "KeypairEnvironmentFields", {
enumerable: true,
get: function get() {
- return _InternalInstancesResponse["default"];
+ return _KeypairEnvironmentFields["default"];
}
});
-Object.defineProperty(exports, "InternalSecurityRulesFieldsForInstance", {
+Object.defineProperty(exports, "KeypairFields", {
enumerable: true,
get: function get() {
- return _InternalSecurityRulesFieldsForInstance["default"];
+ return _KeypairFields["default"];
}
});
-Object.defineProperty(exports, "InternalVolumeAttachmentFields", {
+Object.defineProperty(exports, "Keypairs", {
enumerable: true,
get: function get() {
- return _InternalVolumeAttachmentFields["default"];
+ return _Keypairs["default"];
}
});
-Object.defineProperty(exports, "InternalVolumeFields", {
+Object.defineProperty(exports, "LableResonse", {
enumerable: true,
get: function get() {
- return _InternalVolumeFields["default"];
+ return _LableResonse["default"];
}
});
-Object.defineProperty(exports, "InternalVolumesResponse", {
+Object.defineProperty(exports, "LastDayCostFields", {
enumerable: true,
get: function get() {
- return _InternalVolumesResponse["default"];
+ return _LastDayCostFields["default"];
}
});
-Object.defineProperty(exports, "InviteApi", {
+Object.defineProperty(exports, "LastDayCostResponse", {
enumerable: true,
get: function get() {
- return _InviteApi["default"];
+ return _LastDayCostResponse["default"];
}
});
-Object.defineProperty(exports, "InviteFields", {
+Object.defineProperty(exports, "Logos", {
enumerable: true,
get: function get() {
- return _InviteFields["default"];
+ return _Logos["default"];
}
});
-Object.defineProperty(exports, "InviteUserPayload", {
+Object.defineProperty(exports, "MFAStatusFields", {
enumerable: true,
get: function get() {
- return _InviteUserPayload["default"];
+ return _MFAStatusFields["default"];
}
});
-Object.defineProperty(exports, "InviteUserResponseModel", {
+Object.defineProperty(exports, "MFAStatusResponse", {
enumerable: true,
get: function get() {
- return _InviteUserResponseModel["default"];
+ return _MFAStatusResponse["default"];
}
});
-Object.defineProperty(exports, "KeypairApi", {
+Object.defineProperty(exports, "ManualReconciliationModel", {
enumerable: true,
get: function get() {
- return _KeypairApi["default"];
+ return _ManualReconciliationModel["default"];
}
});
-Object.defineProperty(exports, "KeypairFields", {
+Object.defineProperty(exports, "MasterFlavorsResponse", {
enumerable: true,
get: function get() {
- return _KeypairFields["default"];
+ return _MasterFlavorsResponse["default"];
}
});
-Object.defineProperty(exports, "Keypairs", {
+Object.defineProperty(exports, "MetricItemFields", {
enumerable: true,
get: function get() {
- return _Keypairs["default"];
+ return _MetricItemFields["default"];
}
});
-Object.defineProperty(exports, "LableResonse", {
+Object.defineProperty(exports, "MetricsFields", {
enumerable: true,
get: function get() {
- return _LableResonse["default"];
+ return _MetricsFields["default"];
}
});
-Object.defineProperty(exports, "Lastdaycostfields", {
+Object.defineProperty(exports, "ModelEvaluationBillingHistoryDetailsResponseSchema", {
enumerable: true,
get: function get() {
- return _Lastdaycostfields["default"];
+ return _ModelEvaluationBillingHistoryDetailsResponseSchema["default"];
}
});
-Object.defineProperty(exports, "Lastdaycostresponse", {
+Object.defineProperty(exports, "NameAvailableModel", {
enumerable: true,
get: function get() {
- return _Lastdaycostresponse["default"];
+ return _NameAvailableModel["default"];
}
});
-Object.defineProperty(exports, "LogoGetResponse", {
+Object.defineProperty(exports, "NewConfigurationsResponse", {
enumerable: true,
get: function get() {
- return _LogoGetResponse["default"];
+ return _NewConfigurationsResponse["default"];
}
});
-Object.defineProperty(exports, "LogoutPayload", {
+Object.defineProperty(exports, "NewModelResponse", {
enumerable: true,
get: function get() {
- return _LogoutPayload["default"];
+ return _NewModelResponse["default"];
}
});
-Object.defineProperty(exports, "MetricItemFields", {
+Object.defineProperty(exports, "NewStockResponse", {
enumerable: true,
get: function get() {
- return _MetricItemFields["default"];
+ return _NewStockResponse["default"];
}
});
-Object.defineProperty(exports, "MetricsFields", {
+Object.defineProperty(exports, "NewStockRetriveResponse", {
enumerable: true,
get: function get() {
- return _MetricsFields["default"];
+ return _NewStockRetriveResponse["default"];
}
});
-Object.defineProperty(exports, "NameAvailableModel", {
+Object.defineProperty(exports, "ObjectStorageAccessKeyCreateRequest", {
enumerable: true,
get: function get() {
- return _NameAvailableModel["default"];
+ return _ObjectStorageAccessKeyCreateRequest["default"];
}
});
-Object.defineProperty(exports, "NewConfigurationsResponse", {
+Object.defineProperty(exports, "ObjectStorageAccessKeyCreateResponse", {
enumerable: true,
get: function get() {
- return _NewConfigurationsResponse["default"];
+ return _ObjectStorageAccessKeyCreateResponse["default"];
}
});
-Object.defineProperty(exports, "NewModelResponse", {
+Object.defineProperty(exports, "ObjectStorageAccessKeyListResponse", {
enumerable: true,
get: function get() {
- return _NewModelResponse["default"];
+ return _ObjectStorageAccessKeyListResponse["default"];
}
});
-Object.defineProperty(exports, "NewStockResponse", {
+Object.defineProperty(exports, "ObjectStorageAccessKeyResponse", {
enumerable: true,
get: function get() {
- return _NewStockResponse["default"];
+ return _ObjectStorageAccessKeyResponse["default"];
}
});
-Object.defineProperty(exports, "NewStockRetriveResponse", {
+Object.defineProperty(exports, "ObjectStorageBucketListResponse", {
enumerable: true,
get: function get() {
- return _NewStockRetriveResponse["default"];
+ return _ObjectStorageBucketListResponse["default"];
}
});
-Object.defineProperty(exports, "NewStockUpdateResponseModel", {
+Object.defineProperty(exports, "ObjectStorageBucketResponse", {
enumerable: true,
get: function get() {
- return _NewStockUpdateResponseModel["default"];
+ return _ObjectStorageBucketResponse["default"];
}
});
-Object.defineProperty(exports, "NodeModel", {
+Object.defineProperty(exports, "ObjectStorageDeleteResponse", {
enumerable: true,
get: function get() {
- return _NodeModel["default"];
+ return _ObjectStorageDeleteResponse["default"];
}
});
-Object.defineProperty(exports, "NodePayloadModel", {
+Object.defineProperty(exports, "ObjectStorageErrorResponse", {
enumerable: true,
get: function get() {
- return _NodePayloadModel["default"];
+ return _ObjectStorageErrorResponse["default"];
}
});
-Object.defineProperty(exports, "NodePowerUsageModel", {
+Object.defineProperty(exports, "ObjectStorageHealthResponse", {
enumerable: true,
get: function get() {
- return _NodePowerUsageModel["default"];
+ return _ObjectStorageHealthResponse["default"];
}
});
-Object.defineProperty(exports, "NodeResponseModel", {
+Object.defineProperty(exports, "ObjectStoragePaginationMeta", {
enumerable: true,
get: function get() {
- return _NodeResponseModel["default"];
+ return _ObjectStoragePaginationMeta["default"];
}
});
-Object.defineProperty(exports, "NodeStockPayloadModel", {
+Object.defineProperty(exports, "ObjectStorageRegionListResponse", {
enumerable: true,
get: function get() {
- return _NodeStockPayloadModel["default"];
+ return _ObjectStorageRegionListResponse["default"];
}
});
-Object.defineProperty(exports, "NodeStockResponseModel", {
+Object.defineProperty(exports, "ObjectStorageRegionResponse", {
enumerable: true,
get: function get() {
- return _NodeStockResponseModel["default"];
+ return _ObjectStorageRegionResponse["default"];
}
});
-Object.defineProperty(exports, "NodeStocksPayload", {
+Object.defineProperty(exports, "ObjectStorageRegionsEnum", {
enumerable: true,
get: function get() {
- return _NodeStocksPayload["default"];
+ return _ObjectStorageRegionsEnum["default"];
}
});
Object.defineProperty(exports, "OrganizationApi", {
@@ -1461,16 +1299,22 @@ Object.defineProperty(exports, "OrganizationLevelBillingHistoryResponseModel", {
return _OrganizationLevelBillingHistoryResponseModel["default"];
}
});
-Object.defineProperty(exports, "OrganizationObjectResponse", {
+Object.defineProperty(exports, "OrganizationThresholdFields", {
enumerable: true,
get: function get() {
- return _OrganizationObjectResponse["default"];
+ return _OrganizationThresholdFields["default"];
}
});
-Object.defineProperty(exports, "OrganizationThresholdfields", {
+Object.defineProperty(exports, "OrganizationThresholdUpdateResponse", {
enumerable: true,
get: function get() {
- return _OrganizationThresholdfields["default"];
+ return _OrganizationThresholdUpdateResponse["default"];
+ }
+});
+Object.defineProperty(exports, "OrganizationThresholdsResponse", {
+ enumerable: true,
+ get: function get() {
+ return _OrganizationThresholdsResponse["default"];
}
});
Object.defineProperty(exports, "OrganizationUserResponseModel", {
@@ -1479,34 +1323,34 @@ Object.defineProperty(exports, "OrganizationUserResponseModel", {
return _OrganizationUserResponseModel["default"];
}
});
-Object.defineProperty(exports, "Organizationcreditrechargelimitresponse", {
+Object.defineProperty(exports, "OverviewInfo", {
enumerable: true,
get: function get() {
- return _Organizationcreditrechargelimitresponse["default"];
+ return _OverviewInfo["default"];
}
});
-Object.defineProperty(exports, "Organizationthresholdsresponse", {
+Object.defineProperty(exports, "Pagination", {
enumerable: true,
get: function get() {
- return _Organizationthresholdsresponse["default"];
+ return _Pagination["default"];
}
});
-Object.defineProperty(exports, "Organizationthresholdupdateresponse", {
+Object.defineProperty(exports, "PaginationData", {
enumerable: true,
get: function get() {
- return _Organizationthresholdupdateresponse["default"];
+ return _PaginationData["default"];
}
});
-Object.defineProperty(exports, "OverviewInfo", {
+Object.defineProperty(exports, "PartnerConfig", {
enumerable: true,
get: function get() {
- return _OverviewInfo["default"];
+ return _PartnerConfig["default"];
}
});
-Object.defineProperty(exports, "PaginationData", {
+Object.defineProperty(exports, "PartnerConfigApi", {
enumerable: true,
get: function get() {
- return _PaginationData["default"];
+ return _PartnerConfigApi["default"];
}
});
Object.defineProperty(exports, "PaymentApi", {
@@ -1575,12 +1419,6 @@ Object.defineProperty(exports, "PolicyPermissionFields", {
return _PolicyPermissionFields["default"];
}
});
-Object.defineProperty(exports, "PowerUsageModel", {
- enumerable: true,
- get: function get() {
- return _PowerUsageModel["default"];
- }
-});
Object.defineProperty(exports, "PricebookApi", {
enumerable: true,
get: function get() {
@@ -1593,16 +1431,16 @@ Object.defineProperty(exports, "PricebookModel", {
return _PricebookModel["default"];
}
});
-Object.defineProperty(exports, "PricebookResourceObjectResponse", {
+Object.defineProperty(exports, "PricebookResourceObjectResponseForCustomer", {
enumerable: true,
get: function get() {
- return _PricebookResourceObjectResponse["default"];
+ return _PricebookResourceObjectResponseForCustomer["default"];
}
});
-Object.defineProperty(exports, "PricebookResourceObjectResponseForCustomer", {
+Object.defineProperty(exports, "PrimaryColor", {
enumerable: true,
get: function get() {
- return _PricebookResourceObjectResponseForCustomer["default"];
+ return _PrimaryColor["default"];
}
});
Object.defineProperty(exports, "ProfileApi", {
@@ -1659,10 +1497,10 @@ Object.defineProperty(exports, "RbacRoleFields", {
return _RbacRoleFields["default"];
}
});
-Object.defineProperty(exports, "RefreshTokenPayload", {
+Object.defineProperty(exports, "RedeemVoucherPayload", {
enumerable: true,
get: function get() {
- return _RefreshTokenPayload["default"];
+ return _RedeemVoucherPayload["default"];
}
});
Object.defineProperty(exports, "RegionApi", {
@@ -1677,22 +1515,16 @@ Object.defineProperty(exports, "RegionFields", {
return _RegionFields["default"];
}
});
-Object.defineProperty(exports, "RegionPayload", {
- enumerable: true,
- get: function get() {
- return _RegionPayload["default"];
- }
-});
-Object.defineProperty(exports, "RegionResponse", {
+Object.defineProperty(exports, "Regions", {
enumerable: true,
get: function get() {
- return _RegionResponse["default"];
+ return _Regions["default"];
}
});
-Object.defineProperty(exports, "Regions", {
+Object.defineProperty(exports, "RegionsApi", {
enumerable: true,
get: function get() {
- return _Regions["default"];
+ return _RegionsApi["default"];
}
});
Object.defineProperty(exports, "RemoveMemberFromOrganizationResponseModel", {
@@ -1713,6 +1545,18 @@ Object.defineProperty(exports, "RequestConsole", {
return _RequestConsole["default"];
}
});
+Object.defineProperty(exports, "RequestInstanceLogsPayload", {
+ enumerable: true,
+ get: function get() {
+ return _RequestInstanceLogsPayload["default"];
+ }
+});
+Object.defineProperty(exports, "RequestInstanceLogsResponse", {
+ enumerable: true,
+ get: function get() {
+ return _RequestInstanceLogsResponse["default"];
+ }
+});
Object.defineProperty(exports, "ResourceBillingEventsHistoryMetrics", {
enumerable: true,
get: function get() {
@@ -1731,6 +1575,12 @@ Object.defineProperty(exports, "ResourceBillingResponseForCustomer", {
return _ResourceBillingResponseForCustomer["default"];
}
});
+Object.defineProperty(exports, "ResourceLevelBillingBucketDetailsResources", {
+ enumerable: true,
+ get: function get() {
+ return _ResourceLevelBillingBucketDetailsResources["default"];
+ }
+});
Object.defineProperty(exports, "ResourceLevelBillingDetailsAttributes", {
enumerable: true,
get: function get() {
@@ -1779,6 +1629,12 @@ Object.defineProperty(exports, "ResourceLevelBillingHistoryResources", {
return _ResourceLevelBillingHistoryResources["default"];
}
});
+Object.defineProperty(exports, "ResourceLevelBillingHistoryResourcesCluster", {
+ enumerable: true,
+ get: function get() {
+ return _ResourceLevelBillingHistoryResourcesCluster["default"];
+ }
+});
Object.defineProperty(exports, "ResourceLevelBillingHistoryResponseAttributes", {
enumerable: true,
get: function get() {
@@ -1803,6 +1659,36 @@ Object.defineProperty(exports, "ResourceLevelBillingVolumeDetailsResources", {
return _ResourceLevelBillingVolumeDetailsResources["default"];
}
});
+Object.defineProperty(exports, "ResourceLevelBucketBillingDetailsResponseModel", {
+ enumerable: true,
+ get: function get() {
+ return _ResourceLevelBucketBillingDetailsResponseModel["default"];
+ }
+});
+Object.defineProperty(exports, "ResourceLevelBucketBillingHistoryResponseModel", {
+ enumerable: true,
+ get: function get() {
+ return _ResourceLevelBucketBillingHistoryResponseModel["default"];
+ }
+});
+Object.defineProperty(exports, "ResourceLevelClusterBillingDetailsResponseModel", {
+ enumerable: true,
+ get: function get() {
+ return _ResourceLevelClusterBillingDetailsResponseModel["default"];
+ }
+});
+Object.defineProperty(exports, "ResourceLevelClusterBillingHistoryResponseModel", {
+ enumerable: true,
+ get: function get() {
+ return _ResourceLevelClusterBillingHistoryResponseModel["default"];
+ }
+});
+Object.defineProperty(exports, "ResourceLevelClusterGraphBillingDetailsResponseModel", {
+ enumerable: true,
+ get: function get() {
+ return _ResourceLevelClusterGraphBillingDetailsResponseModel["default"];
+ }
+});
Object.defineProperty(exports, "ResourceLevelGraphBillingDetailVolume", {
enumerable: true,
get: function get() {
@@ -1815,6 +1701,12 @@ Object.defineProperty(exports, "ResourceLevelGraphBillingDetailsAttributes", {
return _ResourceLevelGraphBillingDetailsAttributes["default"];
}
});
+Object.defineProperty(exports, "ResourceLevelGraphBillingDetailsBucket", {
+ enumerable: true,
+ get: function get() {
+ return _ResourceLevelGraphBillingDetailsBucket["default"];
+ }
+});
Object.defineProperty(exports, "ResourceLevelGraphBillingDetailsMetrics", {
enumerable: true,
get: function get() {
@@ -1899,6 +1791,12 @@ Object.defineProperty(exports, "RolePolicyFields", {
return _RolePolicyFields["default"];
}
});
+Object.defineProperty(exports, "SecondaryColor", {
+ enumerable: true,
+ get: function get() {
+ return _SecondaryColor["default"];
+ }
+});
Object.defineProperty(exports, "SecurityGroupRule", {
enumerable: true,
get: function get() {
@@ -1917,10 +1815,10 @@ Object.defineProperty(exports, "SecurityRulesApi", {
return _SecurityRulesApi["default"];
}
});
-Object.defineProperty(exports, "SecurityRulesFieldsforInstance", {
+Object.defineProperty(exports, "SecurityRulesFieldsForInstance", {
enumerable: true,
get: function get() {
- return _SecurityRulesFieldsforInstance["default"];
+ return _SecurityRulesFieldsForInstance["default"];
}
});
Object.defineProperty(exports, "SecurityRulesProtocolFields", {
@@ -1929,16 +1827,10 @@ Object.defineProperty(exports, "SecurityRulesProtocolFields", {
return _SecurityRulesProtocolFields["default"];
}
});
-Object.defineProperty(exports, "SetDefaultsPayload", {
- enumerable: true,
- get: function get() {
- return _SetDefaultsPayload["default"];
- }
-});
-Object.defineProperty(exports, "SingleVisibilityUserResponse", {
+Object.defineProperty(exports, "ServerlessInferencedBillingHistoryDetailsResponseSchema", {
enumerable: true,
get: function get() {
- return _SingleVisibilityUserResponse["default"];
+ return _ServerlessInferencedBillingHistoryDetailsResponseSchema["default"];
}
});
Object.defineProperty(exports, "SnapshotEventsApi", {
@@ -2001,18 +1893,6 @@ Object.defineProperty(exports, "StockApi", {
return _StockApi["default"];
}
});
-Object.defineProperty(exports, "StockVisibilityUserListResponse", {
- enumerable: true,
- get: function get() {
- return _StockVisibilityUserListResponse["default"];
- }
-});
-Object.defineProperty(exports, "StockVisibilityUserPayload", {
- enumerable: true,
- get: function get() {
- return _StockVisibilityUserPayload["default"];
- }
-});
Object.defineProperty(exports, "SubResourceGraphBillingDetailsMetrics", {
enumerable: true,
get: function get() {
@@ -2037,16 +1917,10 @@ Object.defineProperty(exports, "SubResourcesGraphResponseModel", {
return _SubResourcesGraphResponseModel["default"];
}
});
-Object.defineProperty(exports, "Subscribeorunsubscribeupdatepayload", {
- enumerable: true,
- get: function get() {
- return _Subscribeorunsubscribeupdatepayload["default"];
- }
-});
-Object.defineProperty(exports, "SuccessResponseModel", {
+Object.defineProperty(exports, "SubscribeOrUnsubscribeUpdatePayload", {
enumerable: true,
get: function get() {
- return _SuccessResponseModel["default"];
+ return _SubscribeOrUnsubscribeUpdatePayload["default"];
}
});
Object.defineProperty(exports, "Template", {
@@ -2073,28 +1947,22 @@ Object.defineProperty(exports, "Templates", {
return _Templates["default"];
}
});
-Object.defineProperty(exports, "TokenFields", {
- enumerable: true,
- get: function get() {
- return _TokenFields["default"];
- }
-});
-Object.defineProperty(exports, "UpdateContractPayload", {
+Object.defineProperty(exports, "TokenBasedBillingHistoryResponse", {
enumerable: true,
get: function get() {
- return _UpdateContractPayload["default"];
+ return _TokenBasedBillingHistoryResponse["default"];
}
});
-Object.defineProperty(exports, "UpdateDiscountsPayload", {
+Object.defineProperty(exports, "URIs", {
enumerable: true,
get: function get() {
- return _UpdateDiscountsPayload["default"];
+ return _URIs["default"];
}
});
-Object.defineProperty(exports, "UpdateDiscountsStatusPayload", {
+Object.defineProperty(exports, "UpdateClusterNodeGroupPayload", {
enumerable: true,
get: function get() {
- return _UpdateDiscountsStatusPayload["default"];
+ return _UpdateClusterNodeGroupPayload["default"];
}
});
Object.defineProperty(exports, "UpdateEnvironment", {
@@ -2103,22 +1971,16 @@ Object.defineProperty(exports, "UpdateEnvironment", {
return _UpdateEnvironment["default"];
}
});
-Object.defineProperty(exports, "UpdateGPU", {
- enumerable: true,
- get: function get() {
- return _UpdateGPU["default"];
- }
-});
Object.defineProperty(exports, "UpdateKeypairName", {
enumerable: true,
get: function get() {
return _UpdateKeypairName["default"];
}
});
-Object.defineProperty(exports, "UpdateKeypairnameresponse", {
+Object.defineProperty(exports, "UpdateKeypairNameResponse", {
enumerable: true,
get: function get() {
- return _UpdateKeypairnameresponse["default"];
+ return _UpdateKeypairNameResponse["default"];
}
});
Object.defineProperty(exports, "UpdateOrganizationPayload", {
@@ -2139,6 +2001,24 @@ Object.defineProperty(exports, "UpdateTemplate", {
return _UpdateTemplate["default"];
}
});
+Object.defineProperty(exports, "UpdateVolumeAttachmentPayload", {
+ enumerable: true,
+ get: function get() {
+ return _UpdateVolumeAttachmentPayload["default"];
+ }
+});
+Object.defineProperty(exports, "UpdateVolumePayload", {
+ enumerable: true,
+ get: function get() {
+ return _UpdateVolumePayload["default"];
+ }
+});
+Object.defineProperty(exports, "UpdateVolumeResponse", {
+ enumerable: true,
+ get: function get() {
+ return _UpdateVolumeResponse["default"];
+ }
+});
Object.defineProperty(exports, "UserApi", {
enumerable: true,
get: function get() {
@@ -2163,28 +2043,28 @@ Object.defineProperty(exports, "UserDetailChoiceApi", {
return _UserDetailChoiceApi["default"];
}
});
-Object.defineProperty(exports, "UserPermissionApi", {
+Object.defineProperty(exports, "UserInfoPostPayload", {
enumerable: true,
get: function get() {
- return _UserPermissionApi["default"];
+ return _UserInfoPostPayload["default"];
}
});
-Object.defineProperty(exports, "UserPermissionFields", {
+Object.defineProperty(exports, "UserOrganizationsResponse", {
enumerable: true,
get: function get() {
- return _UserPermissionFields["default"];
+ return _UserOrganizationsResponse["default"];
}
});
-Object.defineProperty(exports, "UserTransferPayload", {
+Object.defineProperty(exports, "UserPermissionApi", {
enumerable: true,
get: function get() {
- return _UserTransferPayload["default"];
+ return _UserPermissionApi["default"];
}
});
-Object.defineProperty(exports, "Userinfopostpayload", {
+Object.defineProperty(exports, "UserPermissionFields", {
enumerable: true,
get: function get() {
- return _Userinfopostpayload["default"];
+ return _UserPermissionFields["default"];
}
});
Object.defineProperty(exports, "UsersInfoFields", {
@@ -2199,16 +2079,10 @@ Object.defineProperty(exports, "UsersInfoListResponse", {
return _UsersInfoListResponse["default"];
}
});
-Object.defineProperty(exports, "VMUsageRequestPayload", {
- enumerable: true,
- get: function get() {
- return _VMUsageRequestPayload["default"];
- }
-});
-Object.defineProperty(exports, "VMUsageResponse", {
+Object.defineProperty(exports, "VMQuota", {
enumerable: true,
get: function get() {
- return _VMUsageResponse["default"];
+ return _VMQuota["default"];
}
});
Object.defineProperty(exports, "VNCURL", {
@@ -2223,18 +2097,6 @@ Object.defineProperty(exports, "VNCURLFields", {
return _VNCURLFields["default"];
}
});
-Object.defineProperty(exports, "VerifyApiKeyPayload", {
- enumerable: true,
- get: function get() {
- return _VerifyApiKeyPayload["default"];
- }
-});
-Object.defineProperty(exports, "VerifyApiKeyResponseModel", {
- enumerable: true,
- get: function get() {
- return _VerifyApiKeyResponseModel["default"];
- }
-});
Object.defineProperty(exports, "VirtualMachineApi", {
enumerable: true,
get: function get() {
@@ -2247,12 +2109,6 @@ Object.defineProperty(exports, "VirtualMachineEventsApi", {
return _VirtualMachineEventsApi["default"];
}
});
-Object.defineProperty(exports, "VirtualMachineUsage", {
- enumerable: true,
- get: function get() {
- return _VirtualMachineUsage["default"];
- }
-});
Object.defineProperty(exports, "VncUrlApi", {
enumerable: true,
get: function get() {
@@ -2289,10 +2145,10 @@ Object.defineProperty(exports, "VolumeFields", {
return _VolumeFields["default"];
}
});
-Object.defineProperty(exports, "VolumeFieldsforInstance", {
+Object.defineProperty(exports, "VolumeFieldsForInstance", {
enumerable: true,
get: function get() {
- return _VolumeFieldsforInstance["default"];
+ return _VolumeFieldsForInstance["default"];
}
});
Object.defineProperty(exports, "VolumeOverviewFields", {
@@ -2301,12 +2157,6 @@ Object.defineProperty(exports, "VolumeOverviewFields", {
return _VolumeOverviewFields["default"];
}
});
-Object.defineProperty(exports, "VolumeStatusChangeFields", {
- enumerable: true,
- get: function get() {
- return _VolumeStatusChangeFields["default"];
- }
-});
Object.defineProperty(exports, "VolumeTypes", {
enumerable: true,
get: function get() {
@@ -2319,30 +2169,41 @@ Object.defineProperty(exports, "Volumes", {
return _Volumes["default"];
}
});
-Object.defineProperty(exports, "VolumesLastStatusChangeResponse", {
+Object.defineProperty(exports, "VolumesFields", {
+ enumerable: true,
+ get: function get() {
+ return _VolumesFields["default"];
+ }
+});
+Object.defineProperty(exports, "Voucher", {
+ enumerable: true,
+ get: function get() {
+ return _Voucher["default"];
+ }
+});
+Object.defineProperty(exports, "VoucherRedeemResponseSchema", {
enumerable: true,
get: function get() {
- return _VolumesLastStatusChangeResponse["default"];
+ return _VoucherRedeemResponseSchema["default"];
}
});
-Object.defineProperty(exports, "WarningMailLogFields", {
+Object.defineProperty(exports, "VouchersApi", {
enumerable: true,
get: function get() {
- return _WarningMailLogFields["default"];
+ return _VouchersApi["default"];
}
});
-Object.defineProperty(exports, "WarningMailLogResponse", {
+Object.defineProperty(exports, "WorkloadBillingHistoryResponse", {
enumerable: true,
get: function get() {
- return _WarningMailLogResponse["default"];
+ return _WorkloadBillingHistoryResponse["default"];
}
});
var _ApiClient = _interopRequireDefault(require("./ApiClient"));
-var _AddUpdateFlavorOrganizationPayload = _interopRequireDefault(require("./model/AddUpdateFlavorOrganizationPayload"));
+var _AccessTokenField = _interopRequireDefault(require("./model/AccessTokenField"));
var _AddUserInfoSuccessResponseModel = _interopRequireDefault(require("./model/AddUserInfoSuccessResponseModel"));
var _AllocatedGPUCountGraph = _interopRequireDefault(require("./model/AllocatedGPUCountGraph"));
var _ApiKeyFields = _interopRequireDefault(require("./model/ApiKeyFields"));
-var _ApiKeyVerifyFields = _interopRequireDefault(require("./model/ApiKeyVerifyFields"));
var _AssignRbacRolePayload = _interopRequireDefault(require("./model/AssignRbacRolePayload"));
var _AttachCallbackPayload = _interopRequireDefault(require("./model/AttachCallbackPayload"));
var _AttachCallbackResponse = _interopRequireDefault(require("./model/AttachCallbackResponse"));
@@ -2351,50 +2212,59 @@ var _AttachFirewallsToVMPayload = _interopRequireDefault(require("./model/Attach
var _AttachVolumeFields = _interopRequireDefault(require("./model/AttachVolumeFields"));
var _AttachVolumes = _interopRequireDefault(require("./model/AttachVolumes"));
var _AttachVolumesPayload = _interopRequireDefault(require("./model/AttachVolumesPayload"));
+var _AttachmentsFieldsForVolume = _interopRequireDefault(require("./model/AttachmentsFieldsForVolume"));
+var _Attributes = _interopRequireDefault(require("./model/Attributes"));
var _AuthGetTokenResponseModel = _interopRequireDefault(require("./model/AuthGetTokenResponseModel"));
-var _AuthRequestLoginFields = _interopRequireDefault(require("./model/AuthRequestLoginFields"));
-var _AuthRequestLoginResponseModel = _interopRequireDefault(require("./model/AuthRequestLoginResponseModel"));
var _AuthUserFields = _interopRequireDefault(require("./model/AuthUserFields"));
var _AuthUserInfoResponseModel = _interopRequireDefault(require("./model/AuthUserInfoResponseModel"));
-var _BillingImmuneResourcesResponse = _interopRequireDefault(require("./model/BillingImmuneResourcesResponse"));
-var _BillingResponse = _interopRequireDefault(require("./model/BillingResponse"));
-var _Billingmetricesfields = _interopRequireDefault(require("./model/Billingmetricesfields"));
-var _Billingmetricesresponse = _interopRequireDefault(require("./model/Billingmetricesresponse"));
+var _BetaAccessRequestFields = _interopRequireDefault(require("./model/BetaAccessRequestFields"));
+var _BetaAccessRequestPayload = _interopRequireDefault(require("./model/BetaAccessRequestPayload"));
+var _BetaAccessRequestResponseModel = _interopRequireDefault(require("./model/BetaAccessRequestResponseModel"));
+var _BetaAccessStatusItem = _interopRequireDefault(require("./model/BetaAccessStatusItem"));
+var _BetaAccessStatusResponseModel = _interopRequireDefault(require("./model/BetaAccessStatusResponseModel"));
+var _BillingHistory = _interopRequireDefault(require("./model/BillingHistory"));
+var _BillingHistoryDataSynthesisDetails = _interopRequireDefault(require("./model/BillingHistoryDataSynthesisDetails"));
+var _BillingHistoryFineTuning = _interopRequireDefault(require("./model/BillingHistoryFineTuning"));
+var _BillingHistoryModelEvalutationDetails = _interopRequireDefault(require("./model/BillingHistoryModelEvalutationDetails"));
+var _BillingHistoryServerlessInference = _interopRequireDefault(require("./model/BillingHistoryServerlessInference"));
+var _BillingHistoryServerlessInferenceDetails = _interopRequireDefault(require("./model/BillingHistoryServerlessInferenceDetails"));
+var _BillingMetricesFields = _interopRequireDefault(require("./model/BillingMetricesFields"));
+var _BillingMetricesResponse = _interopRequireDefault(require("./model/BillingMetricesResponse"));
var _ClusterEvents = _interopRequireDefault(require("./model/ClusterEvents"));
var _ClusterEventsFields = _interopRequireDefault(require("./model/ClusterEventsFields"));
var _ClusterFields = _interopRequireDefault(require("./model/ClusterFields"));
+var _ClusterFlavorFields = _interopRequireDefault(require("./model/ClusterFlavorFields"));
var _ClusterListResponse = _interopRequireDefault(require("./model/ClusterListResponse"));
+var _ClusterNodeFields = _interopRequireDefault(require("./model/ClusterNodeFields"));
+var _ClusterNodeGroupFields = _interopRequireDefault(require("./model/ClusterNodeGroupFields"));
+var _ClusterNodeGroupFirewallFields = _interopRequireDefault(require("./model/ClusterNodeGroupFirewallFields"));
+var _ClusterNodeGroupsCreateResponse = _interopRequireDefault(require("./model/ClusterNodeGroupsCreateResponse"));
+var _ClusterNodeGroupsGetResponse = _interopRequireDefault(require("./model/ClusterNodeGroupsGetResponse"));
+var _ClusterNodeGroupsListResponse = _interopRequireDefault(require("./model/ClusterNodeGroupsListResponse"));
+var _ClusterNodeInstanceFields = _interopRequireDefault(require("./model/ClusterNodeInstanceFields"));
+var _ClusterNodesListResponse = _interopRequireDefault(require("./model/ClusterNodesListResponse"));
var _ClusterResponse = _interopRequireDefault(require("./model/ClusterResponse"));
+var _ClusterVersion = _interopRequireDefault(require("./model/ClusterVersion"));
var _ClusterVersions = _interopRequireDefault(require("./model/ClusterVersions"));
+var _Colors = _interopRequireDefault(require("./model/Colors"));
var _CommonResponseModel = _interopRequireDefault(require("./model/CommonResponseModel"));
+var _CompatibleFlavor = _interopRequireDefault(require("./model/CompatibleFlavor"));
var _ComplianceFields = _interopRequireDefault(require("./model/ComplianceFields"));
var _ComplianceModelFields = _interopRequireDefault(require("./model/ComplianceModelFields"));
var _CompliancePayload = _interopRequireDefault(require("./model/CompliancePayload"));
var _ComplianceResponse = _interopRequireDefault(require("./model/ComplianceResponse"));
var _ContainerOverviewFields = _interopRequireDefault(require("./model/ContainerOverviewFields"));
var _Contract = _interopRequireDefault(require("./model/Contract"));
-var _ContractBillingHistory = _interopRequireDefault(require("./model/ContractBillingHistory"));
-var _ContractBillingHistoryResponseAttributes = _interopRequireDefault(require("./model/ContractBillingHistoryResponseAttributes"));
-var _ContractBillingHistoryResponseModel = _interopRequireDefault(require("./model/ContractBillingHistoryResponseModel"));
-var _ContractChangePayload = _interopRequireDefault(require("./model/ContractChangePayload"));
var _ContractDiscountPlanFields = _interopRequireDefault(require("./model/ContractDiscountPlanFields"));
-var _ContractEligibleInstanceFields = _interopRequireDefault(require("./model/ContractEligibleInstanceFields"));
-var _ContractEligibleInstancesResponse = _interopRequireDefault(require("./model/ContractEligibleInstancesResponse"));
-var _ContractEventCreateModel = _interopRequireDefault(require("./model/ContractEventCreateModel"));
var _ContractGPUAllocationGraphResponse = _interopRequireDefault(require("./model/ContractGPUAllocationGraphResponse"));
var _ContractInstanceFields = _interopRequireDefault(require("./model/ContractInstanceFields"));
var _ContractInstancesResponse = _interopRequireDefault(require("./model/ContractInstancesResponse"));
-var _ContractResourcePayload = _interopRequireDefault(require("./model/ContractResourcePayload"));
-var _ContractlBillingHistoryResponseMetrics = _interopRequireDefault(require("./model/ContractlBillingHistoryResponseMetrics"));
+var _CreateClusterNodeFields = _interopRequireDefault(require("./model/CreateClusterNodeFields"));
+var _CreateClusterNodeGroupPayload = _interopRequireDefault(require("./model/CreateClusterNodeGroupPayload"));
var _CreateClusterPayload = _interopRequireDefault(require("./model/CreateClusterPayload"));
-var _CreateContractFields = _interopRequireDefault(require("./model/CreateContractFields"));
-var _CreateContractPayload = _interopRequireDefault(require("./model/CreateContractPayload"));
-var _CreateDiscountResponse = _interopRequireDefault(require("./model/CreateDiscountResponse"));
-var _CreateDiscountsPayload = _interopRequireDefault(require("./model/CreateDiscountsPayload"));
var _CreateEnvironment = _interopRequireDefault(require("./model/CreateEnvironment"));
var _CreateFirewallPayload = _interopRequireDefault(require("./model/CreateFirewallPayload"));
var _CreateFirewallRulePayload = _interopRequireDefault(require("./model/CreateFirewallRulePayload"));
-var _CreateGPU = _interopRequireDefault(require("./model/CreateGPU"));
var _CreateImage = _interopRequireDefault(require("./model/CreateImage"));
var _CreateImagePayload = _interopRequireDefault(require("./model/CreateImagePayload"));
var _CreateInstancesPayload = _interopRequireDefault(require("./model/CreateInstancesPayload"));
@@ -2405,44 +2275,25 @@ var _CreateSecurityRulePayload = _interopRequireDefault(require("./model/CreateS
var _CreateSnapshotPayload = _interopRequireDefault(require("./model/CreateSnapshotPayload"));
var _CreateSnapshotResponse = _interopRequireDefault(require("./model/CreateSnapshotResponse"));
var _CreateUpdateComplianceResponse = _interopRequireDefault(require("./model/CreateUpdateComplianceResponse"));
-var _CreateUpdatePermissionPayload = _interopRequireDefault(require("./model/CreateUpdatePermissionPayload"));
-var _CreateUpdatePermissionResponseModel = _interopRequireDefault(require("./model/CreateUpdatePermissionResponseModel"));
-var _CreateUpdatePolicyPayload = _interopRequireDefault(require("./model/CreateUpdatePolicyPayload"));
-var _CreateUpdatePolicyResponseModel = _interopRequireDefault(require("./model/CreateUpdatePolicyResponseModel"));
var _CreateUpdateRbacRolePayload = _interopRequireDefault(require("./model/CreateUpdateRbacRolePayload"));
var _CreateVolumePayload = _interopRequireDefault(require("./model/CreateVolumePayload"));
-var _Creditrechargelimitfield = _interopRequireDefault(require("./model/Creditrechargelimitfield"));
-var _Creditrechargelimitresponse = _interopRequireDefault(require("./model/Creditrechargelimitresponse"));
-var _Creditrequestresponse = _interopRequireDefault(require("./model/Creditrequestresponse"));
-var _Creditrequests = _interopRequireDefault(require("./model/Creditrequests"));
var _CustomerContractDetailResponseModel = _interopRequireDefault(require("./model/CustomerContractDetailResponseModel"));
var _CustomerContractFields = _interopRequireDefault(require("./model/CustomerContractFields"));
-var _CustomerFields = _interopRequireDefault(require("./model/CustomerFields"));
-var _CustomerPayload = _interopRequireDefault(require("./model/CustomerPayload"));
var _DashboardInfoResponse = _interopRequireDefault(require("./model/DashboardInfoResponse"));
-var _Data = _interopRequireDefault(require("./model/Data"));
+var _DataSynthesisBillingHistoryDetailsResponseSchema = _interopRequireDefault(require("./model/DataSynthesisBillingHistoryDetailsResponseSchema"));
+var _DeleteClusterNodesFields = _interopRequireDefault(require("./model/DeleteClusterNodesFields"));
var _DeploymentFields = _interopRequireDefault(require("./model/DeploymentFields"));
-var _DeploymentFieldsforstartdeployments = _interopRequireDefault(require("./model/DeploymentFieldsforstartdeployments"));
+var _DeploymentFieldsForStartDeployments = _interopRequireDefault(require("./model/DeploymentFieldsForStartDeployments"));
var _Deployments = _interopRequireDefault(require("./model/Deployments"));
var _DetachVolumes = _interopRequireDefault(require("./model/DetachVolumes"));
var _DetachVolumesPayload = _interopRequireDefault(require("./model/DetachVolumesPayload"));
-var _DiscountEntityModel = _interopRequireDefault(require("./model/DiscountEntityModel"));
-var _DiscountFields = _interopRequireDefault(require("./model/DiscountFields"));
-var _DiscountPlanFields = _interopRequireDefault(require("./model/DiscountPlanFields"));
-var _DiscountResourceFields = _interopRequireDefault(require("./model/DiscountResourceFields"));
-var _DiscountResourcePayload = _interopRequireDefault(require("./model/DiscountResourcePayload"));
-var _EditlabelofanexistingVMPayload = _interopRequireDefault(require("./model/EditlabelofanexistingVMPayload"));
+var _EditLabelOfAnExistingVMPayload = _interopRequireDefault(require("./model/EditLabelOfAnExistingVMPayload"));
var _Environment = _interopRequireDefault(require("./model/Environment"));
var _EnvironmentFeatures = _interopRequireDefault(require("./model/EnvironmentFeatures"));
var _EnvironmentFields = _interopRequireDefault(require("./model/EnvironmentFields"));
-var _EnvironmentFieldsforVolume = _interopRequireDefault(require("./model/EnvironmentFieldsforVolume"));
+var _EnvironmentFieldsForVolume = _interopRequireDefault(require("./model/EnvironmentFieldsForVolume"));
var _Environments = _interopRequireDefault(require("./model/Environments"));
var _ErrorResponseModel = _interopRequireDefault(require("./model/ErrorResponseModel"));
-var _ExcludeBillingPostPayload = _interopRequireDefault(require("./model/ExcludeBillingPostPayload"));
-var _ExcludeBillingPostResponse = _interopRequireDefault(require("./model/ExcludeBillingPostResponse"));
-var _ExportBillingDataRequest = _interopRequireDefault(require("./model/ExportBillingDataRequest"));
-var _ExportBillingDataResponse = _interopRequireDefault(require("./model/ExportBillingDataResponse"));
-var _FieldChange = _interopRequireDefault(require("./model/FieldChange"));
var _FirewallAttachmentModel = _interopRequireDefault(require("./model/FirewallAttachmentModel"));
var _FirewallAttachmentVMModel = _interopRequireDefault(require("./model/FirewallAttachmentVMModel"));
var _FirewallDetailFields = _interopRequireDefault(require("./model/FirewallDetailFields"));
@@ -2454,55 +2305,34 @@ var _FirewallRule = _interopRequireDefault(require("./model/FirewallRule"));
var _FirewallsListResponse = _interopRequireDefault(require("./model/FirewallsListResponse"));
var _FlavorFields = _interopRequireDefault(require("./model/FlavorFields"));
var _FlavorItemGetResponse = _interopRequireDefault(require("./model/FlavorItemGetResponse"));
+var _FlavorLabelFields = _interopRequireDefault(require("./model/FlavorLabelFields"));
var _FlavorListResponse = _interopRequireDefault(require("./model/FlavorListResponse"));
var _FlavorObjectFields = _interopRequireDefault(require("./model/FlavorObjectFields"));
-var _FlavorPayload = _interopRequireDefault(require("./model/FlavorPayload"));
-var _FlavorResponse = _interopRequireDefault(require("./model/FlavorResponse"));
-var _FlavorVMFields = _interopRequireDefault(require("./model/FlavorVMFields"));
-var _FlavorVMsResponse = _interopRequireDefault(require("./model/FlavorVMsResponse"));
-var _FutureNodeModel = _interopRequireDefault(require("./model/FutureNodeModel"));
-var _FutureNodeResponseModel = _interopRequireDefault(require("./model/FutureNodeResponseModel"));
-var _FutureNodeStockModel = _interopRequireDefault(require("./model/FutureNodeStockModel"));
-var _FutureNodeUpdateModel = _interopRequireDefault(require("./model/FutureNodeUpdateModel"));
-var _FutureNodesStockModel = _interopRequireDefault(require("./model/FutureNodesStockModel"));
-var _GPU = _interopRequireDefault(require("./model/GPU"));
+var _FlavorRestrictions = _interopRequireDefault(require("./model/FlavorRestrictions"));
var _GPUFields = _interopRequireDefault(require("./model/GPUFields"));
var _GPUList = _interopRequireDefault(require("./model/GPUList"));
var _GPURegionFields = _interopRequireDefault(require("./model/GPURegionFields"));
var _GenerateUpdateApiKeyPayload = _interopRequireDefault(require("./model/GenerateUpdateApiKeyPayload"));
var _GenerateUpdateApiKeyResponseModel = _interopRequireDefault(require("./model/GenerateUpdateApiKeyResponseModel"));
-var _GetAllContractFields = _interopRequireDefault(require("./model/GetAllContractFields"));
-var _GetAllContractsResponseModel = _interopRequireDefault(require("./model/GetAllContractsResponseModel"));
-var _GetAllDiscountForAllOrganizationResponse = _interopRequireDefault(require("./model/GetAllDiscountForAllOrganizationResponse"));
-var _GetAllDiscountsFields = _interopRequireDefault(require("./model/GetAllDiscountsFields"));
var _GetApiKeysResponseModel = _interopRequireDefault(require("./model/GetApiKeysResponseModel"));
+var _GetCreditAndThresholdInfo = _interopRequireDefault(require("./model/GetCreditAndThresholdInfo"));
+var _GetCreditAndThresholdInfoInResponse = _interopRequireDefault(require("./model/GetCreditAndThresholdInfoInResponse"));
var _GetCustomerContractsListResponseModel = _interopRequireDefault(require("./model/GetCustomerContractsListResponseModel"));
-var _GetDiscountDetailResponse = _interopRequireDefault(require("./model/GetDiscountDetailResponse"));
-var _GetDiscountResponse = _interopRequireDefault(require("./model/GetDiscountResponse"));
-var _GetEntityDiscountDetailResponse = _interopRequireDefault(require("./model/GetEntityDiscountDetailResponse"));
+var _GetInstanceLogsResponse = _interopRequireDefault(require("./model/GetInstanceLogsResponse"));
var _GetInvitesResponseModel = _interopRequireDefault(require("./model/GetInvitesResponseModel"));
var _GetOrganizationResponseModel = _interopRequireDefault(require("./model/GetOrganizationResponseModel"));
var _GetPermissionsResponseModel = _interopRequireDefault(require("./model/GetPermissionsResponseModel"));
var _GetPoliciesResponseModel = _interopRequireDefault(require("./model/GetPoliciesResponseModel"));
var _GetRbacRolesResponseModel = _interopRequireDefault(require("./model/GetRbacRolesResponseModel"));
-var _GetTokenPayload = _interopRequireDefault(require("./model/GetTokenPayload"));
var _GetUserPermissionsResponseModel = _interopRequireDefault(require("./model/GetUserPermissionsResponseModel"));
-var _GetVersionResponse = _interopRequireDefault(require("./model/GetVersionResponse"));
-var _Getcreditandthresholdinfo = _interopRequireDefault(require("./model/Getcreditandthresholdinfo"));
-var _Getcreditandthresholdinfoinresponse = _interopRequireDefault(require("./model/Getcreditandthresholdinfoinresponse"));
var _GraphDatetimeValueModel = _interopRequireDefault(require("./model/GraphDatetimeValueModel"));
-var _HistoricalInstance = _interopRequireDefault(require("./model/HistoricalInstance"));
-var _HistoricalInstancesFields = _interopRequireDefault(require("./model/HistoricalInstancesFields"));
var _Image = _interopRequireDefault(require("./model/Image"));
var _ImageFields = _interopRequireDefault(require("./model/ImageFields"));
var _ImageGetResponse = _interopRequireDefault(require("./model/ImageGetResponse"));
-var _ImageLogos = _interopRequireDefault(require("./model/ImageLogos"));
var _Images = _interopRequireDefault(require("./model/Images"));
var _ImportKeypairPayload = _interopRequireDefault(require("./model/ImportKeypairPayload"));
var _ImportKeypairResponse = _interopRequireDefault(require("./model/ImportKeypairResponse"));
-var _InfrahubResourceObjectResponse = _interopRequireDefault(require("./model/InfrahubResourceObjectResponse"));
var _InfrahubResourceObjectResponseForCustomer = _interopRequireDefault(require("./model/InfrahubResourceObjectResponseForCustomer"));
-var _InsertDiscountPlanFields = _interopRequireDefault(require("./model/InsertDiscountPlanFields"));
var _Instance = _interopRequireDefault(require("./model/Instance"));
var _InstanceEnvironmentFields = _interopRequireDefault(require("./model/InstanceEnvironmentFields"));
var _InstanceEvents = _interopRequireDefault(require("./model/InstanceEvents"));
@@ -2514,56 +2344,56 @@ var _InstanceKeypairFields = _interopRequireDefault(require("./model/InstanceKey
var _InstanceOverviewFields = _interopRequireDefault(require("./model/InstanceOverviewFields"));
var _InstanceResizePayload = _interopRequireDefault(require("./model/InstanceResizePayload"));
var _Instances = _interopRequireDefault(require("./model/Instances"));
-var _InstancesSummaryFields = _interopRequireDefault(require("./model/InstancesSummaryFields"));
-var _InternalEnvironmentFields = _interopRequireDefault(require("./model/InternalEnvironmentFields"));
-var _InternalInstanceFields = _interopRequireDefault(require("./model/InternalInstanceFields"));
-var _InternalInstanceFlavorFields = _interopRequireDefault(require("./model/InternalInstanceFlavorFields"));
-var _InternalInstanceImageFields = _interopRequireDefault(require("./model/InternalInstanceImageFields"));
-var _InternalInstanceKeypairFields = _interopRequireDefault(require("./model/InternalInstanceKeypairFields"));
-var _InternalInstancesResponse = _interopRequireDefault(require("./model/InternalInstancesResponse"));
-var _InternalSecurityRulesFieldsForInstance = _interopRequireDefault(require("./model/InternalSecurityRulesFieldsForInstance"));
-var _InternalVolumeAttachmentFields = _interopRequireDefault(require("./model/InternalVolumeAttachmentFields"));
-var _InternalVolumeFields = _interopRequireDefault(require("./model/InternalVolumeFields"));
-var _InternalVolumesResponse = _interopRequireDefault(require("./model/InternalVolumesResponse"));
var _InviteFields = _interopRequireDefault(require("./model/InviteFields"));
var _InviteUserPayload = _interopRequireDefault(require("./model/InviteUserPayload"));
var _InviteUserResponseModel = _interopRequireDefault(require("./model/InviteUserResponseModel"));
+var _KeypairEnvironmentFeatures = _interopRequireDefault(require("./model/KeypairEnvironmentFeatures"));
+var _KeypairEnvironmentFields = _interopRequireDefault(require("./model/KeypairEnvironmentFields"));
var _KeypairFields = _interopRequireDefault(require("./model/KeypairFields"));
var _Keypairs = _interopRequireDefault(require("./model/Keypairs"));
var _LableResonse = _interopRequireDefault(require("./model/LableResonse"));
-var _Lastdaycostfields = _interopRequireDefault(require("./model/Lastdaycostfields"));
-var _Lastdaycostresponse = _interopRequireDefault(require("./model/Lastdaycostresponse"));
-var _LogoGetResponse = _interopRequireDefault(require("./model/LogoGetResponse"));
-var _LogoutPayload = _interopRequireDefault(require("./model/LogoutPayload"));
+var _LastDayCostFields = _interopRequireDefault(require("./model/LastDayCostFields"));
+var _LastDayCostResponse = _interopRequireDefault(require("./model/LastDayCostResponse"));
+var _Logos = _interopRequireDefault(require("./model/Logos"));
+var _MFAStatusFields = _interopRequireDefault(require("./model/MFAStatusFields"));
+var _MFAStatusResponse = _interopRequireDefault(require("./model/MFAStatusResponse"));
+var _ManualReconciliationModel = _interopRequireDefault(require("./model/ManualReconciliationModel"));
+var _MasterFlavorsResponse = _interopRequireDefault(require("./model/MasterFlavorsResponse"));
var _MetricItemFields = _interopRequireDefault(require("./model/MetricItemFields"));
var _MetricsFields = _interopRequireDefault(require("./model/MetricsFields"));
+var _ModelEvaluationBillingHistoryDetailsResponseSchema = _interopRequireDefault(require("./model/ModelEvaluationBillingHistoryDetailsResponseSchema"));
var _NameAvailableModel = _interopRequireDefault(require("./model/NameAvailableModel"));
var _NewConfigurationsResponse = _interopRequireDefault(require("./model/NewConfigurationsResponse"));
var _NewModelResponse = _interopRequireDefault(require("./model/NewModelResponse"));
var _NewStockResponse = _interopRequireDefault(require("./model/NewStockResponse"));
var _NewStockRetriveResponse = _interopRequireDefault(require("./model/NewStockRetriveResponse"));
-var _NewStockUpdateResponseModel = _interopRequireDefault(require("./model/NewStockUpdateResponseModel"));
-var _NodeModel = _interopRequireDefault(require("./model/NodeModel"));
-var _NodePayloadModel = _interopRequireDefault(require("./model/NodePayloadModel"));
-var _NodePowerUsageModel = _interopRequireDefault(require("./model/NodePowerUsageModel"));
-var _NodeResponseModel = _interopRequireDefault(require("./model/NodeResponseModel"));
-var _NodeStockPayloadModel = _interopRequireDefault(require("./model/NodeStockPayloadModel"));
-var _NodeStockResponseModel = _interopRequireDefault(require("./model/NodeStockResponseModel"));
-var _NodeStocksPayload = _interopRequireDefault(require("./model/NodeStocksPayload"));
+var _ObjectStorageAccessKeyCreateRequest = _interopRequireDefault(require("./model/ObjectStorageAccessKeyCreateRequest"));
+var _ObjectStorageAccessKeyCreateResponse = _interopRequireDefault(require("./model/ObjectStorageAccessKeyCreateResponse"));
+var _ObjectStorageAccessKeyListResponse = _interopRequireDefault(require("./model/ObjectStorageAccessKeyListResponse"));
+var _ObjectStorageAccessKeyResponse = _interopRequireDefault(require("./model/ObjectStorageAccessKeyResponse"));
+var _ObjectStorageBucketListResponse = _interopRequireDefault(require("./model/ObjectStorageBucketListResponse"));
+var _ObjectStorageBucketResponse = _interopRequireDefault(require("./model/ObjectStorageBucketResponse"));
+var _ObjectStorageDeleteResponse = _interopRequireDefault(require("./model/ObjectStorageDeleteResponse"));
+var _ObjectStorageErrorResponse = _interopRequireDefault(require("./model/ObjectStorageErrorResponse"));
+var _ObjectStorageHealthResponse = _interopRequireDefault(require("./model/ObjectStorageHealthResponse"));
+var _ObjectStoragePaginationMeta = _interopRequireDefault(require("./model/ObjectStoragePaginationMeta"));
+var _ObjectStorageRegionListResponse = _interopRequireDefault(require("./model/ObjectStorageRegionListResponse"));
+var _ObjectStorageRegionResponse = _interopRequireDefault(require("./model/ObjectStorageRegionResponse"));
+var _ObjectStorageRegionsEnum = _interopRequireDefault(require("./model/ObjectStorageRegionsEnum"));
var _OrganizationFields = _interopRequireDefault(require("./model/OrganizationFields"));
var _OrganizationLevelBillingHistory = _interopRequireDefault(require("./model/OrganizationLevelBillingHistory"));
var _OrganizationLevelBillingHistoryResources = _interopRequireDefault(require("./model/OrganizationLevelBillingHistoryResources"));
var _OrganizationLevelBillingHistoryResponseAttributes = _interopRequireDefault(require("./model/OrganizationLevelBillingHistoryResponseAttributes"));
var _OrganizationLevelBillingHistoryResponseMetrics = _interopRequireDefault(require("./model/OrganizationLevelBillingHistoryResponseMetrics"));
var _OrganizationLevelBillingHistoryResponseModel = _interopRequireDefault(require("./model/OrganizationLevelBillingHistoryResponseModel"));
-var _OrganizationObjectResponse = _interopRequireDefault(require("./model/OrganizationObjectResponse"));
-var _OrganizationThresholdfields = _interopRequireDefault(require("./model/OrganizationThresholdfields"));
+var _OrganizationThresholdFields = _interopRequireDefault(require("./model/OrganizationThresholdFields"));
+var _OrganizationThresholdUpdateResponse = _interopRequireDefault(require("./model/OrganizationThresholdUpdateResponse"));
+var _OrganizationThresholdsResponse = _interopRequireDefault(require("./model/OrganizationThresholdsResponse"));
var _OrganizationUserResponseModel = _interopRequireDefault(require("./model/OrganizationUserResponseModel"));
-var _Organizationcreditrechargelimitresponse = _interopRequireDefault(require("./model/Organizationcreditrechargelimitresponse"));
-var _Organizationthresholdsresponse = _interopRequireDefault(require("./model/Organizationthresholdsresponse"));
-var _Organizationthresholdupdateresponse = _interopRequireDefault(require("./model/Organizationthresholdupdateresponse"));
var _OverviewInfo = _interopRequireDefault(require("./model/OverviewInfo"));
+var _Pagination = _interopRequireDefault(require("./model/Pagination"));
var _PaginationData = _interopRequireDefault(require("./model/PaginationData"));
+var _PartnerConfig = _interopRequireDefault(require("./model/PartnerConfig"));
var _PaymentDetailsFields = _interopRequireDefault(require("./model/PaymentDetailsFields"));
var _PaymentDetailsResponse = _interopRequireDefault(require("./model/PaymentDetailsResponse"));
var _PaymentInitiateFields = _interopRequireDefault(require("./model/PaymentInitiateFields"));
@@ -2572,10 +2402,9 @@ var _PaymentInitiateResponse = _interopRequireDefault(require("./model/PaymentIn
var _PermissionFields = _interopRequireDefault(require("./model/PermissionFields"));
var _PolicyFields = _interopRequireDefault(require("./model/PolicyFields"));
var _PolicyPermissionFields = _interopRequireDefault(require("./model/PolicyPermissionFields"));
-var _PowerUsageModel = _interopRequireDefault(require("./model/PowerUsageModel"));
var _PricebookModel = _interopRequireDefault(require("./model/PricebookModel"));
-var _PricebookResourceObjectResponse = _interopRequireDefault(require("./model/PricebookResourceObjectResponse"));
var _PricebookResourceObjectResponseForCustomer = _interopRequireDefault(require("./model/PricebookResourceObjectResponseForCustomer"));
+var _PrimaryColor = _interopRequireDefault(require("./model/PrimaryColor"));
var _ProfileFields = _interopRequireDefault(require("./model/ProfileFields"));
var _ProfileListResponse = _interopRequireDefault(require("./model/ProfileListResponse"));
var _ProfileObjectFields = _interopRequireDefault(require("./model/ProfileObjectFields"));
@@ -2583,17 +2412,18 @@ var _RbacRoleDetailResponseModel = _interopRequireDefault(require("./model/RbacR
var _RbacRoleDetailResponseModelFixed = _interopRequireDefault(require("./model/RbacRoleDetailResponseModelFixed"));
var _RbacRoleField = _interopRequireDefault(require("./model/RbacRoleField"));
var _RbacRoleFields = _interopRequireDefault(require("./model/RbacRoleFields"));
-var _RefreshTokenPayload = _interopRequireDefault(require("./model/RefreshTokenPayload"));
+var _RedeemVoucherPayload = _interopRequireDefault(require("./model/RedeemVoucherPayload"));
var _RegionFields = _interopRequireDefault(require("./model/RegionFields"));
-var _RegionPayload = _interopRequireDefault(require("./model/RegionPayload"));
-var _RegionResponse = _interopRequireDefault(require("./model/RegionResponse"));
var _Regions = _interopRequireDefault(require("./model/Regions"));
var _RemoveMemberFromOrganizationResponseModel = _interopRequireDefault(require("./model/RemoveMemberFromOrganizationResponseModel"));
var _RemoveMemberPayload = _interopRequireDefault(require("./model/RemoveMemberPayload"));
var _RequestConsole = _interopRequireDefault(require("./model/RequestConsole"));
+var _RequestInstanceLogsPayload = _interopRequireDefault(require("./model/RequestInstanceLogsPayload"));
+var _RequestInstanceLogsResponse = _interopRequireDefault(require("./model/RequestInstanceLogsResponse"));
var _ResourceBillingEventsHistoryMetrics = _interopRequireDefault(require("./model/ResourceBillingEventsHistoryMetrics"));
var _ResourceBillingEventsHistoryResponse = _interopRequireDefault(require("./model/ResourceBillingEventsHistoryResponse"));
var _ResourceBillingResponseForCustomer = _interopRequireDefault(require("./model/ResourceBillingResponseForCustomer"));
+var _ResourceLevelBillingBucketDetailsResources = _interopRequireDefault(require("./model/ResourceLevelBillingBucketDetailsResources"));
var _ResourceLevelBillingDetailsAttributes = _interopRequireDefault(require("./model/ResourceLevelBillingDetailsAttributes"));
var _ResourceLevelBillingDetailsMetrics = _interopRequireDefault(require("./model/ResourceLevelBillingDetailsMetrics"));
var _ResourceLevelBillingDetailsVM = _interopRequireDefault(require("./model/ResourceLevelBillingDetailsVM"));
@@ -2602,12 +2432,19 @@ var _ResourceLevelBillingDetailsVolumeAttributes = _interopRequireDefault(requir
var _ResourceLevelBillingDetailsVolumeMetrics = _interopRequireDefault(require("./model/ResourceLevelBillingDetailsVolumeMetrics"));
var _ResourceLevelBillingHistory = _interopRequireDefault(require("./model/ResourceLevelBillingHistory"));
var _ResourceLevelBillingHistoryResources = _interopRequireDefault(require("./model/ResourceLevelBillingHistoryResources"));
+var _ResourceLevelBillingHistoryResourcesCluster = _interopRequireDefault(require("./model/ResourceLevelBillingHistoryResourcesCluster"));
var _ResourceLevelBillingHistoryResponseAttributes = _interopRequireDefault(require("./model/ResourceLevelBillingHistoryResponseAttributes"));
var _ResourceLevelBillingHistoryResponseMetrics = _interopRequireDefault(require("./model/ResourceLevelBillingHistoryResponseMetrics"));
var _ResourceLevelBillingVMDetailsResources = _interopRequireDefault(require("./model/ResourceLevelBillingVMDetailsResources"));
var _ResourceLevelBillingVolumeDetailsResources = _interopRequireDefault(require("./model/ResourceLevelBillingVolumeDetailsResources"));
+var _ResourceLevelBucketBillingDetailsResponseModel = _interopRequireDefault(require("./model/ResourceLevelBucketBillingDetailsResponseModel"));
+var _ResourceLevelBucketBillingHistoryResponseModel = _interopRequireDefault(require("./model/ResourceLevelBucketBillingHistoryResponseModel"));
+var _ResourceLevelClusterBillingDetailsResponseModel = _interopRequireDefault(require("./model/ResourceLevelClusterBillingDetailsResponseModel"));
+var _ResourceLevelClusterBillingHistoryResponseModel = _interopRequireDefault(require("./model/ResourceLevelClusterBillingHistoryResponseModel"));
+var _ResourceLevelClusterGraphBillingDetailsResponseModel = _interopRequireDefault(require("./model/ResourceLevelClusterGraphBillingDetailsResponseModel"));
var _ResourceLevelGraphBillingDetailVolume = _interopRequireDefault(require("./model/ResourceLevelGraphBillingDetailVolume"));
var _ResourceLevelGraphBillingDetailsAttributes = _interopRequireDefault(require("./model/ResourceLevelGraphBillingDetailsAttributes"));
+var _ResourceLevelGraphBillingDetailsBucket = _interopRequireDefault(require("./model/ResourceLevelGraphBillingDetailsBucket"));
var _ResourceLevelGraphBillingDetailsMetrics = _interopRequireDefault(require("./model/ResourceLevelGraphBillingDetailsMetrics"));
var _ResourceLevelGraphBillingDetailsVM = _interopRequireDefault(require("./model/ResourceLevelGraphBillingDetailsVM"));
var _ResourceLevelGraphBillingVMDetailsResources = _interopRequireDefault(require("./model/ResourceLevelGraphBillingVMDetailsResources"));
@@ -2622,12 +2459,12 @@ var _ResourceObjectResponseForCustomer = _interopRequireDefault(require("./model
var _ResponseModel = _interopRequireDefault(require("./model/ResponseModel"));
var _RolePermissionFields = _interopRequireDefault(require("./model/RolePermissionFields"));
var _RolePolicyFields = _interopRequireDefault(require("./model/RolePolicyFields"));
+var _SecondaryColor = _interopRequireDefault(require("./model/SecondaryColor"));
var _SecurityGroupRule = _interopRequireDefault(require("./model/SecurityGroupRule"));
var _SecurityGroupRuleFields = _interopRequireDefault(require("./model/SecurityGroupRuleFields"));
-var _SecurityRulesFieldsforInstance = _interopRequireDefault(require("./model/SecurityRulesFieldsforInstance"));
+var _SecurityRulesFieldsForInstance = _interopRequireDefault(require("./model/SecurityRulesFieldsForInstance"));
var _SecurityRulesProtocolFields = _interopRequireDefault(require("./model/SecurityRulesProtocolFields"));
-var _SetDefaultsPayload = _interopRequireDefault(require("./model/SetDefaultsPayload"));
-var _SingleVisibilityUserResponse = _interopRequireDefault(require("./model/SingleVisibilityUserResponse"));
+var _ServerlessInferencedBillingHistoryDetailsResponseSchema = _interopRequireDefault(require("./model/ServerlessInferencedBillingHistoryDetailsResponseSchema"));
var _SnapshotFields = _interopRequireDefault(require("./model/SnapshotFields"));
var _SnapshotRestoreRequest = _interopRequireDefault(require("./model/SnapshotRestoreRequest"));
var _SnapshotRetrieve = _interopRequireDefault(require("./model/SnapshotRetrieve"));
@@ -2635,58 +2472,55 @@ var _SnapshotRetrieveFields = _interopRequireDefault(require("./model/SnapshotRe
var _Snapshots = _interopRequireDefault(require("./model/Snapshots"));
var _StartDeployment = _interopRequireDefault(require("./model/StartDeployment"));
var _StartDeploymentPayload = _interopRequireDefault(require("./model/StartDeploymentPayload"));
-var _StockVisibilityUserListResponse = _interopRequireDefault(require("./model/StockVisibilityUserListResponse"));
-var _StockVisibilityUserPayload = _interopRequireDefault(require("./model/StockVisibilityUserPayload"));
var _SubResourceGraphBillingDetailsMetrics = _interopRequireDefault(require("./model/SubResourceGraphBillingDetailsMetrics"));
var _SubResourcesCostsResponseModel = _interopRequireDefault(require("./model/SubResourcesCostsResponseModel"));
var _SubResourcesGraphBillingHistoryFields = _interopRequireDefault(require("./model/SubResourcesGraphBillingHistoryFields"));
var _SubResourcesGraphResponseModel = _interopRequireDefault(require("./model/SubResourcesGraphResponseModel"));
-var _Subscribeorunsubscribeupdatepayload = _interopRequireDefault(require("./model/Subscribeorunsubscribeupdatepayload"));
-var _SuccessResponseModel = _interopRequireDefault(require("./model/SuccessResponseModel"));
+var _SubscribeOrUnsubscribeUpdatePayload = _interopRequireDefault(require("./model/SubscribeOrUnsubscribeUpdatePayload"));
var _Template = _interopRequireDefault(require("./model/Template"));
var _TemplateFields = _interopRequireDefault(require("./model/TemplateFields"));
var _Templates = _interopRequireDefault(require("./model/Templates"));
-var _TokenFields = _interopRequireDefault(require("./model/TokenFields"));
-var _UpdateContractPayload = _interopRequireDefault(require("./model/UpdateContractPayload"));
-var _UpdateDiscountsPayload = _interopRequireDefault(require("./model/UpdateDiscountsPayload"));
-var _UpdateDiscountsStatusPayload = _interopRequireDefault(require("./model/UpdateDiscountsStatusPayload"));
+var _TokenBasedBillingHistoryResponse = _interopRequireDefault(require("./model/TokenBasedBillingHistoryResponse"));
+var _URIs = _interopRequireDefault(require("./model/URIs"));
+var _UpdateClusterNodeGroupPayload = _interopRequireDefault(require("./model/UpdateClusterNodeGroupPayload"));
var _UpdateEnvironment = _interopRequireDefault(require("./model/UpdateEnvironment"));
-var _UpdateGPU = _interopRequireDefault(require("./model/UpdateGPU"));
var _UpdateKeypairName = _interopRequireDefault(require("./model/UpdateKeypairName"));
-var _UpdateKeypairnameresponse = _interopRequireDefault(require("./model/UpdateKeypairnameresponse"));
+var _UpdateKeypairNameResponse = _interopRequireDefault(require("./model/UpdateKeypairNameResponse"));
var _UpdateOrganizationPayload = _interopRequireDefault(require("./model/UpdateOrganizationPayload"));
var _UpdateOrganizationResponseModel = _interopRequireDefault(require("./model/UpdateOrganizationResponseModel"));
var _UpdateTemplate = _interopRequireDefault(require("./model/UpdateTemplate"));
+var _UpdateVolumeAttachmentPayload = _interopRequireDefault(require("./model/UpdateVolumeAttachmentPayload"));
+var _UpdateVolumePayload = _interopRequireDefault(require("./model/UpdateVolumePayload"));
+var _UpdateVolumeResponse = _interopRequireDefault(require("./model/UpdateVolumeResponse"));
var _UserDefaultChoiceForUserFields = _interopRequireDefault(require("./model/UserDefaultChoiceForUserFields"));
var _UserDefaultChoicesForUserResponse = _interopRequireDefault(require("./model/UserDefaultChoicesForUserResponse"));
+var _UserInfoPostPayload = _interopRequireDefault(require("./model/UserInfoPostPayload"));
+var _UserOrganizationsResponse = _interopRequireDefault(require("./model/UserOrganizationsResponse"));
var _UserPermissionFields = _interopRequireDefault(require("./model/UserPermissionFields"));
-var _UserTransferPayload = _interopRequireDefault(require("./model/UserTransferPayload"));
-var _Userinfopostpayload = _interopRequireDefault(require("./model/Userinfopostpayload"));
var _UsersInfoFields = _interopRequireDefault(require("./model/UsersInfoFields"));
var _UsersInfoListResponse = _interopRequireDefault(require("./model/UsersInfoListResponse"));
-var _VMUsageRequestPayload = _interopRequireDefault(require("./model/VMUsageRequestPayload"));
-var _VMUsageResponse = _interopRequireDefault(require("./model/VMUsageResponse"));
+var _VMQuota = _interopRequireDefault(require("./model/VMQuota"));
var _VNCURL = _interopRequireDefault(require("./model/VNCURL"));
var _VNCURLFields = _interopRequireDefault(require("./model/VNCURLFields"));
-var _VerifyApiKeyPayload = _interopRequireDefault(require("./model/VerifyApiKeyPayload"));
-var _VerifyApiKeyResponseModel = _interopRequireDefault(require("./model/VerifyApiKeyResponseModel"));
-var _VirtualMachineUsage = _interopRequireDefault(require("./model/VirtualMachineUsage"));
var _Volume = _interopRequireDefault(require("./model/Volume"));
var _VolumeAttachmentFields = _interopRequireDefault(require("./model/VolumeAttachmentFields"));
var _VolumeFields = _interopRequireDefault(require("./model/VolumeFields"));
-var _VolumeFieldsforInstance = _interopRequireDefault(require("./model/VolumeFieldsforInstance"));
+var _VolumeFieldsForInstance = _interopRequireDefault(require("./model/VolumeFieldsForInstance"));
var _VolumeOverviewFields = _interopRequireDefault(require("./model/VolumeOverviewFields"));
-var _VolumeStatusChangeFields = _interopRequireDefault(require("./model/VolumeStatusChangeFields"));
var _VolumeTypes = _interopRequireDefault(require("./model/VolumeTypes"));
var _Volumes = _interopRequireDefault(require("./model/Volumes"));
-var _VolumesLastStatusChangeResponse = _interopRequireDefault(require("./model/VolumesLastStatusChangeResponse"));
-var _WarningMailLogFields = _interopRequireDefault(require("./model/WarningMailLogFields"));
-var _WarningMailLogResponse = _interopRequireDefault(require("./model/WarningMailLogResponse"));
+var _VolumesFields = _interopRequireDefault(require("./model/VolumesFields"));
+var _Voucher = _interopRequireDefault(require("./model/Voucher"));
+var _VoucherRedeemResponseSchema = _interopRequireDefault(require("./model/VoucherRedeemResponseSchema"));
+var _WorkloadBillingHistoryResponse = _interopRequireDefault(require("./model/WorkloadBillingHistoryResponse"));
+var _AccessKeysApi = _interopRequireDefault(require("./api/AccessKeysApi"));
var _AliveApi = _interopRequireDefault(require("./api/AliveApi"));
var _ApiKeyApi = _interopRequireDefault(require("./api/ApiKeyApi"));
var _AssigningMemberRoleApi = _interopRequireDefault(require("./api/AssigningMemberRoleApi"));
var _AuthApi = _interopRequireDefault(require("./api/AuthApi"));
+var _BetaAccessApi = _interopRequireDefault(require("./api/BetaAccessApi"));
var _BillingApi = _interopRequireDefault(require("./api/BillingApi"));
+var _BucketsApi = _interopRequireDefault(require("./api/BucketsApi"));
var _CalculateApi = _interopRequireDefault(require("./api/CalculateApi"));
var _CallbacksApi = _interopRequireDefault(require("./api/CallbacksApi"));
var _ClusterEventsApi = _interopRequireDefault(require("./api/ClusterEventsApi"));
@@ -2697,15 +2531,18 @@ var _CustomerContractApi = _interopRequireDefault(require("./api/CustomerContrac
var _DashboardApi = _interopRequireDefault(require("./api/DashboardApi"));
var _DeploymentApi = _interopRequireDefault(require("./api/DeploymentApi"));
var _EnvironmentApi = _interopRequireDefault(require("./api/EnvironmentApi"));
+var _FIPExclusionsApi = _interopRequireDefault(require("./api/FIPExclusionsApi"));
var _FirewallAttachmentApi = _interopRequireDefault(require("./api/FirewallAttachmentApi"));
var _FirewallsApi = _interopRequireDefault(require("./api/FirewallsApi"));
var _FlavorApi = _interopRequireDefault(require("./api/FlavorApi"));
var _FloatingIpApi = _interopRequireDefault(require("./api/FloatingIpApi"));
var _GpuApi = _interopRequireDefault(require("./api/GpuApi"));
+var _HealthApi = _interopRequireDefault(require("./api/HealthApi"));
var _ImageApi = _interopRequireDefault(require("./api/ImageApi"));
var _InviteApi = _interopRequireDefault(require("./api/InviteApi"));
var _KeypairApi = _interopRequireDefault(require("./api/KeypairApi"));
var _OrganizationApi = _interopRequireDefault(require("./api/OrganizationApi"));
+var _PartnerConfigApi = _interopRequireDefault(require("./api/PartnerConfigApi"));
var _PaymentApi = _interopRequireDefault(require("./api/PaymentApi"));
var _PermissionApi = _interopRequireDefault(require("./api/PermissionApi"));
var _PolicyApi = _interopRequireDefault(require("./api/PolicyApi"));
@@ -2713,6 +2550,7 @@ var _PricebookApi = _interopRequireDefault(require("./api/PricebookApi"));
var _ProfileApi = _interopRequireDefault(require("./api/ProfileApi"));
var _RbacRoleApi = _interopRequireDefault(require("./api/RbacRoleApi"));
var _RegionApi = _interopRequireDefault(require("./api/RegionApi"));
+var _RegionsApi = _interopRequireDefault(require("./api/RegionsApi"));
var _SecurityRulesApi = _interopRequireDefault(require("./api/SecurityRulesApi"));
var _SnapshotEventsApi = _interopRequireDefault(require("./api/SnapshotEventsApi"));
var _SnapshotsApi = _interopRequireDefault(require("./api/SnapshotsApi"));
@@ -2726,4 +2564,5 @@ var _VirtualMachineEventsApi = _interopRequireDefault(require("./api/VirtualMach
var _VncUrlApi = _interopRequireDefault(require("./api/VncUrlApi"));
var _VolumeApi = _interopRequireDefault(require("./api/VolumeApi"));
var _VolumeAttachmentApi = _interopRequireDefault(require("./api/VolumeAttachmentApi"));
+var _VouchersApi = _interopRequireDefault(require("./api/VouchersApi"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
\ No newline at end of file
diff --git a/dist/model/AccessTokenField.js b/dist/model/AccessTokenField.js
new file mode 100644
index 00000000..4c837669
--- /dev/null
+++ b/dist/model/AccessTokenField.js
@@ -0,0 +1,89 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The AccessTokenField model module.
+ * @module model/AccessTokenField
+ * @version v1.51.1-alpha
+ */
+var AccessTokenField = /*#__PURE__*/function () {
+ /**
+ * Constructs a new AccessTokenField.
+ * @alias module:model/AccessTokenField
+ */
+ function AccessTokenField() {
+ _classCallCheck(this, AccessTokenField);
+ AccessTokenField.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(AccessTokenField, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a AccessTokenField from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/AccessTokenField} obj Optional instance to populate.
+ * @return {module:model/AccessTokenField} The populated AccessTokenField instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new AccessTokenField();
+ if (data.hasOwnProperty('access_token')) {
+ obj['access_token'] = _ApiClient["default"].convertToType(data['access_token'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to AccessTokenField.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to AccessTokenField.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['access_token'] && !(typeof data['access_token'] === 'string' || data['access_token'] instanceof String)) {
+ throw new Error("Expected the field `access_token` to be a primitive type in the JSON string but got " + data['access_token']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {String} access_token
+ */
+AccessTokenField.prototype['access_token'] = undefined;
+var _default = exports["default"] = AccessTokenField;
\ No newline at end of file
diff --git a/dist/model/AddUpdateFlavorOrganizationPayload.js b/dist/model/AddUpdateFlavorOrganizationPayload.js
deleted file mode 100644
index 8218c3ae..00000000
--- a/dist/model/AddUpdateFlavorOrganizationPayload.js
+++ /dev/null
@@ -1,242 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The AddUpdateFlavorOrganizationPayload model module.
- * @module model/AddUpdateFlavorOrganizationPayload
- * @version v1.25.0-alpha
- */
-var AddUpdateFlavorOrganizationPayload = /*#__PURE__*/function () {
- /**
- * Constructs a new AddUpdateFlavorOrganizationPayload.
- * @alias module:model/AddUpdateFlavorOrganizationPayload
- * @param cpu {Number}
- * @param disk {Number}
- * @param gpuCount {Number}
- * @param gpuId {Number}
- * @param isPublic {Boolean}
- * @param name {String}
- * @param openstackId {String}
- * @param organizations {Array.}
- * @param ram {Number}
- * @param regionId {Number}
- */
- function AddUpdateFlavorOrganizationPayload(cpu, disk, gpuCount, gpuId, isPublic, name, openstackId, organizations, ram, regionId) {
- _classCallCheck(this, AddUpdateFlavorOrganizationPayload);
- AddUpdateFlavorOrganizationPayload.initialize(this, cpu, disk, gpuCount, gpuId, isPublic, name, openstackId, organizations, ram, regionId);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(AddUpdateFlavorOrganizationPayload, null, [{
- key: "initialize",
- value: function initialize(obj, cpu, disk, gpuCount, gpuId, isPublic, name, openstackId, organizations, ram, regionId) {
- obj['cpu'] = cpu;
- obj['disk'] = disk;
- obj['gpu_count'] = gpuCount;
- obj['gpu_id'] = gpuId;
- obj['is_public'] = isPublic;
- obj['name'] = name;
- obj['openstack_id'] = openstackId;
- obj['organizations'] = organizations;
- obj['ram'] = ram;
- obj['region_id'] = regionId;
- }
-
- /**
- * Constructs a AddUpdateFlavorOrganizationPayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/AddUpdateFlavorOrganizationPayload} obj Optional instance to populate.
- * @return {module:model/AddUpdateFlavorOrganizationPayload} The populated AddUpdateFlavorOrganizationPayload instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new AddUpdateFlavorOrganizationPayload();
- if (data.hasOwnProperty('cpu')) {
- obj['cpu'] = _ApiClient["default"].convertToType(data['cpu'], 'Number');
- }
- if (data.hasOwnProperty('description')) {
- obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
- }
- if (data.hasOwnProperty('disk')) {
- obj['disk'] = _ApiClient["default"].convertToType(data['disk'], 'Number');
- }
- if (data.hasOwnProperty('ephemeral')) {
- obj['ephemeral'] = _ApiClient["default"].convertToType(data['ephemeral'], 'Number');
- }
- if (data.hasOwnProperty('gpu_count')) {
- obj['gpu_count'] = _ApiClient["default"].convertToType(data['gpu_count'], 'Number');
- }
- if (data.hasOwnProperty('gpu_id')) {
- obj['gpu_id'] = _ApiClient["default"].convertToType(data['gpu_id'], 'Number');
- }
- if (data.hasOwnProperty('is_public')) {
- obj['is_public'] = _ApiClient["default"].convertToType(data['is_public'], 'Boolean');
- }
- if (data.hasOwnProperty('labels')) {
- obj['labels'] = _ApiClient["default"].convertToType(data['labels'], ['String']);
- }
- if (data.hasOwnProperty('name')) {
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
- }
- if (data.hasOwnProperty('openstack_id')) {
- obj['openstack_id'] = _ApiClient["default"].convertToType(data['openstack_id'], 'String');
- }
- if (data.hasOwnProperty('organizations')) {
- obj['organizations'] = _ApiClient["default"].convertToType(data['organizations'], ['Number']);
- }
- if (data.hasOwnProperty('ram')) {
- obj['ram'] = _ApiClient["default"].convertToType(data['ram'], 'Number');
- }
- if (data.hasOwnProperty('region_id')) {
- obj['region_id'] = _ApiClient["default"].convertToType(data['region_id'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to AddUpdateFlavorOrganizationPayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to AddUpdateFlavorOrganizationPayload.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- var _iterator = _createForOfIteratorHelper(AddUpdateFlavorOrganizationPayload.RequiredProperties),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var property = _step.value;
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
- }
- // ensure the json data is an array
- if (!Array.isArray(data['labels'])) {
- throw new Error("Expected the field `labels` to be an array in the JSON data but got " + data['labels']);
- }
- // ensure the json data is a string
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
- }
- // ensure the json data is a string
- if (data['openstack_id'] && !(typeof data['openstack_id'] === 'string' || data['openstack_id'] instanceof String)) {
- throw new Error("Expected the field `openstack_id` to be a primitive type in the JSON string but got " + data['openstack_id']);
- }
- // ensure the json data is an array
- if (!Array.isArray(data['organizations'])) {
- throw new Error("Expected the field `organizations` to be an array in the JSON data but got " + data['organizations']);
- }
- return true;
- }
- }]);
-}();
-AddUpdateFlavorOrganizationPayload.RequiredProperties = ["cpu", "disk", "gpu_count", "gpu_id", "is_public", "name", "openstack_id", "organizations", "ram", "region_id"];
-
-/**
- * @member {Number} cpu
- */
-AddUpdateFlavorOrganizationPayload.prototype['cpu'] = undefined;
-
-/**
- * @member {String} description
- */
-AddUpdateFlavorOrganizationPayload.prototype['description'] = undefined;
-
-/**
- * @member {Number} disk
- */
-AddUpdateFlavorOrganizationPayload.prototype['disk'] = undefined;
-
-/**
- * @member {Number} ephemeral
- */
-AddUpdateFlavorOrganizationPayload.prototype['ephemeral'] = undefined;
-
-/**
- * @member {Number} gpu_count
- */
-AddUpdateFlavorOrganizationPayload.prototype['gpu_count'] = undefined;
-
-/**
- * @member {Number} gpu_id
- */
-AddUpdateFlavorOrganizationPayload.prototype['gpu_id'] = undefined;
-
-/**
- * @member {Boolean} is_public
- */
-AddUpdateFlavorOrganizationPayload.prototype['is_public'] = undefined;
-
-/**
- * @member {Array.} labels
- */
-AddUpdateFlavorOrganizationPayload.prototype['labels'] = undefined;
-
-/**
- * @member {String} name
- */
-AddUpdateFlavorOrganizationPayload.prototype['name'] = undefined;
-
-/**
- * @member {String} openstack_id
- */
-AddUpdateFlavorOrganizationPayload.prototype['openstack_id'] = undefined;
-
-/**
- * @member {Array.} organizations
- */
-AddUpdateFlavorOrganizationPayload.prototype['organizations'] = undefined;
-
-/**
- * @member {Number} ram
- */
-AddUpdateFlavorOrganizationPayload.prototype['ram'] = undefined;
-
-/**
- * @member {Number} region_id
- */
-AddUpdateFlavorOrganizationPayload.prototype['region_id'] = undefined;
-var _default = exports["default"] = AddUpdateFlavorOrganizationPayload;
\ No newline at end of file
diff --git a/dist/model/AddUserInfoSuccessResponseModel.js b/dist/model/AddUserInfoSuccessResponseModel.js
index ec3dd005..35f0c5a3 100644
--- a/dist/model/AddUserInfoSuccessResponseModel.js
+++ b/dist/model/AddUserInfoSuccessResponseModel.js
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The AddUserInfoSuccessResponseModel model module.
* @module model/AddUserInfoSuccessResponseModel
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var AddUserInfoSuccessResponseModel = /*#__PURE__*/function () {
/**
diff --git a/dist/model/AllocatedGPUCountGraph.js b/dist/model/AllocatedGPUCountGraph.js
index c0c4869c..f2098d8f 100644
--- a/dist/model/AllocatedGPUCountGraph.js
+++ b/dist/model/AllocatedGPUCountGraph.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The AllocatedGPUCountGraph model module.
* @module model/AllocatedGPUCountGraph
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var AllocatedGPUCountGraph = /*#__PURE__*/function () {
/**
diff --git a/dist/model/ApiKeyFields.js b/dist/model/ApiKeyFields.js
index 8a6bbd12..50df8ab1 100644
--- a/dist/model/ApiKeyFields.js
+++ b/dist/model/ApiKeyFields.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The ApiKeyFields model module.
* @module model/ApiKeyFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var ApiKeyFields = /*#__PURE__*/function () {
/**
diff --git a/dist/model/ApiKeyVerifyFields.js b/dist/model/ApiKeyVerifyFields.js
deleted file mode 100644
index fc48e8d2..00000000
--- a/dist/model/ApiKeyVerifyFields.js
+++ /dev/null
@@ -1,117 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The ApiKeyVerifyFields model module.
- * @module model/ApiKeyVerifyFields
- * @version v1.25.0-alpha
- */
-var ApiKeyVerifyFields = /*#__PURE__*/function () {
- /**
- * Constructs a new ApiKeyVerifyFields.
- * @alias module:model/ApiKeyVerifyFields
- */
- function ApiKeyVerifyFields() {
- _classCallCheck(this, ApiKeyVerifyFields);
- ApiKeyVerifyFields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(ApiKeyVerifyFields, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a ApiKeyVerifyFields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ApiKeyVerifyFields} obj Optional instance to populate.
- * @return {module:model/ApiKeyVerifyFields} The populated ApiKeyVerifyFields instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ApiKeyVerifyFields();
- if (data.hasOwnProperty('org_id')) {
- obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
- }
- if (data.hasOwnProperty('sub')) {
- obj['sub'] = _ApiClient["default"].convertToType(data['sub'], 'String');
- }
- if (data.hasOwnProperty('user_id')) {
- obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
- }
- if (data.hasOwnProperty('user_role')) {
- obj['user_role'] = _ApiClient["default"].convertToType(data['user_role'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ApiKeyVerifyFields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ApiKeyVerifyFields.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is a string
- if (data['sub'] && !(typeof data['sub'] === 'string' || data['sub'] instanceof String)) {
- throw new Error("Expected the field `sub` to be a primitive type in the JSON string but got " + data['sub']);
- }
- // ensure the json data is a string
- if (data['user_role'] && !(typeof data['user_role'] === 'string' || data['user_role'] instanceof String)) {
- throw new Error("Expected the field `user_role` to be a primitive type in the JSON string but got " + data['user_role']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {Number} org_id
- */
-ApiKeyVerifyFields.prototype['org_id'] = undefined;
-
-/**
- * @member {String} sub
- */
-ApiKeyVerifyFields.prototype['sub'] = undefined;
-
-/**
- * @member {Number} user_id
- */
-ApiKeyVerifyFields.prototype['user_id'] = undefined;
-
-/**
- * @member {String} user_role
- */
-ApiKeyVerifyFields.prototype['user_role'] = undefined;
-var _default = exports["default"] = ApiKeyVerifyFields;
\ No newline at end of file
diff --git a/dist/model/AssignRbacRolePayload.js b/dist/model/AssignRbacRolePayload.js
index 5cb5899b..234ec6ee 100644
--- a/dist/model/AssignRbacRolePayload.js
+++ b/dist/model/AssignRbacRolePayload.js
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The AssignRbacRolePayload model module.
* @module model/AssignRbacRolePayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var AssignRbacRolePayload = /*#__PURE__*/function () {
/**
diff --git a/dist/model/AttachCallbackPayload.js b/dist/model/AttachCallbackPayload.js
index f82ac2b3..e5436c82 100644
--- a/dist/model/AttachCallbackPayload.js
+++ b/dist/model/AttachCallbackPayload.js
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The AttachCallbackPayload model module.
* @module model/AttachCallbackPayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var AttachCallbackPayload = /*#__PURE__*/function () {
/**
diff --git a/dist/model/AttachCallbackResponse.js b/dist/model/AttachCallbackResponse.js
index e556390b..4f5ceae0 100644
--- a/dist/model/AttachCallbackResponse.js
+++ b/dist/model/AttachCallbackResponse.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The AttachCallbackResponse model module.
* @module model/AttachCallbackResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var AttachCallbackResponse = /*#__PURE__*/function () {
/**
diff --git a/dist/model/AttachFirewallWithVM.js b/dist/model/AttachFirewallWithVM.js
index f403a387..dfd2a066 100644
--- a/dist/model/AttachFirewallWithVM.js
+++ b/dist/model/AttachFirewallWithVM.js
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The AttachFirewallWithVM model module.
* @module model/AttachFirewallWithVM
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var AttachFirewallWithVM = /*#__PURE__*/function () {
/**
diff --git a/dist/model/AttachFirewallsToVMPayload.js b/dist/model/AttachFirewallsToVMPayload.js
index 5feac6f9..ab2b9fea 100644
--- a/dist/model/AttachFirewallsToVMPayload.js
+++ b/dist/model/AttachFirewallsToVMPayload.js
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The AttachFirewallsToVMPayload model module.
* @module model/AttachFirewallsToVMPayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var AttachFirewallsToVMPayload = /*#__PURE__*/function () {
/**
diff --git a/dist/model/AttachVolumeFields.js b/dist/model/AttachVolumeFields.js
index d6461c28..dca290d8 100644
--- a/dist/model/AttachVolumeFields.js
+++ b/dist/model/AttachVolumeFields.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The AttachVolumeFields model module.
* @module model/AttachVolumeFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var AttachVolumeFields = /*#__PURE__*/function () {
/**
@@ -62,12 +62,18 @@ var AttachVolumeFields = /*#__PURE__*/function () {
if (data.hasOwnProperty('created_at')) {
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
}
+ if (data.hasOwnProperty('device')) {
+ obj['device'] = _ApiClient["default"].convertToType(data['device'], 'String');
+ }
if (data.hasOwnProperty('id')) {
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('instance_id')) {
obj['instance_id'] = _ApiClient["default"].convertToType(data['instance_id'], 'Number');
}
+ if (data.hasOwnProperty('protected')) {
+ obj['protected'] = _ApiClient["default"].convertToType(data['protected'], 'Boolean');
+ }
if (data.hasOwnProperty('status')) {
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
}
@@ -86,6 +92,10 @@ var AttachVolumeFields = /*#__PURE__*/function () {
}, {
key: "validateJSON",
value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['device'] && !(typeof data['device'] === 'string' || data['device'] instanceof String)) {
+ throw new Error("Expected the field `device` to be a primitive type in the JSON string but got " + data['device']);
+ }
// ensure the json data is a string
if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
@@ -99,6 +109,11 @@ var AttachVolumeFields = /*#__PURE__*/function () {
*/
AttachVolumeFields.prototype['created_at'] = undefined;
+/**
+ * @member {String} device
+ */
+AttachVolumeFields.prototype['device'] = undefined;
+
/**
* @member {Number} id
*/
@@ -109,6 +124,11 @@ AttachVolumeFields.prototype['id'] = undefined;
*/
AttachVolumeFields.prototype['instance_id'] = undefined;
+/**
+ * @member {Boolean} protected
+ */
+AttachVolumeFields.prototype['protected'] = undefined;
+
/**
* @member {String} status
*/
diff --git a/dist/model/AttachVolumes.js b/dist/model/AttachVolumes.js
index 99eadf14..16d0194f 100644
--- a/dist/model/AttachVolumes.js
+++ b/dist/model/AttachVolumes.js
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The AttachVolumes model module.
* @module model/AttachVolumes
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var AttachVolumes = /*#__PURE__*/function () {
/**
diff --git a/dist/model/AttachVolumesPayload.js b/dist/model/AttachVolumesPayload.js
index 460dcbb0..7bddcd0a 100644
--- a/dist/model/AttachVolumesPayload.js
+++ b/dist/model/AttachVolumesPayload.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The AttachVolumesPayload model module.
* @module model/AttachVolumesPayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var AttachVolumesPayload = /*#__PURE__*/function () {
/**
@@ -45,7 +45,9 @@ var AttachVolumesPayload = /*#__PURE__*/function () {
*/
return _createClass(AttachVolumesPayload, null, [{
key: "initialize",
- value: function initialize(obj) {}
+ value: function initialize(obj) {
+ obj['protected'] = false;
+ }
/**
* Constructs a AttachVolumesPayload from a plain JavaScript object, optionally creating a new instance.
@@ -59,6 +61,9 @@ var AttachVolumesPayload = /*#__PURE__*/function () {
value: function constructFromObject(data, obj) {
if (data) {
obj = obj || new AttachVolumesPayload();
+ if (data.hasOwnProperty('protected')) {
+ obj['protected'] = _ApiClient["default"].convertToType(data['protected'], 'Boolean');
+ }
if (data.hasOwnProperty('volume_ids')) {
obj['volume_ids'] = _ApiClient["default"].convertToType(data['volume_ids'], ['Number']);
}
@@ -82,6 +87,12 @@ var AttachVolumesPayload = /*#__PURE__*/function () {
}
}]);
}();
+/**
+ * @member {Boolean} protected
+ * @default false
+ */
+AttachVolumesPayload.prototype['protected'] = false;
+
/**
* @member {Array.} volume_ids
*/
diff --git a/dist/model/AttachmentsFieldsForVolume.js b/dist/model/AttachmentsFieldsForVolume.js
new file mode 100644
index 00000000..005fb472
--- /dev/null
+++ b/dist/model/AttachmentsFieldsForVolume.js
@@ -0,0 +1,125 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The AttachmentsFieldsForVolume model module.
+ * @module model/AttachmentsFieldsForVolume
+ * @version v1.51.1-alpha
+ */
+var AttachmentsFieldsForVolume = /*#__PURE__*/function () {
+ /**
+ * Constructs a new AttachmentsFieldsForVolume.
+ * @alias module:model/AttachmentsFieldsForVolume
+ */
+ function AttachmentsFieldsForVolume() {
+ _classCallCheck(this, AttachmentsFieldsForVolume);
+ AttachmentsFieldsForVolume.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(AttachmentsFieldsForVolume, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a AttachmentsFieldsForVolume from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/AttachmentsFieldsForVolume} obj Optional instance to populate.
+ * @return {module:model/AttachmentsFieldsForVolume} The populated AttachmentsFieldsForVolume instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new AttachmentsFieldsForVolume();
+ if (data.hasOwnProperty('device')) {
+ obj['device'] = _ApiClient["default"].convertToType(data['device'], 'String');
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('instance_id')) {
+ obj['instance_id'] = _ApiClient["default"].convertToType(data['instance_id'], 'Number');
+ }
+ if (data.hasOwnProperty('protected')) {
+ obj['protected'] = _ApiClient["default"].convertToType(data['protected'], 'Boolean');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to AttachmentsFieldsForVolume.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to AttachmentsFieldsForVolume.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['device'] && !(typeof data['device'] === 'string' || data['device'] instanceof String)) {
+ throw new Error("Expected the field `device` to be a primitive type in the JSON string but got " + data['device']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {String} device
+ */
+AttachmentsFieldsForVolume.prototype['device'] = undefined;
+
+/**
+ * @member {Number} id
+ */
+AttachmentsFieldsForVolume.prototype['id'] = undefined;
+
+/**
+ * @member {Number} instance_id
+ */
+AttachmentsFieldsForVolume.prototype['instance_id'] = undefined;
+
+/**
+ * @member {Boolean} protected
+ */
+AttachmentsFieldsForVolume.prototype['protected'] = undefined;
+
+/**
+ * @member {String} status
+ */
+AttachmentsFieldsForVolume.prototype['status'] = undefined;
+var _default = exports["default"] = AttachmentsFieldsForVolume;
\ No newline at end of file
diff --git a/dist/model/Attributes.js b/dist/model/Attributes.js
new file mode 100644
index 00000000..ada7b7a7
--- /dev/null
+++ b/dist/model/Attributes.js
@@ -0,0 +1,151 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The Attributes model module.
+ * @module model/Attributes
+ * @version v1.51.1-alpha
+ */
+var Attributes = /*#__PURE__*/function () {
+ /**
+ * Constructs a new Attributes.
+ * @alias module:model/Attributes
+ */
+ function Attributes() {
+ _classCallCheck(this, Attributes);
+ Attributes.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(Attributes, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a Attributes from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Attributes} obj Optional instance to populate.
+ * @return {module:model/Attributes} The populated Attributes instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new Attributes();
+ if (data.hasOwnProperty('base_model')) {
+ obj['base_model'] = _ApiClient["default"].convertToType(data['base_model'], 'String');
+ }
+ if (data.hasOwnProperty('base_model_display_name')) {
+ obj['base_model_display_name'] = _ApiClient["default"].convertToType(data['base_model_display_name'], 'String');
+ }
+ if (data.hasOwnProperty('infrahub_id')) {
+ obj['infrahub_id'] = _ApiClient["default"].convertToType(data['infrahub_id'], 'Number');
+ }
+ if (data.hasOwnProperty('lora_adapter')) {
+ obj['lora_adapter'] = _ApiClient["default"].convertToType(data['lora_adapter'], 'String');
+ }
+ if (data.hasOwnProperty('resource_name')) {
+ obj['resource_name'] = _ApiClient["default"].convertToType(data['resource_name'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to Attributes.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to Attributes.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['base_model'] && !(typeof data['base_model'] === 'string' || data['base_model'] instanceof String)) {
+ throw new Error("Expected the field `base_model` to be a primitive type in the JSON string but got " + data['base_model']);
+ }
+ // ensure the json data is a string
+ if (data['base_model_display_name'] && !(typeof data['base_model_display_name'] === 'string' || data['base_model_display_name'] instanceof String)) {
+ throw new Error("Expected the field `base_model_display_name` to be a primitive type in the JSON string but got " + data['base_model_display_name']);
+ }
+ // ensure the json data is a string
+ if (data['lora_adapter'] && !(typeof data['lora_adapter'] === 'string' || data['lora_adapter'] instanceof String)) {
+ throw new Error("Expected the field `lora_adapter` to be a primitive type in the JSON string but got " + data['lora_adapter']);
+ }
+ // ensure the json data is a string
+ if (data['resource_name'] && !(typeof data['resource_name'] === 'string' || data['resource_name'] instanceof String)) {
+ throw new Error("Expected the field `resource_name` to be a primitive type in the JSON string but got " + data['resource_name']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ *
+ * @member {String} base_model
+ */
+Attributes.prototype['base_model'] = undefined;
+
+/**
+ *
+ * @member {String} base_model_display_name
+ */
+Attributes.prototype['base_model_display_name'] = undefined;
+
+/**
+ *
+ * @member {Number} infrahub_id
+ */
+Attributes.prototype['infrahub_id'] = undefined;
+
+/**
+ *
+ * @member {String} lora_adapter
+ */
+Attributes.prototype['lora_adapter'] = undefined;
+
+/**
+ *
+ * @member {String} resource_name
+ */
+Attributes.prototype['resource_name'] = undefined;
+
+/**
+ *
+ * @member {String} status
+ */
+Attributes.prototype['status'] = undefined;
+var _default = exports["default"] = Attributes;
\ No newline at end of file
diff --git a/dist/model/AuthGetTokenResponseModel.js b/dist/model/AuthGetTokenResponseModel.js
index f67825f6..6f5ce158 100644
--- a/dist/model/AuthGetTokenResponseModel.js
+++ b/dist/model/AuthGetTokenResponseModel.js
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
});
exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _TokenFields = _interopRequireDefault(require("./TokenFields"));
+var _AccessTokenField = _interopRequireDefault(require("./AccessTokenField"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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); }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The AuthGetTokenResponseModel model module.
* @module model/AuthGetTokenResponseModel
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var AuthGetTokenResponseModel = /*#__PURE__*/function () {
/**
@@ -60,9 +60,6 @@ var AuthGetTokenResponseModel = /*#__PURE__*/function () {
value: function constructFromObject(data, obj) {
if (data) {
obj = obj || new AuthGetTokenResponseModel();
- if (data.hasOwnProperty('first_login')) {
- obj['first_login'] = _ApiClient["default"].convertToType(data['first_login'], 'Boolean');
- }
if (data.hasOwnProperty('message')) {
obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
}
@@ -70,7 +67,7 @@ var AuthGetTokenResponseModel = /*#__PURE__*/function () {
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
}
if (data.hasOwnProperty('token')) {
- obj['token'] = _TokenFields["default"].constructFromObject(data['token']);
+ obj['token'] = _AccessTokenField["default"].constructFromObject(data['token']);
}
}
return obj;
@@ -91,17 +88,12 @@ var AuthGetTokenResponseModel = /*#__PURE__*/function () {
// validate the optional field `token`
if (data['token']) {
// data not null
- _TokenFields["default"].validateJSON(data['token']);
+ _AccessTokenField["default"].validateJSON(data['token']);
}
return true;
}
}]);
}();
-/**
- * @member {Boolean} first_login
- */
-AuthGetTokenResponseModel.prototype['first_login'] = undefined;
-
/**
* @member {String} message
*/
@@ -113,7 +105,7 @@ AuthGetTokenResponseModel.prototype['message'] = undefined;
AuthGetTokenResponseModel.prototype['status'] = undefined;
/**
- * @member {module:model/TokenFields} token
+ * @member {module:model/AccessTokenField} token
*/
AuthGetTokenResponseModel.prototype['token'] = undefined;
var _default = exports["default"] = AuthGetTokenResponseModel;
\ No newline at end of file
diff --git a/dist/model/AuthRequestLoginFields.js b/dist/model/AuthRequestLoginFields.js
deleted file mode 100644
index 9706999e..00000000
--- a/dist/model/AuthRequestLoginFields.js
+++ /dev/null
@@ -1,101 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The AuthRequestLoginFields model module.
- * @module model/AuthRequestLoginFields
- * @version v1.25.0-alpha
- */
-var AuthRequestLoginFields = /*#__PURE__*/function () {
- /**
- * Constructs a new AuthRequestLoginFields.
- * @alias module:model/AuthRequestLoginFields
- */
- function AuthRequestLoginFields() {
- _classCallCheck(this, AuthRequestLoginFields);
- AuthRequestLoginFields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(AuthRequestLoginFields, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a AuthRequestLoginFields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/AuthRequestLoginFields} obj Optional instance to populate.
- * @return {module:model/AuthRequestLoginFields} The populated AuthRequestLoginFields instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new AuthRequestLoginFields();
- if (data.hasOwnProperty('authorization_url')) {
- obj['authorization_url'] = _ApiClient["default"].convertToType(data['authorization_url'], 'String');
- }
- if (data.hasOwnProperty('session_id')) {
- obj['session_id'] = _ApiClient["default"].convertToType(data['session_id'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to AuthRequestLoginFields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to AuthRequestLoginFields.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is a string
- if (data['authorization_url'] && !(typeof data['authorization_url'] === 'string' || data['authorization_url'] instanceof String)) {
- throw new Error("Expected the field `authorization_url` to be a primitive type in the JSON string but got " + data['authorization_url']);
- }
- // ensure the json data is a string
- if (data['session_id'] && !(typeof data['session_id'] === 'string' || data['session_id'] instanceof String)) {
- throw new Error("Expected the field `session_id` to be a primitive type in the JSON string but got " + data['session_id']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {String} authorization_url
- */
-AuthRequestLoginFields.prototype['authorization_url'] = undefined;
-
-/**
- * @member {String} session_id
- */
-AuthRequestLoginFields.prototype['session_id'] = undefined;
-var _default = exports["default"] = AuthRequestLoginFields;
\ No newline at end of file
diff --git a/dist/model/AuthRequestLoginResponseModel.js b/dist/model/AuthRequestLoginResponseModel.js
deleted file mode 100644
index 33d36bcb..00000000
--- a/dist/model/AuthRequestLoginResponseModel.js
+++ /dev/null
@@ -1,111 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _AuthRequestLoginFields = _interopRequireDefault(require("./AuthRequestLoginFields"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The AuthRequestLoginResponseModel model module.
- * @module model/AuthRequestLoginResponseModel
- * @version v1.25.0-alpha
- */
-var AuthRequestLoginResponseModel = /*#__PURE__*/function () {
- /**
- * Constructs a new AuthRequestLoginResponseModel.
- * @alias module:model/AuthRequestLoginResponseModel
- */
- function AuthRequestLoginResponseModel() {
- _classCallCheck(this, AuthRequestLoginResponseModel);
- AuthRequestLoginResponseModel.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(AuthRequestLoginResponseModel, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a AuthRequestLoginResponseModel from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/AuthRequestLoginResponseModel} obj Optional instance to populate.
- * @return {module:model/AuthRequestLoginResponseModel} The populated AuthRequestLoginResponseModel instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new AuthRequestLoginResponseModel();
- if (data.hasOwnProperty('data')) {
- obj['data'] = _AuthRequestLoginFields["default"].constructFromObject(data['data']);
- }
- if (data.hasOwnProperty('message')) {
- obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to AuthRequestLoginResponseModel.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to AuthRequestLoginResponseModel.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // validate the optional field `data`
- if (data['data']) {
- // data not null
- _AuthRequestLoginFields["default"].validateJSON(data['data']);
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {module:model/AuthRequestLoginFields} data
- */
-AuthRequestLoginResponseModel.prototype['data'] = undefined;
-
-/**
- * @member {String} message
- */
-AuthRequestLoginResponseModel.prototype['message'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-AuthRequestLoginResponseModel.prototype['status'] = undefined;
-var _default = exports["default"] = AuthRequestLoginResponseModel;
\ No newline at end of file
diff --git a/dist/model/AuthUserFields.js b/dist/model/AuthUserFields.js
index 179c3b21..e855f227 100644
--- a/dist/model/AuthUserFields.js
+++ b/dist/model/AuthUserFields.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The AuthUserFields model module.
* @module model/AuthUserFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var AuthUserFields = /*#__PURE__*/function () {
/**
diff --git a/dist/model/AuthUserInfoResponseModel.js b/dist/model/AuthUserInfoResponseModel.js
index 296f4849..523d1bc0 100644
--- a/dist/model/AuthUserInfoResponseModel.js
+++ b/dist/model/AuthUserInfoResponseModel.js
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The AuthUserInfoResponseModel model module.
* @module model/AuthUserInfoResponseModel
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var AuthUserInfoResponseModel = /*#__PURE__*/function () {
/**
diff --git a/dist/model/BetaAccessRequestFields.js b/dist/model/BetaAccessRequestFields.js
new file mode 100644
index 00000000..a6b6cfda
--- /dev/null
+++ b/dist/model/BetaAccessRequestFields.js
@@ -0,0 +1,167 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The BetaAccessRequestFields model module.
+ * @module model/BetaAccessRequestFields
+ * @version v1.51.1-alpha
+ */
+var BetaAccessRequestFields = /*#__PURE__*/function () {
+ /**
+ * Constructs a new BetaAccessRequestFields.
+ * @alias module:model/BetaAccessRequestFields
+ */
+ function BetaAccessRequestFields() {
+ _classCallCheck(this, BetaAccessRequestFields);
+ BetaAccessRequestFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(BetaAccessRequestFields, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a BetaAccessRequestFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BetaAccessRequestFields} obj Optional instance to populate.
+ * @return {module:model/BetaAccessRequestFields} The populated BetaAccessRequestFields instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BetaAccessRequestFields();
+ if (data.hasOwnProperty('created_at')) {
+ obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('program_id')) {
+ obj['program_id'] = _ApiClient["default"].convertToType(data['program_id'], 'Number');
+ }
+ if (data.hasOwnProperty('program_name')) {
+ obj['program_name'] = _ApiClient["default"].convertToType(data['program_name'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
+ }
+ if (data.hasOwnProperty('user_id')) {
+ obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BetaAccessRequestFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BetaAccessRequestFields.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['program_name'] && !(typeof data['program_name'] === 'string' || data['program_name'] instanceof String)) {
+ throw new Error("Expected the field `program_name` to be a primitive type in the JSON string but got " + data['program_name']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * When the request was made
+ * @member {Date} created_at
+ */
+BetaAccessRequestFields.prototype['created_at'] = undefined;
+
+/**
+ * Unique identifier for the request
+ * @member {Number} id
+ */
+BetaAccessRequestFields.prototype['id'] = undefined;
+
+/**
+ * ID of the beta program
+ * @member {Number} program_id
+ */
+BetaAccessRequestFields.prototype['program_id'] = undefined;
+
+/**
+ * Name of the beta program
+ * @member {String} program_name
+ */
+BetaAccessRequestFields.prototype['program_name'] = undefined;
+
+/**
+ * Status of the request
+ * @member {module:model/BetaAccessRequestFields.StatusEnum} status
+ */
+BetaAccessRequestFields.prototype['status'] = undefined;
+
+/**
+ * ID of the user who made the request
+ * @member {Number} user_id
+ */
+BetaAccessRequestFields.prototype['user_id'] = undefined;
+
+/**
+ * Allowed values for the status property.
+ * @enum {String}
+ * @readonly
+ */
+BetaAccessRequestFields['StatusEnum'] = {
+ /**
+ * value: "requested"
+ * @const
+ */
+ "requested": "requested",
+ /**
+ * value: "approved"
+ * @const
+ */
+ "approved": "approved",
+ /**
+ * value: "denied"
+ * @const
+ */
+ "denied": "denied",
+ /**
+ * value: "revoked"
+ * @const
+ */
+ "revoked": "revoked"
+};
+var _default = exports["default"] = BetaAccessRequestFields;
\ No newline at end of file
diff --git a/dist/model/BetaAccessRequestPayload.js b/dist/model/BetaAccessRequestPayload.js
new file mode 100644
index 00000000..8d506fab
--- /dev/null
+++ b/dist/model/BetaAccessRequestPayload.js
@@ -0,0 +1,122 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
+function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
+function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The BetaAccessRequestPayload model module.
+ * @module model/BetaAccessRequestPayload
+ * @version v1.51.1-alpha
+ */
+var BetaAccessRequestPayload = /*#__PURE__*/function () {
+ /**
+ * Constructs a new BetaAccessRequestPayload.
+ * @alias module:model/BetaAccessRequestPayload
+ * @param program {String} Name of the beta program
+ */
+ function BetaAccessRequestPayload(program) {
+ _classCallCheck(this, BetaAccessRequestPayload);
+ BetaAccessRequestPayload.initialize(this, program);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(BetaAccessRequestPayload, null, [{
+ key: "initialize",
+ value: function initialize(obj, program) {
+ obj['program'] = program;
+ }
+
+ /**
+ * Constructs a BetaAccessRequestPayload from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BetaAccessRequestPayload} obj Optional instance to populate.
+ * @return {module:model/BetaAccessRequestPayload} The populated BetaAccessRequestPayload instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BetaAccessRequestPayload();
+ if (data.hasOwnProperty('metadata')) {
+ obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object);
+ }
+ if (data.hasOwnProperty('program')) {
+ obj['program'] = _ApiClient["default"].convertToType(data['program'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BetaAccessRequestPayload.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BetaAccessRequestPayload.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // check to make sure all required properties are present in the JSON string
+ var _iterator = _createForOfIteratorHelper(BetaAccessRequestPayload.RequiredProperties),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var property = _step.value;
+ if (!data.hasOwnProperty(property)) {
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
+ }
+ }
+ // ensure the json data is a string
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ if (data['program'] && !(typeof data['program'] === 'string' || data['program'] instanceof String)) {
+ throw new Error("Expected the field `program` to be a primitive type in the JSON string but got " + data['program']);
+ }
+ return true;
+ }
+ }]);
+}();
+BetaAccessRequestPayload.RequiredProperties = ["program"];
+
+/**
+ * Optional metadata for the request
+ * @member {Object} metadata
+ */
+BetaAccessRequestPayload.prototype['metadata'] = undefined;
+
+/**
+ * Name of the beta program
+ * @member {String} program
+ */
+BetaAccessRequestPayload.prototype['program'] = undefined;
+var _default = exports["default"] = BetaAccessRequestPayload;
\ No newline at end of file
diff --git a/dist/model/BetaAccessRequestResponseModel.js b/dist/model/BetaAccessRequestResponseModel.js
new file mode 100644
index 00000000..5a7ef595
--- /dev/null
+++ b/dist/model/BetaAccessRequestResponseModel.js
@@ -0,0 +1,111 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _BetaAccessRequestFields = _interopRequireDefault(require("./BetaAccessRequestFields"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The BetaAccessRequestResponseModel model module.
+ * @module model/BetaAccessRequestResponseModel
+ * @version v1.51.1-alpha
+ */
+var BetaAccessRequestResponseModel = /*#__PURE__*/function () {
+ /**
+ * Constructs a new BetaAccessRequestResponseModel.
+ * @alias module:model/BetaAccessRequestResponseModel
+ */
+ function BetaAccessRequestResponseModel() {
+ _classCallCheck(this, BetaAccessRequestResponseModel);
+ BetaAccessRequestResponseModel.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(BetaAccessRequestResponseModel, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a BetaAccessRequestResponseModel from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BetaAccessRequestResponseModel} obj Optional instance to populate.
+ * @return {module:model/BetaAccessRequestResponseModel} The populated BetaAccessRequestResponseModel instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BetaAccessRequestResponseModel();
+ if (data.hasOwnProperty('beta_access_request')) {
+ obj['beta_access_request'] = _BetaAccessRequestFields["default"].constructFromObject(data['beta_access_request']);
+ }
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BetaAccessRequestResponseModel.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BetaAccessRequestResponseModel.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // validate the optional field `beta_access_request`
+ if (data['beta_access_request']) {
+ // data not null
+ _BetaAccessRequestFields["default"].validateJSON(data['beta_access_request']);
+ }
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {module:model/BetaAccessRequestFields} beta_access_request
+ */
+BetaAccessRequestResponseModel.prototype['beta_access_request'] = undefined;
+
+/**
+ * @member {String} message
+ */
+BetaAccessRequestResponseModel.prototype['message'] = undefined;
+
+/**
+ * @member {Boolean} status
+ */
+BetaAccessRequestResponseModel.prototype['status'] = undefined;
+var _default = exports["default"] = BetaAccessRequestResponseModel;
\ No newline at end of file
diff --git a/dist/model/BetaAccessStatusItem.js b/dist/model/BetaAccessStatusItem.js
new file mode 100644
index 00000000..240cc703
--- /dev/null
+++ b/dist/model/BetaAccessStatusItem.js
@@ -0,0 +1,140 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The BetaAccessStatusItem model module.
+ * @module model/BetaAccessStatusItem
+ * @version v1.51.1-alpha
+ */
+var BetaAccessStatusItem = /*#__PURE__*/function () {
+ /**
+ * Constructs a new BetaAccessStatusItem.
+ * @alias module:model/BetaAccessStatusItem
+ */
+ function BetaAccessStatusItem() {
+ _classCallCheck(this, BetaAccessStatusItem);
+ BetaAccessStatusItem.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(BetaAccessStatusItem, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a BetaAccessStatusItem from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BetaAccessStatusItem} obj Optional instance to populate.
+ * @return {module:model/BetaAccessStatusItem} The populated BetaAccessStatusItem instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BetaAccessStatusItem();
+ if (data.hasOwnProperty('program_name')) {
+ obj['program_name'] = _ApiClient["default"].convertToType(data['program_name'], 'String');
+ }
+ if (data.hasOwnProperty('request_date')) {
+ obj['request_date'] = _ApiClient["default"].convertToType(data['request_date'], 'Date');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BetaAccessStatusItem.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BetaAccessStatusItem.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['program_name'] && !(typeof data['program_name'] === 'string' || data['program_name'] instanceof String)) {
+ throw new Error("Expected the field `program_name` to be a primitive type in the JSON string but got " + data['program_name']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * Name of the beta program
+ * @member {String} program_name
+ */
+BetaAccessStatusItem.prototype['program_name'] = undefined;
+
+/**
+ * When the request was made
+ * @member {Date} request_date
+ */
+BetaAccessStatusItem.prototype['request_date'] = undefined;
+
+/**
+ * Status of the request (requested, approved, denied, revoked)
+ * @member {module:model/BetaAccessStatusItem.StatusEnum} status
+ */
+BetaAccessStatusItem.prototype['status'] = undefined;
+
+/**
+ * Allowed values for the status property.
+ * @enum {String}
+ * @readonly
+ */
+BetaAccessStatusItem['StatusEnum'] = {
+ /**
+ * value: "requested"
+ * @const
+ */
+ "requested": "requested",
+ /**
+ * value: "approved"
+ * @const
+ */
+ "approved": "approved",
+ /**
+ * value: "denied"
+ * @const
+ */
+ "denied": "denied",
+ /**
+ * value: "revoked"
+ * @const
+ */
+ "revoked": "revoked"
+};
+var _default = exports["default"] = BetaAccessStatusItem;
\ No newline at end of file
diff --git a/dist/model/BetaAccessStatusResponseModel.js b/dist/model/BetaAccessStatusResponseModel.js
new file mode 100644
index 00000000..b4a3450d
--- /dev/null
+++ b/dist/model/BetaAccessStatusResponseModel.js
@@ -0,0 +1,131 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _BetaAccessStatusItem = _interopRequireDefault(require("./BetaAccessStatusItem"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
+function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
+function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The BetaAccessStatusResponseModel model module.
+ * @module model/BetaAccessStatusResponseModel
+ * @version v1.51.1-alpha
+ */
+var BetaAccessStatusResponseModel = /*#__PURE__*/function () {
+ /**
+ * Constructs a new BetaAccessStatusResponseModel.
+ * @alias module:model/BetaAccessStatusResponseModel
+ */
+ function BetaAccessStatusResponseModel() {
+ _classCallCheck(this, BetaAccessStatusResponseModel);
+ BetaAccessStatusResponseModel.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(BetaAccessStatusResponseModel, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a BetaAccessStatusResponseModel from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BetaAccessStatusResponseModel} obj Optional instance to populate.
+ * @return {module:model/BetaAccessStatusResponseModel} The populated BetaAccessStatusResponseModel instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BetaAccessStatusResponseModel();
+ if (data.hasOwnProperty('beta_access_requests')) {
+ obj['beta_access_requests'] = _ApiClient["default"].convertToType(data['beta_access_requests'], [_BetaAccessStatusItem["default"]]);
+ }
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BetaAccessStatusResponseModel.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BetaAccessStatusResponseModel.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ if (data['beta_access_requests']) {
+ // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['beta_access_requests'])) {
+ throw new Error("Expected the field `beta_access_requests` to be an array in the JSON data but got " + data['beta_access_requests']);
+ }
+ // validate the optional field `beta_access_requests` (array)
+ var _iterator = _createForOfIteratorHelper(data['beta_access_requests']),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var item = _step.value;
+ _BetaAccessStatusItem["default"].validateJSON(item);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ ;
+ }
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * List of beta access requests
+ * @member {Array.} beta_access_requests
+ */
+BetaAccessStatusResponseModel.prototype['beta_access_requests'] = undefined;
+
+/**
+ * @member {String} message
+ */
+BetaAccessStatusResponseModel.prototype['message'] = undefined;
+
+/**
+ * @member {Boolean} status
+ */
+BetaAccessStatusResponseModel.prototype['status'] = undefined;
+var _default = exports["default"] = BetaAccessStatusResponseModel;
\ No newline at end of file
diff --git a/dist/model/BillingHistory.js b/dist/model/BillingHistory.js
new file mode 100644
index 00000000..962802b8
--- /dev/null
+++ b/dist/model/BillingHistory.js
@@ -0,0 +1,99 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _Attributes = _interopRequireDefault(require("./Attributes"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The BillingHistory model module.
+ * @module model/BillingHistory
+ * @version v1.51.1-alpha
+ */
+var BillingHistory = /*#__PURE__*/function () {
+ /**
+ * Constructs a new BillingHistory.
+ * @alias module:model/BillingHistory
+ */
+ function BillingHistory() {
+ _classCallCheck(this, BillingHistory);
+ BillingHistory.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(BillingHistory, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a BillingHistory from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BillingHistory} obj Optional instance to populate.
+ * @return {module:model/BillingHistory} The populated BillingHistory instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BillingHistory();
+ if (data.hasOwnProperty('attributes')) {
+ obj['attributes'] = _Attributes["default"].constructFromObject(data['attributes']);
+ }
+ if (data.hasOwnProperty('metrics')) {
+ obj['metrics'] = _ApiClient["default"].convertToType(data['metrics'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BillingHistory.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BillingHistory.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // validate the optional field `attributes`
+ if (data['attributes']) {
+ // data not null
+ _Attributes["default"].validateJSON(data['attributes']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {module:model/Attributes} attributes
+ */
+BillingHistory.prototype['attributes'] = undefined;
+
+/**
+ * @member {Object} metrics
+ */
+BillingHistory.prototype['metrics'] = undefined;
+var _default = exports["default"] = BillingHistory;
\ No newline at end of file
diff --git a/dist/model/BillingHistoryDataSynthesisDetails.js b/dist/model/BillingHistoryDataSynthesisDetails.js
new file mode 100644
index 00000000..6ad3aefe
--- /dev/null
+++ b/dist/model/BillingHistoryDataSynthesisDetails.js
@@ -0,0 +1,143 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _BillingHistory = _interopRequireDefault(require("./BillingHistory"));
+var _Pagination = _interopRequireDefault(require("./Pagination"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
+function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
+function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The BillingHistoryDataSynthesisDetails model module.
+ * @module model/BillingHistoryDataSynthesisDetails
+ * @version v1.51.1-alpha
+ */
+var BillingHistoryDataSynthesisDetails = /*#__PURE__*/function () {
+ /**
+ * Constructs a new BillingHistoryDataSynthesisDetails.
+ * @alias module:model/BillingHistoryDataSynthesisDetails
+ */
+ function BillingHistoryDataSynthesisDetails() {
+ _classCallCheck(this, BillingHistoryDataSynthesisDetails);
+ BillingHistoryDataSynthesisDetails.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(BillingHistoryDataSynthesisDetails, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a BillingHistoryDataSynthesisDetails from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BillingHistoryDataSynthesisDetails} obj Optional instance to populate.
+ * @return {module:model/BillingHistoryDataSynthesisDetails} The populated BillingHistoryDataSynthesisDetails instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BillingHistoryDataSynthesisDetails();
+ if (data.hasOwnProperty('billing_history')) {
+ obj['billing_history'] = _ApiClient["default"].convertToType(data['billing_history'], [_BillingHistory["default"]]);
+ }
+ if (data.hasOwnProperty('org_id')) {
+ obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
+ }
+ if (data.hasOwnProperty('pagination')) {
+ obj['pagination'] = _Pagination["default"].constructFromObject(data['pagination']);
+ }
+ if (data.hasOwnProperty('total_count')) {
+ obj['total_count'] = _ApiClient["default"].convertToType(data['total_count'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BillingHistoryDataSynthesisDetails.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BillingHistoryDataSynthesisDetails.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ if (data['billing_history']) {
+ // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['billing_history'])) {
+ throw new Error("Expected the field `billing_history` to be an array in the JSON data but got " + data['billing_history']);
+ }
+ // validate the optional field `billing_history` (array)
+ var _iterator = _createForOfIteratorHelper(data['billing_history']),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var item = _step.value;
+ _BillingHistory["default"].validateJSON(item);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ ;
+ }
+ // validate the optional field `pagination`
+ if (data['pagination']) {
+ // data not null
+ _Pagination["default"].validateJSON(data['pagination']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ *
+ * @member {Array.} billing_history
+ */
+BillingHistoryDataSynthesisDetails.prototype['billing_history'] = undefined;
+
+/**
+ *
+ * @member {Number} org_id
+ */
+BillingHistoryDataSynthesisDetails.prototype['org_id'] = undefined;
+
+/**
+ * @member {module:model/Pagination} pagination
+ */
+BillingHistoryDataSynthesisDetails.prototype['pagination'] = undefined;
+
+/**
+ *
+ * @member {Number} total_count
+ */
+BillingHistoryDataSynthesisDetails.prototype['total_count'] = undefined;
+var _default = exports["default"] = BillingHistoryDataSynthesisDetails;
\ No newline at end of file
diff --git a/dist/model/BillingHistoryFineTuning.js b/dist/model/BillingHistoryFineTuning.js
new file mode 100644
index 00000000..25ac3fe9
--- /dev/null
+++ b/dist/model/BillingHistoryFineTuning.js
@@ -0,0 +1,143 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _BillingHistory = _interopRequireDefault(require("./BillingHistory"));
+var _Pagination = _interopRequireDefault(require("./Pagination"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
+function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
+function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The BillingHistoryFineTuning model module.
+ * @module model/BillingHistoryFineTuning
+ * @version v1.51.1-alpha
+ */
+var BillingHistoryFineTuning = /*#__PURE__*/function () {
+ /**
+ * Constructs a new BillingHistoryFineTuning.
+ * @alias module:model/BillingHistoryFineTuning
+ */
+ function BillingHistoryFineTuning() {
+ _classCallCheck(this, BillingHistoryFineTuning);
+ BillingHistoryFineTuning.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(BillingHistoryFineTuning, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a BillingHistoryFineTuning from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BillingHistoryFineTuning} obj Optional instance to populate.
+ * @return {module:model/BillingHistoryFineTuning} The populated BillingHistoryFineTuning instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BillingHistoryFineTuning();
+ if (data.hasOwnProperty('billing_history')) {
+ obj['billing_history'] = _ApiClient["default"].convertToType(data['billing_history'], [_BillingHistory["default"]]);
+ }
+ if (data.hasOwnProperty('org_id')) {
+ obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
+ }
+ if (data.hasOwnProperty('pagination')) {
+ obj['pagination'] = _Pagination["default"].constructFromObject(data['pagination']);
+ }
+ if (data.hasOwnProperty('total_count')) {
+ obj['total_count'] = _ApiClient["default"].convertToType(data['total_count'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BillingHistoryFineTuning.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BillingHistoryFineTuning.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ if (data['billing_history']) {
+ // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['billing_history'])) {
+ throw new Error("Expected the field `billing_history` to be an array in the JSON data but got " + data['billing_history']);
+ }
+ // validate the optional field `billing_history` (array)
+ var _iterator = _createForOfIteratorHelper(data['billing_history']),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var item = _step.value;
+ _BillingHistory["default"].validateJSON(item);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ ;
+ }
+ // validate the optional field `pagination`
+ if (data['pagination']) {
+ // data not null
+ _Pagination["default"].validateJSON(data['pagination']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ *
+ * @member {Array.} billing_history
+ */
+BillingHistoryFineTuning.prototype['billing_history'] = undefined;
+
+/**
+ *
+ * @member {Number} org_id
+ */
+BillingHistoryFineTuning.prototype['org_id'] = undefined;
+
+/**
+ * @member {module:model/Pagination} pagination
+ */
+BillingHistoryFineTuning.prototype['pagination'] = undefined;
+
+/**
+ *
+ * @member {Number} total_count
+ */
+BillingHistoryFineTuning.prototype['total_count'] = undefined;
+var _default = exports["default"] = BillingHistoryFineTuning;
\ No newline at end of file
diff --git a/dist/model/BillingHistoryModelEvalutationDetails.js b/dist/model/BillingHistoryModelEvalutationDetails.js
new file mode 100644
index 00000000..a9a1b90c
--- /dev/null
+++ b/dist/model/BillingHistoryModelEvalutationDetails.js
@@ -0,0 +1,143 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _BillingHistory = _interopRequireDefault(require("./BillingHistory"));
+var _Pagination = _interopRequireDefault(require("./Pagination"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
+function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
+function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The BillingHistoryModelEvalutationDetails model module.
+ * @module model/BillingHistoryModelEvalutationDetails
+ * @version v1.51.1-alpha
+ */
+var BillingHistoryModelEvalutationDetails = /*#__PURE__*/function () {
+ /**
+ * Constructs a new BillingHistoryModelEvalutationDetails.
+ * @alias module:model/BillingHistoryModelEvalutationDetails
+ */
+ function BillingHistoryModelEvalutationDetails() {
+ _classCallCheck(this, BillingHistoryModelEvalutationDetails);
+ BillingHistoryModelEvalutationDetails.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(BillingHistoryModelEvalutationDetails, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a BillingHistoryModelEvalutationDetails from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BillingHistoryModelEvalutationDetails} obj Optional instance to populate.
+ * @return {module:model/BillingHistoryModelEvalutationDetails} The populated BillingHistoryModelEvalutationDetails instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BillingHistoryModelEvalutationDetails();
+ if (data.hasOwnProperty('billing_history')) {
+ obj['billing_history'] = _ApiClient["default"].convertToType(data['billing_history'], [_BillingHistory["default"]]);
+ }
+ if (data.hasOwnProperty('org_id')) {
+ obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
+ }
+ if (data.hasOwnProperty('pagination')) {
+ obj['pagination'] = _Pagination["default"].constructFromObject(data['pagination']);
+ }
+ if (data.hasOwnProperty('total_count')) {
+ obj['total_count'] = _ApiClient["default"].convertToType(data['total_count'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BillingHistoryModelEvalutationDetails.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BillingHistoryModelEvalutationDetails.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ if (data['billing_history']) {
+ // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['billing_history'])) {
+ throw new Error("Expected the field `billing_history` to be an array in the JSON data but got " + data['billing_history']);
+ }
+ // validate the optional field `billing_history` (array)
+ var _iterator = _createForOfIteratorHelper(data['billing_history']),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var item = _step.value;
+ _BillingHistory["default"].validateJSON(item);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ ;
+ }
+ // validate the optional field `pagination`
+ if (data['pagination']) {
+ // data not null
+ _Pagination["default"].validateJSON(data['pagination']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ *
+ * @member {Array.} billing_history
+ */
+BillingHistoryModelEvalutationDetails.prototype['billing_history'] = undefined;
+
+/**
+ *
+ * @member {Number} org_id
+ */
+BillingHistoryModelEvalutationDetails.prototype['org_id'] = undefined;
+
+/**
+ * @member {module:model/Pagination} pagination
+ */
+BillingHistoryModelEvalutationDetails.prototype['pagination'] = undefined;
+
+/**
+ *
+ * @member {Number} total_count
+ */
+BillingHistoryModelEvalutationDetails.prototype['total_count'] = undefined;
+var _default = exports["default"] = BillingHistoryModelEvalutationDetails;
\ No newline at end of file
diff --git a/dist/model/BillingHistoryServerlessInference.js b/dist/model/BillingHistoryServerlessInference.js
new file mode 100644
index 00000000..16304368
--- /dev/null
+++ b/dist/model/BillingHistoryServerlessInference.js
@@ -0,0 +1,143 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _BillingHistory = _interopRequireDefault(require("./BillingHistory"));
+var _Pagination = _interopRequireDefault(require("./Pagination"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
+function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
+function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The BillingHistoryServerlessInference model module.
+ * @module model/BillingHistoryServerlessInference
+ * @version v1.51.1-alpha
+ */
+var BillingHistoryServerlessInference = /*#__PURE__*/function () {
+ /**
+ * Constructs a new BillingHistoryServerlessInference.
+ * @alias module:model/BillingHistoryServerlessInference
+ */
+ function BillingHistoryServerlessInference() {
+ _classCallCheck(this, BillingHistoryServerlessInference);
+ BillingHistoryServerlessInference.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(BillingHistoryServerlessInference, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a BillingHistoryServerlessInference from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BillingHistoryServerlessInference} obj Optional instance to populate.
+ * @return {module:model/BillingHistoryServerlessInference} The populated BillingHistoryServerlessInference instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BillingHistoryServerlessInference();
+ if (data.hasOwnProperty('billing_history')) {
+ obj['billing_history'] = _ApiClient["default"].convertToType(data['billing_history'], [_BillingHistory["default"]]);
+ }
+ if (data.hasOwnProperty('org_id')) {
+ obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
+ }
+ if (data.hasOwnProperty('pagination')) {
+ obj['pagination'] = _Pagination["default"].constructFromObject(data['pagination']);
+ }
+ if (data.hasOwnProperty('total_count')) {
+ obj['total_count'] = _ApiClient["default"].convertToType(data['total_count'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BillingHistoryServerlessInference.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BillingHistoryServerlessInference.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ if (data['billing_history']) {
+ // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['billing_history'])) {
+ throw new Error("Expected the field `billing_history` to be an array in the JSON data but got " + data['billing_history']);
+ }
+ // validate the optional field `billing_history` (array)
+ var _iterator = _createForOfIteratorHelper(data['billing_history']),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var item = _step.value;
+ _BillingHistory["default"].validateJSON(item);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ ;
+ }
+ // validate the optional field `pagination`
+ if (data['pagination']) {
+ // data not null
+ _Pagination["default"].validateJSON(data['pagination']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ *
+ * @member {Array.} billing_history
+ */
+BillingHistoryServerlessInference.prototype['billing_history'] = undefined;
+
+/**
+ *
+ * @member {Number} org_id
+ */
+BillingHistoryServerlessInference.prototype['org_id'] = undefined;
+
+/**
+ * @member {module:model/Pagination} pagination
+ */
+BillingHistoryServerlessInference.prototype['pagination'] = undefined;
+
+/**
+ *
+ * @member {Number} total_count
+ */
+BillingHistoryServerlessInference.prototype['total_count'] = undefined;
+var _default = exports["default"] = BillingHistoryServerlessInference;
\ No newline at end of file
diff --git a/dist/model/BillingHistoryServerlessInferenceDetails.js b/dist/model/BillingHistoryServerlessInferenceDetails.js
new file mode 100644
index 00000000..9bfce876
--- /dev/null
+++ b/dist/model/BillingHistoryServerlessInferenceDetails.js
@@ -0,0 +1,143 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _BillingHistory = _interopRequireDefault(require("./BillingHistory"));
+var _Pagination = _interopRequireDefault(require("./Pagination"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
+function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
+function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The BillingHistoryServerlessInferenceDetails model module.
+ * @module model/BillingHistoryServerlessInferenceDetails
+ * @version v1.51.1-alpha
+ */
+var BillingHistoryServerlessInferenceDetails = /*#__PURE__*/function () {
+ /**
+ * Constructs a new BillingHistoryServerlessInferenceDetails.
+ * @alias module:model/BillingHistoryServerlessInferenceDetails
+ */
+ function BillingHistoryServerlessInferenceDetails() {
+ _classCallCheck(this, BillingHistoryServerlessInferenceDetails);
+ BillingHistoryServerlessInferenceDetails.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(BillingHistoryServerlessInferenceDetails, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a BillingHistoryServerlessInferenceDetails from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BillingHistoryServerlessInferenceDetails} obj Optional instance to populate.
+ * @return {module:model/BillingHistoryServerlessInferenceDetails} The populated BillingHistoryServerlessInferenceDetails instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BillingHistoryServerlessInferenceDetails();
+ if (data.hasOwnProperty('billing_history')) {
+ obj['billing_history'] = _ApiClient["default"].convertToType(data['billing_history'], [_BillingHistory["default"]]);
+ }
+ if (data.hasOwnProperty('org_id')) {
+ obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
+ }
+ if (data.hasOwnProperty('pagination')) {
+ obj['pagination'] = _Pagination["default"].constructFromObject(data['pagination']);
+ }
+ if (data.hasOwnProperty('total_count')) {
+ obj['total_count'] = _ApiClient["default"].convertToType(data['total_count'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BillingHistoryServerlessInferenceDetails.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BillingHistoryServerlessInferenceDetails.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ if (data['billing_history']) {
+ // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['billing_history'])) {
+ throw new Error("Expected the field `billing_history` to be an array in the JSON data but got " + data['billing_history']);
+ }
+ // validate the optional field `billing_history` (array)
+ var _iterator = _createForOfIteratorHelper(data['billing_history']),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var item = _step.value;
+ _BillingHistory["default"].validateJSON(item);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ ;
+ }
+ // validate the optional field `pagination`
+ if (data['pagination']) {
+ // data not null
+ _Pagination["default"].validateJSON(data['pagination']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ *
+ * @member {Array.} billing_history
+ */
+BillingHistoryServerlessInferenceDetails.prototype['billing_history'] = undefined;
+
+/**
+ *
+ * @member {Number} org_id
+ */
+BillingHistoryServerlessInferenceDetails.prototype['org_id'] = undefined;
+
+/**
+ * @member {module:model/Pagination} pagination
+ */
+BillingHistoryServerlessInferenceDetails.prototype['pagination'] = undefined;
+
+/**
+ *
+ * @member {Number} total_count
+ */
+BillingHistoryServerlessInferenceDetails.prototype['total_count'] = undefined;
+var _default = exports["default"] = BillingHistoryServerlessInferenceDetails;
\ No newline at end of file
diff --git a/dist/model/BillingImmuneResourcesResponse.js b/dist/model/BillingImmuneResourcesResponse.js
deleted file mode 100644
index 528f1f2e..00000000
--- a/dist/model/BillingImmuneResourcesResponse.js
+++ /dev/null
@@ -1,111 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _Data = _interopRequireDefault(require("./Data"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The BillingImmuneResourcesResponse model module.
- * @module model/BillingImmuneResourcesResponse
- * @version v1.25.0-alpha
- */
-var BillingImmuneResourcesResponse = /*#__PURE__*/function () {
- /**
- * Constructs a new BillingImmuneResourcesResponse.
- * @alias module:model/BillingImmuneResourcesResponse
- */
- function BillingImmuneResourcesResponse() {
- _classCallCheck(this, BillingImmuneResourcesResponse);
- BillingImmuneResourcesResponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(BillingImmuneResourcesResponse, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a BillingImmuneResourcesResponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/BillingImmuneResourcesResponse} obj Optional instance to populate.
- * @return {module:model/BillingImmuneResourcesResponse} The populated BillingImmuneResourcesResponse instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new BillingImmuneResourcesResponse();
- if (data.hasOwnProperty('data')) {
- obj['data'] = _ApiClient["default"].convertToType(data['data'], [_Data["default"]]);
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to BillingImmuneResourcesResponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to BillingImmuneResourcesResponse.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- if (data['data']) {
- // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['data'])) {
- throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
- }
- // validate the optional field `data` (array)
- var _iterator = _createForOfIteratorHelper(data['data']),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var item = _step.value;
- _Data["default"].validateJSON(item);
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- ;
- }
- return true;
- }
- }]);
-}();
-/**
- *
- * @member {Array.} data
- */
-BillingImmuneResourcesResponse.prototype['data'] = undefined;
-var _default = exports["default"] = BillingImmuneResourcesResponse;
\ No newline at end of file
diff --git a/dist/model/BillingMetricesFields.js b/dist/model/BillingMetricesFields.js
new file mode 100644
index 00000000..b549e06b
--- /dev/null
+++ b/dist/model/BillingMetricesFields.js
@@ -0,0 +1,173 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The BillingMetricesFields model module.
+ * @module model/BillingMetricesFields
+ * @version v1.51.1-alpha
+ */
+var BillingMetricesFields = /*#__PURE__*/function () {
+ /**
+ * Constructs a new BillingMetricesFields.
+ * @alias module:model/BillingMetricesFields
+ */
+ function BillingMetricesFields() {
+ _classCallCheck(this, BillingMetricesFields);
+ BillingMetricesFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(BillingMetricesFields, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a BillingMetricesFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BillingMetricesFields} obj Optional instance to populate.
+ * @return {module:model/BillingMetricesFields} The populated BillingMetricesFields instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BillingMetricesFields();
+ if (data.hasOwnProperty('active')) {
+ obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('bill_per_minute')) {
+ obj['bill_per_minute'] = _ApiClient["default"].convertToType(data['bill_per_minute'], 'Number');
+ }
+ if (data.hasOwnProperty('create_time')) {
+ obj['create_time'] = _ApiClient["default"].convertToType(data['create_time'], 'Date');
+ }
+ if (data.hasOwnProperty('exclude_billing')) {
+ obj['exclude_billing'] = _ApiClient["default"].convertToType(data['exclude_billing'], 'Boolean');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('organization_id')) {
+ obj['organization_id'] = _ApiClient["default"].convertToType(data['organization_id'], 'Number');
+ }
+ if (data.hasOwnProperty('resource_id')) {
+ obj['resource_id'] = _ApiClient["default"].convertToType(data['resource_id'], 'Number');
+ }
+ if (data.hasOwnProperty('resource_type')) {
+ obj['resource_type'] = _ApiClient["default"].convertToType(data['resource_type'], 'String');
+ }
+ if (data.hasOwnProperty('terminate_time')) {
+ obj['terminate_time'] = _ApiClient["default"].convertToType(data['terminate_time'], 'Date');
+ }
+ if (data.hasOwnProperty('total_bill')) {
+ obj['total_bill'] = _ApiClient["default"].convertToType(data['total_bill'], 'Number');
+ }
+ if (data.hasOwnProperty('total_up_time')) {
+ obj['total_up_time'] = _ApiClient["default"].convertToType(data['total_up_time'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BillingMetricesFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BillingMetricesFields.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ // ensure the json data is a string
+ if (data['resource_type'] && !(typeof data['resource_type'] === 'string' || data['resource_type'] instanceof String)) {
+ throw new Error("Expected the field `resource_type` to be a primitive type in the JSON string but got " + data['resource_type']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {Boolean} active
+ */
+BillingMetricesFields.prototype['active'] = undefined;
+
+/**
+ * @member {Number} bill_per_minute
+ */
+BillingMetricesFields.prototype['bill_per_minute'] = undefined;
+
+/**
+ * @member {Date} create_time
+ */
+BillingMetricesFields.prototype['create_time'] = undefined;
+
+/**
+ * @member {Boolean} exclude_billing
+ */
+BillingMetricesFields.prototype['exclude_billing'] = undefined;
+
+/**
+ * @member {String} name
+ */
+BillingMetricesFields.prototype['name'] = undefined;
+
+/**
+ * @member {Number} organization_id
+ */
+BillingMetricesFields.prototype['organization_id'] = undefined;
+
+/**
+ * @member {Number} resource_id
+ */
+BillingMetricesFields.prototype['resource_id'] = undefined;
+
+/**
+ * @member {String} resource_type
+ */
+BillingMetricesFields.prototype['resource_type'] = undefined;
+
+/**
+ * @member {Date} terminate_time
+ */
+BillingMetricesFields.prototype['terminate_time'] = undefined;
+
+/**
+ * @member {Number} total_bill
+ */
+BillingMetricesFields.prototype['total_bill'] = undefined;
+
+/**
+ * @member {Number} total_up_time
+ */
+BillingMetricesFields.prototype['total_up_time'] = undefined;
+var _default = exports["default"] = BillingMetricesFields;
\ No newline at end of file
diff --git a/dist/model/BillingMetricesResponse.js b/dist/model/BillingMetricesResponse.js
new file mode 100644
index 00000000..e31b7812
--- /dev/null
+++ b/dist/model/BillingMetricesResponse.js
@@ -0,0 +1,130 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _BillingMetricesFields = _interopRequireDefault(require("./BillingMetricesFields"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
+function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
+function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The BillingMetricesResponse model module.
+ * @module model/BillingMetricesResponse
+ * @version v1.51.1-alpha
+ */
+var BillingMetricesResponse = /*#__PURE__*/function () {
+ /**
+ * Constructs a new BillingMetricesResponse.
+ * @alias module:model/BillingMetricesResponse
+ */
+ function BillingMetricesResponse() {
+ _classCallCheck(this, BillingMetricesResponse);
+ BillingMetricesResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(BillingMetricesResponse, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a BillingMetricesResponse from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BillingMetricesResponse} obj Optional instance to populate.
+ * @return {module:model/BillingMetricesResponse} The populated BillingMetricesResponse instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BillingMetricesResponse();
+ if (data.hasOwnProperty('data')) {
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], [_BillingMetricesFields["default"]]);
+ }
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BillingMetricesResponse.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BillingMetricesResponse.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ if (data['data']) {
+ // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['data'])) {
+ throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
+ }
+ // validate the optional field `data` (array)
+ var _iterator = _createForOfIteratorHelper(data['data']),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var item = _step.value;
+ _BillingMetricesFields["default"].validateJSON(item);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ ;
+ }
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {Array.} data
+ */
+BillingMetricesResponse.prototype['data'] = undefined;
+
+/**
+ * @member {String} message
+ */
+BillingMetricesResponse.prototype['message'] = undefined;
+
+/**
+ * @member {Boolean} status
+ */
+BillingMetricesResponse.prototype['status'] = undefined;
+var _default = exports["default"] = BillingMetricesResponse;
\ No newline at end of file
diff --git a/dist/model/BillingResponse.js b/dist/model/BillingResponse.js
deleted file mode 100644
index 23ed3847..00000000
--- a/dist/model/BillingResponse.js
+++ /dev/null
@@ -1,130 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _OrganizationObjectResponse = _interopRequireDefault(require("./OrganizationObjectResponse"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The BillingResponse model module.
- * @module model/BillingResponse
- * @version v1.25.0-alpha
- */
-var BillingResponse = /*#__PURE__*/function () {
- /**
- * Constructs a new BillingResponse.
- * @alias module:model/BillingResponse
- */
- function BillingResponse() {
- _classCallCheck(this, BillingResponse);
- BillingResponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(BillingResponse, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a BillingResponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/BillingResponse} obj Optional instance to populate.
- * @return {module:model/BillingResponse} The populated BillingResponse instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new BillingResponse();
- if (data.hasOwnProperty('calculated_bills')) {
- obj['calculated_bills'] = _ApiClient["default"].convertToType(data['calculated_bills'], [_OrganizationObjectResponse["default"]]);
- }
- if (data.hasOwnProperty('calculation_time')) {
- obj['calculation_time'] = _ApiClient["default"].convertToType(data['calculation_time'], 'Date');
- }
- if (data.hasOwnProperty('type')) {
- obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to BillingResponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to BillingResponse.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- if (data['calculated_bills']) {
- // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['calculated_bills'])) {
- throw new Error("Expected the field `calculated_bills` to be an array in the JSON data but got " + data['calculated_bills']);
- }
- // validate the optional field `calculated_bills` (array)
- var _iterator = _createForOfIteratorHelper(data['calculated_bills']),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var item = _step.value;
- _OrganizationObjectResponse["default"].validateJSON(item);
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- ;
- }
- // ensure the json data is a string
- if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
- throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {Array.} calculated_bills
- */
-BillingResponse.prototype['calculated_bills'] = undefined;
-
-/**
- * @member {Date} calculation_time
- */
-BillingResponse.prototype['calculation_time'] = undefined;
-
-/**
- * @member {String} type
- */
-BillingResponse.prototype['type'] = undefined;
-var _default = exports["default"] = BillingResponse;
\ No newline at end of file
diff --git a/dist/model/Billingmetricesfields.js b/dist/model/Billingmetricesfields.js
deleted file mode 100644
index d83d6830..00000000
--- a/dist/model/Billingmetricesfields.js
+++ /dev/null
@@ -1,173 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The Billingmetricesfields model module.
- * @module model/Billingmetricesfields
- * @version v1.25.0-alpha
- */
-var Billingmetricesfields = /*#__PURE__*/function () {
- /**
- * Constructs a new Billingmetricesfields.
- * @alias module:model/Billingmetricesfields
- */
- function Billingmetricesfields() {
- _classCallCheck(this, Billingmetricesfields);
- Billingmetricesfields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(Billingmetricesfields, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a Billingmetricesfields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Billingmetricesfields} obj Optional instance to populate.
- * @return {module:model/Billingmetricesfields} The populated Billingmetricesfields instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new Billingmetricesfields();
- if (data.hasOwnProperty('active')) {
- obj['active'] = _ApiClient["default"].convertToType(data['active'], 'Boolean');
- }
- if (data.hasOwnProperty('bill_per_minute')) {
- obj['bill_per_minute'] = _ApiClient["default"].convertToType(data['bill_per_minute'], 'Number');
- }
- if (data.hasOwnProperty('create_time')) {
- obj['create_time'] = _ApiClient["default"].convertToType(data['create_time'], 'Date');
- }
- if (data.hasOwnProperty('exclude_billing')) {
- obj['exclude_billing'] = _ApiClient["default"].convertToType(data['exclude_billing'], 'Boolean');
- }
- if (data.hasOwnProperty('name')) {
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
- }
- if (data.hasOwnProperty('organization_id')) {
- obj['organization_id'] = _ApiClient["default"].convertToType(data['organization_id'], 'Number');
- }
- if (data.hasOwnProperty('resource_id')) {
- obj['resource_id'] = _ApiClient["default"].convertToType(data['resource_id'], 'Number');
- }
- if (data.hasOwnProperty('resource_type')) {
- obj['resource_type'] = _ApiClient["default"].convertToType(data['resource_type'], 'String');
- }
- if (data.hasOwnProperty('terminate_time')) {
- obj['terminate_time'] = _ApiClient["default"].convertToType(data['terminate_time'], 'Date');
- }
- if (data.hasOwnProperty('total_bill')) {
- obj['total_bill'] = _ApiClient["default"].convertToType(data['total_bill'], 'Number');
- }
- if (data.hasOwnProperty('total_up_time')) {
- obj['total_up_time'] = _ApiClient["default"].convertToType(data['total_up_time'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to Billingmetricesfields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to Billingmetricesfields.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is a string
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
- }
- // ensure the json data is a string
- if (data['resource_type'] && !(typeof data['resource_type'] === 'string' || data['resource_type'] instanceof String)) {
- throw new Error("Expected the field `resource_type` to be a primitive type in the JSON string but got " + data['resource_type']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {Boolean} active
- */
-Billingmetricesfields.prototype['active'] = undefined;
-
-/**
- * @member {Number} bill_per_minute
- */
-Billingmetricesfields.prototype['bill_per_minute'] = undefined;
-
-/**
- * @member {Date} create_time
- */
-Billingmetricesfields.prototype['create_time'] = undefined;
-
-/**
- * @member {Boolean} exclude_billing
- */
-Billingmetricesfields.prototype['exclude_billing'] = undefined;
-
-/**
- * @member {String} name
- */
-Billingmetricesfields.prototype['name'] = undefined;
-
-/**
- * @member {Number} organization_id
- */
-Billingmetricesfields.prototype['organization_id'] = undefined;
-
-/**
- * @member {Number} resource_id
- */
-Billingmetricesfields.prototype['resource_id'] = undefined;
-
-/**
- * @member {String} resource_type
- */
-Billingmetricesfields.prototype['resource_type'] = undefined;
-
-/**
- * @member {Date} terminate_time
- */
-Billingmetricesfields.prototype['terminate_time'] = undefined;
-
-/**
- * @member {Number} total_bill
- */
-Billingmetricesfields.prototype['total_bill'] = undefined;
-
-/**
- * @member {Number} total_up_time
- */
-Billingmetricesfields.prototype['total_up_time'] = undefined;
-var _default = exports["default"] = Billingmetricesfields;
\ No newline at end of file
diff --git a/dist/model/Billingmetricesresponse.js b/dist/model/Billingmetricesresponse.js
deleted file mode 100644
index c4a38ee1..00000000
--- a/dist/model/Billingmetricesresponse.js
+++ /dev/null
@@ -1,130 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _Billingmetricesfields = _interopRequireDefault(require("./Billingmetricesfields"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The Billingmetricesresponse model module.
- * @module model/Billingmetricesresponse
- * @version v1.25.0-alpha
- */
-var Billingmetricesresponse = /*#__PURE__*/function () {
- /**
- * Constructs a new Billingmetricesresponse.
- * @alias module:model/Billingmetricesresponse
- */
- function Billingmetricesresponse() {
- _classCallCheck(this, Billingmetricesresponse);
- Billingmetricesresponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(Billingmetricesresponse, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a Billingmetricesresponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Billingmetricesresponse} obj Optional instance to populate.
- * @return {module:model/Billingmetricesresponse} The populated Billingmetricesresponse instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new Billingmetricesresponse();
- if (data.hasOwnProperty('data')) {
- obj['data'] = _ApiClient["default"].convertToType(data['data'], [_Billingmetricesfields["default"]]);
- }
- if (data.hasOwnProperty('message')) {
- obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to Billingmetricesresponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to Billingmetricesresponse.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- if (data['data']) {
- // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['data'])) {
- throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
- }
- // validate the optional field `data` (array)
- var _iterator = _createForOfIteratorHelper(data['data']),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var item = _step.value;
- _Billingmetricesfields["default"].validateJSON(item);
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- ;
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {Array.} data
- */
-Billingmetricesresponse.prototype['data'] = undefined;
-
-/**
- * @member {String} message
- */
-Billingmetricesresponse.prototype['message'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-Billingmetricesresponse.prototype['status'] = undefined;
-var _default = exports["default"] = Billingmetricesresponse;
\ No newline at end of file
diff --git a/dist/model/ClusterEvents.js b/dist/model/ClusterEvents.js
index b0d0cbb4..0c806584 100644
--- a/dist/model/ClusterEvents.js
+++ b/dist/model/ClusterEvents.js
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The ClusterEvents model module.
* @module model/ClusterEvents
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var ClusterEvents = /*#__PURE__*/function () {
/**
diff --git a/dist/model/ClusterEventsFields.js b/dist/model/ClusterEventsFields.js
index 434e13ea..00567ea4 100644
--- a/dist/model/ClusterEventsFields.js
+++ b/dist/model/ClusterEventsFields.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The ClusterEventsFields model module.
* @module model/ClusterEventsFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var ClusterEventsFields = /*#__PURE__*/function () {
/**
diff --git a/dist/model/ClusterFields.js b/dist/model/ClusterFields.js
index cb683184..b0fac0de 100644
--- a/dist/model/ClusterFields.js
+++ b/dist/model/ClusterFields.js
@@ -5,9 +5,14 @@ Object.defineProperty(exports, "__esModule", {
});
exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _InstanceFlavorFields = _interopRequireDefault(require("./InstanceFlavorFields"));
+var _ClusterFlavorFields = _interopRequireDefault(require("./ClusterFlavorFields"));
+var _ClusterNodeFields = _interopRequireDefault(require("./ClusterNodeFields"));
+var _ClusterNodeGroupFields = _interopRequireDefault(require("./ClusterNodeGroupFields"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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); }
+function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
+function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
+function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
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); } }
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
@@ -27,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The ClusterFields model module.
* @module model/ClusterFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var ClusterFields = /*#__PURE__*/function () {
/**
@@ -72,6 +77,9 @@ var ClusterFields = /*#__PURE__*/function () {
if (data.hasOwnProperty('id')) {
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
}
+ if (data.hasOwnProperty('is_reconciling')) {
+ obj['is_reconciling'] = _ApiClient["default"].convertToType(data['is_reconciling'], 'Boolean');
+ }
if (data.hasOwnProperty('keypair_name')) {
obj['keypair_name'] = _ApiClient["default"].convertToType(data['keypair_name'], 'String');
}
@@ -81,14 +89,17 @@ var ClusterFields = /*#__PURE__*/function () {
if (data.hasOwnProperty('kubernetes_version')) {
obj['kubernetes_version'] = _ApiClient["default"].convertToType(data['kubernetes_version'], 'String');
}
+ if (data.hasOwnProperty('master_flavor')) {
+ obj['master_flavor'] = _ClusterFlavorFields["default"].constructFromObject(data['master_flavor']);
+ }
if (data.hasOwnProperty('name')) {
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
}
- if (data.hasOwnProperty('node_count')) {
- obj['node_count'] = _ApiClient["default"].convertToType(data['node_count'], 'Number');
+ if (data.hasOwnProperty('node_groups')) {
+ obj['node_groups'] = _ApiClient["default"].convertToType(data['node_groups'], [_ClusterNodeGroupFields["default"]]);
}
- if (data.hasOwnProperty('node_flavor')) {
- obj['node_flavor'] = _InstanceFlavorFields["default"].constructFromObject(data['node_flavor']);
+ if (data.hasOwnProperty('nodes')) {
+ obj['nodes'] = _ApiClient["default"].convertToType(data['nodes'], [_ClusterNodeFields["default"]]);
}
if (data.hasOwnProperty('status')) {
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
@@ -128,14 +139,56 @@ var ClusterFields = /*#__PURE__*/function () {
if (data['kubernetes_version'] && !(typeof data['kubernetes_version'] === 'string' || data['kubernetes_version'] instanceof String)) {
throw new Error("Expected the field `kubernetes_version` to be a primitive type in the JSON string but got " + data['kubernetes_version']);
}
+ // validate the optional field `master_flavor`
+ if (data['master_flavor']) {
+ // data not null
+ _ClusterFlavorFields["default"].validateJSON(data['master_flavor']);
+ }
// ensure the json data is a string
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
}
- // validate the optional field `node_flavor`
- if (data['node_flavor']) {
+ if (data['node_groups']) {
+ // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['node_groups'])) {
+ throw new Error("Expected the field `node_groups` to be an array in the JSON data but got " + data['node_groups']);
+ }
+ // validate the optional field `node_groups` (array)
+ var _iterator = _createForOfIteratorHelper(data['node_groups']),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var item = _step.value;
+ _ClusterNodeGroupFields["default"].validateJSON(item);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ ;
+ }
+ if (data['nodes']) {
// data not null
- _InstanceFlavorFields["default"].validateJSON(data['node_flavor']);
+ // ensure the json data is an array
+ if (!Array.isArray(data['nodes'])) {
+ throw new Error("Expected the field `nodes` to be an array in the JSON data but got " + data['nodes']);
+ }
+ // validate the optional field `nodes` (array)
+ var _iterator2 = _createForOfIteratorHelper(data['nodes']),
+ _step2;
+ try {
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
+ var _item = _step2.value;
+ _ClusterNodeFields["default"].validateJSON(_item);
+ }
+ } catch (err) {
+ _iterator2.e(err);
+ } finally {
+ _iterator2.f();
+ }
+ ;
}
// ensure the json data is a string
if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
@@ -169,6 +222,11 @@ ClusterFields.prototype['environment_name'] = undefined;
*/
ClusterFields.prototype['id'] = undefined;
+/**
+ * @member {Boolean} is_reconciling
+ */
+ClusterFields.prototype['is_reconciling'] = undefined;
+
/**
* @member {String} keypair_name
*/
@@ -184,20 +242,25 @@ ClusterFields.prototype['kube_config'] = undefined;
*/
ClusterFields.prototype['kubernetes_version'] = undefined;
+/**
+ * @member {module:model/ClusterFlavorFields} master_flavor
+ */
+ClusterFields.prototype['master_flavor'] = undefined;
+
/**
* @member {String} name
*/
ClusterFields.prototype['name'] = undefined;
/**
- * @member {Number} node_count
+ * @member {Array.} node_groups
*/
-ClusterFields.prototype['node_count'] = undefined;
+ClusterFields.prototype['node_groups'] = undefined;
/**
- * @member {module:model/InstanceFlavorFields} node_flavor
+ * @member {Array.} nodes
*/
-ClusterFields.prototype['node_flavor'] = undefined;
+ClusterFields.prototype['nodes'] = undefined;
/**
* @member {String} status
diff --git a/dist/model/ClusterFlavorFields.js b/dist/model/ClusterFlavorFields.js
new file mode 100644
index 00000000..67ad09d2
--- /dev/null
+++ b/dist/model/ClusterFlavorFields.js
@@ -0,0 +1,190 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _LableResonse = _interopRequireDefault(require("./LableResonse"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
+function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
+function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The ClusterFlavorFields model module.
+ * @module model/ClusterFlavorFields
+ * @version v1.51.1-alpha
+ */
+var ClusterFlavorFields = /*#__PURE__*/function () {
+ /**
+ * Constructs a new ClusterFlavorFields.
+ * @alias module:model/ClusterFlavorFields
+ */
+ function ClusterFlavorFields() {
+ _classCallCheck(this, ClusterFlavorFields);
+ ClusterFlavorFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(ClusterFlavorFields, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a ClusterFlavorFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterFlavorFields} obj Optional instance to populate.
+ * @return {module:model/ClusterFlavorFields} The populated ClusterFlavorFields instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterFlavorFields();
+ if (data.hasOwnProperty('cpu')) {
+ obj['cpu'] = _ApiClient["default"].convertToType(data['cpu'], 'Number');
+ }
+ if (data.hasOwnProperty('disk')) {
+ obj['disk'] = _ApiClient["default"].convertToType(data['disk'], 'Number');
+ }
+ if (data.hasOwnProperty('ephemeral')) {
+ obj['ephemeral'] = _ApiClient["default"].convertToType(data['ephemeral'], 'Number');
+ }
+ if (data.hasOwnProperty('features')) {
+ obj['features'] = _ApiClient["default"].convertToType(data['features'], Object);
+ }
+ if (data.hasOwnProperty('gpu')) {
+ obj['gpu'] = _ApiClient["default"].convertToType(data['gpu'], 'String');
+ }
+ if (data.hasOwnProperty('gpu_count')) {
+ obj['gpu_count'] = _ApiClient["default"].convertToType(data['gpu_count'], 'Number');
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('labels')) {
+ obj['labels'] = _ApiClient["default"].convertToType(data['labels'], [_LableResonse["default"]]);
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('ram')) {
+ obj['ram'] = _ApiClient["default"].convertToType(data['ram'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterFlavorFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterFlavorFields.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['gpu'] && !(typeof data['gpu'] === 'string' || data['gpu'] instanceof String)) {
+ throw new Error("Expected the field `gpu` to be a primitive type in the JSON string but got " + data['gpu']);
+ }
+ if (data['labels']) {
+ // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['labels'])) {
+ throw new Error("Expected the field `labels` to be an array in the JSON data but got " + data['labels']);
+ }
+ // validate the optional field `labels` (array)
+ var _iterator = _createForOfIteratorHelper(data['labels']),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var item = _step.value;
+ _LableResonse["default"].validateJSON(item);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ ;
+ }
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {Number} cpu
+ */
+ClusterFlavorFields.prototype['cpu'] = undefined;
+
+/**
+ * @member {Number} disk
+ */
+ClusterFlavorFields.prototype['disk'] = undefined;
+
+/**
+ * @member {Number} ephemeral
+ */
+ClusterFlavorFields.prototype['ephemeral'] = undefined;
+
+/**
+ * @member {Object} features
+ */
+ClusterFlavorFields.prototype['features'] = undefined;
+
+/**
+ * @member {String} gpu
+ */
+ClusterFlavorFields.prototype['gpu'] = undefined;
+
+/**
+ * @member {Number} gpu_count
+ */
+ClusterFlavorFields.prototype['gpu_count'] = undefined;
+
+/**
+ * @member {Number} id
+ */
+ClusterFlavorFields.prototype['id'] = undefined;
+
+/**
+ * @member {Array.} labels
+ */
+ClusterFlavorFields.prototype['labels'] = undefined;
+
+/**
+ * @member {String} name
+ */
+ClusterFlavorFields.prototype['name'] = undefined;
+
+/**
+ * @member {Number} ram
+ */
+ClusterFlavorFields.prototype['ram'] = undefined;
+var _default = exports["default"] = ClusterFlavorFields;
\ No newline at end of file
diff --git a/dist/model/ClusterListResponse.js b/dist/model/ClusterListResponse.js
index def12306..59200767 100644
--- a/dist/model/ClusterListResponse.js
+++ b/dist/model/ClusterListResponse.js
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The ClusterListResponse model module.
* @module model/ClusterListResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var ClusterListResponse = /*#__PURE__*/function () {
/**
diff --git a/dist/model/ClusterNodeFields.js b/dist/model/ClusterNodeFields.js
new file mode 100644
index 00000000..76ca7347
--- /dev/null
+++ b/dist/model/ClusterNodeFields.js
@@ -0,0 +1,187 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _ClusterNodeInstanceFields = _interopRequireDefault(require("./ClusterNodeInstanceFields"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The ClusterNodeFields model module.
+ * @module model/ClusterNodeFields
+ * @version v1.51.1-alpha
+ */
+var ClusterNodeFields = /*#__PURE__*/function () {
+ /**
+ * Constructs a new ClusterNodeFields.
+ * @alias module:model/ClusterNodeFields
+ */
+ function ClusterNodeFields() {
+ _classCallCheck(this, ClusterNodeFields);
+ ClusterNodeFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(ClusterNodeFields, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a ClusterNodeFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterNodeFields} obj Optional instance to populate.
+ * @return {module:model/ClusterNodeFields} The populated ClusterNodeFields instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterNodeFields();
+ if (data.hasOwnProperty('created_at')) {
+ obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('instance')) {
+ obj['instance'] = _ClusterNodeInstanceFields["default"].constructFromObject(data['instance']);
+ }
+ if (data.hasOwnProperty('is_bastion')) {
+ obj['is_bastion'] = _ApiClient["default"].convertToType(data['is_bastion'], 'Boolean');
+ }
+ if (data.hasOwnProperty('node_group_id')) {
+ obj['node_group_id'] = _ApiClient["default"].convertToType(data['node_group_id'], 'Number');
+ }
+ if (data.hasOwnProperty('node_group_name')) {
+ obj['node_group_name'] = _ApiClient["default"].convertToType(data['node_group_name'], 'String');
+ }
+ if (data.hasOwnProperty('requires_public_ip')) {
+ obj['requires_public_ip'] = _ApiClient["default"].convertToType(data['requires_public_ip'], 'Boolean');
+ }
+ if (data.hasOwnProperty('role')) {
+ obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
+ }
+ if (data.hasOwnProperty('status_reason')) {
+ obj['status_reason'] = _ApiClient["default"].convertToType(data['status_reason'], 'String');
+ }
+ if (data.hasOwnProperty('updated_at')) {
+ obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterNodeFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterNodeFields.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // validate the optional field `instance`
+ if (data['instance']) {
+ // data not null
+ _ClusterNodeInstanceFields["default"].validateJSON(data['instance']);
+ }
+ // ensure the json data is a string
+ if (data['node_group_name'] && !(typeof data['node_group_name'] === 'string' || data['node_group_name'] instanceof String)) {
+ throw new Error("Expected the field `node_group_name` to be a primitive type in the JSON string but got " + data['node_group_name']);
+ }
+ // ensure the json data is a string
+ if (data['role'] && !(typeof data['role'] === 'string' || data['role'] instanceof String)) {
+ throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data['role']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+ // ensure the json data is a string
+ if (data['status_reason'] && !(typeof data['status_reason'] === 'string' || data['status_reason'] instanceof String)) {
+ throw new Error("Expected the field `status_reason` to be a primitive type in the JSON string but got " + data['status_reason']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {Date} created_at
+ */
+ClusterNodeFields.prototype['created_at'] = undefined;
+
+/**
+ * @member {Number} id
+ */
+ClusterNodeFields.prototype['id'] = undefined;
+
+/**
+ * @member {module:model/ClusterNodeInstanceFields} instance
+ */
+ClusterNodeFields.prototype['instance'] = undefined;
+
+/**
+ * @member {Boolean} is_bastion
+ */
+ClusterNodeFields.prototype['is_bastion'] = undefined;
+
+/**
+ * @member {Number} node_group_id
+ */
+ClusterNodeFields.prototype['node_group_id'] = undefined;
+
+/**
+ * @member {String} node_group_name
+ */
+ClusterNodeFields.prototype['node_group_name'] = undefined;
+
+/**
+ * @member {Boolean} requires_public_ip
+ */
+ClusterNodeFields.prototype['requires_public_ip'] = undefined;
+
+/**
+ * @member {String} role
+ */
+ClusterNodeFields.prototype['role'] = undefined;
+
+/**
+ * @member {String} status
+ */
+ClusterNodeFields.prototype['status'] = undefined;
+
+/**
+ * @member {String} status_reason
+ */
+ClusterNodeFields.prototype['status_reason'] = undefined;
+
+/**
+ * @member {Date} updated_at
+ */
+ClusterNodeFields.prototype['updated_at'] = undefined;
+var _default = exports["default"] = ClusterNodeFields;
\ No newline at end of file
diff --git a/dist/model/ClusterNodeGroupFields.js b/dist/model/ClusterNodeGroupFields.js
new file mode 100644
index 00000000..ba13a3f6
--- /dev/null
+++ b/dist/model/ClusterNodeGroupFields.js
@@ -0,0 +1,208 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _ClusterFlavorFields = _interopRequireDefault(require("./ClusterFlavorFields"));
+var _ClusterNodeGroupFirewallFields = _interopRequireDefault(require("./ClusterNodeGroupFirewallFields"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
+function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
+function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The ClusterNodeGroupFields model module.
+ * @module model/ClusterNodeGroupFields
+ * @version v1.51.1-alpha
+ */
+var ClusterNodeGroupFields = /*#__PURE__*/function () {
+ /**
+ * Constructs a new ClusterNodeGroupFields.
+ * @alias module:model/ClusterNodeGroupFields
+ */
+ function ClusterNodeGroupFields() {
+ _classCallCheck(this, ClusterNodeGroupFields);
+ ClusterNodeGroupFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(ClusterNodeGroupFields, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a ClusterNodeGroupFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterNodeGroupFields} obj Optional instance to populate.
+ * @return {module:model/ClusterNodeGroupFields} The populated ClusterNodeGroupFields instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterNodeGroupFields();
+ if (data.hasOwnProperty('count')) {
+ obj['count'] = _ApiClient["default"].convertToType(data['count'], 'Number');
+ }
+ if (data.hasOwnProperty('created_at')) {
+ obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
+ }
+ if (data.hasOwnProperty('firewall_ids')) {
+ obj['firewall_ids'] = _ApiClient["default"].convertToType(data['firewall_ids'], ['Number']);
+ }
+ if (data.hasOwnProperty('firewalls')) {
+ obj['firewalls'] = _ApiClient["default"].convertToType(data['firewalls'], [_ClusterNodeGroupFirewallFields["default"]]);
+ }
+ if (data.hasOwnProperty('flavor')) {
+ obj['flavor'] = _ClusterFlavorFields["default"].constructFromObject(data['flavor']);
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('max_count')) {
+ obj['max_count'] = _ApiClient["default"].convertToType(data['max_count'], 'Number');
+ }
+ if (data.hasOwnProperty('min_count')) {
+ obj['min_count'] = _ApiClient["default"].convertToType(data['min_count'], 'Number');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('role')) {
+ obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String');
+ }
+ if (data.hasOwnProperty('updated_at')) {
+ obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterNodeGroupFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterNodeGroupFields.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is an array
+ if (!Array.isArray(data['firewall_ids'])) {
+ throw new Error("Expected the field `firewall_ids` to be an array in the JSON data but got " + data['firewall_ids']);
+ }
+ if (data['firewalls']) {
+ // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['firewalls'])) {
+ throw new Error("Expected the field `firewalls` to be an array in the JSON data but got " + data['firewalls']);
+ }
+ // validate the optional field `firewalls` (array)
+ var _iterator = _createForOfIteratorHelper(data['firewalls']),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var item = _step.value;
+ _ClusterNodeGroupFirewallFields["default"].validateJSON(item);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ ;
+ }
+ // validate the optional field `flavor`
+ if (data['flavor']) {
+ // data not null
+ _ClusterFlavorFields["default"].validateJSON(data['flavor']);
+ }
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ // ensure the json data is a string
+ if (data['role'] && !(typeof data['role'] === 'string' || data['role'] instanceof String)) {
+ throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data['role']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {Number} count
+ */
+ClusterNodeGroupFields.prototype['count'] = undefined;
+
+/**
+ * @member {Date} created_at
+ */
+ClusterNodeGroupFields.prototype['created_at'] = undefined;
+
+/**
+ * @member {Array.} firewall_ids
+ */
+ClusterNodeGroupFields.prototype['firewall_ids'] = undefined;
+
+/**
+ * @member {Array.} firewalls
+ */
+ClusterNodeGroupFields.prototype['firewalls'] = undefined;
+
+/**
+ * @member {module:model/ClusterFlavorFields} flavor
+ */
+ClusterNodeGroupFields.prototype['flavor'] = undefined;
+
+/**
+ * @member {Number} id
+ */
+ClusterNodeGroupFields.prototype['id'] = undefined;
+
+/**
+ * @member {Number} max_count
+ */
+ClusterNodeGroupFields.prototype['max_count'] = undefined;
+
+/**
+ * @member {Number} min_count
+ */
+ClusterNodeGroupFields.prototype['min_count'] = undefined;
+
+/**
+ * @member {String} name
+ */
+ClusterNodeGroupFields.prototype['name'] = undefined;
+
+/**
+ * @member {String} role
+ */
+ClusterNodeGroupFields.prototype['role'] = undefined;
+
+/**
+ * @member {Date} updated_at
+ */
+ClusterNodeGroupFields.prototype['updated_at'] = undefined;
+var _default = exports["default"] = ClusterNodeGroupFields;
\ No newline at end of file
diff --git a/dist/model/ClusterNodeGroupFirewallFields.js b/dist/model/ClusterNodeGroupFirewallFields.js
new file mode 100644
index 00000000..64744be2
--- /dev/null
+++ b/dist/model/ClusterNodeGroupFirewallFields.js
@@ -0,0 +1,109 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The ClusterNodeGroupFirewallFields model module.
+ * @module model/ClusterNodeGroupFirewallFields
+ * @version v1.51.1-alpha
+ */
+var ClusterNodeGroupFirewallFields = /*#__PURE__*/function () {
+ /**
+ * Constructs a new ClusterNodeGroupFirewallFields.
+ * @alias module:model/ClusterNodeGroupFirewallFields
+ */
+ function ClusterNodeGroupFirewallFields() {
+ _classCallCheck(this, ClusterNodeGroupFirewallFields);
+ ClusterNodeGroupFirewallFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(ClusterNodeGroupFirewallFields, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a ClusterNodeGroupFirewallFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterNodeGroupFirewallFields} obj Optional instance to populate.
+ * @return {module:model/ClusterNodeGroupFirewallFields} The populated ClusterNodeGroupFirewallFields instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterNodeGroupFirewallFields();
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterNodeGroupFirewallFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterNodeGroupFirewallFields.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {Number} id
+ */
+ClusterNodeGroupFirewallFields.prototype['id'] = undefined;
+
+/**
+ * @member {String} name
+ */
+ClusterNodeGroupFirewallFields.prototype['name'] = undefined;
+
+/**
+ * @member {String} status
+ */
+ClusterNodeGroupFirewallFields.prototype['status'] = undefined;
+var _default = exports["default"] = ClusterNodeGroupFirewallFields;
\ No newline at end of file
diff --git a/dist/model/ClusterNodeGroupsCreateResponse.js b/dist/model/ClusterNodeGroupsCreateResponse.js
new file mode 100644
index 00000000..dbdf7437
--- /dev/null
+++ b/dist/model/ClusterNodeGroupsCreateResponse.js
@@ -0,0 +1,144 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _ClusterNodeFields = _interopRequireDefault(require("./ClusterNodeFields"));
+var _ClusterNodeGroupFields = _interopRequireDefault(require("./ClusterNodeGroupFields"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
+function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
+function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The ClusterNodeGroupsCreateResponse model module.
+ * @module model/ClusterNodeGroupsCreateResponse
+ * @version v1.51.1-alpha
+ */
+var ClusterNodeGroupsCreateResponse = /*#__PURE__*/function () {
+ /**
+ * Constructs a new ClusterNodeGroupsCreateResponse.
+ * @alias module:model/ClusterNodeGroupsCreateResponse
+ */
+ function ClusterNodeGroupsCreateResponse() {
+ _classCallCheck(this, ClusterNodeGroupsCreateResponse);
+ ClusterNodeGroupsCreateResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(ClusterNodeGroupsCreateResponse, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a ClusterNodeGroupsCreateResponse from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterNodeGroupsCreateResponse} obj Optional instance to populate.
+ * @return {module:model/ClusterNodeGroupsCreateResponse} The populated ClusterNodeGroupsCreateResponse instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterNodeGroupsCreateResponse();
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('node_group')) {
+ obj['node_group'] = _ClusterNodeGroupFields["default"].constructFromObject(data['node_group']);
+ }
+ if (data.hasOwnProperty('nodes')) {
+ obj['nodes'] = _ApiClient["default"].convertToType(data['nodes'], [_ClusterNodeFields["default"]]);
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterNodeGroupsCreateResponse.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterNodeGroupsCreateResponse.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+ // validate the optional field `node_group`
+ if (data['node_group']) {
+ // data not null
+ _ClusterNodeGroupFields["default"].validateJSON(data['node_group']);
+ }
+ if (data['nodes']) {
+ // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['nodes'])) {
+ throw new Error("Expected the field `nodes` to be an array in the JSON data but got " + data['nodes']);
+ }
+ // validate the optional field `nodes` (array)
+ var _iterator = _createForOfIteratorHelper(data['nodes']),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var item = _step.value;
+ _ClusterNodeFields["default"].validateJSON(item);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ ;
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {String} message
+ */
+ClusterNodeGroupsCreateResponse.prototype['message'] = undefined;
+
+/**
+ * @member {module:model/ClusterNodeGroupFields} node_group
+ */
+ClusterNodeGroupsCreateResponse.prototype['node_group'] = undefined;
+
+/**
+ * @member {Array.} nodes
+ */
+ClusterNodeGroupsCreateResponse.prototype['nodes'] = undefined;
+
+/**
+ * @member {Boolean} status
+ */
+ClusterNodeGroupsCreateResponse.prototype['status'] = undefined;
+var _default = exports["default"] = ClusterNodeGroupsCreateResponse;
\ No newline at end of file
diff --git a/dist/model/ClusterNodeGroupsGetResponse.js b/dist/model/ClusterNodeGroupsGetResponse.js
new file mode 100644
index 00000000..9ceaa9f7
--- /dev/null
+++ b/dist/model/ClusterNodeGroupsGetResponse.js
@@ -0,0 +1,111 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _ClusterNodeGroupFields = _interopRequireDefault(require("./ClusterNodeGroupFields"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The ClusterNodeGroupsGetResponse model module.
+ * @module model/ClusterNodeGroupsGetResponse
+ * @version v1.51.1-alpha
+ */
+var ClusterNodeGroupsGetResponse = /*#__PURE__*/function () {
+ /**
+ * Constructs a new ClusterNodeGroupsGetResponse.
+ * @alias module:model/ClusterNodeGroupsGetResponse
+ */
+ function ClusterNodeGroupsGetResponse() {
+ _classCallCheck(this, ClusterNodeGroupsGetResponse);
+ ClusterNodeGroupsGetResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(ClusterNodeGroupsGetResponse, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a ClusterNodeGroupsGetResponse from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterNodeGroupsGetResponse} obj Optional instance to populate.
+ * @return {module:model/ClusterNodeGroupsGetResponse} The populated ClusterNodeGroupsGetResponse instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterNodeGroupsGetResponse();
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('node_group')) {
+ obj['node_group'] = _ClusterNodeGroupFields["default"].constructFromObject(data['node_group']);
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterNodeGroupsGetResponse.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterNodeGroupsGetResponse.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+ // validate the optional field `node_group`
+ if (data['node_group']) {
+ // data not null
+ _ClusterNodeGroupFields["default"].validateJSON(data['node_group']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {String} message
+ */
+ClusterNodeGroupsGetResponse.prototype['message'] = undefined;
+
+/**
+ * @member {module:model/ClusterNodeGroupFields} node_group
+ */
+ClusterNodeGroupsGetResponse.prototype['node_group'] = undefined;
+
+/**
+ * @member {Boolean} status
+ */
+ClusterNodeGroupsGetResponse.prototype['status'] = undefined;
+var _default = exports["default"] = ClusterNodeGroupsGetResponse;
\ No newline at end of file
diff --git a/dist/model/ClusterNodeGroupsListResponse.js b/dist/model/ClusterNodeGroupsListResponse.js
new file mode 100644
index 00000000..b585071f
--- /dev/null
+++ b/dist/model/ClusterNodeGroupsListResponse.js
@@ -0,0 +1,130 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _ClusterNodeGroupFields = _interopRequireDefault(require("./ClusterNodeGroupFields"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
+function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
+function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The ClusterNodeGroupsListResponse model module.
+ * @module model/ClusterNodeGroupsListResponse
+ * @version v1.51.1-alpha
+ */
+var ClusterNodeGroupsListResponse = /*#__PURE__*/function () {
+ /**
+ * Constructs a new ClusterNodeGroupsListResponse.
+ * @alias module:model/ClusterNodeGroupsListResponse
+ */
+ function ClusterNodeGroupsListResponse() {
+ _classCallCheck(this, ClusterNodeGroupsListResponse);
+ ClusterNodeGroupsListResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(ClusterNodeGroupsListResponse, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a ClusterNodeGroupsListResponse from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterNodeGroupsListResponse} obj Optional instance to populate.
+ * @return {module:model/ClusterNodeGroupsListResponse} The populated ClusterNodeGroupsListResponse instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterNodeGroupsListResponse();
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('node_groups')) {
+ obj['node_groups'] = _ApiClient["default"].convertToType(data['node_groups'], [_ClusterNodeGroupFields["default"]]);
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterNodeGroupsListResponse.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterNodeGroupsListResponse.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+ if (data['node_groups']) {
+ // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['node_groups'])) {
+ throw new Error("Expected the field `node_groups` to be an array in the JSON data but got " + data['node_groups']);
+ }
+ // validate the optional field `node_groups` (array)
+ var _iterator = _createForOfIteratorHelper(data['node_groups']),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var item = _step.value;
+ _ClusterNodeGroupFields["default"].validateJSON(item);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ ;
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {String} message
+ */
+ClusterNodeGroupsListResponse.prototype['message'] = undefined;
+
+/**
+ * @member {Array.} node_groups
+ */
+ClusterNodeGroupsListResponse.prototype['node_groups'] = undefined;
+
+/**
+ * @member {Boolean} status
+ */
+ClusterNodeGroupsListResponse.prototype['status'] = undefined;
+var _default = exports["default"] = ClusterNodeGroupsListResponse;
\ No newline at end of file
diff --git a/dist/model/ClusterNodeInstanceFields.js b/dist/model/ClusterNodeInstanceFields.js
new file mode 100644
index 00000000..0242b9fc
--- /dev/null
+++ b/dist/model/ClusterNodeInstanceFields.js
@@ -0,0 +1,161 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The ClusterNodeInstanceFields model module.
+ * @module model/ClusterNodeInstanceFields
+ * @version v1.51.1-alpha
+ */
+var ClusterNodeInstanceFields = /*#__PURE__*/function () {
+ /**
+ * Constructs a new ClusterNodeInstanceFields.
+ * @alias module:model/ClusterNodeInstanceFields
+ */
+ function ClusterNodeInstanceFields() {
+ _classCallCheck(this, ClusterNodeInstanceFields);
+ ClusterNodeInstanceFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(ClusterNodeInstanceFields, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a ClusterNodeInstanceFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterNodeInstanceFields} obj Optional instance to populate.
+ * @return {module:model/ClusterNodeInstanceFields} The populated ClusterNodeInstanceFields instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterNodeInstanceFields();
+ if (data.hasOwnProperty('contract_id')) {
+ obj['contract_id'] = _ApiClient["default"].convertToType(data['contract_id'], 'Number');
+ }
+ if (data.hasOwnProperty('fixed_ip')) {
+ obj['fixed_ip'] = _ApiClient["default"].convertToType(data['fixed_ip'], 'String');
+ }
+ if (data.hasOwnProperty('floating_ip')) {
+ obj['floating_ip'] = _ApiClient["default"].convertToType(data['floating_ip'], 'String');
+ }
+ if (data.hasOwnProperty('floating_ip_status')) {
+ obj['floating_ip_status'] = _ApiClient["default"].convertToType(data['floating_ip_status'], 'String');
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('image_id')) {
+ obj['image_id'] = _ApiClient["default"].convertToType(data['image_id'], 'Number');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterNodeInstanceFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterNodeInstanceFields.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['fixed_ip'] && !(typeof data['fixed_ip'] === 'string' || data['fixed_ip'] instanceof String)) {
+ throw new Error("Expected the field `fixed_ip` to be a primitive type in the JSON string but got " + data['fixed_ip']);
+ }
+ // ensure the json data is a string
+ if (data['floating_ip'] && !(typeof data['floating_ip'] === 'string' || data['floating_ip'] instanceof String)) {
+ throw new Error("Expected the field `floating_ip` to be a primitive type in the JSON string but got " + data['floating_ip']);
+ }
+ // ensure the json data is a string
+ if (data['floating_ip_status'] && !(typeof data['floating_ip_status'] === 'string' || data['floating_ip_status'] instanceof String)) {
+ throw new Error("Expected the field `floating_ip_status` to be a primitive type in the JSON string but got " + data['floating_ip_status']);
+ }
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {Number} contract_id
+ */
+ClusterNodeInstanceFields.prototype['contract_id'] = undefined;
+
+/**
+ * @member {String} fixed_ip
+ */
+ClusterNodeInstanceFields.prototype['fixed_ip'] = undefined;
+
+/**
+ * @member {String} floating_ip
+ */
+ClusterNodeInstanceFields.prototype['floating_ip'] = undefined;
+
+/**
+ * @member {String} floating_ip_status
+ */
+ClusterNodeInstanceFields.prototype['floating_ip_status'] = undefined;
+
+/**
+ * @member {Number} id
+ */
+ClusterNodeInstanceFields.prototype['id'] = undefined;
+
+/**
+ * @member {Number} image_id
+ */
+ClusterNodeInstanceFields.prototype['image_id'] = undefined;
+
+/**
+ * @member {String} name
+ */
+ClusterNodeInstanceFields.prototype['name'] = undefined;
+
+/**
+ * @member {String} status
+ */
+ClusterNodeInstanceFields.prototype['status'] = undefined;
+var _default = exports["default"] = ClusterNodeInstanceFields;
\ No newline at end of file
diff --git a/dist/model/ClusterNodesListResponse.js b/dist/model/ClusterNodesListResponse.js
new file mode 100644
index 00000000..6fbb5e2e
--- /dev/null
+++ b/dist/model/ClusterNodesListResponse.js
@@ -0,0 +1,130 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _ClusterNodeFields = _interopRequireDefault(require("./ClusterNodeFields"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
+function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
+function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The ClusterNodesListResponse model module.
+ * @module model/ClusterNodesListResponse
+ * @version v1.51.1-alpha
+ */
+var ClusterNodesListResponse = /*#__PURE__*/function () {
+ /**
+ * Constructs a new ClusterNodesListResponse.
+ * @alias module:model/ClusterNodesListResponse
+ */
+ function ClusterNodesListResponse() {
+ _classCallCheck(this, ClusterNodesListResponse);
+ ClusterNodesListResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(ClusterNodesListResponse, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a ClusterNodesListResponse from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterNodesListResponse} obj Optional instance to populate.
+ * @return {module:model/ClusterNodesListResponse} The populated ClusterNodesListResponse instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterNodesListResponse();
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('nodes')) {
+ obj['nodes'] = _ApiClient["default"].convertToType(data['nodes'], [_ClusterNodeFields["default"]]);
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterNodesListResponse.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterNodesListResponse.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+ if (data['nodes']) {
+ // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['nodes'])) {
+ throw new Error("Expected the field `nodes` to be an array in the JSON data but got " + data['nodes']);
+ }
+ // validate the optional field `nodes` (array)
+ var _iterator = _createForOfIteratorHelper(data['nodes']),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var item = _step.value;
+ _ClusterNodeFields["default"].validateJSON(item);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ ;
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {String} message
+ */
+ClusterNodesListResponse.prototype['message'] = undefined;
+
+/**
+ * @member {Array.} nodes
+ */
+ClusterNodesListResponse.prototype['nodes'] = undefined;
+
+/**
+ * @member {Boolean} status
+ */
+ClusterNodesListResponse.prototype['status'] = undefined;
+var _default = exports["default"] = ClusterNodesListResponse;
\ No newline at end of file
diff --git a/dist/model/ClusterResponse.js b/dist/model/ClusterResponse.js
index e922c514..cb41cc05 100644
--- a/dist/model/ClusterResponse.js
+++ b/dist/model/ClusterResponse.js
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The ClusterResponse model module.
* @module model/ClusterResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var ClusterResponse = /*#__PURE__*/function () {
/**
diff --git a/dist/model/ClusterVersion.js b/dist/model/ClusterVersion.js
new file mode 100644
index 00000000..8b00cd18
--- /dev/null
+++ b/dist/model/ClusterVersion.js
@@ -0,0 +1,133 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The ClusterVersion model module.
+ * @module model/ClusterVersion
+ * @version v1.51.1-alpha
+ */
+var ClusterVersion = /*#__PURE__*/function () {
+ /**
+ * Constructs a new ClusterVersion.
+ * @alias module:model/ClusterVersion
+ */
+ function ClusterVersion() {
+ _classCallCheck(this, ClusterVersion);
+ ClusterVersion.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(ClusterVersion, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a ClusterVersion from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterVersion} obj Optional instance to populate.
+ * @return {module:model/ClusterVersion} The populated ClusterVersion instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterVersion();
+ if (data.hasOwnProperty('created_at')) {
+ obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('image')) {
+ obj['image'] = _ApiClient["default"].convertToType(data['image'], Object);
+ }
+ if (data.hasOwnProperty('region')) {
+ obj['region'] = _ApiClient["default"].convertToType(data['region'], Object);
+ }
+ if (data.hasOwnProperty('updated_at')) {
+ obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
+ }
+ if (data.hasOwnProperty('version')) {
+ obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterVersion.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterVersion.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
+ throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ *
+ * @member {Date} created_at
+ */
+ClusterVersion.prototype['created_at'] = undefined;
+
+/**
+ *
+ * @member {Number} id
+ */
+ClusterVersion.prototype['id'] = undefined;
+
+/**
+ * @member {Object} image
+ */
+ClusterVersion.prototype['image'] = undefined;
+
+/**
+ * @member {Object} region
+ */
+ClusterVersion.prototype['region'] = undefined;
+
+/**
+ *
+ * @member {Date} updated_at
+ */
+ClusterVersion.prototype['updated_at'] = undefined;
+
+/**
+ *
+ * @member {String} version
+ */
+ClusterVersion.prototype['version'] = undefined;
+var _default = exports["default"] = ClusterVersion;
\ No newline at end of file
diff --git a/dist/model/ClusterVersions.js b/dist/model/ClusterVersions.js
index 5fe3ff5d..c4560fc3 100644
--- a/dist/model/ClusterVersions.js
+++ b/dist/model/ClusterVersions.js
@@ -5,8 +5,12 @@ Object.defineProperty(exports, "__esModule", {
});
exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _ClusterVersion = _interopRequireDefault(require("./ClusterVersion"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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); }
+function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
+function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
+function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
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); } }
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
@@ -26,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The ClusterVersions model module.
* @module model/ClusterVersions
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var ClusterVersions = /*#__PURE__*/function () {
/**
@@ -66,7 +70,7 @@ var ClusterVersions = /*#__PURE__*/function () {
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
}
if (data.hasOwnProperty('versions')) {
- obj['versions'] = _ApiClient["default"].convertToType(data['versions'], ['String']);
+ obj['versions'] = _ApiClient["default"].convertToType(data['versions'], [_ClusterVersion["default"]]);
}
}
return obj;
@@ -84,9 +88,26 @@ var ClusterVersions = /*#__PURE__*/function () {
if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
}
- // ensure the json data is an array
- if (!Array.isArray(data['versions'])) {
- throw new Error("Expected the field `versions` to be an array in the JSON data but got " + data['versions']);
+ if (data['versions']) {
+ // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['versions'])) {
+ throw new Error("Expected the field `versions` to be an array in the JSON data but got " + data['versions']);
+ }
+ // validate the optional field `versions` (array)
+ var _iterator = _createForOfIteratorHelper(data['versions']),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var item = _step.value;
+ _ClusterVersion["default"].validateJSON(item);
+ }
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ ;
}
return true;
}
@@ -103,7 +124,7 @@ ClusterVersions.prototype['message'] = undefined;
ClusterVersions.prototype['status'] = undefined;
/**
- * @member {Array.} versions
+ * @member {Array.} versions
*/
ClusterVersions.prototype['versions'] = undefined;
var _default = exports["default"] = ClusterVersions;
\ No newline at end of file
diff --git a/dist/model/Colors.js b/dist/model/Colors.js
new file mode 100644
index 00000000..5f64a356
--- /dev/null
+++ b/dist/model/Colors.js
@@ -0,0 +1,105 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _PrimaryColor = _interopRequireDefault(require("./PrimaryColor"));
+var _SecondaryColor = _interopRequireDefault(require("./SecondaryColor"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The Colors model module.
+ * @module model/Colors
+ * @version v1.51.1-alpha
+ */
+var Colors = /*#__PURE__*/function () {
+ /**
+ * Constructs a new Colors.
+ * @alias module:model/Colors
+ */
+ function Colors() {
+ _classCallCheck(this, Colors);
+ Colors.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(Colors, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a Colors from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Colors} obj Optional instance to populate.
+ * @return {module:model/Colors} The populated Colors instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new Colors();
+ if (data.hasOwnProperty('primary')) {
+ obj['primary'] = _PrimaryColor["default"].constructFromObject(data['primary']);
+ }
+ if (data.hasOwnProperty('secondary')) {
+ obj['secondary'] = _SecondaryColor["default"].constructFromObject(data['secondary']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to Colors.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to Colors.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // validate the optional field `primary`
+ if (data['primary']) {
+ // data not null
+ _PrimaryColor["default"].validateJSON(data['primary']);
+ }
+ // validate the optional field `secondary`
+ if (data['secondary']) {
+ // data not null
+ _SecondaryColor["default"].validateJSON(data['secondary']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {module:model/PrimaryColor} primary
+ */
+Colors.prototype['primary'] = undefined;
+
+/**
+ * @member {module:model/SecondaryColor} secondary
+ */
+Colors.prototype['secondary'] = undefined;
+var _default = exports["default"] = Colors;
\ No newline at end of file
diff --git a/dist/model/CommonResponseModel.js b/dist/model/CommonResponseModel.js
index 41a60027..7e0bd95a 100644
--- a/dist/model/CommonResponseModel.js
+++ b/dist/model/CommonResponseModel.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CommonResponseModel model module.
* @module model/CommonResponseModel
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CommonResponseModel = /*#__PURE__*/function () {
/**
diff --git a/dist/model/CompatibleFlavor.js b/dist/model/CompatibleFlavor.js
new file mode 100644
index 00000000..b9885566
--- /dev/null
+++ b/dist/model/CompatibleFlavor.js
@@ -0,0 +1,131 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The CompatibleFlavor model module.
+ * @module model/CompatibleFlavor
+ * @version v1.51.1-alpha
+ */
+var CompatibleFlavor = /*#__PURE__*/function () {
+ /**
+ * Constructs a new CompatibleFlavor.
+ * @alias module:model/CompatibleFlavor
+ */
+ function CompatibleFlavor() {
+ _classCallCheck(this, CompatibleFlavor);
+ CompatibleFlavor.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(CompatibleFlavor, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a CompatibleFlavor from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CompatibleFlavor} obj Optional instance to populate.
+ * @return {module:model/CompatibleFlavor} The populated CompatibleFlavor instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new CompatibleFlavor();
+ if (data.hasOwnProperty('constraints')) {
+ obj['constraints'] = _ApiClient["default"].convertToType(data['constraints'], Object);
+ }
+ if (data.hasOwnProperty('flavor_id')) {
+ obj['flavor_id'] = _ApiClient["default"].convertToType(data['flavor_id'], 'Number');
+ }
+ if (data.hasOwnProperty('flavor_name')) {
+ obj['flavor_name'] = _ApiClient["default"].convertToType(data['flavor_name'], 'String');
+ }
+ if (data.hasOwnProperty('link_type')) {
+ obj['link_type'] = _ApiClient["default"].convertToType(data['link_type'], 'String');
+ }
+ if (data.hasOwnProperty('reason')) {
+ obj['reason'] = _ApiClient["default"].convertToType(data['reason'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to CompatibleFlavor.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to CompatibleFlavor.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['flavor_name'] && !(typeof data['flavor_name'] === 'string' || data['flavor_name'] instanceof String)) {
+ throw new Error("Expected the field `flavor_name` to be a primitive type in the JSON string but got " + data['flavor_name']);
+ }
+ // ensure the json data is a string
+ if (data['link_type'] && !(typeof data['link_type'] === 'string' || data['link_type'] instanceof String)) {
+ throw new Error("Expected the field `link_type` to be a primitive type in the JSON string but got " + data['link_type']);
+ }
+ // ensure the json data is a string
+ if (data['reason'] && !(typeof data['reason'] === 'string' || data['reason'] instanceof String)) {
+ throw new Error("Expected the field `reason` to be a primitive type in the JSON string but got " + data['reason']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * JSON constraints object
+ * @member {Object} constraints
+ */
+CompatibleFlavor.prototype['constraints'] = undefined;
+
+/**
+ * @member {Number} flavor_id
+ */
+CompatibleFlavor.prototype['flavor_id'] = undefined;
+
+/**
+ * @member {String} flavor_name
+ */
+CompatibleFlavor.prototype['flavor_name'] = undefined;
+
+/**
+ * Either 'hard' or 'soft'
+ * @member {String} link_type
+ */
+CompatibleFlavor.prototype['link_type'] = undefined;
+
+/**
+ * @member {String} reason
+ */
+CompatibleFlavor.prototype['reason'] = undefined;
+var _default = exports["default"] = CompatibleFlavor;
\ No newline at end of file
diff --git a/dist/model/ComplianceFields.js b/dist/model/ComplianceFields.js
index 664c5518..27e7a97a 100644
--- a/dist/model/ComplianceFields.js
+++ b/dist/model/ComplianceFields.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The ComplianceFields model module.
* @module model/ComplianceFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var ComplianceFields = /*#__PURE__*/function () {
/**
diff --git a/dist/model/ComplianceModelFields.js b/dist/model/ComplianceModelFields.js
index 29cfe25b..3ee43be4 100644
--- a/dist/model/ComplianceModelFields.js
+++ b/dist/model/ComplianceModelFields.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The ComplianceModelFields model module.
* @module model/ComplianceModelFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var ComplianceModelFields = /*#__PURE__*/function () {
/**
diff --git a/dist/model/CompliancePayload.js b/dist/model/CompliancePayload.js
index 74954380..16a521a7 100644
--- a/dist/model/CompliancePayload.js
+++ b/dist/model/CompliancePayload.js
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CompliancePayload model module.
* @module model/CompliancePayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CompliancePayload = /*#__PURE__*/function () {
/**
diff --git a/dist/model/ComplianceResponse.js b/dist/model/ComplianceResponse.js
index 70621235..c10a3261 100644
--- a/dist/model/ComplianceResponse.js
+++ b/dist/model/ComplianceResponse.js
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The ComplianceResponse model module.
* @module model/ComplianceResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var ComplianceResponse = /*#__PURE__*/function () {
/**
diff --git a/dist/model/ContainerOverviewFields.js b/dist/model/ContainerOverviewFields.js
index 10a71204..57056cc6 100644
--- a/dist/model/ContainerOverviewFields.js
+++ b/dist/model/ContainerOverviewFields.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The ContainerOverviewFields model module.
* @module model/ContainerOverviewFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var ContainerOverviewFields = /*#__PURE__*/function () {
/**
diff --git a/dist/model/Contract.js b/dist/model/Contract.js
index 0065b943..5a43089c 100644
--- a/dist/model/Contract.js
+++ b/dist/model/Contract.js
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The Contract model module.
* @module model/Contract
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var Contract = /*#__PURE__*/function () {
/**
diff --git a/dist/model/ContractBillingHistory.js b/dist/model/ContractBillingHistory.js
deleted file mode 100644
index 005bedd6..00000000
--- a/dist/model/ContractBillingHistory.js
+++ /dev/null
@@ -1,105 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _ContractBillingHistoryResponseAttributes = _interopRequireDefault(require("./ContractBillingHistoryResponseAttributes"));
-var _ContractlBillingHistoryResponseMetrics = _interopRequireDefault(require("./ContractlBillingHistoryResponseMetrics"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The ContractBillingHistory model module.
- * @module model/ContractBillingHistory
- * @version v1.25.0-alpha
- */
-var ContractBillingHistory = /*#__PURE__*/function () {
- /**
- * Constructs a new ContractBillingHistory.
- * @alias module:model/ContractBillingHistory
- */
- function ContractBillingHistory() {
- _classCallCheck(this, ContractBillingHistory);
- ContractBillingHistory.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(ContractBillingHistory, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a ContractBillingHistory from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractBillingHistory} obj Optional instance to populate.
- * @return {module:model/ContractBillingHistory} The populated ContractBillingHistory instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractBillingHistory();
- if (data.hasOwnProperty('attributes')) {
- obj['attributes'] = _ContractBillingHistoryResponseAttributes["default"].constructFromObject(data['attributes']);
- }
- if (data.hasOwnProperty('metrics')) {
- obj['metrics'] = _ContractlBillingHistoryResponseMetrics["default"].constructFromObject(data['metrics']);
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractBillingHistory.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractBillingHistory.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // validate the optional field `attributes`
- if (data['attributes']) {
- // data not null
- _ContractBillingHistoryResponseAttributes["default"].validateJSON(data['attributes']);
- }
- // validate the optional field `metrics`
- if (data['metrics']) {
- // data not null
- _ContractlBillingHistoryResponseMetrics["default"].validateJSON(data['metrics']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {module:model/ContractBillingHistoryResponseAttributes} attributes
- */
-ContractBillingHistory.prototype['attributes'] = undefined;
-
-/**
- * @member {module:model/ContractlBillingHistoryResponseMetrics} metrics
- */
-ContractBillingHistory.prototype['metrics'] = undefined;
-var _default = exports["default"] = ContractBillingHistory;
\ No newline at end of file
diff --git a/dist/model/ContractBillingHistoryResponseAttributes.js b/dist/model/ContractBillingHistoryResponseAttributes.js
deleted file mode 100644
index 1ad77670..00000000
--- a/dist/model/ContractBillingHistoryResponseAttributes.js
+++ /dev/null
@@ -1,149 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The ContractBillingHistoryResponseAttributes model module.
- * @module model/ContractBillingHistoryResponseAttributes
- * @version v1.25.0-alpha
- */
-var ContractBillingHistoryResponseAttributes = /*#__PURE__*/function () {
- /**
- * Constructs a new ContractBillingHistoryResponseAttributes.
- * @alias module:model/ContractBillingHistoryResponseAttributes
- */
- function ContractBillingHistoryResponseAttributes() {
- _classCallCheck(this, ContractBillingHistoryResponseAttributes);
- ContractBillingHistoryResponseAttributes.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(ContractBillingHistoryResponseAttributes, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a ContractBillingHistoryResponseAttributes from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractBillingHistoryResponseAttributes} obj Optional instance to populate.
- * @return {module:model/ContractBillingHistoryResponseAttributes} The populated ContractBillingHistoryResponseAttributes instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractBillingHistoryResponseAttributes();
- if (data.hasOwnProperty('description')) {
- obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
- }
- if (data.hasOwnProperty('end_date')) {
- obj['end_date'] = _ApiClient["default"].convertToType(data['end_date'], 'String');
- }
- if (data.hasOwnProperty('gpu_count')) {
- obj['gpu_count'] = _ApiClient["default"].convertToType(data['gpu_count'], 'Number');
- }
- if (data.hasOwnProperty('gpu_name')) {
- obj['gpu_name'] = _ApiClient["default"].convertToType(data['gpu_name'], 'String');
- }
- if (data.hasOwnProperty('id')) {
- obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
- }
- if (data.hasOwnProperty('infrahub_id')) {
- obj['infrahub_id'] = _ApiClient["default"].convertToType(data['infrahub_id'], 'Number');
- }
- if (data.hasOwnProperty('price_per_hour')) {
- obj['price_per_hour'] = _ApiClient["default"].convertToType(data['price_per_hour'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractBillingHistoryResponseAttributes.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractBillingHistoryResponseAttributes.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is a string
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
- }
- // ensure the json data is a string
- if (data['end_date'] && !(typeof data['end_date'] === 'string' || data['end_date'] instanceof String)) {
- throw new Error("Expected the field `end_date` to be a primitive type in the JSON string but got " + data['end_date']);
- }
- // ensure the json data is a string
- if (data['gpu_name'] && !(typeof data['gpu_name'] === 'string' || data['gpu_name'] instanceof String)) {
- throw new Error("Expected the field `gpu_name` to be a primitive type in the JSON string but got " + data['gpu_name']);
- }
- // ensure the json data is a string
- if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
- throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {String} description
- */
-ContractBillingHistoryResponseAttributes.prototype['description'] = undefined;
-
-/**
- * @member {String} end_date
- */
-ContractBillingHistoryResponseAttributes.prototype['end_date'] = undefined;
-
-/**
- * @member {Number} gpu_count
- */
-ContractBillingHistoryResponseAttributes.prototype['gpu_count'] = undefined;
-
-/**
- * @member {String} gpu_name
- */
-ContractBillingHistoryResponseAttributes.prototype['gpu_name'] = undefined;
-
-/**
- * @member {String} id
- */
-ContractBillingHistoryResponseAttributes.prototype['id'] = undefined;
-
-/**
- * @member {Number} infrahub_id
- */
-ContractBillingHistoryResponseAttributes.prototype['infrahub_id'] = undefined;
-
-/**
- * @member {Number} price_per_hour
- */
-ContractBillingHistoryResponseAttributes.prototype['price_per_hour'] = undefined;
-var _default = exports["default"] = ContractBillingHistoryResponseAttributes;
\ No newline at end of file
diff --git a/dist/model/ContractBillingHistoryResponseModel.js b/dist/model/ContractBillingHistoryResponseModel.js
deleted file mode 100644
index 2c5b8fa0..00000000
--- a/dist/model/ContractBillingHistoryResponseModel.js
+++ /dev/null
@@ -1,111 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _ContractBillingHistory = _interopRequireDefault(require("./ContractBillingHistory"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The ContractBillingHistoryResponseModel model module.
- * @module model/ContractBillingHistoryResponseModel
- * @version v1.25.0-alpha
- */
-var ContractBillingHistoryResponseModel = /*#__PURE__*/function () {
- /**
- * Constructs a new ContractBillingHistoryResponseModel.
- * @alias module:model/ContractBillingHistoryResponseModel
- */
- function ContractBillingHistoryResponseModel() {
- _classCallCheck(this, ContractBillingHistoryResponseModel);
- ContractBillingHistoryResponseModel.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(ContractBillingHistoryResponseModel, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a ContractBillingHistoryResponseModel from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractBillingHistoryResponseModel} obj Optional instance to populate.
- * @return {module:model/ContractBillingHistoryResponseModel} The populated ContractBillingHistoryResponseModel instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractBillingHistoryResponseModel();
- if (data.hasOwnProperty('billing_history_contract')) {
- obj['billing_history_contract'] = _ContractBillingHistory["default"].constructFromObject(data['billing_history_contract']);
- }
- if (data.hasOwnProperty('message')) {
- obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractBillingHistoryResponseModel.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractBillingHistoryResponseModel.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // validate the optional field `billing_history_contract`
- if (data['billing_history_contract']) {
- // data not null
- _ContractBillingHistory["default"].validateJSON(data['billing_history_contract']);
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {module:model/ContractBillingHistory} billing_history_contract
- */
-ContractBillingHistoryResponseModel.prototype['billing_history_contract'] = undefined;
-
-/**
- * @member {String} message
- */
-ContractBillingHistoryResponseModel.prototype['message'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-ContractBillingHistoryResponseModel.prototype['status'] = undefined;
-var _default = exports["default"] = ContractBillingHistoryResponseModel;
\ No newline at end of file
diff --git a/dist/model/ContractChangePayload.js b/dist/model/ContractChangePayload.js
deleted file mode 100644
index 4d29b7e0..00000000
--- a/dist/model/ContractChangePayload.js
+++ /dev/null
@@ -1,166 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _FieldChange = _interopRequireDefault(require("./FieldChange"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The ContractChangePayload model module.
- * @module model/ContractChangePayload
- * @version v1.25.0-alpha
- */
-var ContractChangePayload = /*#__PURE__*/function () {
- /**
- * Constructs a new ContractChangePayload.
- * @alias module:model/ContractChangePayload
- * @param id {Number} The ID of the contract
- * @param orgId {Number} The ORG ID of the contract
- * @param type {String} Purpose of the change: created, deleted, expired, or updated
- */
- function ContractChangePayload(id, orgId, type) {
- _classCallCheck(this, ContractChangePayload);
- ContractChangePayload.initialize(this, id, orgId, type);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(ContractChangePayload, null, [{
- key: "initialize",
- value: function initialize(obj, id, orgId, type) {
- obj['id'] = id;
- obj['org_id'] = orgId;
- obj['type'] = type;
- }
-
- /**
- * Constructs a ContractChangePayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractChangePayload} obj Optional instance to populate.
- * @return {module:model/ContractChangePayload} The populated ContractChangePayload instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractChangePayload();
- if (data.hasOwnProperty('changes')) {
- obj['changes'] = _ApiClient["default"].convertToType(data['changes'], [_FieldChange["default"]]);
- }
- if (data.hasOwnProperty('id')) {
- obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
- }
- if (data.hasOwnProperty('org_id')) {
- obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
- }
- if (data.hasOwnProperty('type')) {
- obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractChangePayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractChangePayload.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- var _iterator = _createForOfIteratorHelper(ContractChangePayload.RequiredProperties),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var property = _step.value;
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- if (data['changes']) {
- // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['changes'])) {
- throw new Error("Expected the field `changes` to be an array in the JSON data but got " + data['changes']);
- }
- // validate the optional field `changes` (array)
- var _iterator2 = _createForOfIteratorHelper(data['changes']),
- _step2;
- try {
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
- var item = _step2.value;
- _FieldChange["default"].validateJSON(item);
- }
- } catch (err) {
- _iterator2.e(err);
- } finally {
- _iterator2.f();
- }
- ;
- }
- // ensure the json data is a string
- if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
- throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
- }
- return true;
- }
- }]);
-}();
-ContractChangePayload.RequiredProperties = ["id", "org_id", "type"];
-
-/**
- * List of field changes for 'updated' type
- * @member {Array.} changes
- */
-ContractChangePayload.prototype['changes'] = undefined;
-
-/**
- * The ID of the contract
- * @member {Number} id
- */
-ContractChangePayload.prototype['id'] = undefined;
-
-/**
- * The ORG ID of the contract
- * @member {Number} org_id
- */
-ContractChangePayload.prototype['org_id'] = undefined;
-
-/**
- * Purpose of the change: created, deleted, expired, or updated
- * @member {String} type
- */
-ContractChangePayload.prototype['type'] = undefined;
-var _default = exports["default"] = ContractChangePayload;
\ No newline at end of file
diff --git a/dist/model/ContractDiscountPlanFields.js b/dist/model/ContractDiscountPlanFields.js
index bc69631f..fa64f488 100644
--- a/dist/model/ContractDiscountPlanFields.js
+++ b/dist/model/ContractDiscountPlanFields.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The ContractDiscountPlanFields model module.
* @module model/ContractDiscountPlanFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var ContractDiscountPlanFields = /*#__PURE__*/function () {
/**
@@ -77,6 +77,9 @@ var ContractDiscountPlanFields = /*#__PURE__*/function () {
if (data.hasOwnProperty('id')) {
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
}
+ if (data.hasOwnProperty('remaining_count')) {
+ obj['remaining_count'] = _ApiClient["default"].convertToType(data['remaining_count'], 'Number');
+ }
if (data.hasOwnProperty('resource_count')) {
obj['resource_count'] = _ApiClient["default"].convertToType(data['resource_count'], 'Number');
}
@@ -148,6 +151,11 @@ ContractDiscountPlanFields.prototype['discount_type'] = undefined;
*/
ContractDiscountPlanFields.prototype['id'] = undefined;
+/**
+ * @member {Number} remaining_count
+ */
+ContractDiscountPlanFields.prototype['remaining_count'] = undefined;
+
/**
* @member {Number} resource_count
*/
diff --git a/dist/model/ContractEligibleInstanceFields.js b/dist/model/ContractEligibleInstanceFields.js
deleted file mode 100644
index 4e0dbde6..00000000
--- a/dist/model/ContractEligibleInstanceFields.js
+++ /dev/null
@@ -1,153 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The ContractEligibleInstanceFields model module.
- * @module model/ContractEligibleInstanceFields
- * @version v1.25.0-alpha
- */
-var ContractEligibleInstanceFields = /*#__PURE__*/function () {
- /**
- * Constructs a new ContractEligibleInstanceFields.
- * @alias module:model/ContractEligibleInstanceFields
- */
- function ContractEligibleInstanceFields() {
- _classCallCheck(this, ContractEligibleInstanceFields);
- ContractEligibleInstanceFields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(ContractEligibleInstanceFields, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a ContractEligibleInstanceFields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractEligibleInstanceFields} obj Optional instance to populate.
- * @return {module:model/ContractEligibleInstanceFields} The populated ContractEligibleInstanceFields instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractEligibleInstanceFields();
- if (data.hasOwnProperty('contract_id')) {
- obj['contract_id'] = _ApiClient["default"].convertToType(data['contract_id'], 'Number');
- }
- if (data.hasOwnProperty('host')) {
- obj['host'] = _ApiClient["default"].convertToType(data['host'], 'String');
- }
- if (data.hasOwnProperty('id')) {
- obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
- }
- if (data.hasOwnProperty('name')) {
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
- }
- if (data.hasOwnProperty('openstack_id')) {
- obj['openstack_id'] = _ApiClient["default"].convertToType(data['openstack_id'], 'String');
- }
- if (data.hasOwnProperty('public_ip')) {
- obj['public_ip'] = _ApiClient["default"].convertToType(data['public_ip'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractEligibleInstanceFields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractEligibleInstanceFields.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is a string
- if (data['host'] && !(typeof data['host'] === 'string' || data['host'] instanceof String)) {
- throw new Error("Expected the field `host` to be a primitive type in the JSON string but got " + data['host']);
- }
- // ensure the json data is a string
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
- }
- // ensure the json data is a string
- if (data['openstack_id'] && !(typeof data['openstack_id'] === 'string' || data['openstack_id'] instanceof String)) {
- throw new Error("Expected the field `openstack_id` to be a primitive type in the JSON string but got " + data['openstack_id']);
- }
- // ensure the json data is a string
- if (data['public_ip'] && !(typeof data['public_ip'] === 'string' || data['public_ip'] instanceof String)) {
- throw new Error("Expected the field `public_ip` to be a primitive type in the JSON string but got " + data['public_ip']);
- }
- // ensure the json data is a string
- if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
- throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {Number} contract_id
- */
-ContractEligibleInstanceFields.prototype['contract_id'] = undefined;
-
-/**
- * @member {String} host
- */
-ContractEligibleInstanceFields.prototype['host'] = undefined;
-
-/**
- * @member {Number} id
- */
-ContractEligibleInstanceFields.prototype['id'] = undefined;
-
-/**
- * @member {String} name
- */
-ContractEligibleInstanceFields.prototype['name'] = undefined;
-
-/**
- * @member {String} openstack_id
- */
-ContractEligibleInstanceFields.prototype['openstack_id'] = undefined;
-
-/**
- * @member {String} public_ip
- */
-ContractEligibleInstanceFields.prototype['public_ip'] = undefined;
-
-/**
- * @member {String} status
- */
-ContractEligibleInstanceFields.prototype['status'] = undefined;
-var _default = exports["default"] = ContractEligibleInstanceFields;
\ No newline at end of file
diff --git a/dist/model/ContractEligibleInstancesResponse.js b/dist/model/ContractEligibleInstancesResponse.js
deleted file mode 100644
index 634cbd34..00000000
--- a/dist/model/ContractEligibleInstancesResponse.js
+++ /dev/null
@@ -1,138 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _ContractEligibleInstanceFields = _interopRequireDefault(require("./ContractEligibleInstanceFields"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The ContractEligibleInstancesResponse model module.
- * @module model/ContractEligibleInstancesResponse
- * @version v1.25.0-alpha
- */
-var ContractEligibleInstancesResponse = /*#__PURE__*/function () {
- /**
- * Constructs a new ContractEligibleInstancesResponse.
- * @alias module:model/ContractEligibleInstancesResponse
- */
- function ContractEligibleInstancesResponse() {
- _classCallCheck(this, ContractEligibleInstancesResponse);
- ContractEligibleInstancesResponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(ContractEligibleInstancesResponse, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a ContractEligibleInstancesResponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractEligibleInstancesResponse} obj Optional instance to populate.
- * @return {module:model/ContractEligibleInstancesResponse} The populated ContractEligibleInstancesResponse instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractEligibleInstancesResponse();
- if (data.hasOwnProperty('instance_count')) {
- obj['instance_count'] = _ApiClient["default"].convertToType(data['instance_count'], 'Number');
- }
- if (data.hasOwnProperty('instances')) {
- obj['instances'] = _ApiClient["default"].convertToType(data['instances'], [_ContractEligibleInstanceFields["default"]]);
- }
- if (data.hasOwnProperty('message')) {
- obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractEligibleInstancesResponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractEligibleInstancesResponse.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- if (data['instances']) {
- // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['instances'])) {
- throw new Error("Expected the field `instances` to be an array in the JSON data but got " + data['instances']);
- }
- // validate the optional field `instances` (array)
- var _iterator = _createForOfIteratorHelper(data['instances']),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var item = _step.value;
- _ContractEligibleInstanceFields["default"].validateJSON(item);
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- ;
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {Number} instance_count
- */
-ContractEligibleInstancesResponse.prototype['instance_count'] = undefined;
-
-/**
- * @member {Array.} instances
- */
-ContractEligibleInstancesResponse.prototype['instances'] = undefined;
-
-/**
- * @member {String} message
- */
-ContractEligibleInstancesResponse.prototype['message'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-ContractEligibleInstancesResponse.prototype['status'] = undefined;
-var _default = exports["default"] = ContractEligibleInstancesResponse;
\ No newline at end of file
diff --git a/dist/model/ContractEventCreateModel.js b/dist/model/ContractEventCreateModel.js
deleted file mode 100644
index e70d1623..00000000
--- a/dist/model/ContractEventCreateModel.js
+++ /dev/null
@@ -1,143 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The ContractEventCreateModel model module.
- * @module model/ContractEventCreateModel
- * @version v1.25.0-alpha
- */
-var ContractEventCreateModel = /*#__PURE__*/function () {
- /**
- * Constructs a new ContractEventCreateModel.
- * @alias module:model/ContractEventCreateModel
- * @param message {String} Message for the event
- * @param reason {String} Reason for the event
- * @param type {String} Event type
- */
- function ContractEventCreateModel(message, reason, type) {
- _classCallCheck(this, ContractEventCreateModel);
- ContractEventCreateModel.initialize(this, message, reason, type);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(ContractEventCreateModel, null, [{
- key: "initialize",
- value: function initialize(obj, message, reason, type) {
- obj['message'] = message;
- obj['reason'] = reason;
- obj['type'] = type;
- }
-
- /**
- * Constructs a ContractEventCreateModel from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractEventCreateModel} obj Optional instance to populate.
- * @return {module:model/ContractEventCreateModel} The populated ContractEventCreateModel instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractEventCreateModel();
- if (data.hasOwnProperty('message')) {
- obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('reason')) {
- obj['reason'] = _ApiClient["default"].convertToType(data['reason'], 'String');
- }
- if (data.hasOwnProperty('type')) {
- obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractEventCreateModel.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractEventCreateModel.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- var _iterator = _createForOfIteratorHelper(ContractEventCreateModel.RequiredProperties),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var property = _step.value;
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
- // ensure the json data is a string
- if (data['reason'] && !(typeof data['reason'] === 'string' || data['reason'] instanceof String)) {
- throw new Error("Expected the field `reason` to be a primitive type in the JSON string but got " + data['reason']);
- }
- // ensure the json data is a string
- if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
- throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
- }
- return true;
- }
- }]);
-}();
-ContractEventCreateModel.RequiredProperties = ["message", "reason", "type"];
-
-/**
- * Message for the event
- * @member {String} message
- */
-ContractEventCreateModel.prototype['message'] = undefined;
-
-/**
- * Reason for the event
- * @member {String} reason
- */
-ContractEventCreateModel.prototype['reason'] = undefined;
-
-/**
- * Event type
- * @member {String} type
- */
-ContractEventCreateModel.prototype['type'] = undefined;
-var _default = exports["default"] = ContractEventCreateModel;
\ No newline at end of file
diff --git a/dist/model/ContractGPUAllocationGraphResponse.js b/dist/model/ContractGPUAllocationGraphResponse.js
index eff9cb06..3b31c804 100644
--- a/dist/model/ContractGPUAllocationGraphResponse.js
+++ b/dist/model/ContractGPUAllocationGraphResponse.js
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The ContractGPUAllocationGraphResponse model module.
* @module model/ContractGPUAllocationGraphResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var ContractGPUAllocationGraphResponse = /*#__PURE__*/function () {
/**
diff --git a/dist/model/ContractInstanceFields.js b/dist/model/ContractInstanceFields.js
index f3abe155..a029a11f 100644
--- a/dist/model/ContractInstanceFields.js
+++ b/dist/model/ContractInstanceFields.js
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
});
exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _ClusterFields = _interopRequireDefault(require("./ClusterFields"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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); }
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -26,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The ContractInstanceFields model module.
* @module model/ContractInstanceFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var ContractInstanceFields = /*#__PURE__*/function () {
/**
@@ -59,6 +60,9 @@ var ContractInstanceFields = /*#__PURE__*/function () {
value: function constructFromObject(data, obj) {
if (data) {
obj = obj || new ContractInstanceFields();
+ if (data.hasOwnProperty('cluster')) {
+ obj['cluster'] = _ClusterFields["default"].constructFromObject(data['cluster']);
+ }
if (data.hasOwnProperty('created_at')) {
obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
}
@@ -95,6 +99,11 @@ var ContractInstanceFields = /*#__PURE__*/function () {
}, {
key: "validateJSON",
value: function validateJSON(data) {
+ // validate the optional field `cluster`
+ if (data['cluster']) {
+ // data not null
+ _ClusterFields["default"].validateJSON(data['cluster']);
+ }
// ensure the json data is a string
if (data['flavor_name'] && !(typeof data['flavor_name'] === 'string' || data['flavor_name'] instanceof String)) {
throw new Error("Expected the field `flavor_name` to be a primitive type in the JSON string but got " + data['flavor_name']);
@@ -111,6 +120,11 @@ var ContractInstanceFields = /*#__PURE__*/function () {
}
}]);
}();
+/**
+ * @member {module:model/ClusterFields} cluster
+ */
+ContractInstanceFields.prototype['cluster'] = undefined;
+
/**
* @member {Date} created_at
*/
diff --git a/dist/model/ContractInstancesResponse.js b/dist/model/ContractInstancesResponse.js
index d5b1686a..6fdf69fd 100644
--- a/dist/model/ContractInstancesResponse.js
+++ b/dist/model/ContractInstancesResponse.js
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The ContractInstancesResponse model module.
* @module model/ContractInstancesResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var ContractInstancesResponse = /*#__PURE__*/function () {
/**
diff --git a/dist/model/ContractResourcePayload.js b/dist/model/ContractResourcePayload.js
deleted file mode 100644
index 64fa04f4..00000000
--- a/dist/model/ContractResourcePayload.js
+++ /dev/null
@@ -1,146 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The ContractResourcePayload model module.
- * @module model/ContractResourcePayload
- * @version v1.25.0-alpha
- */
-var ContractResourcePayload = /*#__PURE__*/function () {
- /**
- * Constructs a new ContractResourcePayload.
- * @alias module:model/ContractResourcePayload
- * @param discountType {String}
- * @param resourceId {Number}
- */
- function ContractResourcePayload(discountType, resourceId) {
- _classCallCheck(this, ContractResourcePayload);
- ContractResourcePayload.initialize(this, discountType, resourceId);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(ContractResourcePayload, null, [{
- key: "initialize",
- value: function initialize(obj, discountType, resourceId) {
- obj['discount_type'] = discountType;
- obj['resource_id'] = resourceId;
- }
-
- /**
- * Constructs a ContractResourcePayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractResourcePayload} obj Optional instance to populate.
- * @return {module:model/ContractResourcePayload} The populated ContractResourcePayload instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractResourcePayload();
- if (data.hasOwnProperty('discount_amount')) {
- obj['discount_amount'] = _ApiClient["default"].convertToType(data['discount_amount'], 'Number');
- }
- if (data.hasOwnProperty('discount_percent')) {
- obj['discount_percent'] = _ApiClient["default"].convertToType(data['discount_percent'], 'Number');
- }
- if (data.hasOwnProperty('discount_type')) {
- obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
- }
- if (data.hasOwnProperty('resource_count')) {
- obj['resource_count'] = _ApiClient["default"].convertToType(data['resource_count'], 'Number');
- }
- if (data.hasOwnProperty('resource_id')) {
- obj['resource_id'] = _ApiClient["default"].convertToType(data['resource_id'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractResourcePayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractResourcePayload.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- var _iterator = _createForOfIteratorHelper(ContractResourcePayload.RequiredProperties),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var property = _step.value;
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- if (data['discount_type'] && !(typeof data['discount_type'] === 'string' || data['discount_type'] instanceof String)) {
- throw new Error("Expected the field `discount_type` to be a primitive type in the JSON string but got " + data['discount_type']);
- }
- return true;
- }
- }]);
-}();
-ContractResourcePayload.RequiredProperties = ["discount_type", "resource_id"];
-
-/**
- * @member {Number} discount_amount
- */
-ContractResourcePayload.prototype['discount_amount'] = undefined;
-
-/**
- * @member {Number} discount_percent
- */
-ContractResourcePayload.prototype['discount_percent'] = undefined;
-
-/**
- * @member {String} discount_type
- */
-ContractResourcePayload.prototype['discount_type'] = undefined;
-
-/**
- * @member {Number} resource_count
- */
-ContractResourcePayload.prototype['resource_count'] = undefined;
-
-/**
- * @member {Number} resource_id
- */
-ContractResourcePayload.prototype['resource_id'] = undefined;
-var _default = exports["default"] = ContractResourcePayload;
\ No newline at end of file
diff --git a/dist/model/ContractlBillingHistoryResponseMetrics.js b/dist/model/ContractlBillingHistoryResponseMetrics.js
deleted file mode 100644
index 39c3117e..00000000
--- a/dist/model/ContractlBillingHistoryResponseMetrics.js
+++ /dev/null
@@ -1,85 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The ContractlBillingHistoryResponseMetrics model module.
- * @module model/ContractlBillingHistoryResponseMetrics
- * @version v1.25.0-alpha
- */
-var ContractlBillingHistoryResponseMetrics = /*#__PURE__*/function () {
- /**
- * Constructs a new ContractlBillingHistoryResponseMetrics.
- * @alias module:model/ContractlBillingHistoryResponseMetrics
- */
- function ContractlBillingHistoryResponseMetrics() {
- _classCallCheck(this, ContractlBillingHistoryResponseMetrics);
- ContractlBillingHistoryResponseMetrics.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(ContractlBillingHistoryResponseMetrics, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a ContractlBillingHistoryResponseMetrics from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractlBillingHistoryResponseMetrics} obj Optional instance to populate.
- * @return {module:model/ContractlBillingHistoryResponseMetrics} The populated ContractlBillingHistoryResponseMetrics instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractlBillingHistoryResponseMetrics();
- if (data.hasOwnProperty('incurred_bill')) {
- obj['incurred_bill'] = _ApiClient["default"].convertToType(data['incurred_bill'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractlBillingHistoryResponseMetrics.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractlBillingHistoryResponseMetrics.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- return true;
- }
- }]);
-}();
-/**
- * @member {Number} incurred_bill
- */
-ContractlBillingHistoryResponseMetrics.prototype['incurred_bill'] = undefined;
-var _default = exports["default"] = ContractlBillingHistoryResponseMetrics;
\ No newline at end of file
diff --git a/dist/model/CreateClusterNodeFields.js b/dist/model/CreateClusterNodeFields.js
new file mode 100644
index 00000000..4a156ecc
--- /dev/null
+++ b/dist/model/CreateClusterNodeFields.js
@@ -0,0 +1,127 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The CreateClusterNodeFields model module.
+ * @module model/CreateClusterNodeFields
+ * @version v1.51.1-alpha
+ */
+var CreateClusterNodeFields = /*#__PURE__*/function () {
+ /**
+ * Constructs a new CreateClusterNodeFields.
+ * @alias module:model/CreateClusterNodeFields
+ */
+ function CreateClusterNodeFields() {
+ _classCallCheck(this, CreateClusterNodeFields);
+ CreateClusterNodeFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(CreateClusterNodeFields, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a CreateClusterNodeFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CreateClusterNodeFields} obj Optional instance to populate.
+ * @return {module:model/CreateClusterNodeFields} The populated CreateClusterNodeFields instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new CreateClusterNodeFields();
+ if (data.hasOwnProperty('count')) {
+ obj['count'] = _ApiClient["default"].convertToType(data['count'], 'Number');
+ }
+ if (data.hasOwnProperty('node_group')) {
+ obj['node_group'] = _ApiClient["default"].convertToType(data['node_group'], 'String');
+ }
+ if (data.hasOwnProperty('role')) {
+ obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to CreateClusterNodeFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to CreateClusterNodeFields.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['node_group'] && !(typeof data['node_group'] === 'string' || data['node_group'] instanceof String)) {
+ throw new Error("Expected the field `node_group` to be a primitive type in the JSON string but got " + data['node_group']);
+ }
+ // ensure the json data is a string
+ if (data['role'] && !(typeof data['role'] === 'string' || data['role'] instanceof String)) {
+ throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data['role']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {Number} count
+ */
+CreateClusterNodeFields.prototype['count'] = undefined;
+
+/**
+ * @member {String} node_group
+ */
+CreateClusterNodeFields.prototype['node_group'] = undefined;
+
+/**
+ * @member {module:model/CreateClusterNodeFields.RoleEnum} role
+ */
+CreateClusterNodeFields.prototype['role'] = undefined;
+
+/**
+ * Allowed values for the role property.
+ * @enum {String}
+ * @readonly
+ */
+CreateClusterNodeFields['RoleEnum'] = {
+ /**
+ * value: "worker"
+ * @const
+ */
+ "worker": "worker",
+ /**
+ * value: "master"
+ * @const
+ */
+ "master": "master"
+};
+var _default = exports["default"] = CreateClusterNodeFields;
\ No newline at end of file
diff --git a/dist/model/CreateClusterNodeGroupPayload.js b/dist/model/CreateClusterNodeGroupPayload.js
new file mode 100644
index 00000000..1cafda91
--- /dev/null
+++ b/dist/model/CreateClusterNodeGroupPayload.js
@@ -0,0 +1,191 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
+function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
+function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The CreateClusterNodeGroupPayload model module.
+ * @module model/CreateClusterNodeGroupPayload
+ * @version v1.51.1-alpha
+ */
+var CreateClusterNodeGroupPayload = /*#__PURE__*/function () {
+ /**
+ * Constructs a new CreateClusterNodeGroupPayload.
+ * @alias module:model/CreateClusterNodeGroupPayload
+ * @param flavorName {String}
+ * @param name {String}
+ * @param role {module:model/CreateClusterNodeGroupPayload.RoleEnum}
+ */
+ function CreateClusterNodeGroupPayload(flavorName, name, role) {
+ _classCallCheck(this, CreateClusterNodeGroupPayload);
+ CreateClusterNodeGroupPayload.initialize(this, flavorName, name, role);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(CreateClusterNodeGroupPayload, null, [{
+ key: "initialize",
+ value: function initialize(obj, flavorName, name, role) {
+ obj['flavor_name'] = flavorName;
+ obj['name'] = name;
+ obj['role'] = role || 'worker';
+ }
+
+ /**
+ * Constructs a CreateClusterNodeGroupPayload from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CreateClusterNodeGroupPayload} obj Optional instance to populate.
+ * @return {module:model/CreateClusterNodeGroupPayload} The populated CreateClusterNodeGroupPayload instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new CreateClusterNodeGroupPayload();
+ if (data.hasOwnProperty('count')) {
+ obj['count'] = _ApiClient["default"].convertToType(data['count'], 'Number');
+ }
+ if (data.hasOwnProperty('firewall_ids')) {
+ obj['firewall_ids'] = _ApiClient["default"].convertToType(data['firewall_ids'], ['Number']);
+ }
+ if (data.hasOwnProperty('flavor_name')) {
+ obj['flavor_name'] = _ApiClient["default"].convertToType(data['flavor_name'], 'String');
+ }
+ if (data.hasOwnProperty('max_count')) {
+ obj['max_count'] = _ApiClient["default"].convertToType(data['max_count'], 'Number');
+ }
+ if (data.hasOwnProperty('min_count')) {
+ obj['min_count'] = _ApiClient["default"].convertToType(data['min_count'], 'Number');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('role')) {
+ obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to CreateClusterNodeGroupPayload.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to CreateClusterNodeGroupPayload.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // check to make sure all required properties are present in the JSON string
+ var _iterator = _createForOfIteratorHelper(CreateClusterNodeGroupPayload.RequiredProperties),
+ _step;
+ try {
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
+ var property = _step.value;
+ if (!data.hasOwnProperty(property)) {
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
+ }
+ }
+ // ensure the json data is an array
+ } catch (err) {
+ _iterator.e(err);
+ } finally {
+ _iterator.f();
+ }
+ if (!Array.isArray(data['firewall_ids'])) {
+ throw new Error("Expected the field `firewall_ids` to be an array in the JSON data but got " + data['firewall_ids']);
+ }
+ // ensure the json data is a string
+ if (data['flavor_name'] && !(typeof data['flavor_name'] === 'string' || data['flavor_name'] instanceof String)) {
+ throw new Error("Expected the field `flavor_name` to be a primitive type in the JSON string but got " + data['flavor_name']);
+ }
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ // ensure the json data is a string
+ if (data['role'] && !(typeof data['role'] === 'string' || data['role'] instanceof String)) {
+ throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data['role']);
+ }
+ return true;
+ }
+ }]);
+}();
+CreateClusterNodeGroupPayload.RequiredProperties = ["flavor_name", "name", "role"];
+
+/**
+ * @member {Number} count
+ */
+CreateClusterNodeGroupPayload.prototype['count'] = undefined;
+
+/**
+ * IDs of the firewalls to apply to all nodes in this node group
+ * @member {Array.} firewall_ids
+ */
+CreateClusterNodeGroupPayload.prototype['firewall_ids'] = undefined;
+
+/**
+ * @member {String} flavor_name
+ */
+CreateClusterNodeGroupPayload.prototype['flavor_name'] = undefined;
+
+/**
+ * @member {Number} max_count
+ */
+CreateClusterNodeGroupPayload.prototype['max_count'] = undefined;
+
+/**
+ * @member {Number} min_count
+ */
+CreateClusterNodeGroupPayload.prototype['min_count'] = undefined;
+
+/**
+ * @member {String} name
+ */
+CreateClusterNodeGroupPayload.prototype['name'] = undefined;
+
+/**
+ * @member {module:model/CreateClusterNodeGroupPayload.RoleEnum} role
+ * @default 'worker'
+ */
+CreateClusterNodeGroupPayload.prototype['role'] = 'worker';
+
+/**
+ * Allowed values for the role property.
+ * @enum {String}
+ * @readonly
+ */
+CreateClusterNodeGroupPayload['RoleEnum'] = {
+ /**
+ * value: "worker"
+ * @const
+ */
+ "worker": "worker"
+};
+var _default = exports["default"] = CreateClusterNodeGroupPayload;
\ No newline at end of file
diff --git a/dist/model/CreateClusterPayload.js b/dist/model/CreateClusterPayload.js
index 7c98d2eb..2b35c11c 100644
--- a/dist/model/CreateClusterPayload.js
+++ b/dist/model/CreateClusterPayload.js
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
});
exports["default"] = void 0;
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _CreateClusterNodeGroupPayload = _interopRequireDefault(require("./CreateClusterNodeGroupPayload"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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); }
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
@@ -29,24 +30,21 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CreateClusterPayload model module.
* @module model/CreateClusterPayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CreateClusterPayload = /*#__PURE__*/function () {
/**
* Constructs a new CreateClusterPayload.
* @alias module:model/CreateClusterPayload
* @param environmentName {String}
- * @param imageName {String}
* @param keypairName {String}
* @param kubernetesVersion {String}
* @param masterFlavorName {String}
* @param name {String}
- * @param nodeCount {Number}
- * @param nodeFlavorName {String}
*/
- function CreateClusterPayload(environmentName, imageName, keypairName, kubernetesVersion, masterFlavorName, name, nodeCount, nodeFlavorName) {
+ function CreateClusterPayload(environmentName, keypairName, kubernetesVersion, masterFlavorName, name) {
_classCallCheck(this, CreateClusterPayload);
- CreateClusterPayload.initialize(this, environmentName, imageName, keypairName, kubernetesVersion, masterFlavorName, name, nodeCount, nodeFlavorName);
+ CreateClusterPayload.initialize(this, environmentName, keypairName, kubernetesVersion, masterFlavorName, name);
}
/**
@@ -56,15 +54,13 @@ var CreateClusterPayload = /*#__PURE__*/function () {
*/
return _createClass(CreateClusterPayload, null, [{
key: "initialize",
- value: function initialize(obj, environmentName, imageName, keypairName, kubernetesVersion, masterFlavorName, name, nodeCount, nodeFlavorName) {
+ value: function initialize(obj, environmentName, keypairName, kubernetesVersion, masterFlavorName, name) {
+ obj['deployment_mode'] = 'full';
obj['environment_name'] = environmentName;
- obj['image_name'] = imageName;
obj['keypair_name'] = keypairName;
obj['kubernetes_version'] = kubernetesVersion;
obj['master_flavor_name'] = masterFlavorName;
obj['name'] = name;
- obj['node_count'] = nodeCount;
- obj['node_flavor_name'] = nodeFlavorName;
}
/**
@@ -79,18 +75,21 @@ var CreateClusterPayload = /*#__PURE__*/function () {
value: function constructFromObject(data, obj) {
if (data) {
obj = obj || new CreateClusterPayload();
+ if (data.hasOwnProperty('deployment_mode')) {
+ obj['deployment_mode'] = _ApiClient["default"].convertToType(data['deployment_mode'], 'String');
+ }
if (data.hasOwnProperty('environment_name')) {
obj['environment_name'] = _ApiClient["default"].convertToType(data['environment_name'], 'String');
}
- if (data.hasOwnProperty('image_name')) {
- obj['image_name'] = _ApiClient["default"].convertToType(data['image_name'], 'String');
- }
if (data.hasOwnProperty('keypair_name')) {
obj['keypair_name'] = _ApiClient["default"].convertToType(data['keypair_name'], 'String');
}
if (data.hasOwnProperty('kubernetes_version')) {
obj['kubernetes_version'] = _ApiClient["default"].convertToType(data['kubernetes_version'], 'String');
}
+ if (data.hasOwnProperty('master_count')) {
+ obj['master_count'] = _ApiClient["default"].convertToType(data['master_count'], 'Number');
+ }
if (data.hasOwnProperty('master_flavor_name')) {
obj['master_flavor_name'] = _ApiClient["default"].convertToType(data['master_flavor_name'], 'String');
}
@@ -103,6 +102,9 @@ var CreateClusterPayload = /*#__PURE__*/function () {
if (data.hasOwnProperty('node_flavor_name')) {
obj['node_flavor_name'] = _ApiClient["default"].convertToType(data['node_flavor_name'], 'String');
}
+ if (data.hasOwnProperty('node_groups')) {
+ obj['node_groups'] = _ApiClient["default"].convertToType(data['node_groups'], [_CreateClusterNodeGroupPayload["default"]]);
+ }
}
return obj;
}
@@ -131,12 +133,12 @@ var CreateClusterPayload = /*#__PURE__*/function () {
} finally {
_iterator.f();
}
- if (data['environment_name'] && !(typeof data['environment_name'] === 'string' || data['environment_name'] instanceof String)) {
- throw new Error("Expected the field `environment_name` to be a primitive type in the JSON string but got " + data['environment_name']);
+ if (data['deployment_mode'] && !(typeof data['deployment_mode'] === 'string' || data['deployment_mode'] instanceof String)) {
+ throw new Error("Expected the field `deployment_mode` to be a primitive type in the JSON string but got " + data['deployment_mode']);
}
// ensure the json data is a string
- if (data['image_name'] && !(typeof data['image_name'] === 'string' || data['image_name'] instanceof String)) {
- throw new Error("Expected the field `image_name` to be a primitive type in the JSON string but got " + data['image_name']);
+ if (data['environment_name'] && !(typeof data['environment_name'] === 'string' || data['environment_name'] instanceof String)) {
+ throw new Error("Expected the field `environment_name` to be a primitive type in the JSON string but got " + data['environment_name']);
}
// ensure the json data is a string
if (data['keypair_name'] && !(typeof data['keypair_name'] === 'string' || data['keypair_name'] instanceof String)) {
@@ -158,21 +160,43 @@ var CreateClusterPayload = /*#__PURE__*/function () {
if (data['node_flavor_name'] && !(typeof data['node_flavor_name'] === 'string' || data['node_flavor_name'] instanceof String)) {
throw new Error("Expected the field `node_flavor_name` to be a primitive type in the JSON string but got " + data['node_flavor_name']);
}
+ if (data['node_groups']) {
+ // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['node_groups'])) {
+ throw new Error("Expected the field `node_groups` to be an array in the JSON data but got " + data['node_groups']);
+ }
+ // validate the optional field `node_groups` (array)
+ var _iterator2 = _createForOfIteratorHelper(data['node_groups']),
+ _step2;
+ try {
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
+ var item = _step2.value;
+ _CreateClusterNodeGroupPayload["default"].validateJSON(item);
+ }
+ } catch (err) {
+ _iterator2.e(err);
+ } finally {
+ _iterator2.f();
+ }
+ ;
+ }
return true;
}
}]);
}();
-CreateClusterPayload.RequiredProperties = ["environment_name", "image_name", "keypair_name", "kubernetes_version", "master_flavor_name", "name", "node_count", "node_flavor_name"];
+CreateClusterPayload.RequiredProperties = ["environment_name", "keypair_name", "kubernetes_version", "master_flavor_name", "name"];
/**
- * @member {String} environment_name
+ * @member {module:model/CreateClusterPayload.DeploymentModeEnum} deployment_mode
+ * @default 'full'
*/
-CreateClusterPayload.prototype['environment_name'] = undefined;
+CreateClusterPayload.prototype['deployment_mode'] = 'full';
/**
- * @member {String} image_name
+ * @member {String} environment_name
*/
-CreateClusterPayload.prototype['image_name'] = undefined;
+CreateClusterPayload.prototype['environment_name'] = undefined;
/**
* @member {String} keypair_name
@@ -184,6 +208,11 @@ CreateClusterPayload.prototype['keypair_name'] = undefined;
*/
CreateClusterPayload.prototype['kubernetes_version'] = undefined;
+/**
+ * @member {Number} master_count
+ */
+CreateClusterPayload.prototype['master_count'] = undefined;
+
/**
* @member {String} master_flavor_name
*/
@@ -203,4 +232,27 @@ CreateClusterPayload.prototype['node_count'] = undefined;
* @member {String} node_flavor_name
*/
CreateClusterPayload.prototype['node_flavor_name'] = undefined;
+
+/**
+ * @member {Array.} node_groups
+ */
+CreateClusterPayload.prototype['node_groups'] = undefined;
+
+/**
+ * Allowed values for the deployment_mode property.
+ * @enum {String}
+ * @readonly
+ */
+CreateClusterPayload['DeploymentModeEnum'] = {
+ /**
+ * value: "full"
+ * @const
+ */
+ "full": "full",
+ /**
+ * value: "standard"
+ * @const
+ */
+ "standard": "standard"
+};
var _default = exports["default"] = CreateClusterPayload;
\ No newline at end of file
diff --git a/dist/model/CreateContractFields.js b/dist/model/CreateContractFields.js
deleted file mode 100644
index 2f5eb952..00000000
--- a/dist/model/CreateContractFields.js
+++ /dev/null
@@ -1,170 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _ContractDiscountPlanFields = _interopRequireDefault(require("./ContractDiscountPlanFields"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The CreateContractFields model module.
- * @module model/CreateContractFields
- * @version v1.25.0-alpha
- */
-var CreateContractFields = /*#__PURE__*/function () {
- /**
- * Constructs a new CreateContractFields.
- * @alias module:model/CreateContractFields
- */
- function CreateContractFields() {
- _classCallCheck(this, CreateContractFields);
- CreateContractFields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(CreateContractFields, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a CreateContractFields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateContractFields} obj Optional instance to populate.
- * @return {module:model/CreateContractFields} The populated CreateContractFields instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateContractFields();
- if (data.hasOwnProperty('created_at')) {
- obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
- }
- if (data.hasOwnProperty('description')) {
- obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
- }
- if (data.hasOwnProperty('discount_plans')) {
- obj['discount_plans'] = _ApiClient["default"].convertToType(data['discount_plans'], [_ContractDiscountPlanFields["default"]]);
- }
- if (data.hasOwnProperty('end_date')) {
- obj['end_date'] = _ApiClient["default"].convertToType(data['end_date'], 'Date');
- }
- if (data.hasOwnProperty('expiration_policy')) {
- obj['expiration_policy'] = _ApiClient["default"].convertToType(data['expiration_policy'], 'Number');
- }
- if (data.hasOwnProperty('id')) {
- obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
- }
- if (data.hasOwnProperty('org_id')) {
- obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
- }
- if (data.hasOwnProperty('start_date')) {
- obj['start_date'] = _ApiClient["default"].convertToType(data['start_date'], 'Date');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateContractFields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateContractFields.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is a string
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
- }
- if (data['discount_plans']) {
- // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['discount_plans'])) {
- throw new Error("Expected the field `discount_plans` to be an array in the JSON data but got " + data['discount_plans']);
- }
- // validate the optional field `discount_plans` (array)
- var _iterator = _createForOfIteratorHelper(data['discount_plans']),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var item = _step.value;
- _ContractDiscountPlanFields["default"].validateJSON(item);
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- ;
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {Date} created_at
- */
-CreateContractFields.prototype['created_at'] = undefined;
-
-/**
- * @member {String} description
- */
-CreateContractFields.prototype['description'] = undefined;
-
-/**
- * @member {Array.} discount_plans
- */
-CreateContractFields.prototype['discount_plans'] = undefined;
-
-/**
- * @member {Date} end_date
- */
-CreateContractFields.prototype['end_date'] = undefined;
-
-/**
- * @member {Number} expiration_policy
- */
-CreateContractFields.prototype['expiration_policy'] = undefined;
-
-/**
- * @member {Number} id
- */
-CreateContractFields.prototype['id'] = undefined;
-
-/**
- * @member {Number} org_id
- */
-CreateContractFields.prototype['org_id'] = undefined;
-
-/**
- * @member {Date} start_date
- */
-CreateContractFields.prototype['start_date'] = undefined;
-var _default = exports["default"] = CreateContractFields;
\ No newline at end of file
diff --git a/dist/model/CreateContractPayload.js b/dist/model/CreateContractPayload.js
deleted file mode 100644
index 1e4790ea..00000000
--- a/dist/model/CreateContractPayload.js
+++ /dev/null
@@ -1,178 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _ContractResourcePayload = _interopRequireDefault(require("./ContractResourcePayload"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The CreateContractPayload model module.
- * @module model/CreateContractPayload
- * @version v1.25.0-alpha
- */
-var CreateContractPayload = /*#__PURE__*/function () {
- /**
- * Constructs a new CreateContractPayload.
- * @alias module:model/CreateContractPayload
- * @param discountResources {Array.}
- * @param expirationPolicy {Number}
- * @param orgId {Number}
- */
- function CreateContractPayload(discountResources, expirationPolicy, orgId) {
- _classCallCheck(this, CreateContractPayload);
- CreateContractPayload.initialize(this, discountResources, expirationPolicy, orgId);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(CreateContractPayload, null, [{
- key: "initialize",
- value: function initialize(obj, discountResources, expirationPolicy, orgId) {
- obj['discount_resources'] = discountResources;
- obj['expiration_policy'] = expirationPolicy;
- obj['org_id'] = orgId;
- }
-
- /**
- * Constructs a CreateContractPayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateContractPayload} obj Optional instance to populate.
- * @return {module:model/CreateContractPayload} The populated CreateContractPayload instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateContractPayload();
- if (data.hasOwnProperty('description')) {
- obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
- }
- if (data.hasOwnProperty('discount_resources')) {
- obj['discount_resources'] = _ApiClient["default"].convertToType(data['discount_resources'], [_ContractResourcePayload["default"]]);
- }
- if (data.hasOwnProperty('end_date')) {
- obj['end_date'] = _ApiClient["default"].convertToType(data['end_date'], 'Date');
- }
- if (data.hasOwnProperty('expiration_policy')) {
- obj['expiration_policy'] = _ApiClient["default"].convertToType(data['expiration_policy'], 'Number');
- }
- if (data.hasOwnProperty('org_id')) {
- obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
- }
- if (data.hasOwnProperty('start_date')) {
- obj['start_date'] = _ApiClient["default"].convertToType(data['start_date'], 'Date');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateContractPayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateContractPayload.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- var _iterator = _createForOfIteratorHelper(CreateContractPayload.RequiredProperties),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var property = _step.value;
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
- }
- if (data['discount_resources']) {
- // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['discount_resources'])) {
- throw new Error("Expected the field `discount_resources` to be an array in the JSON data but got " + data['discount_resources']);
- }
- // validate the optional field `discount_resources` (array)
- var _iterator2 = _createForOfIteratorHelper(data['discount_resources']),
- _step2;
- try {
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
- var item = _step2.value;
- _ContractResourcePayload["default"].validateJSON(item);
- }
- } catch (err) {
- _iterator2.e(err);
- } finally {
- _iterator2.f();
- }
- ;
- }
- return true;
- }
- }]);
-}();
-CreateContractPayload.RequiredProperties = ["discount_resources", "expiration_policy", "org_id"];
-
-/**
- * @member {String} description
- */
-CreateContractPayload.prototype['description'] = undefined;
-
-/**
- * @member {Array.} discount_resources
- */
-CreateContractPayload.prototype['discount_resources'] = undefined;
-
-/**
- * @member {Date} end_date
- */
-CreateContractPayload.prototype['end_date'] = undefined;
-
-/**
- * @member {Number} expiration_policy
- */
-CreateContractPayload.prototype['expiration_policy'] = undefined;
-
-/**
- * @member {Number} org_id
- */
-CreateContractPayload.prototype['org_id'] = undefined;
-
-/**
- * @member {Date} start_date
- */
-CreateContractPayload.prototype['start_date'] = undefined;
-var _default = exports["default"] = CreateContractPayload;
\ No newline at end of file
diff --git a/dist/model/CreateDiscountResponse.js b/dist/model/CreateDiscountResponse.js
deleted file mode 100644
index b5191a98..00000000
--- a/dist/model/CreateDiscountResponse.js
+++ /dev/null
@@ -1,111 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _InsertDiscountPlanFields = _interopRequireDefault(require("./InsertDiscountPlanFields"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The CreateDiscountResponse model module.
- * @module model/CreateDiscountResponse
- * @version v1.25.0-alpha
- */
-var CreateDiscountResponse = /*#__PURE__*/function () {
- /**
- * Constructs a new CreateDiscountResponse.
- * @alias module:model/CreateDiscountResponse
- */
- function CreateDiscountResponse() {
- _classCallCheck(this, CreateDiscountResponse);
- CreateDiscountResponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(CreateDiscountResponse, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a CreateDiscountResponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateDiscountResponse} obj Optional instance to populate.
- * @return {module:model/CreateDiscountResponse} The populated CreateDiscountResponse instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateDiscountResponse();
- if (data.hasOwnProperty('discount_plan')) {
- obj['discount_plan'] = _InsertDiscountPlanFields["default"].constructFromObject(data['discount_plan']);
- }
- if (data.hasOwnProperty('message')) {
- obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateDiscountResponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateDiscountResponse.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // validate the optional field `discount_plan`
- if (data['discount_plan']) {
- // data not null
- _InsertDiscountPlanFields["default"].validateJSON(data['discount_plan']);
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {module:model/InsertDiscountPlanFields} discount_plan
- */
-CreateDiscountResponse.prototype['discount_plan'] = undefined;
-
-/**
- * @member {String} message
- */
-CreateDiscountResponse.prototype['message'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-CreateDiscountResponse.prototype['status'] = undefined;
-var _default = exports["default"] = CreateDiscountResponse;
\ No newline at end of file
diff --git a/dist/model/CreateDiscountsPayload.js b/dist/model/CreateDiscountsPayload.js
deleted file mode 100644
index 1dd83edd..00000000
--- a/dist/model/CreateDiscountsPayload.js
+++ /dev/null
@@ -1,192 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _CustomerPayload = _interopRequireDefault(require("./CustomerPayload"));
-var _DiscountResourcePayload = _interopRequireDefault(require("./DiscountResourcePayload"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The CreateDiscountsPayload model module.
- * @module model/CreateDiscountsPayload
- * @version v1.25.0-alpha
- */
-var CreateDiscountsPayload = /*#__PURE__*/function () {
- /**
- * Constructs a new CreateDiscountsPayload.
- * @alias module:model/CreateDiscountsPayload
- * @param customers {Array.}
- * @param discountResources {Array.}
- * @param discountStatus {String}
- */
- function CreateDiscountsPayload(customers, discountResources, discountStatus) {
- _classCallCheck(this, CreateDiscountsPayload);
- CreateDiscountsPayload.initialize(this, customers, discountResources, discountStatus);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(CreateDiscountsPayload, null, [{
- key: "initialize",
- value: function initialize(obj, customers, discountResources, discountStatus) {
- obj['customers'] = customers;
- obj['discount_resources'] = discountResources;
- obj['discount_status'] = discountStatus;
- }
-
- /**
- * Constructs a CreateDiscountsPayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateDiscountsPayload} obj Optional instance to populate.
- * @return {module:model/CreateDiscountsPayload} The populated CreateDiscountsPayload instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateDiscountsPayload();
- if (data.hasOwnProperty('customers')) {
- obj['customers'] = _ApiClient["default"].convertToType(data['customers'], [_CustomerPayload["default"]]);
- }
- if (data.hasOwnProperty('discount_resources')) {
- obj['discount_resources'] = _ApiClient["default"].convertToType(data['discount_resources'], [_DiscountResourcePayload["default"]]);
- }
- if (data.hasOwnProperty('discount_status')) {
- obj['discount_status'] = _ApiClient["default"].convertToType(data['discount_status'], 'String');
- }
- if (data.hasOwnProperty('end_date')) {
- obj['end_date'] = _ApiClient["default"].convertToType(data['end_date'], 'Date');
- }
- if (data.hasOwnProperty('start_date')) {
- obj['start_date'] = _ApiClient["default"].convertToType(data['start_date'], 'Date');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateDiscountsPayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateDiscountsPayload.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- var _iterator = _createForOfIteratorHelper(CreateDiscountsPayload.RequiredProperties),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var property = _step.value;
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- if (data['customers']) {
- // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['customers'])) {
- throw new Error("Expected the field `customers` to be an array in the JSON data but got " + data['customers']);
- }
- // validate the optional field `customers` (array)
- var _iterator2 = _createForOfIteratorHelper(data['customers']),
- _step2;
- try {
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
- var item = _step2.value;
- _CustomerPayload["default"].validateJSON(item);
- }
- } catch (err) {
- _iterator2.e(err);
- } finally {
- _iterator2.f();
- }
- ;
- }
- if (data['discount_resources']) {
- // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['discount_resources'])) {
- throw new Error("Expected the field `discount_resources` to be an array in the JSON data but got " + data['discount_resources']);
- }
- // validate the optional field `discount_resources` (array)
- var _iterator3 = _createForOfIteratorHelper(data['discount_resources']),
- _step3;
- try {
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
- var _item = _step3.value;
- _DiscountResourcePayload["default"].validateJSON(_item);
- }
- } catch (err) {
- _iterator3.e(err);
- } finally {
- _iterator3.f();
- }
- ;
- }
- // ensure the json data is a string
- if (data['discount_status'] && !(typeof data['discount_status'] === 'string' || data['discount_status'] instanceof String)) {
- throw new Error("Expected the field `discount_status` to be a primitive type in the JSON string but got " + data['discount_status']);
- }
- return true;
- }
- }]);
-}();
-CreateDiscountsPayload.RequiredProperties = ["customers", "discount_resources", "discount_status"];
-
-/**
- * @member {Array.} customers
- */
-CreateDiscountsPayload.prototype['customers'] = undefined;
-
-/**
- * @member {Array.} discount_resources
- */
-CreateDiscountsPayload.prototype['discount_resources'] = undefined;
-
-/**
- * @member {String} discount_status
- */
-CreateDiscountsPayload.prototype['discount_status'] = undefined;
-
-/**
- * @member {Date} end_date
- */
-CreateDiscountsPayload.prototype['end_date'] = undefined;
-
-/**
- * @member {Date} start_date
- */
-CreateDiscountsPayload.prototype['start_date'] = undefined;
-var _default = exports["default"] = CreateDiscountsPayload;
\ No newline at end of file
diff --git a/dist/model/CreateEnvironment.js b/dist/model/CreateEnvironment.js
index 1eebbdf1..cb6d782e 100644
--- a/dist/model/CreateEnvironment.js
+++ b/dist/model/CreateEnvironment.js
@@ -29,14 +29,14 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CreateEnvironment model module.
* @module model/CreateEnvironment
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CreateEnvironment = /*#__PURE__*/function () {
/**
* Constructs a new CreateEnvironment.
* @alias module:model/CreateEnvironment
* @param name {String} The name of the environment being created.
- * @param region {String} The geographic location of the data center where the environment is being created. To learn more about regions, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/regions).
+ * @param region {String} The geographic location of the data center where the environment is being created. To learn more about regions, [**click here**]({Config.INFRAHUB_DOCS_BASE}/docs/features/regions).
*/
function CreateEnvironment(name, region) {
_classCallCheck(this, CreateEnvironment);
@@ -121,7 +121,7 @@ CreateEnvironment.RequiredProperties = ["name", "region"];
CreateEnvironment.prototype['name'] = undefined;
/**
- * The geographic location of the data center where the environment is being created. To learn more about regions, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/regions).
+ * The geographic location of the data center where the environment is being created. To learn more about regions, [**click here**]({Config.INFRAHUB_DOCS_BASE}/docs/features/regions).
* @member {String} region
*/
CreateEnvironment.prototype['region'] = undefined;
diff --git a/dist/model/CreateFirewallPayload.js b/dist/model/CreateFirewallPayload.js
index 3733f98d..89e57a3e 100644
--- a/dist/model/CreateFirewallPayload.js
+++ b/dist/model/CreateFirewallPayload.js
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CreateFirewallPayload model module.
* @module model/CreateFirewallPayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CreateFirewallPayload = /*#__PURE__*/function () {
/**
diff --git a/dist/model/CreateFirewallRulePayload.js b/dist/model/CreateFirewallRulePayload.js
index 1fc948f8..37659939 100644
--- a/dist/model/CreateFirewallRulePayload.js
+++ b/dist/model/CreateFirewallRulePayload.js
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CreateFirewallRulePayload model module.
* @module model/CreateFirewallRulePayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CreateFirewallRulePayload = /*#__PURE__*/function () {
/**
diff --git a/dist/model/CreateGPU.js b/dist/model/CreateGPU.js
deleted file mode 100644
index 027b97c2..00000000
--- a/dist/model/CreateGPU.js
+++ /dev/null
@@ -1,137 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The CreateGPU model module.
- * @module model/CreateGPU
- * @version v1.25.0-alpha
- */
-var CreateGPU = /*#__PURE__*/function () {
- /**
- * Constructs a new CreateGPU.
- * @alias module:model/CreateGPU
- * @param name {String}
- */
- function CreateGPU(name) {
- _classCallCheck(this, CreateGPU);
- CreateGPU.initialize(this, name);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(CreateGPU, null, [{
- key: "initialize",
- value: function initialize(obj, name) {
- obj['name'] = name;
- }
-
- /**
- * Constructs a CreateGPU from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateGPU} obj Optional instance to populate.
- * @return {module:model/CreateGPU} The populated CreateGPU instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateGPU();
- if (data.hasOwnProperty('example_metadata')) {
- obj['example_metadata'] = _ApiClient["default"].convertToType(data['example_metadata'], 'String');
- }
- if (data.hasOwnProperty('name')) {
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
- }
- if (data.hasOwnProperty('regions')) {
- obj['regions'] = _ApiClient["default"].convertToType(data['regions'], ['String']);
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateGPU.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateGPU.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- var _iterator = _createForOfIteratorHelper(CreateGPU.RequiredProperties),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var property = _step.value;
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- if (data['example_metadata'] && !(typeof data['example_metadata'] === 'string' || data['example_metadata'] instanceof String)) {
- throw new Error("Expected the field `example_metadata` to be a primitive type in the JSON string but got " + data['example_metadata']);
- }
- // ensure the json data is a string
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
- }
- // ensure the json data is an array
- if (!Array.isArray(data['regions'])) {
- throw new Error("Expected the field `regions` to be an array in the JSON data but got " + data['regions']);
- }
- return true;
- }
- }]);
-}();
-CreateGPU.RequiredProperties = ["name"];
-
-/**
- * A valid JSON string.
- * @member {String} example_metadata
- */
-CreateGPU.prototype['example_metadata'] = undefined;
-
-/**
- * @member {String} name
- */
-CreateGPU.prototype['name'] = undefined;
-
-/**
- * @member {Array.} regions
- */
-CreateGPU.prototype['regions'] = undefined;
-var _default = exports["default"] = CreateGPU;
\ No newline at end of file
diff --git a/dist/model/CreateImage.js b/dist/model/CreateImage.js
index 105898fc..f9798d2f 100644
--- a/dist/model/CreateImage.js
+++ b/dist/model/CreateImage.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CreateImage model module.
* @module model/CreateImage
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CreateImage = /*#__PURE__*/function () {
/**
diff --git a/dist/model/CreateImagePayload.js b/dist/model/CreateImagePayload.js
index bab8f5be..43470a52 100644
--- a/dist/model/CreateImagePayload.js
+++ b/dist/model/CreateImagePayload.js
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CreateImagePayload model module.
* @module model/CreateImagePayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CreateImagePayload = /*#__PURE__*/function () {
/**
diff --git a/dist/model/CreateInstancesPayload.js b/dist/model/CreateInstancesPayload.js
index a3ff996c..4dabe1dc 100644
--- a/dist/model/CreateInstancesPayload.js
+++ b/dist/model/CreateInstancesPayload.js
@@ -32,16 +32,16 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CreateInstancesPayload model module.
* @module model/CreateInstancesPayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CreateInstancesPayload = /*#__PURE__*/function () {
/**
* Constructs a new CreateInstancesPayload.
* @alias module:model/CreateInstancesPayload
* @param count {Number} The number of virtual machines to be created.
- * @param environmentName {String} The name of the [environment](https://infrahub-doc.nexgencloud.com/docs/features/environments-available-features) in which the virtual machine is to be created.
- * @param flavorName {String} The name of the GPU hardware configuration ([flavor](https://infrahub-doc.nexgencloud.com/docs/hardware/flavors)) for the virtual machines being created.
- * @param keyName {String} The name of the existing SSH key pair to be used for secure access to the virtual machine. For additional information on SSH key pairs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/getting-started/create-keypair).
+ * @param environmentName {String} The name of the [environment](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/) in which the virtual machine is to be created.
+ * @param flavorName {String} The name of the GPU hardware configuration ([flavor](https://docs.hyperstack.cloud/docs/hardware/flavors)) for the virtual machines being created.
+ * @param keyName {String} The name of the existing SSH key pair to be used for secure access to the virtual machine. For additional information on SSH key pairs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/keypairs/).
* @param name {String} The name of the virtual machine being created.
*/
function CreateInstancesPayload(count, environmentName, flavorName, keyName, name) {
@@ -226,13 +226,13 @@ var CreateInstancesPayload = /*#__PURE__*/function () {
CreateInstancesPayload.RequiredProperties = ["count", "environment_name", "flavor_name", "key_name", "name"];
/**
- * When this field is set to `true`, it attaches a [public IP address](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/public-ip)to the virtual machine, enabling internet accessibility.
+ * When this field is set to `true`, it attaches a [public IP address](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/floating-ip/) to the virtual machine, enabling internet accessibility.
* @member {Boolean} assign_floating_ip
*/
CreateInstancesPayload.prototype['assign_floating_ip'] = undefined;
/**
- * An optional URL where actions performed on the virtual machine will be sent. For additional information on event callbacks, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/webhooks-callbacks).
+ * An optional URL where actions performed on the virtual machine will be sent. For additional information on event callbacks, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/).
* @member {String} callback_url
*/
CreateInstancesPayload.prototype['callback_url'] = undefined;
@@ -257,7 +257,7 @@ CreateInstancesPayload.prototype['create_bootable_volume'] = undefined;
CreateInstancesPayload.prototype['enable_port_randomization'] = true;
/**
- * The name of the [environment](https://infrahub-doc.nexgencloud.com/docs/features/environments-available-features) in which the virtual machine is to be created.
+ * The name of the [environment](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/) in which the virtual machine is to be created.
* @member {String} environment_name
*/
CreateInstancesPayload.prototype['environment_name'] = undefined;
@@ -268,19 +268,19 @@ CreateInstancesPayload.prototype['environment_name'] = undefined;
CreateInstancesPayload.prototype['flavor'] = undefined;
/**
- * The name of the GPU hardware configuration ([flavor](https://infrahub-doc.nexgencloud.com/docs/hardware/flavors)) for the virtual machines being created.
+ * The name of the GPU hardware configuration ([flavor](https://docs.hyperstack.cloud/docs/hardware/flavors)) for the virtual machines being created.
* @member {String} flavor_name
*/
CreateInstancesPayload.prototype['flavor_name'] = undefined;
/**
- * The [operating system (OS) image](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/images) name designated for installation on the virtual machine.It also accepts custom, private images, created from [existing snapshots](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/custom-images).
+ * The [operating system (OS) image](https://docs.hyperstack.cloud/docs/virtual-machines/images) name designated for installation on the virtual machine.It also accepts custom, private images, created from [existing snapshots](https://docs.hyperstack.cloud/docs/virtual-machines/custom-images).
* @member {String} image_name
*/
CreateInstancesPayload.prototype['image_name'] = undefined;
/**
- * The name of the existing SSH key pair to be used for secure access to the virtual machine. For additional information on SSH key pairs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/getting-started/create-keypair).
+ * The name of the existing SSH key pair to be used for secure access to the virtual machine. For additional information on SSH key pairs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/keypairs/).
* @member {String} key_name
*/
CreateInstancesPayload.prototype['key_name'] = undefined;
@@ -307,7 +307,7 @@ CreateInstancesPayload.prototype['profile'] = undefined;
CreateInstancesPayload.prototype['security_rules'] = undefined;
/**
- * Optional initialization configuration commands to manage the configuration of a virtual machine at launch using cloud-init scripts. For more information about custom VM configuration using cloud-init, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/initialization-configuration).
+ * Optional initialization configuration commands to manage the configuration of a virtual machine at launch using cloud-init scripts. For more information about custom VM configuration using cloud-init, [**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/initialization-configuration).
* @member {String} user_data
*/
CreateInstancesPayload.prototype['user_data'] = undefined;
diff --git a/dist/model/CreateInstancesResponse.js b/dist/model/CreateInstancesResponse.js
index 20eef308..1f0fb5c5 100644
--- a/dist/model/CreateInstancesResponse.js
+++ b/dist/model/CreateInstancesResponse.js
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CreateInstancesResponse model module.
* @module model/CreateInstancesResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CreateInstancesResponse = /*#__PURE__*/function () {
/**
diff --git a/dist/model/CreateProfilePayload.js b/dist/model/CreateProfilePayload.js
index 803103c2..f89e51d6 100644
--- a/dist/model/CreateProfilePayload.js
+++ b/dist/model/CreateProfilePayload.js
@@ -29,13 +29,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CreateProfilePayload model module.
* @module model/CreateProfilePayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CreateProfilePayload = /*#__PURE__*/function () {
/**
* Constructs a new CreateProfilePayload.
* @alias module:model/CreateProfilePayload
- * @param data {Object.} The data object which contains the configuration of the virtual machine profile being created.
+ * @param data {Object.} The data object containing the configuration details of the virtual machine profile being created.
* @param name {String} The name of the profile being created.
*/
function CreateProfilePayload(data, name) {
@@ -120,7 +120,7 @@ var CreateProfilePayload = /*#__PURE__*/function () {
CreateProfilePayload.RequiredProperties = ["data", "name"];
/**
- * The data object which contains the configuration of the virtual machine profile being created.
+ * The data object containing the configuration details of the virtual machine profile being created.
* @member {Object.} data
*/
CreateProfilePayload.prototype['data'] = undefined;
diff --git a/dist/model/CreateProfileResponse.js b/dist/model/CreateProfileResponse.js
index d077c961..c481f654 100644
--- a/dist/model/CreateProfileResponse.js
+++ b/dist/model/CreateProfileResponse.js
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CreateProfileResponse model module.
* @module model/CreateProfileResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CreateProfileResponse = /*#__PURE__*/function () {
/**
diff --git a/dist/model/CreateSecurityRulePayload.js b/dist/model/CreateSecurityRulePayload.js
index d00a6ffe..be7971bd 100644
--- a/dist/model/CreateSecurityRulePayload.js
+++ b/dist/model/CreateSecurityRulePayload.js
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CreateSecurityRulePayload model module.
* @module model/CreateSecurityRulePayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CreateSecurityRulePayload = /*#__PURE__*/function () {
/**
diff --git a/dist/model/CreateSnapshotPayload.js b/dist/model/CreateSnapshotPayload.js
index 88cfb65b..18c5eb6e 100644
--- a/dist/model/CreateSnapshotPayload.js
+++ b/dist/model/CreateSnapshotPayload.js
@@ -29,19 +29,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CreateSnapshotPayload model module.
* @module model/CreateSnapshotPayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CreateSnapshotPayload = /*#__PURE__*/function () {
/**
* Constructs a new CreateSnapshotPayload.
* @alias module:model/CreateSnapshotPayload
* @param description {String} description
- * @param isImage {Boolean} Indicates if the snapshot is an image
* @param name {String} Snapshot name
*/
- function CreateSnapshotPayload(description, isImage, name) {
+ function CreateSnapshotPayload(description, name) {
_classCallCheck(this, CreateSnapshotPayload);
- CreateSnapshotPayload.initialize(this, description, isImage, name);
+ CreateSnapshotPayload.initialize(this, description, name);
}
/**
@@ -51,9 +50,8 @@ var CreateSnapshotPayload = /*#__PURE__*/function () {
*/
return _createClass(CreateSnapshotPayload, null, [{
key: "initialize",
- value: function initialize(obj, description, isImage, name) {
+ value: function initialize(obj, description, name) {
obj['description'] = description;
- obj['is_image'] = isImage;
obj['name'] = name;
}
@@ -72,9 +70,6 @@ var CreateSnapshotPayload = /*#__PURE__*/function () {
if (data.hasOwnProperty('description')) {
obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
}
- if (data.hasOwnProperty('is_image')) {
- obj['is_image'] = _ApiClient["default"].convertToType(data['is_image'], 'Boolean');
- }
if (data.hasOwnProperty('labels')) {
obj['labels'] = _ApiClient["default"].convertToType(data['labels'], ['String']);
}
@@ -124,7 +119,7 @@ var CreateSnapshotPayload = /*#__PURE__*/function () {
}
}]);
}();
-CreateSnapshotPayload.RequiredProperties = ["description", "is_image", "name"];
+CreateSnapshotPayload.RequiredProperties = ["description", "name"];
/**
* description
@@ -132,12 +127,6 @@ CreateSnapshotPayload.RequiredProperties = ["description", "is_image", "name"];
*/
CreateSnapshotPayload.prototype['description'] = undefined;
-/**
- * Indicates if the snapshot is an image
- * @member {Boolean} is_image
- */
-CreateSnapshotPayload.prototype['is_image'] = undefined;
-
/**
* Labels associated with snapshot
* @member {Array.} labels
diff --git a/dist/model/CreateSnapshotResponse.js b/dist/model/CreateSnapshotResponse.js
index 3c51e109..9bd17adb 100644
--- a/dist/model/CreateSnapshotResponse.js
+++ b/dist/model/CreateSnapshotResponse.js
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CreateSnapshotResponse model module.
* @module model/CreateSnapshotResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CreateSnapshotResponse = /*#__PURE__*/function () {
/**
diff --git a/dist/model/CreateUpdateComplianceResponse.js b/dist/model/CreateUpdateComplianceResponse.js
index cf6b6d57..ddd71786 100644
--- a/dist/model/CreateUpdateComplianceResponse.js
+++ b/dist/model/CreateUpdateComplianceResponse.js
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CreateUpdateComplianceResponse model module.
* @module model/CreateUpdateComplianceResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CreateUpdateComplianceResponse = /*#__PURE__*/function () {
/**
diff --git a/dist/model/CreateUpdatePermissionPayload.js b/dist/model/CreateUpdatePermissionPayload.js
deleted file mode 100644
index d083a9fe..00000000
--- a/dist/model/CreateUpdatePermissionPayload.js
+++ /dev/null
@@ -1,154 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The CreateUpdatePermissionPayload model module.
- * @module model/CreateUpdatePermissionPayload
- * @version v1.25.0-alpha
- */
-var CreateUpdatePermissionPayload = /*#__PURE__*/function () {
- /**
- * Constructs a new CreateUpdatePermissionPayload.
- * @alias module:model/CreateUpdatePermissionPayload
- * @param endpoint {String}
- * @param method {String}
- * @param permission {String}
- * @param resource {String}
- */
- function CreateUpdatePermissionPayload(endpoint, method, permission, resource) {
- _classCallCheck(this, CreateUpdatePermissionPayload);
- CreateUpdatePermissionPayload.initialize(this, endpoint, method, permission, resource);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(CreateUpdatePermissionPayload, null, [{
- key: "initialize",
- value: function initialize(obj, endpoint, method, permission, resource) {
- obj['endpoint'] = endpoint;
- obj['method'] = method;
- obj['permission'] = permission;
- obj['resource'] = resource;
- }
-
- /**
- * Constructs a CreateUpdatePermissionPayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateUpdatePermissionPayload} obj Optional instance to populate.
- * @return {module:model/CreateUpdatePermissionPayload} The populated CreateUpdatePermissionPayload instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateUpdatePermissionPayload();
- if (data.hasOwnProperty('endpoint')) {
- obj['endpoint'] = _ApiClient["default"].convertToType(data['endpoint'], 'String');
- }
- if (data.hasOwnProperty('method')) {
- obj['method'] = _ApiClient["default"].convertToType(data['method'], 'String');
- }
- if (data.hasOwnProperty('permission')) {
- obj['permission'] = _ApiClient["default"].convertToType(data['permission'], 'String');
- }
- if (data.hasOwnProperty('resource')) {
- obj['resource'] = _ApiClient["default"].convertToType(data['resource'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateUpdatePermissionPayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateUpdatePermissionPayload.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- var _iterator = _createForOfIteratorHelper(CreateUpdatePermissionPayload.RequiredProperties),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var property = _step.value;
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- if (data['endpoint'] && !(typeof data['endpoint'] === 'string' || data['endpoint'] instanceof String)) {
- throw new Error("Expected the field `endpoint` to be a primitive type in the JSON string but got " + data['endpoint']);
- }
- // ensure the json data is a string
- if (data['method'] && !(typeof data['method'] === 'string' || data['method'] instanceof String)) {
- throw new Error("Expected the field `method` to be a primitive type in the JSON string but got " + data['method']);
- }
- // ensure the json data is a string
- if (data['permission'] && !(typeof data['permission'] === 'string' || data['permission'] instanceof String)) {
- throw new Error("Expected the field `permission` to be a primitive type in the JSON string but got " + data['permission']);
- }
- // ensure the json data is a string
- if (data['resource'] && !(typeof data['resource'] === 'string' || data['resource'] instanceof String)) {
- throw new Error("Expected the field `resource` to be a primitive type in the JSON string but got " + data['resource']);
- }
- return true;
- }
- }]);
-}();
-CreateUpdatePermissionPayload.RequiredProperties = ["endpoint", "method", "permission", "resource"];
-
-/**
- * @member {String} endpoint
- */
-CreateUpdatePermissionPayload.prototype['endpoint'] = undefined;
-
-/**
- * @member {String} method
- */
-CreateUpdatePermissionPayload.prototype['method'] = undefined;
-
-/**
- * @member {String} permission
- */
-CreateUpdatePermissionPayload.prototype['permission'] = undefined;
-
-/**
- * @member {String} resource
- */
-CreateUpdatePermissionPayload.prototype['resource'] = undefined;
-var _default = exports["default"] = CreateUpdatePermissionPayload;
\ No newline at end of file
diff --git a/dist/model/CreateUpdatePermissionResponseModel.js b/dist/model/CreateUpdatePermissionResponseModel.js
deleted file mode 100644
index 4080adad..00000000
--- a/dist/model/CreateUpdatePermissionResponseModel.js
+++ /dev/null
@@ -1,111 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _PermissionFields = _interopRequireDefault(require("./PermissionFields"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The CreateUpdatePermissionResponseModel model module.
- * @module model/CreateUpdatePermissionResponseModel
- * @version v1.25.0-alpha
- */
-var CreateUpdatePermissionResponseModel = /*#__PURE__*/function () {
- /**
- * Constructs a new CreateUpdatePermissionResponseModel.
- * @alias module:model/CreateUpdatePermissionResponseModel
- */
- function CreateUpdatePermissionResponseModel() {
- _classCallCheck(this, CreateUpdatePermissionResponseModel);
- CreateUpdatePermissionResponseModel.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(CreateUpdatePermissionResponseModel, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a CreateUpdatePermissionResponseModel from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateUpdatePermissionResponseModel} obj Optional instance to populate.
- * @return {module:model/CreateUpdatePermissionResponseModel} The populated CreateUpdatePermissionResponseModel instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateUpdatePermissionResponseModel();
- if (data.hasOwnProperty('message')) {
- obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('permission')) {
- obj['permission'] = _PermissionFields["default"].constructFromObject(data['permission']);
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateUpdatePermissionResponseModel.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateUpdatePermissionResponseModel.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
- // validate the optional field `permission`
- if (data['permission']) {
- // data not null
- _PermissionFields["default"].validateJSON(data['permission']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {String} message
- */
-CreateUpdatePermissionResponseModel.prototype['message'] = undefined;
-
-/**
- * @member {module:model/PermissionFields} permission
- */
-CreateUpdatePermissionResponseModel.prototype['permission'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-CreateUpdatePermissionResponseModel.prototype['status'] = undefined;
-var _default = exports["default"] = CreateUpdatePermissionResponseModel;
\ No newline at end of file
diff --git a/dist/model/CreateUpdatePolicyPayload.js b/dist/model/CreateUpdatePolicyPayload.js
deleted file mode 100644
index 04444e63..00000000
--- a/dist/model/CreateUpdatePolicyPayload.js
+++ /dev/null
@@ -1,150 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The CreateUpdatePolicyPayload model module.
- * @module model/CreateUpdatePolicyPayload
- * @version v1.25.0-alpha
- */
-var CreateUpdatePolicyPayload = /*#__PURE__*/function () {
- /**
- * Constructs a new CreateUpdatePolicyPayload.
- * @alias module:model/CreateUpdatePolicyPayload
- * @param description {String}
- * @param isPublic {Boolean}
- * @param name {String}
- * @param permissions {Array.}
- */
- function CreateUpdatePolicyPayload(description, isPublic, name, permissions) {
- _classCallCheck(this, CreateUpdatePolicyPayload);
- CreateUpdatePolicyPayload.initialize(this, description, isPublic, name, permissions);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(CreateUpdatePolicyPayload, null, [{
- key: "initialize",
- value: function initialize(obj, description, isPublic, name, permissions) {
- obj['description'] = description;
- obj['is_public'] = isPublic;
- obj['name'] = name;
- obj['permissions'] = permissions;
- }
-
- /**
- * Constructs a CreateUpdatePolicyPayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateUpdatePolicyPayload} obj Optional instance to populate.
- * @return {module:model/CreateUpdatePolicyPayload} The populated CreateUpdatePolicyPayload instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateUpdatePolicyPayload();
- if (data.hasOwnProperty('description')) {
- obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
- }
- if (data.hasOwnProperty('is_public')) {
- obj['is_public'] = _ApiClient["default"].convertToType(data['is_public'], 'Boolean');
- }
- if (data.hasOwnProperty('name')) {
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
- }
- if (data.hasOwnProperty('permissions')) {
- obj['permissions'] = _ApiClient["default"].convertToType(data['permissions'], ['Number']);
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateUpdatePolicyPayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateUpdatePolicyPayload.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- var _iterator = _createForOfIteratorHelper(CreateUpdatePolicyPayload.RequiredProperties),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var property = _step.value;
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
- }
- // ensure the json data is a string
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
- }
- // ensure the json data is an array
- if (!Array.isArray(data['permissions'])) {
- throw new Error("Expected the field `permissions` to be an array in the JSON data but got " + data['permissions']);
- }
- return true;
- }
- }]);
-}();
-CreateUpdatePolicyPayload.RequiredProperties = ["description", "is_public", "name", "permissions"];
-
-/**
- * @member {String} description
- */
-CreateUpdatePolicyPayload.prototype['description'] = undefined;
-
-/**
- * @member {Boolean} is_public
- */
-CreateUpdatePolicyPayload.prototype['is_public'] = undefined;
-
-/**
- * @member {String} name
- */
-CreateUpdatePolicyPayload.prototype['name'] = undefined;
-
-/**
- * @member {Array.} permissions
- */
-CreateUpdatePolicyPayload.prototype['permissions'] = undefined;
-var _default = exports["default"] = CreateUpdatePolicyPayload;
\ No newline at end of file
diff --git a/dist/model/CreateUpdatePolicyResponseModel.js b/dist/model/CreateUpdatePolicyResponseModel.js
deleted file mode 100644
index cd13d587..00000000
--- a/dist/model/CreateUpdatePolicyResponseModel.js
+++ /dev/null
@@ -1,111 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _PolicyFields = _interopRequireDefault(require("./PolicyFields"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The CreateUpdatePolicyResponseModel model module.
- * @module model/CreateUpdatePolicyResponseModel
- * @version v1.25.0-alpha
- */
-var CreateUpdatePolicyResponseModel = /*#__PURE__*/function () {
- /**
- * Constructs a new CreateUpdatePolicyResponseModel.
- * @alias module:model/CreateUpdatePolicyResponseModel
- */
- function CreateUpdatePolicyResponseModel() {
- _classCallCheck(this, CreateUpdatePolicyResponseModel);
- CreateUpdatePolicyResponseModel.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(CreateUpdatePolicyResponseModel, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a CreateUpdatePolicyResponseModel from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateUpdatePolicyResponseModel} obj Optional instance to populate.
- * @return {module:model/CreateUpdatePolicyResponseModel} The populated CreateUpdatePolicyResponseModel instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateUpdatePolicyResponseModel();
- if (data.hasOwnProperty('message')) {
- obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('policy')) {
- obj['policy'] = _PolicyFields["default"].constructFromObject(data['policy']);
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateUpdatePolicyResponseModel.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateUpdatePolicyResponseModel.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
- // validate the optional field `policy`
- if (data['policy']) {
- // data not null
- _PolicyFields["default"].validateJSON(data['policy']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {String} message
- */
-CreateUpdatePolicyResponseModel.prototype['message'] = undefined;
-
-/**
- * @member {module:model/PolicyFields} policy
- */
-CreateUpdatePolicyResponseModel.prototype['policy'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-CreateUpdatePolicyResponseModel.prototype['status'] = undefined;
-var _default = exports["default"] = CreateUpdatePolicyResponseModel;
\ No newline at end of file
diff --git a/dist/model/CreateUpdateRbacRolePayload.js b/dist/model/CreateUpdateRbacRolePayload.js
index 9c2c9d8b..8308a523 100644
--- a/dist/model/CreateUpdateRbacRolePayload.js
+++ b/dist/model/CreateUpdateRbacRolePayload.js
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CreateUpdateRbacRolePayload model module.
* @module model/CreateUpdateRbacRolePayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CreateUpdateRbacRolePayload = /*#__PURE__*/function () {
/**
diff --git a/dist/model/CreateVolumePayload.js b/dist/model/CreateVolumePayload.js
index 6b7bbe19..b5dbd043 100644
--- a/dist/model/CreateVolumePayload.js
+++ b/dist/model/CreateVolumePayload.js
@@ -29,13 +29,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CreateVolumePayload model module.
* @module model/CreateVolumePayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CreateVolumePayload = /*#__PURE__*/function () {
/**
* Constructs a new CreateVolumePayload.
* @alias module:model/CreateVolumePayload
- * @param environmentName {String} The name of the [environment](https://infrahub-doc.nexgencloud.com/docs/features/environments-available-features) within which the volume is being created.
+ * @param environmentName {String} The name of the [environment](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/) within which the volume is being created.
* @param name {String} The name of the volume being created.
* @param size {Number} The size of the volume in GB. 1048576GB storage capacity per volume.
* @param volumeType {String} Specifies the type of volume being created, which determines the storage technology it will use. Call the [List volume types](https://infrahub-api-doc.nexgencloud.com/#get-/core/volumes) endpoint to retrieve a list of available volume model types.
@@ -158,7 +158,7 @@ CreateVolumePayload.prototype['callback_url'] = undefined;
CreateVolumePayload.prototype['description'] = undefined;
/**
- * The name of the [environment](https://infrahub-doc.nexgencloud.com/docs/features/environments-available-features) within which the volume is being created.
+ * The name of the [environment](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/) within which the volume is being created.
* @member {String} environment_name
*/
CreateVolumePayload.prototype['environment_name'] = undefined;
diff --git a/dist/model/Creditrechargelimitfield.js b/dist/model/Creditrechargelimitfield.js
deleted file mode 100644
index 49f51439..00000000
--- a/dist/model/Creditrechargelimitfield.js
+++ /dev/null
@@ -1,109 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The Creditrechargelimitfield model module.
- * @module model/Creditrechargelimitfield
- * @version v1.25.0-alpha
- */
-var Creditrechargelimitfield = /*#__PURE__*/function () {
- /**
- * Constructs a new Creditrechargelimitfield.
- * @alias module:model/Creditrechargelimitfield
- */
- function Creditrechargelimitfield() {
- _classCallCheck(this, Creditrechargelimitfield);
- Creditrechargelimitfield.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(Creditrechargelimitfield, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a Creditrechargelimitfield from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Creditrechargelimitfield} obj Optional instance to populate.
- * @return {module:model/Creditrechargelimitfield} The populated Creditrechargelimitfield instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new Creditrechargelimitfield();
- if (data.hasOwnProperty('credit_granted')) {
- obj['credit_granted'] = _ApiClient["default"].convertToType(data['credit_granted'], 'Number');
- }
- if (data.hasOwnProperty('credit_limit')) {
- obj['credit_limit'] = _ApiClient["default"].convertToType(data['credit_limit'], 'Number');
- }
- if (data.hasOwnProperty('organization_id')) {
- obj['organization_id'] = _ApiClient["default"].convertToType(data['organization_id'], 'Number');
- }
- if (data.hasOwnProperty('user_id')) {
- obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to Creditrechargelimitfield.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to Creditrechargelimitfield.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- return true;
- }
- }]);
-}();
-/**
- * @member {Number} credit_granted
- */
-Creditrechargelimitfield.prototype['credit_granted'] = undefined;
-
-/**
- * @member {Number} credit_limit
- */
-Creditrechargelimitfield.prototype['credit_limit'] = undefined;
-
-/**
- * @member {Number} organization_id
- */
-Creditrechargelimitfield.prototype['organization_id'] = undefined;
-
-/**
- * @member {Number} user_id
- */
-Creditrechargelimitfield.prototype['user_id'] = undefined;
-var _default = exports["default"] = Creditrechargelimitfield;
\ No newline at end of file
diff --git a/dist/model/Creditrechargelimitresponse.js b/dist/model/Creditrechargelimitresponse.js
deleted file mode 100644
index 4964e9fa..00000000
--- a/dist/model/Creditrechargelimitresponse.js
+++ /dev/null
@@ -1,130 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _Creditrechargelimitfield = _interopRequireDefault(require("./Creditrechargelimitfield"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The Creditrechargelimitresponse model module.
- * @module model/Creditrechargelimitresponse
- * @version v1.25.0-alpha
- */
-var Creditrechargelimitresponse = /*#__PURE__*/function () {
- /**
- * Constructs a new Creditrechargelimitresponse.
- * @alias module:model/Creditrechargelimitresponse
- */
- function Creditrechargelimitresponse() {
- _classCallCheck(this, Creditrechargelimitresponse);
- Creditrechargelimitresponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(Creditrechargelimitresponse, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a Creditrechargelimitresponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Creditrechargelimitresponse} obj Optional instance to populate.
- * @return {module:model/Creditrechargelimitresponse} The populated Creditrechargelimitresponse instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new Creditrechargelimitresponse();
- if (data.hasOwnProperty('data')) {
- obj['data'] = _ApiClient["default"].convertToType(data['data'], [_Creditrechargelimitfield["default"]]);
- }
- if (data.hasOwnProperty('message')) {
- obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to Creditrechargelimitresponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to Creditrechargelimitresponse.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- if (data['data']) {
- // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['data'])) {
- throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
- }
- // validate the optional field `data` (array)
- var _iterator = _createForOfIteratorHelper(data['data']),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var item = _step.value;
- _Creditrechargelimitfield["default"].validateJSON(item);
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- ;
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {Array.} data
- */
-Creditrechargelimitresponse.prototype['data'] = undefined;
-
-/**
- * @member {String} message
- */
-Creditrechargelimitresponse.prototype['message'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-Creditrechargelimitresponse.prototype['status'] = undefined;
-var _default = exports["default"] = Creditrechargelimitresponse;
\ No newline at end of file
diff --git a/dist/model/Creditrequestresponse.js b/dist/model/Creditrequestresponse.js
deleted file mode 100644
index c4ceff3c..00000000
--- a/dist/model/Creditrequestresponse.js
+++ /dev/null
@@ -1,130 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _Creditrequests = _interopRequireDefault(require("./Creditrequests"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The Creditrequestresponse model module.
- * @module model/Creditrequestresponse
- * @version v1.25.0-alpha
- */
-var Creditrequestresponse = /*#__PURE__*/function () {
- /**
- * Constructs a new Creditrequestresponse.
- * @alias module:model/Creditrequestresponse
- */
- function Creditrequestresponse() {
- _classCallCheck(this, Creditrequestresponse);
- Creditrequestresponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(Creditrequestresponse, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a Creditrequestresponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Creditrequestresponse} obj Optional instance to populate.
- * @return {module:model/Creditrequestresponse} The populated Creditrequestresponse instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new Creditrequestresponse();
- if (data.hasOwnProperty('data')) {
- obj['data'] = _ApiClient["default"].convertToType(data['data'], [_Creditrequests["default"]]);
- }
- if (data.hasOwnProperty('message')) {
- obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to Creditrequestresponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to Creditrequestresponse.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- if (data['data']) {
- // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['data'])) {
- throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
- }
- // validate the optional field `data` (array)
- var _iterator = _createForOfIteratorHelper(data['data']),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var item = _step.value;
- _Creditrequests["default"].validateJSON(item);
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- ;
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {Array.} data
- */
-Creditrequestresponse.prototype['data'] = undefined;
-
-/**
- * @member {String} message
- */
-Creditrequestresponse.prototype['message'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-Creditrequestresponse.prototype['status'] = undefined;
-var _default = exports["default"] = Creditrequestresponse;
\ No newline at end of file
diff --git a/dist/model/Creditrequests.js b/dist/model/Creditrequests.js
deleted file mode 100644
index e90a3e23..00000000
--- a/dist/model/Creditrequests.js
+++ /dev/null
@@ -1,125 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The Creditrequests model module.
- * @module model/Creditrequests
- * @version v1.25.0-alpha
- */
-var Creditrequests = /*#__PURE__*/function () {
- /**
- * Constructs a new Creditrequests.
- * @alias module:model/Creditrequests
- */
- function Creditrequests() {
- _classCallCheck(this, Creditrequests);
- Creditrequests.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(Creditrequests, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a Creditrequests from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Creditrequests} obj Optional instance to populate.
- * @return {module:model/Creditrequests} The populated Creditrequests instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new Creditrequests();
- if (data.hasOwnProperty('admin_user_id')) {
- obj['admin_user_id'] = _ApiClient["default"].convertToType(data['admin_user_id'], 'Number');
- }
- if (data.hasOwnProperty('amount')) {
- obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'Number');
- }
- if (data.hasOwnProperty('reason')) {
- obj['reason'] = _ApiClient["default"].convertToType(data['reason'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
- }
- if (data.hasOwnProperty('updated_at')) {
- obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to Creditrequests.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to Creditrequests.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is a string
- if (data['reason'] && !(typeof data['reason'] === 'string' || data['reason'] instanceof String)) {
- throw new Error("Expected the field `reason` to be a primitive type in the JSON string but got " + data['reason']);
- }
- // ensure the json data is a string
- if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
- throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {Number} admin_user_id
- */
-Creditrequests.prototype['admin_user_id'] = undefined;
-
-/**
- * @member {Number} amount
- */
-Creditrequests.prototype['amount'] = undefined;
-
-/**
- * @member {String} reason
- */
-Creditrequests.prototype['reason'] = undefined;
-
-/**
- * @member {String} status
- */
-Creditrequests.prototype['status'] = undefined;
-
-/**
- * @member {Date} updated_at
- */
-Creditrequests.prototype['updated_at'] = undefined;
-var _default = exports["default"] = Creditrequests;
\ No newline at end of file
diff --git a/dist/model/CustomerContractDetailResponseModel.js b/dist/model/CustomerContractDetailResponseModel.js
index 818b8453..dedd9cb1 100644
--- a/dist/model/CustomerContractDetailResponseModel.js
+++ b/dist/model/CustomerContractDetailResponseModel.js
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CustomerContractDetailResponseModel model module.
* @module model/CustomerContractDetailResponseModel
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CustomerContractDetailResponseModel = /*#__PURE__*/function () {
/**
diff --git a/dist/model/CustomerContractFields.js b/dist/model/CustomerContractFields.js
index 2813b013..c0931605 100644
--- a/dist/model/CustomerContractFields.js
+++ b/dist/model/CustomerContractFields.js
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The CustomerContractFields model module.
* @module model/CustomerContractFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var CustomerContractFields = /*#__PURE__*/function () {
/**
diff --git a/dist/model/CustomerFields.js b/dist/model/CustomerFields.js
deleted file mode 100644
index 91a07528..00000000
--- a/dist/model/CustomerFields.js
+++ /dev/null
@@ -1,97 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The CustomerFields model module.
- * @module model/CustomerFields
- * @version v1.25.0-alpha
- */
-var CustomerFields = /*#__PURE__*/function () {
- /**
- * Constructs a new CustomerFields.
- * @alias module:model/CustomerFields
- */
- function CustomerFields() {
- _classCallCheck(this, CustomerFields);
- CustomerFields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(CustomerFields, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a CustomerFields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CustomerFields} obj Optional instance to populate.
- * @return {module:model/CustomerFields} The populated CustomerFields instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CustomerFields();
- if (data.hasOwnProperty('id')) {
- obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
- }
- if (data.hasOwnProperty('plan_type')) {
- obj['plan_type'] = _ApiClient["default"].convertToType(data['plan_type'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CustomerFields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CustomerFields.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is a string
- if (data['plan_type'] && !(typeof data['plan_type'] === 'string' || data['plan_type'] instanceof String)) {
- throw new Error("Expected the field `plan_type` to be a primitive type in the JSON string but got " + data['plan_type']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {Number} id
- */
-CustomerFields.prototype['id'] = undefined;
-
-/**
- * @member {String} plan_type
- */
-CustomerFields.prototype['plan_type'] = undefined;
-var _default = exports["default"] = CustomerFields;
\ No newline at end of file
diff --git a/dist/model/CustomerPayload.js b/dist/model/CustomerPayload.js
deleted file mode 100644
index 16a264e5..00000000
--- a/dist/model/CustomerPayload.js
+++ /dev/null
@@ -1,122 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The CustomerPayload model module.
- * @module model/CustomerPayload
- * @version v1.25.0-alpha
- */
-var CustomerPayload = /*#__PURE__*/function () {
- /**
- * Constructs a new CustomerPayload.
- * @alias module:model/CustomerPayload
- * @param id {Number}
- * @param planType {String}
- */
- function CustomerPayload(id, planType) {
- _classCallCheck(this, CustomerPayload);
- CustomerPayload.initialize(this, id, planType);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(CustomerPayload, null, [{
- key: "initialize",
- value: function initialize(obj, id, planType) {
- obj['id'] = id;
- obj['plan_type'] = planType;
- }
-
- /**
- * Constructs a CustomerPayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CustomerPayload} obj Optional instance to populate.
- * @return {module:model/CustomerPayload} The populated CustomerPayload instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CustomerPayload();
- if (data.hasOwnProperty('id')) {
- obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
- }
- if (data.hasOwnProperty('plan_type')) {
- obj['plan_type'] = _ApiClient["default"].convertToType(data['plan_type'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CustomerPayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CustomerPayload.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- var _iterator = _createForOfIteratorHelper(CustomerPayload.RequiredProperties),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var property = _step.value;
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- if (data['plan_type'] && !(typeof data['plan_type'] === 'string' || data['plan_type'] instanceof String)) {
- throw new Error("Expected the field `plan_type` to be a primitive type in the JSON string but got " + data['plan_type']);
- }
- return true;
- }
- }]);
-}();
-CustomerPayload.RequiredProperties = ["id", "plan_type"];
-
-/**
- * @member {Number} id
- */
-CustomerPayload.prototype['id'] = undefined;
-
-/**
- * @member {String} plan_type
- */
-CustomerPayload.prototype['plan_type'] = undefined;
-var _default = exports["default"] = CustomerPayload;
\ No newline at end of file
diff --git a/dist/model/DashboardInfoResponse.js b/dist/model/DashboardInfoResponse.js
index 0872f9dc..9ae78d4c 100644
--- a/dist/model/DashboardInfoResponse.js
+++ b/dist/model/DashboardInfoResponse.js
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The DashboardInfoResponse model module.
* @module model/DashboardInfoResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var DashboardInfoResponse = /*#__PURE__*/function () {
/**
diff --git a/dist/model/Data.js b/dist/model/Data.js
deleted file mode 100644
index 47cb2ca0..00000000
--- a/dist/model/Data.js
+++ /dev/null
@@ -1,108 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The Data model module.
- * @module model/Data
- * @version v1.25.0-alpha
- */
-var Data = /*#__PURE__*/function () {
- /**
- * Constructs a new Data.
- * @alias module:model/Data
- */
- function Data() {
- _classCallCheck(this, Data);
- Data.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(Data, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a Data from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Data} obj Optional instance to populate.
- * @return {module:model/Data} The populated Data instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new Data();
- if (data.hasOwnProperty('organization_id')) {
- obj['organization_id'] = _ApiClient["default"].convertToType(data['organization_id'], 'Number');
- }
- if (data.hasOwnProperty('resource_id')) {
- obj['resource_id'] = _ApiClient["default"].convertToType(data['resource_id'], 'Number');
- }
- if (data.hasOwnProperty('resource_type')) {
- obj['resource_type'] = _ApiClient["default"].convertToType(data['resource_type'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to Data.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to Data.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is a string
- if (data['resource_type'] && !(typeof data['resource_type'] === 'string' || data['resource_type'] instanceof String)) {
- throw new Error("Expected the field `resource_type` to be a primitive type in the JSON string but got " + data['resource_type']);
- }
- return true;
- }
- }]);
-}();
-/**
- * Organization ID associated with the resource.
- * @member {Number} organization_id
- */
-Data.prototype['organization_id'] = undefined;
-
-/**
- * ID of the resource.
- * @member {Number} resource_id
- */
-Data.prototype['resource_id'] = undefined;
-
-/**
- * Type of the resource.
- * @member {String} resource_type
- */
-Data.prototype['resource_type'] = undefined;
-var _default = exports["default"] = Data;
\ No newline at end of file
diff --git a/dist/model/DataSynthesisBillingHistoryDetailsResponseSchema.js b/dist/model/DataSynthesisBillingHistoryDetailsResponseSchema.js
new file mode 100644
index 00000000..93d4b011
--- /dev/null
+++ b/dist/model/DataSynthesisBillingHistoryDetailsResponseSchema.js
@@ -0,0 +1,113 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+var _BillingHistoryDataSynthesisDetails = _interopRequireDefault(require("./BillingHistoryDataSynthesisDetails"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The DataSynthesisBillingHistoryDetailsResponseSchema model module.
+ * @module model/DataSynthesisBillingHistoryDetailsResponseSchema
+ * @version v1.51.1-alpha
+ */
+var DataSynthesisBillingHistoryDetailsResponseSchema = /*#__PURE__*/function () {
+ /**
+ * Constructs a new DataSynthesisBillingHistoryDetailsResponseSchema.
+ * @alias module:model/DataSynthesisBillingHistoryDetailsResponseSchema
+ */
+ function DataSynthesisBillingHistoryDetailsResponseSchema() {
+ _classCallCheck(this, DataSynthesisBillingHistoryDetailsResponseSchema);
+ DataSynthesisBillingHistoryDetailsResponseSchema.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(DataSynthesisBillingHistoryDetailsResponseSchema, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a DataSynthesisBillingHistoryDetailsResponseSchema from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/DataSynthesisBillingHistoryDetailsResponseSchema} obj Optional instance to populate.
+ * @return {module:model/DataSynthesisBillingHistoryDetailsResponseSchema} The populated DataSynthesisBillingHistoryDetailsResponseSchema instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new DataSynthesisBillingHistoryDetailsResponseSchema();
+ if (data.hasOwnProperty('billing_history_data_synthesis_details')) {
+ obj['billing_history_data_synthesis_details'] = _BillingHistoryDataSynthesisDetails["default"].constructFromObject(data['billing_history_data_synthesis_details']);
+ }
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to DataSynthesisBillingHistoryDetailsResponseSchema.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to DataSynthesisBillingHistoryDetailsResponseSchema.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // validate the optional field `billing_history_data_synthesis_details`
+ if (data['billing_history_data_synthesis_details']) {
+ // data not null
+ _BillingHistoryDataSynthesisDetails["default"].validateJSON(data['billing_history_data_synthesis_details']);
+ }
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {module:model/BillingHistoryDataSynthesisDetails} billing_history_data_synthesis_details
+ */
+DataSynthesisBillingHistoryDetailsResponseSchema.prototype['billing_history_data_synthesis_details'] = undefined;
+
+/**
+ *
+ * @member {String} message
+ */
+DataSynthesisBillingHistoryDetailsResponseSchema.prototype['message'] = undefined;
+
+/**
+ *
+ * @member {Boolean} status
+ */
+DataSynthesisBillingHistoryDetailsResponseSchema.prototype['status'] = undefined;
+var _default = exports["default"] = DataSynthesisBillingHistoryDetailsResponseSchema;
\ No newline at end of file
diff --git a/dist/model/DeleteClusterNodesFields.js b/dist/model/DeleteClusterNodesFields.js
new file mode 100644
index 00000000..ea74222f
--- /dev/null
+++ b/dist/model/DeleteClusterNodesFields.js
@@ -0,0 +1,89 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The DeleteClusterNodesFields model module.
+ * @module model/DeleteClusterNodesFields
+ * @version v1.51.1-alpha
+ */
+var DeleteClusterNodesFields = /*#__PURE__*/function () {
+ /**
+ * Constructs a new DeleteClusterNodesFields.
+ * @alias module:model/DeleteClusterNodesFields
+ */
+ function DeleteClusterNodesFields() {
+ _classCallCheck(this, DeleteClusterNodesFields);
+ DeleteClusterNodesFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(DeleteClusterNodesFields, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a DeleteClusterNodesFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/DeleteClusterNodesFields} obj Optional instance to populate.
+ * @return {module:model/DeleteClusterNodesFields} The populated DeleteClusterNodesFields instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new DeleteClusterNodesFields();
+ if (data.hasOwnProperty('ids')) {
+ obj['ids'] = _ApiClient["default"].convertToType(data['ids'], ['Number']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to DeleteClusterNodesFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to DeleteClusterNodesFields.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is an array
+ if (!Array.isArray(data['ids'])) {
+ throw new Error("Expected the field `ids` to be an array in the JSON data but got " + data['ids']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {Array.} ids
+ */
+DeleteClusterNodesFields.prototype['ids'] = undefined;
+var _default = exports["default"] = DeleteClusterNodesFields;
\ No newline at end of file
diff --git a/dist/model/DeploymentFields.js b/dist/model/DeploymentFields.js
index 390717e5..dd63e9e5 100644
--- a/dist/model/DeploymentFields.js
+++ b/dist/model/DeploymentFields.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The DeploymentFields model module.
* @module model/DeploymentFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var DeploymentFields = /*#__PURE__*/function () {
/**
diff --git a/dist/model/DeploymentFieldsForStartDeployments.js b/dist/model/DeploymentFieldsForStartDeployments.js
new file mode 100644
index 00000000..aeb3ba0b
--- /dev/null
+++ b/dist/model/DeploymentFieldsForStartDeployments.js
@@ -0,0 +1,153 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The DeploymentFieldsForStartDeployments model module.
+ * @module model/DeploymentFieldsForStartDeployments
+ * @version v1.51.1-alpha
+ */
+var DeploymentFieldsForStartDeployments = /*#__PURE__*/function () {
+ /**
+ * Constructs a new DeploymentFieldsForStartDeployments.
+ * @alias module:model/DeploymentFieldsForStartDeployments
+ */
+ function DeploymentFieldsForStartDeployments() {
+ _classCallCheck(this, DeploymentFieldsForStartDeployments);
+ DeploymentFieldsForStartDeployments.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(DeploymentFieldsForStartDeployments, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a DeploymentFieldsForStartDeployments from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/DeploymentFieldsForStartDeployments} obj Optional instance to populate.
+ * @return {module:model/DeploymentFieldsForStartDeployments} The populated DeploymentFieldsForStartDeployments instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new DeploymentFieldsForStartDeployments();
+ if (data.hasOwnProperty('created_at')) {
+ obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
+ }
+ if (data.hasOwnProperty('description')) {
+ obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
+ }
+ if (data.hasOwnProperty('template')) {
+ obj['template'] = _ApiClient["default"].convertToType(data['template'], 'String');
+ }
+ if (data.hasOwnProperty('variables')) {
+ obj['variables'] = _ApiClient["default"].convertToType(data['variables'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to DeploymentFieldsForStartDeployments.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to DeploymentFieldsForStartDeployments.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
+ throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
+ }
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+ // ensure the json data is a string
+ if (data['template'] && !(typeof data['template'] === 'string' || data['template'] instanceof String)) {
+ throw new Error("Expected the field `template` to be a primitive type in the JSON string but got " + data['template']);
+ }
+ // ensure the json data is a string
+ if (data['variables'] && !(typeof data['variables'] === 'string' || data['variables'] instanceof String)) {
+ throw new Error("Expected the field `variables` to be a primitive type in the JSON string but got " + data['variables']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {Date} created_at
+ */
+DeploymentFieldsForStartDeployments.prototype['created_at'] = undefined;
+
+/**
+ * @member {String} description
+ */
+DeploymentFieldsForStartDeployments.prototype['description'] = undefined;
+
+/**
+ * @member {Number} id
+ */
+DeploymentFieldsForStartDeployments.prototype['id'] = undefined;
+
+/**
+ * @member {String} name
+ */
+DeploymentFieldsForStartDeployments.prototype['name'] = undefined;
+
+/**
+ * @member {String} status
+ */
+DeploymentFieldsForStartDeployments.prototype['status'] = undefined;
+
+/**
+ * @member {String} template
+ */
+DeploymentFieldsForStartDeployments.prototype['template'] = undefined;
+
+/**
+ * @member {String} variables
+ */
+DeploymentFieldsForStartDeployments.prototype['variables'] = undefined;
+var _default = exports["default"] = DeploymentFieldsForStartDeployments;
\ No newline at end of file
diff --git a/dist/model/DeploymentFieldsforstartdeployments.js b/dist/model/DeploymentFieldsforstartdeployments.js
deleted file mode 100644
index a9f3074a..00000000
--- a/dist/model/DeploymentFieldsforstartdeployments.js
+++ /dev/null
@@ -1,153 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The DeploymentFieldsforstartdeployments model module.
- * @module model/DeploymentFieldsforstartdeployments
- * @version v1.25.0-alpha
- */
-var DeploymentFieldsforstartdeployments = /*#__PURE__*/function () {
- /**
- * Constructs a new DeploymentFieldsforstartdeployments.
- * @alias module:model/DeploymentFieldsforstartdeployments
- */
- function DeploymentFieldsforstartdeployments() {
- _classCallCheck(this, DeploymentFieldsforstartdeployments);
- DeploymentFieldsforstartdeployments.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(DeploymentFieldsforstartdeployments, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a DeploymentFieldsforstartdeployments from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/DeploymentFieldsforstartdeployments} obj Optional instance to populate.
- * @return {module:model/DeploymentFieldsforstartdeployments} The populated DeploymentFieldsforstartdeployments instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new DeploymentFieldsforstartdeployments();
- if (data.hasOwnProperty('created_at')) {
- obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date');
- }
- if (data.hasOwnProperty('description')) {
- obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
- }
- if (data.hasOwnProperty('id')) {
- obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
- }
- if (data.hasOwnProperty('name')) {
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
- }
- if (data.hasOwnProperty('template')) {
- obj['template'] = _ApiClient["default"].convertToType(data['template'], 'String');
- }
- if (data.hasOwnProperty('variables')) {
- obj['variables'] = _ApiClient["default"].convertToType(data['variables'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to DeploymentFieldsforstartdeployments.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to DeploymentFieldsforstartdeployments.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is a string
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
- }
- // ensure the json data is a string
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
- }
- // ensure the json data is a string
- if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
- throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
- }
- // ensure the json data is a string
- if (data['template'] && !(typeof data['template'] === 'string' || data['template'] instanceof String)) {
- throw new Error("Expected the field `template` to be a primitive type in the JSON string but got " + data['template']);
- }
- // ensure the json data is a string
- if (data['variables'] && !(typeof data['variables'] === 'string' || data['variables'] instanceof String)) {
- throw new Error("Expected the field `variables` to be a primitive type in the JSON string but got " + data['variables']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {Date} created_at
- */
-DeploymentFieldsforstartdeployments.prototype['created_at'] = undefined;
-
-/**
- * @member {String} description
- */
-DeploymentFieldsforstartdeployments.prototype['description'] = undefined;
-
-/**
- * @member {Number} id
- */
-DeploymentFieldsforstartdeployments.prototype['id'] = undefined;
-
-/**
- * @member {String} name
- */
-DeploymentFieldsforstartdeployments.prototype['name'] = undefined;
-
-/**
- * @member {String} status
- */
-DeploymentFieldsforstartdeployments.prototype['status'] = undefined;
-
-/**
- * @member {String} template
- */
-DeploymentFieldsforstartdeployments.prototype['template'] = undefined;
-
-/**
- * @member {String} variables
- */
-DeploymentFieldsforstartdeployments.prototype['variables'] = undefined;
-var _default = exports["default"] = DeploymentFieldsforstartdeployments;
\ No newline at end of file
diff --git a/dist/model/Deployments.js b/dist/model/Deployments.js
index 07ed68e2..3a9ab001 100644
--- a/dist/model/Deployments.js
+++ b/dist/model/Deployments.js
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The Deployments model module.
* @module model/Deployments
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var Deployments = /*#__PURE__*/function () {
/**
diff --git a/dist/model/DetachVolumes.js b/dist/model/DetachVolumes.js
index 6d718966..1fd5d290 100644
--- a/dist/model/DetachVolumes.js
+++ b/dist/model/DetachVolumes.js
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The DetachVolumes model module.
* @module model/DetachVolumes
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var DetachVolumes = /*#__PURE__*/function () {
/**
diff --git a/dist/model/DetachVolumesPayload.js b/dist/model/DetachVolumesPayload.js
index a448211b..b9fb5f2b 100644
--- a/dist/model/DetachVolumesPayload.js
+++ b/dist/model/DetachVolumesPayload.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The DetachVolumesPayload model module.
* @module model/DetachVolumesPayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var DetachVolumesPayload = /*#__PURE__*/function () {
/**
diff --git a/dist/model/DiscountEntityModel.js b/dist/model/DiscountEntityModel.js
deleted file mode 100644
index 189e45d6..00000000
--- a/dist/model/DiscountEntityModel.js
+++ /dev/null
@@ -1,122 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _DiscountPlanFields = _interopRequireDefault(require("./DiscountPlanFields"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The DiscountEntityModel model module.
- * @module model/DiscountEntityModel
- * @version v1.25.0-alpha
- */
-var DiscountEntityModel = /*#__PURE__*/function () {
- /**
- * Constructs a new DiscountEntityModel.
- * @alias module:model/DiscountEntityModel
- */
- function DiscountEntityModel() {
- _classCallCheck(this, DiscountEntityModel);
- DiscountEntityModel.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(DiscountEntityModel, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a DiscountEntityModel from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/DiscountEntityModel} obj Optional instance to populate.
- * @return {module:model/DiscountEntityModel} The populated DiscountEntityModel instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new DiscountEntityModel();
- if (data.hasOwnProperty('data')) {
- obj['data'] = _ApiClient["default"].convertToType(data['data'], [_DiscountPlanFields["default"]]);
- }
- if (data.hasOwnProperty('entity')) {
- obj['entity'] = _ApiClient["default"].convertToType(data['entity'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to DiscountEntityModel.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to DiscountEntityModel.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- if (data['data']) {
- // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['data'])) {
- throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
- }
- // validate the optional field `data` (array)
- var _iterator = _createForOfIteratorHelper(data['data']),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var item = _step.value;
- _DiscountPlanFields["default"].validateJSON(item);
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- ;
- }
- // ensure the json data is a string
- if (data['entity'] && !(typeof data['entity'] === 'string' || data['entity'] instanceof String)) {
- throw new Error("Expected the field `entity` to be a primitive type in the JSON string but got " + data['entity']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {Array.} data
- */
-DiscountEntityModel.prototype['data'] = undefined;
-
-/**
- * @member {String} entity
- */
-DiscountEntityModel.prototype['entity'] = undefined;
-var _default = exports["default"] = DiscountEntityModel;
\ No newline at end of file
diff --git a/dist/model/DiscountFields.js b/dist/model/DiscountFields.js
deleted file mode 100644
index 7956294f..00000000
--- a/dist/model/DiscountFields.js
+++ /dev/null
@@ -1,149 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The DiscountFields model module.
- * @module model/DiscountFields
- * @version v1.25.0-alpha
- */
-var DiscountFields = /*#__PURE__*/function () {
- /**
- * Constructs a new DiscountFields.
- * @alias module:model/DiscountFields
- */
- function DiscountFields() {
- _classCallCheck(this, DiscountFields);
- DiscountFields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(DiscountFields, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a DiscountFields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/DiscountFields} obj Optional instance to populate.
- * @return {module:model/DiscountFields} The populated DiscountFields instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new DiscountFields();
- if (data.hasOwnProperty('discount_status')) {
- obj['discount_status'] = _ApiClient["default"].convertToType(data['discount_status'], 'String');
- }
- if (data.hasOwnProperty('end_date')) {
- obj['end_date'] = _ApiClient["default"].convertToType(data['end_date'], 'Date');
- }
- if (data.hasOwnProperty('org_id')) {
- obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
- }
- if (data.hasOwnProperty('org_name')) {
- obj['org_name'] = _ApiClient["default"].convertToType(data['org_name'], 'String');
- }
- if (data.hasOwnProperty('plan_type')) {
- obj['plan_type'] = _ApiClient["default"].convertToType(data['plan_type'], 'String');
- }
- if (data.hasOwnProperty('vm_id')) {
- obj['vm_id'] = _ApiClient["default"].convertToType(data['vm_id'], 'Number');
- }
- if (data.hasOwnProperty('vm_name')) {
- obj['vm_name'] = _ApiClient["default"].convertToType(data['vm_name'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to DiscountFields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to DiscountFields.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is a string
- if (data['discount_status'] && !(typeof data['discount_status'] === 'string' || data['discount_status'] instanceof String)) {
- throw new Error("Expected the field `discount_status` to be a primitive type in the JSON string but got " + data['discount_status']);
- }
- // ensure the json data is a string
- if (data['org_name'] && !(typeof data['org_name'] === 'string' || data['org_name'] instanceof String)) {
- throw new Error("Expected the field `org_name` to be a primitive type in the JSON string but got " + data['org_name']);
- }
- // ensure the json data is a string
- if (data['plan_type'] && !(typeof data['plan_type'] === 'string' || data['plan_type'] instanceof String)) {
- throw new Error("Expected the field `plan_type` to be a primitive type in the JSON string but got " + data['plan_type']);
- }
- // ensure the json data is a string
- if (data['vm_name'] && !(typeof data['vm_name'] === 'string' || data['vm_name'] instanceof String)) {
- throw new Error("Expected the field `vm_name` to be a primitive type in the JSON string but got " + data['vm_name']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {String} discount_status
- */
-DiscountFields.prototype['discount_status'] = undefined;
-
-/**
- * @member {Date} end_date
- */
-DiscountFields.prototype['end_date'] = undefined;
-
-/**
- * @member {Number} org_id
- */
-DiscountFields.prototype['org_id'] = undefined;
-
-/**
- * @member {String} org_name
- */
-DiscountFields.prototype['org_name'] = undefined;
-
-/**
- * @member {String} plan_type
- */
-DiscountFields.prototype['plan_type'] = undefined;
-
-/**
- * @member {Number} vm_id
- */
-DiscountFields.prototype['vm_id'] = undefined;
-
-/**
- * @member {String} vm_name
- */
-DiscountFields.prototype['vm_name'] = undefined;
-var _default = exports["default"] = DiscountFields;
\ No newline at end of file
diff --git a/dist/model/DiscountPlanFields.js b/dist/model/DiscountPlanFields.js
deleted file mode 100644
index 6eb07d42..00000000
--- a/dist/model/DiscountPlanFields.js
+++ /dev/null
@@ -1,181 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The DiscountPlanFields model module.
- * @module model/DiscountPlanFields
- * @version v1.25.0-alpha
- */
-var DiscountPlanFields = /*#__PURE__*/function () {
- /**
- * Constructs a new DiscountPlanFields.
- * @alias module:model/DiscountPlanFields
- */
- function DiscountPlanFields() {
- _classCallCheck(this, DiscountPlanFields);
- DiscountPlanFields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(DiscountPlanFields, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a DiscountPlanFields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/DiscountPlanFields} obj Optional instance to populate.
- * @return {module:model/DiscountPlanFields} The populated DiscountPlanFields instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new DiscountPlanFields();
- if (data.hasOwnProperty('discount_amount')) {
- obj['discount_amount'] = _ApiClient["default"].convertToType(data['discount_amount'], 'Number');
- }
- if (data.hasOwnProperty('discount_code')) {
- obj['discount_code'] = _ApiClient["default"].convertToType(data['discount_code'], 'String');
- }
- if (data.hasOwnProperty('discount_percent')) {
- obj['discount_percent'] = _ApiClient["default"].convertToType(data['discount_percent'], 'Number');
- }
- if (data.hasOwnProperty('discount_status')) {
- obj['discount_status'] = _ApiClient["default"].convertToType(data['discount_status'], 'String');
- }
- if (data.hasOwnProperty('discount_type')) {
- obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
- }
- if (data.hasOwnProperty('end_date')) {
- obj['end_date'] = _ApiClient["default"].convertToType(data['end_date'], 'Date');
- }
- if (data.hasOwnProperty('id')) {
- obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
- }
- if (data.hasOwnProperty('resource')) {
- obj['resource'] = _ApiClient["default"].convertToType(data['resource'], 'String');
- }
- if (data.hasOwnProperty('start_date')) {
- obj['start_date'] = _ApiClient["default"].convertToType(data['start_date'], 'Date');
- }
- if (data.hasOwnProperty('validity_days')) {
- obj['validity_days'] = _ApiClient["default"].convertToType(data['validity_days'], 'Number');
- }
- if (data.hasOwnProperty('vm_id')) {
- obj['vm_id'] = _ApiClient["default"].convertToType(data['vm_id'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to DiscountPlanFields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to DiscountPlanFields.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is a string
- if (data['discount_code'] && !(typeof data['discount_code'] === 'string' || data['discount_code'] instanceof String)) {
- throw new Error("Expected the field `discount_code` to be a primitive type in the JSON string but got " + data['discount_code']);
- }
- // ensure the json data is a string
- if (data['discount_status'] && !(typeof data['discount_status'] === 'string' || data['discount_status'] instanceof String)) {
- throw new Error("Expected the field `discount_status` to be a primitive type in the JSON string but got " + data['discount_status']);
- }
- // ensure the json data is a string
- if (data['discount_type'] && !(typeof data['discount_type'] === 'string' || data['discount_type'] instanceof String)) {
- throw new Error("Expected the field `discount_type` to be a primitive type in the JSON string but got " + data['discount_type']);
- }
- // ensure the json data is a string
- if (data['resource'] && !(typeof data['resource'] === 'string' || data['resource'] instanceof String)) {
- throw new Error("Expected the field `resource` to be a primitive type in the JSON string but got " + data['resource']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {Number} discount_amount
- */
-DiscountPlanFields.prototype['discount_amount'] = undefined;
-
-/**
- * @member {String} discount_code
- */
-DiscountPlanFields.prototype['discount_code'] = undefined;
-
-/**
- * @member {Number} discount_percent
- */
-DiscountPlanFields.prototype['discount_percent'] = undefined;
-
-/**
- * @member {String} discount_status
- */
-DiscountPlanFields.prototype['discount_status'] = undefined;
-
-/**
- * @member {String} discount_type
- */
-DiscountPlanFields.prototype['discount_type'] = undefined;
-
-/**
- * @member {Date} end_date
- */
-DiscountPlanFields.prototype['end_date'] = undefined;
-
-/**
- * @member {Number} id
- */
-DiscountPlanFields.prototype['id'] = undefined;
-
-/**
- * @member {String} resource
- */
-DiscountPlanFields.prototype['resource'] = undefined;
-
-/**
- * @member {Date} start_date
- */
-DiscountPlanFields.prototype['start_date'] = undefined;
-
-/**
- * @member {Number} validity_days
- */
-DiscountPlanFields.prototype['validity_days'] = undefined;
-
-/**
- * @member {Number} vm_id
- */
-DiscountPlanFields.prototype['vm_id'] = undefined;
-var _default = exports["default"] = DiscountPlanFields;
\ No newline at end of file
diff --git a/dist/model/DiscountResourceFields.js b/dist/model/DiscountResourceFields.js
deleted file mode 100644
index 0b50c76a..00000000
--- a/dist/model/DiscountResourceFields.js
+++ /dev/null
@@ -1,113 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The DiscountResourceFields model module.
- * @module model/DiscountResourceFields
- * @version v1.25.0-alpha
- */
-var DiscountResourceFields = /*#__PURE__*/function () {
- /**
- * Constructs a new DiscountResourceFields.
- * @alias module:model/DiscountResourceFields
- */
- function DiscountResourceFields() {
- _classCallCheck(this, DiscountResourceFields);
- DiscountResourceFields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(DiscountResourceFields, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a DiscountResourceFields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/DiscountResourceFields} obj Optional instance to populate.
- * @return {module:model/DiscountResourceFields} The populated DiscountResourceFields instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new DiscountResourceFields();
- if (data.hasOwnProperty('discount_amount')) {
- obj['discount_amount'] = _ApiClient["default"].convertToType(data['discount_amount'], 'Number');
- }
- if (data.hasOwnProperty('discount_percent')) {
- obj['discount_percent'] = _ApiClient["default"].convertToType(data['discount_percent'], 'Number');
- }
- if (data.hasOwnProperty('discount_type')) {
- obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
- }
- if (data.hasOwnProperty('resource_id')) {
- obj['resource_id'] = _ApiClient["default"].convertToType(data['resource_id'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to DiscountResourceFields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to DiscountResourceFields.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is a string
- if (data['discount_type'] && !(typeof data['discount_type'] === 'string' || data['discount_type'] instanceof String)) {
- throw new Error("Expected the field `discount_type` to be a primitive type in the JSON string but got " + data['discount_type']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {Number} discount_amount
- */
-DiscountResourceFields.prototype['discount_amount'] = undefined;
-
-/**
- * @member {Number} discount_percent
- */
-DiscountResourceFields.prototype['discount_percent'] = undefined;
-
-/**
- * @member {String} discount_type
- */
-DiscountResourceFields.prototype['discount_type'] = undefined;
-
-/**
- * @member {Number} resource_id
- */
-DiscountResourceFields.prototype['resource_id'] = undefined;
-var _default = exports["default"] = DiscountResourceFields;
\ No newline at end of file
diff --git a/dist/model/DiscountResourcePayload.js b/dist/model/DiscountResourcePayload.js
deleted file mode 100644
index 077b9bb6..00000000
--- a/dist/model/DiscountResourcePayload.js
+++ /dev/null
@@ -1,142 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The DiscountResourcePayload model module.
- * @module model/DiscountResourcePayload
- * @version v1.25.0-alpha
- */
-var DiscountResourcePayload = /*#__PURE__*/function () {
- /**
- * Constructs a new DiscountResourcePayload.
- * @alias module:model/DiscountResourcePayload
- * @param discountAmount {Number}
- * @param discountPercent {Number}
- * @param discountType {String}
- * @param resourceId {Number}
- */
- function DiscountResourcePayload(discountAmount, discountPercent, discountType, resourceId) {
- _classCallCheck(this, DiscountResourcePayload);
- DiscountResourcePayload.initialize(this, discountAmount, discountPercent, discountType, resourceId);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(DiscountResourcePayload, null, [{
- key: "initialize",
- value: function initialize(obj, discountAmount, discountPercent, discountType, resourceId) {
- obj['discount_amount'] = discountAmount;
- obj['discount_percent'] = discountPercent;
- obj['discount_type'] = discountType;
- obj['resource_id'] = resourceId;
- }
-
- /**
- * Constructs a DiscountResourcePayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/DiscountResourcePayload} obj Optional instance to populate.
- * @return {module:model/DiscountResourcePayload} The populated DiscountResourcePayload instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new DiscountResourcePayload();
- if (data.hasOwnProperty('discount_amount')) {
- obj['discount_amount'] = _ApiClient["default"].convertToType(data['discount_amount'], 'Number');
- }
- if (data.hasOwnProperty('discount_percent')) {
- obj['discount_percent'] = _ApiClient["default"].convertToType(data['discount_percent'], 'Number');
- }
- if (data.hasOwnProperty('discount_type')) {
- obj['discount_type'] = _ApiClient["default"].convertToType(data['discount_type'], 'String');
- }
- if (data.hasOwnProperty('resource_id')) {
- obj['resource_id'] = _ApiClient["default"].convertToType(data['resource_id'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to DiscountResourcePayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to DiscountResourcePayload.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- var _iterator = _createForOfIteratorHelper(DiscountResourcePayload.RequiredProperties),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var property = _step.value;
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- if (data['discount_type'] && !(typeof data['discount_type'] === 'string' || data['discount_type'] instanceof String)) {
- throw new Error("Expected the field `discount_type` to be a primitive type in the JSON string but got " + data['discount_type']);
- }
- return true;
- }
- }]);
-}();
-DiscountResourcePayload.RequiredProperties = ["discount_amount", "discount_percent", "discount_type", "resource_id"];
-
-/**
- * @member {Number} discount_amount
- */
-DiscountResourcePayload.prototype['discount_amount'] = undefined;
-
-/**
- * @member {Number} discount_percent
- */
-DiscountResourcePayload.prototype['discount_percent'] = undefined;
-
-/**
- * @member {String} discount_type
- */
-DiscountResourcePayload.prototype['discount_type'] = undefined;
-
-/**
- * @member {Number} resource_id
- */
-DiscountResourcePayload.prototype['resource_id'] = undefined;
-var _default = exports["default"] = DiscountResourcePayload;
\ No newline at end of file
diff --git a/dist/model/EditLabelOfAnExistingVMPayload.js b/dist/model/EditLabelOfAnExistingVMPayload.js
new file mode 100644
index 00000000..5eceed5d
--- /dev/null
+++ b/dist/model/EditLabelOfAnExistingVMPayload.js
@@ -0,0 +1,90 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The EditLabelOfAnExistingVMPayload model module.
+ * @module model/EditLabelOfAnExistingVMPayload
+ * @version v1.51.1-alpha
+ */
+var EditLabelOfAnExistingVMPayload = /*#__PURE__*/function () {
+ /**
+ * Constructs a new EditLabelOfAnExistingVMPayload.
+ * @alias module:model/EditLabelOfAnExistingVMPayload
+ */
+ function EditLabelOfAnExistingVMPayload() {
+ _classCallCheck(this, EditLabelOfAnExistingVMPayload);
+ EditLabelOfAnExistingVMPayload.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(EditLabelOfAnExistingVMPayload, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a EditLabelOfAnExistingVMPayload from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/EditLabelOfAnExistingVMPayload} obj Optional instance to populate.
+ * @return {module:model/EditLabelOfAnExistingVMPayload} The populated EditLabelOfAnExistingVMPayload instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new EditLabelOfAnExistingVMPayload();
+ if (data.hasOwnProperty('labels')) {
+ obj['labels'] = _ApiClient["default"].convertToType(data['labels'], ['String']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to EditLabelOfAnExistingVMPayload.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to EditLabelOfAnExistingVMPayload.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is an array
+ if (!Array.isArray(data['labels'])) {
+ throw new Error("Expected the field `labels` to be an array in the JSON data but got " + data['labels']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * Multiple labels can be added by separating with spaces
+ * @member {Array.} labels
+ */
+EditLabelOfAnExistingVMPayload.prototype['labels'] = undefined;
+var _default = exports["default"] = EditLabelOfAnExistingVMPayload;
\ No newline at end of file
diff --git a/dist/model/EditlabelofanexistingVMPayload.js b/dist/model/EditlabelofanexistingVMPayload.js
deleted file mode 100644
index e0d156d0..00000000
--- a/dist/model/EditlabelofanexistingVMPayload.js
+++ /dev/null
@@ -1,90 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The EditlabelofanexistingVMPayload model module.
- * @module model/EditlabelofanexistingVMPayload
- * @version v1.25.0-alpha
- */
-var EditlabelofanexistingVMPayload = /*#__PURE__*/function () {
- /**
- * Constructs a new EditlabelofanexistingVMPayload.
- * @alias module:model/EditlabelofanexistingVMPayload
- */
- function EditlabelofanexistingVMPayload() {
- _classCallCheck(this, EditlabelofanexistingVMPayload);
- EditlabelofanexistingVMPayload.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(EditlabelofanexistingVMPayload, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a EditlabelofanexistingVMPayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/EditlabelofanexistingVMPayload} obj Optional instance to populate.
- * @return {module:model/EditlabelofanexistingVMPayload} The populated EditlabelofanexistingVMPayload instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new EditlabelofanexistingVMPayload();
- if (data.hasOwnProperty('labels')) {
- obj['labels'] = _ApiClient["default"].convertToType(data['labels'], ['String']);
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to EditlabelofanexistingVMPayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to EditlabelofanexistingVMPayload.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is an array
- if (!Array.isArray(data['labels'])) {
- throw new Error("Expected the field `labels` to be an array in the JSON data but got " + data['labels']);
- }
- return true;
- }
- }]);
-}();
-/**
- * Multiple labels can be added by separating with spaces
- * @member {Array.} labels
- */
-EditlabelofanexistingVMPayload.prototype['labels'] = undefined;
-var _default = exports["default"] = EditlabelofanexistingVMPayload;
\ No newline at end of file
diff --git a/dist/model/Environment.js b/dist/model/Environment.js
index 5c93e311..c8d3bfb2 100644
--- a/dist/model/Environment.js
+++ b/dist/model/Environment.js
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The Environment model module.
* @module model/Environment
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var Environment = /*#__PURE__*/function () {
/**
diff --git a/dist/model/EnvironmentFeatures.js b/dist/model/EnvironmentFeatures.js
index aff0dd14..c7524a65 100644
--- a/dist/model/EnvironmentFeatures.js
+++ b/dist/model/EnvironmentFeatures.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The EnvironmentFeatures model module.
* @module model/EnvironmentFeatures
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var EnvironmentFeatures = /*#__PURE__*/function () {
/**
@@ -59,6 +59,9 @@ var EnvironmentFeatures = /*#__PURE__*/function () {
value: function constructFromObject(data, obj) {
if (data) {
obj = obj || new EnvironmentFeatures();
+ if (data.hasOwnProperty('green_status')) {
+ obj['green_status'] = _ApiClient["default"].convertToType(data['green_status'], 'String');
+ }
if (data.hasOwnProperty('network_optimised')) {
obj['network_optimised'] = _ApiClient["default"].convertToType(data['network_optimised'], 'Boolean');
}
@@ -74,12 +77,44 @@ var EnvironmentFeatures = /*#__PURE__*/function () {
}, {
key: "validateJSON",
value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['green_status'] && !(typeof data['green_status'] === 'string' || data['green_status'] instanceof String)) {
+ throw new Error("Expected the field `green_status` to be a primitive type in the JSON string but got " + data['green_status']);
+ }
return true;
}
}]);
}();
+/**
+ * @member {module:model/EnvironmentFeatures.GreenStatusEnum} green_status
+ */
+EnvironmentFeatures.prototype['green_status'] = undefined;
+
/**
* @member {Boolean} network_optimised
*/
EnvironmentFeatures.prototype['network_optimised'] = undefined;
+
+/**
+ * Allowed values for the green_status property.
+ * @enum {String}
+ * @readonly
+ */
+EnvironmentFeatures['GreenStatusEnum'] = {
+ /**
+ * value: "GREEN"
+ * @const
+ */
+ "GREEN": "GREEN",
+ /**
+ * value: "PARTIALLY_GREEN"
+ * @const
+ */
+ "PARTIALLY_GREEN": "PARTIALLY_GREEN",
+ /**
+ * value: "NOT_GREEN"
+ * @const
+ */
+ "NOT_GREEN": "NOT_GREEN"
+};
var _default = exports["default"] = EnvironmentFeatures;
\ No newline at end of file
diff --git a/dist/model/EnvironmentFields.js b/dist/model/EnvironmentFields.js
index 7d873657..bf1dbabc 100644
--- a/dist/model/EnvironmentFields.js
+++ b/dist/model/EnvironmentFields.js
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The EnvironmentFields model module.
* @module model/EnvironmentFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var EnvironmentFields = /*#__PURE__*/function () {
/**
diff --git a/dist/model/EnvironmentFieldsForVolume.js b/dist/model/EnvironmentFieldsForVolume.js
new file mode 100644
index 00000000..44ae0270
--- /dev/null
+++ b/dist/model/EnvironmentFieldsForVolume.js
@@ -0,0 +1,109 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports["default"] = void 0;
+var _ApiClient = _interopRequireDefault(require("../ApiClient"));
+function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
+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); }
+function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
+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); } }
+function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
+function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
+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); } /**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+/**
+ * The EnvironmentFieldsForVolume model module.
+ * @module model/EnvironmentFieldsForVolume
+ * @version v1.51.1-alpha
+ */
+var EnvironmentFieldsForVolume = /*#__PURE__*/function () {
+ /**
+ * Constructs a new EnvironmentFieldsForVolume.
+ * @alias module:model/EnvironmentFieldsForVolume
+ */
+ function EnvironmentFieldsForVolume() {
+ _classCallCheck(this, EnvironmentFieldsForVolume);
+ EnvironmentFieldsForVolume.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ return _createClass(EnvironmentFieldsForVolume, null, [{
+ key: "initialize",
+ value: function initialize(obj) {}
+
+ /**
+ * Constructs a EnvironmentFieldsForVolume from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/EnvironmentFieldsForVolume} obj Optional instance to populate.
+ * @return {module:model/EnvironmentFieldsForVolume} The populated EnvironmentFieldsForVolume instance.
+ */
+ }, {
+ key: "constructFromObject",
+ value: function constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new EnvironmentFieldsForVolume();
+ if (data.hasOwnProperty('features')) {
+ obj['features'] = _ApiClient["default"].convertToType(data['features'], Object);
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('region')) {
+ obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to EnvironmentFieldsForVolume.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to EnvironmentFieldsForVolume.
+ */
+ }, {
+ key: "validateJSON",
+ value: function validateJSON(data) {
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ // ensure the json data is a string
+ if (data['region'] && !(typeof data['region'] === 'string' || data['region'] instanceof String)) {
+ throw new Error("Expected the field `region` to be a primitive type in the JSON string but got " + data['region']);
+ }
+ return true;
+ }
+ }]);
+}();
+/**
+ * @member {Object} features
+ */
+EnvironmentFieldsForVolume.prototype['features'] = undefined;
+
+/**
+ * @member {String} name
+ */
+EnvironmentFieldsForVolume.prototype['name'] = undefined;
+
+/**
+ * @member {String} region
+ */
+EnvironmentFieldsForVolume.prototype['region'] = undefined;
+var _default = exports["default"] = EnvironmentFieldsForVolume;
\ No newline at end of file
diff --git a/dist/model/EnvironmentFieldsforVolume.js b/dist/model/EnvironmentFieldsforVolume.js
deleted file mode 100644
index 67f21ee2..00000000
--- a/dist/model/EnvironmentFieldsforVolume.js
+++ /dev/null
@@ -1,89 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The EnvironmentFieldsforVolume model module.
- * @module model/EnvironmentFieldsforVolume
- * @version v1.25.0-alpha
- */
-var EnvironmentFieldsforVolume = /*#__PURE__*/function () {
- /**
- * Constructs a new EnvironmentFieldsforVolume.
- * @alias module:model/EnvironmentFieldsforVolume
- */
- function EnvironmentFieldsforVolume() {
- _classCallCheck(this, EnvironmentFieldsforVolume);
- EnvironmentFieldsforVolume.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(EnvironmentFieldsforVolume, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a EnvironmentFieldsforVolume from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/EnvironmentFieldsforVolume} obj Optional instance to populate.
- * @return {module:model/EnvironmentFieldsforVolume} The populated EnvironmentFieldsforVolume instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new EnvironmentFieldsforVolume();
- if (data.hasOwnProperty('name')) {
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to EnvironmentFieldsforVolume.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to EnvironmentFieldsforVolume.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is a string
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {String} name
- */
-EnvironmentFieldsforVolume.prototype['name'] = undefined;
-var _default = exports["default"] = EnvironmentFieldsforVolume;
\ No newline at end of file
diff --git a/dist/model/Environments.js b/dist/model/Environments.js
index 93fe3f7c..6723b2ba 100644
--- a/dist/model/Environments.js
+++ b/dist/model/Environments.js
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The Environments model module.
* @module model/Environments
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var Environments = /*#__PURE__*/function () {
/**
diff --git a/dist/model/ErrorResponseModel.js b/dist/model/ErrorResponseModel.js
index c0c17f39..1e8b18bb 100644
--- a/dist/model/ErrorResponseModel.js
+++ b/dist/model/ErrorResponseModel.js
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
/**
* The ErrorResponseModel model module.
* @module model/ErrorResponseModel
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
var ErrorResponseModel = /*#__PURE__*/function () {
/**
diff --git a/dist/model/ExcludeBillingPostPayload.js b/dist/model/ExcludeBillingPostPayload.js
deleted file mode 100644
index 4a56f7b1..00000000
--- a/dist/model/ExcludeBillingPostPayload.js
+++ /dev/null
@@ -1,135 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The ExcludeBillingPostPayload model module.
- * @module model/ExcludeBillingPostPayload
- * @version v1.25.0-alpha
- */
-var ExcludeBillingPostPayload = /*#__PURE__*/function () {
- /**
- * Constructs a new ExcludeBillingPostPayload.
- * @alias module:model/ExcludeBillingPostPayload
- * @param exclude {Boolean} `true` excludes the resource from billing while `false` does not.
- * @param resourceId {Number} The ID of the resource which is being excluded from billing.
- * @param resourceType {String} The type of the resource which is being excluded from billing.
- */
- function ExcludeBillingPostPayload(exclude, resourceId, resourceType) {
- _classCallCheck(this, ExcludeBillingPostPayload);
- ExcludeBillingPostPayload.initialize(this, exclude, resourceId, resourceType);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(ExcludeBillingPostPayload, null, [{
- key: "initialize",
- value: function initialize(obj, exclude, resourceId, resourceType) {
- obj['exclude'] = exclude;
- obj['resource_id'] = resourceId;
- obj['resource_type'] = resourceType;
- }
-
- /**
- * Constructs a ExcludeBillingPostPayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ExcludeBillingPostPayload} obj Optional instance to populate.
- * @return {module:model/ExcludeBillingPostPayload} The populated ExcludeBillingPostPayload instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ExcludeBillingPostPayload();
- if (data.hasOwnProperty('exclude')) {
- obj['exclude'] = _ApiClient["default"].convertToType(data['exclude'], 'Boolean');
- }
- if (data.hasOwnProperty('resource_id')) {
- obj['resource_id'] = _ApiClient["default"].convertToType(data['resource_id'], 'Number');
- }
- if (data.hasOwnProperty('resource_type')) {
- obj['resource_type'] = _ApiClient["default"].convertToType(data['resource_type'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ExcludeBillingPostPayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ExcludeBillingPostPayload.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- var _iterator = _createForOfIteratorHelper(ExcludeBillingPostPayload.RequiredProperties),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var property = _step.value;
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- if (data['resource_type'] && !(typeof data['resource_type'] === 'string' || data['resource_type'] instanceof String)) {
- throw new Error("Expected the field `resource_type` to be a primitive type in the JSON string but got " + data['resource_type']);
- }
- return true;
- }
- }]);
-}();
-ExcludeBillingPostPayload.RequiredProperties = ["exclude", "resource_id", "resource_type"];
-
-/**
- * `true` excludes the resource from billing while `false` does not.
- * @member {Boolean} exclude
- */
-ExcludeBillingPostPayload.prototype['exclude'] = undefined;
-
-/**
- * The ID of the resource which is being excluded from billing.
- * @member {Number} resource_id
- */
-ExcludeBillingPostPayload.prototype['resource_id'] = undefined;
-
-/**
- * The type of the resource which is being excluded from billing.
- * @member {String} resource_type
- */
-ExcludeBillingPostPayload.prototype['resource_type'] = undefined;
-var _default = exports["default"] = ExcludeBillingPostPayload;
\ No newline at end of file
diff --git a/dist/model/ExcludeBillingPostResponse.js b/dist/model/ExcludeBillingPostResponse.js
deleted file mode 100644
index acc45cde..00000000
--- a/dist/model/ExcludeBillingPostResponse.js
+++ /dev/null
@@ -1,91 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-var _Data = _interopRequireDefault(require("./Data"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The ExcludeBillingPostResponse model module.
- * @module model/ExcludeBillingPostResponse
- * @version v1.25.0-alpha
- */
-var ExcludeBillingPostResponse = /*#__PURE__*/function () {
- /**
- * Constructs a new ExcludeBillingPostResponse.
- * @alias module:model/ExcludeBillingPostResponse
- */
- function ExcludeBillingPostResponse() {
- _classCallCheck(this, ExcludeBillingPostResponse);
- ExcludeBillingPostResponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(ExcludeBillingPostResponse, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a ExcludeBillingPostResponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ExcludeBillingPostResponse} obj Optional instance to populate.
- * @return {module:model/ExcludeBillingPostResponse} The populated ExcludeBillingPostResponse instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ExcludeBillingPostResponse();
- if (data.hasOwnProperty('data')) {
- obj['data'] = _Data["default"].constructFromObject(data['data']);
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ExcludeBillingPostResponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ExcludeBillingPostResponse.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // validate the optional field `data`
- if (data['data']) {
- // data not null
- _Data["default"].validateJSON(data['data']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {module:model/Data} data
- */
-ExcludeBillingPostResponse.prototype['data'] = undefined;
-var _default = exports["default"] = ExcludeBillingPostResponse;
\ No newline at end of file
diff --git a/dist/model/ExportBillingDataRequest.js b/dist/model/ExportBillingDataRequest.js
deleted file mode 100644
index 4322e65a..00000000
--- a/dist/model/ExportBillingDataRequest.js
+++ /dev/null
@@ -1,186 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
-function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
-function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The ExportBillingDataRequest model module.
- * @module model/ExportBillingDataRequest
- * @version v1.25.0-alpha
- */
-var ExportBillingDataRequest = /*#__PURE__*/function () {
- /**
- * Constructs a new ExportBillingDataRequest.
- * @alias module:model/ExportBillingDataRequest
- * @param endDate {Date}
- * @param requiredAttributes {Array.}
- * @param requiredMetrics {Array.}
- * @param resourceType {module:model/ExportBillingDataRequest.ResourceTypeEnum}
- * @param startDate {Date}
- */
- function ExportBillingDataRequest(endDate, requiredAttributes, requiredMetrics, resourceType, startDate) {
- _classCallCheck(this, ExportBillingDataRequest);
- ExportBillingDataRequest.initialize(this, endDate, requiredAttributes, requiredMetrics, resourceType, startDate);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(ExportBillingDataRequest, null, [{
- key: "initialize",
- value: function initialize(obj, endDate, requiredAttributes, requiredMetrics, resourceType, startDate) {
- obj['end_date'] = endDate;
- obj['required_attributes'] = requiredAttributes;
- obj['required_metrics'] = requiredMetrics;
- obj['resource_type'] = resourceType;
- obj['start_date'] = startDate;
- }
-
- /**
- * Constructs a ExportBillingDataRequest from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ExportBillingDataRequest} obj Optional instance to populate.
- * @return {module:model/ExportBillingDataRequest} The populated ExportBillingDataRequest instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ExportBillingDataRequest();
- if (data.hasOwnProperty('end_date')) {
- obj['end_date'] = _ApiClient["default"].convertToType(data['end_date'], 'Date');
- }
- if (data.hasOwnProperty('org_id')) {
- obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number');
- }
- if (data.hasOwnProperty('required_attributes')) {
- obj['required_attributes'] = _ApiClient["default"].convertToType(data['required_attributes'], ['String']);
- }
- if (data.hasOwnProperty('required_metrics')) {
- obj['required_metrics'] = _ApiClient["default"].convertToType(data['required_metrics'], ['String']);
- }
- if (data.hasOwnProperty('resource_type')) {
- obj['resource_type'] = _ApiClient["default"].convertToType(data['resource_type'], 'String');
- }
- if (data.hasOwnProperty('start_date')) {
- obj['start_date'] = _ApiClient["default"].convertToType(data['start_date'], 'Date');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ExportBillingDataRequest.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ExportBillingDataRequest.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- var _iterator = _createForOfIteratorHelper(ExportBillingDataRequest.RequiredProperties),
- _step;
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var property = _step.value;
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is an array
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
- if (!Array.isArray(data['required_attributes'])) {
- throw new Error("Expected the field `required_attributes` to be an array in the JSON data but got " + data['required_attributes']);
- }
- // ensure the json data is an array
- if (!Array.isArray(data['required_metrics'])) {
- throw new Error("Expected the field `required_metrics` to be an array in the JSON data but got " + data['required_metrics']);
- }
- // ensure the json data is a string
- if (data['resource_type'] && !(typeof data['resource_type'] === 'string' || data['resource_type'] instanceof String)) {
- throw new Error("Expected the field `resource_type` to be a primitive type in the JSON string but got " + data['resource_type']);
- }
- return true;
- }
- }]);
-}();
-ExportBillingDataRequest.RequiredProperties = ["end_date", "required_attributes", "required_metrics", "resource_type", "start_date"];
-
-/**
- * @member {Date} end_date
- */
-ExportBillingDataRequest.prototype['end_date'] = undefined;
-
-/**
- * @member {Number} org_id
- */
-ExportBillingDataRequest.prototype['org_id'] = undefined;
-
-/**
- * @member {Array.} required_attributes
- */
-ExportBillingDataRequest.prototype['required_attributes'] = undefined;
-
-/**
- * @member {Array.} required_metrics
- */
-ExportBillingDataRequest.prototype['required_metrics'] = undefined;
-
-/**
- * @member {module:model/ExportBillingDataRequest.ResourceTypeEnum} resource_type
- */
-ExportBillingDataRequest.prototype['resource_type'] = undefined;
-
-/**
- * @member {Date} start_date
- */
-ExportBillingDataRequest.prototype['start_date'] = undefined;
-
-/**
- * Allowed values for the resource_type property.
- * @enum {String}
- * @readonly
- */
-ExportBillingDataRequest['ResourceTypeEnum'] = {
- /**
- * value: "virtual_machine"
- * @const
- */
- "virtual_machine": "virtual_machine",
- /**
- * value: "volume"
- * @const
- */
- "volume": "volume"
-};
-var _default = exports["default"] = ExportBillingDataRequest;
\ No newline at end of file
diff --git a/dist/model/ExportBillingDataResponse.js b/dist/model/ExportBillingDataResponse.js
deleted file mode 100644
index b3dec7f8..00000000
--- a/dist/model/ExportBillingDataResponse.js
+++ /dev/null
@@ -1,101 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _ApiClient = _interopRequireDefault(require("../ApiClient"));
-function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
-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); }
-function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
-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); } }
-function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
-function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
-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); } /**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-/**
- * The ExportBillingDataResponse model module.
- * @module model/ExportBillingDataResponse
- * @version v1.25.0-alpha
- */
-var ExportBillingDataResponse = /*#__PURE__*/function () {
- /**
- * Constructs a new ExportBillingDataResponse.
- * @alias module:model/ExportBillingDataResponse
- */
- function ExportBillingDataResponse() {
- _classCallCheck(this, ExportBillingDataResponse);
- ExportBillingDataResponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- return _createClass(ExportBillingDataResponse, null, [{
- key: "initialize",
- value: function initialize(obj) {}
-
- /**
- * Constructs a ExportBillingDataResponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ExportBillingDataResponse} obj Optional instance to populate.
- * @return {module:model/ExportBillingDataResponse} The populated ExportBillingDataResponse instance.
- */
- }, {
- key: "constructFromObject",
- value: function constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ExportBillingDataResponse();
- if (data.hasOwnProperty('measures')) {
- obj['measures'] = _ApiClient["default"].convertToType(data['measures'], [Object]);
- }
- if (data.hasOwnProperty('message')) {
- obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ExportBillingDataResponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ExportBillingDataResponse.
- */
- }, {
- key: "validateJSON",
- value: function validateJSON(data) {
- // ensure the json data is an array
- if (!Array.isArray(data['measures'])) {
- throw new Error("Expected the field `measures` to be an array in the JSON data but got " + data['measures']);
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
- return true;
- }
- }]);
-}();
-/**
- * @member {Array.
* @module index
-* @version v1.25.0-alpha
+* @version v1.51.1-alpha
*/
export {
/**
@@ -442,10 +419,10 @@ export {
ApiClient,
/**
- * The AddUpdateFlavorOrganizationPayload model constructor.
- * @property {module:model/AddUpdateFlavorOrganizationPayload}
+ * The AccessTokenField model constructor.
+ * @property {module:model/AccessTokenField}
*/
- AddUpdateFlavorOrganizationPayload,
+ AccessTokenField,
/**
* The AddUserInfoSuccessResponseModel model constructor.
@@ -465,12 +442,6 @@ export {
*/
ApiKeyFields,
- /**
- * The ApiKeyVerifyFields model constructor.
- * @property {module:model/ApiKeyVerifyFields}
- */
- ApiKeyVerifyFields,
-
/**
* The AssignRbacRolePayload model constructor.
* @property {module:model/AssignRbacRolePayload}
@@ -520,22 +491,22 @@ export {
AttachVolumesPayload,
/**
- * The AuthGetTokenResponseModel model constructor.
- * @property {module:model/AuthGetTokenResponseModel}
+ * The AttachmentsFieldsForVolume model constructor.
+ * @property {module:model/AttachmentsFieldsForVolume}
*/
- AuthGetTokenResponseModel,
+ AttachmentsFieldsForVolume,
/**
- * The AuthRequestLoginFields model constructor.
- * @property {module:model/AuthRequestLoginFields}
+ * The Attributes model constructor.
+ * @property {module:model/Attributes}
*/
- AuthRequestLoginFields,
+ Attributes,
/**
- * The AuthRequestLoginResponseModel model constructor.
- * @property {module:model/AuthRequestLoginResponseModel}
+ * The AuthGetTokenResponseModel model constructor.
+ * @property {module:model/AuthGetTokenResponseModel}
*/
- AuthRequestLoginResponseModel,
+ AuthGetTokenResponseModel,
/**
* The AuthUserFields model constructor.
@@ -550,28 +521,82 @@ export {
AuthUserInfoResponseModel,
/**
- * The BillingImmuneResourcesResponse model constructor.
- * @property {module:model/BillingImmuneResourcesResponse}
+ * The BetaAccessRequestFields model constructor.
+ * @property {module:model/BetaAccessRequestFields}
+ */
+ BetaAccessRequestFields,
+
+ /**
+ * The BetaAccessRequestPayload model constructor.
+ * @property {module:model/BetaAccessRequestPayload}
+ */
+ BetaAccessRequestPayload,
+
+ /**
+ * The BetaAccessRequestResponseModel model constructor.
+ * @property {module:model/BetaAccessRequestResponseModel}
*/
- BillingImmuneResourcesResponse,
+ BetaAccessRequestResponseModel,
/**
- * The BillingResponse model constructor.
- * @property {module:model/BillingResponse}
+ * The BetaAccessStatusItem model constructor.
+ * @property {module:model/BetaAccessStatusItem}
*/
- BillingResponse,
+ BetaAccessStatusItem,
/**
- * The Billingmetricesfields model constructor.
- * @property {module:model/Billingmetricesfields}
+ * The BetaAccessStatusResponseModel model constructor.
+ * @property {module:model/BetaAccessStatusResponseModel}
*/
- Billingmetricesfields,
+ BetaAccessStatusResponseModel,
/**
- * The Billingmetricesresponse model constructor.
- * @property {module:model/Billingmetricesresponse}
+ * The BillingHistory model constructor.
+ * @property {module:model/BillingHistory}
*/
- Billingmetricesresponse,
+ BillingHistory,
+
+ /**
+ * The BillingHistoryDataSynthesisDetails model constructor.
+ * @property {module:model/BillingHistoryDataSynthesisDetails}
+ */
+ BillingHistoryDataSynthesisDetails,
+
+ /**
+ * The BillingHistoryFineTuning model constructor.
+ * @property {module:model/BillingHistoryFineTuning}
+ */
+ BillingHistoryFineTuning,
+
+ /**
+ * The BillingHistoryModelEvalutationDetails model constructor.
+ * @property {module:model/BillingHistoryModelEvalutationDetails}
+ */
+ BillingHistoryModelEvalutationDetails,
+
+ /**
+ * The BillingHistoryServerlessInference model constructor.
+ * @property {module:model/BillingHistoryServerlessInference}
+ */
+ BillingHistoryServerlessInference,
+
+ /**
+ * The BillingHistoryServerlessInferenceDetails model constructor.
+ * @property {module:model/BillingHistoryServerlessInferenceDetails}
+ */
+ BillingHistoryServerlessInferenceDetails,
+
+ /**
+ * The BillingMetricesFields model constructor.
+ * @property {module:model/BillingMetricesFields}
+ */
+ BillingMetricesFields,
+
+ /**
+ * The BillingMetricesResponse model constructor.
+ * @property {module:model/BillingMetricesResponse}
+ */
+ BillingMetricesResponse,
/**
* The ClusterEvents model constructor.
@@ -591,30 +616,102 @@ export {
*/
ClusterFields,
+ /**
+ * The ClusterFlavorFields model constructor.
+ * @property {module:model/ClusterFlavorFields}
+ */
+ ClusterFlavorFields,
+
/**
* The ClusterListResponse model constructor.
* @property {module:model/ClusterListResponse}
*/
ClusterListResponse,
+ /**
+ * The ClusterNodeFields model constructor.
+ * @property {module:model/ClusterNodeFields}
+ */
+ ClusterNodeFields,
+
+ /**
+ * The ClusterNodeGroupFields model constructor.
+ * @property {module:model/ClusterNodeGroupFields}
+ */
+ ClusterNodeGroupFields,
+
+ /**
+ * The ClusterNodeGroupFirewallFields model constructor.
+ * @property {module:model/ClusterNodeGroupFirewallFields}
+ */
+ ClusterNodeGroupFirewallFields,
+
+ /**
+ * The ClusterNodeGroupsCreateResponse model constructor.
+ * @property {module:model/ClusterNodeGroupsCreateResponse}
+ */
+ ClusterNodeGroupsCreateResponse,
+
+ /**
+ * The ClusterNodeGroupsGetResponse model constructor.
+ * @property {module:model/ClusterNodeGroupsGetResponse}
+ */
+ ClusterNodeGroupsGetResponse,
+
+ /**
+ * The ClusterNodeGroupsListResponse model constructor.
+ * @property {module:model/ClusterNodeGroupsListResponse}
+ */
+ ClusterNodeGroupsListResponse,
+
+ /**
+ * The ClusterNodeInstanceFields model constructor.
+ * @property {module:model/ClusterNodeInstanceFields}
+ */
+ ClusterNodeInstanceFields,
+
+ /**
+ * The ClusterNodesListResponse model constructor.
+ * @property {module:model/ClusterNodesListResponse}
+ */
+ ClusterNodesListResponse,
+
/**
* The ClusterResponse model constructor.
* @property {module:model/ClusterResponse}
*/
ClusterResponse,
+ /**
+ * The ClusterVersion model constructor.
+ * @property {module:model/ClusterVersion}
+ */
+ ClusterVersion,
+
/**
* The ClusterVersions model constructor.
* @property {module:model/ClusterVersions}
*/
ClusterVersions,
+ /**
+ * The Colors model constructor.
+ * @property {module:model/Colors}
+ */
+ Colors,
+
/**
* The CommonResponseModel model constructor.
* @property {module:model/CommonResponseModel}
*/
CommonResponseModel,
+ /**
+ * The CompatibleFlavor model constructor.
+ * @property {module:model/CompatibleFlavor}
+ */
+ CompatibleFlavor,
+
/**
* The ComplianceFields model constructor.
* @property {module:model/ComplianceFields}
@@ -651,54 +748,12 @@ export {
*/
Contract,
- /**
- * The ContractBillingHistory model constructor.
- * @property {module:model/ContractBillingHistory}
- */
- ContractBillingHistory,
-
- /**
- * The ContractBillingHistoryResponseAttributes model constructor.
- * @property {module:model/ContractBillingHistoryResponseAttributes}
- */
- ContractBillingHistoryResponseAttributes,
-
- /**
- * The ContractBillingHistoryResponseModel model constructor.
- * @property {module:model/ContractBillingHistoryResponseModel}
- */
- ContractBillingHistoryResponseModel,
-
- /**
- * The ContractChangePayload model constructor.
- * @property {module:model/ContractChangePayload}
- */
- ContractChangePayload,
-
/**
* The ContractDiscountPlanFields model constructor.
* @property {module:model/ContractDiscountPlanFields}
*/
ContractDiscountPlanFields,
- /**
- * The ContractEligibleInstanceFields model constructor.
- * @property {module:model/ContractEligibleInstanceFields}
- */
- ContractEligibleInstanceFields,
-
- /**
- * The ContractEligibleInstancesResponse model constructor.
- * @property {module:model/ContractEligibleInstancesResponse}
- */
- ContractEligibleInstancesResponse,
-
- /**
- * The ContractEventCreateModel model constructor.
- * @property {module:model/ContractEventCreateModel}
- */
- ContractEventCreateModel,
-
/**
* The ContractGPUAllocationGraphResponse model constructor.
* @property {module:model/ContractGPUAllocationGraphResponse}
@@ -718,16 +773,16 @@ export {
ContractInstancesResponse,
/**
- * The ContractResourcePayload model constructor.
- * @property {module:model/ContractResourcePayload}
+ * The CreateClusterNodeFields model constructor.
+ * @property {module:model/CreateClusterNodeFields}
*/
- ContractResourcePayload,
+ CreateClusterNodeFields,
/**
- * The ContractlBillingHistoryResponseMetrics model constructor.
- * @property {module:model/ContractlBillingHistoryResponseMetrics}
+ * The CreateClusterNodeGroupPayload model constructor.
+ * @property {module:model/CreateClusterNodeGroupPayload}
*/
- ContractlBillingHistoryResponseMetrics,
+ CreateClusterNodeGroupPayload,
/**
* The CreateClusterPayload model constructor.
@@ -735,30 +790,6 @@ export {
*/
CreateClusterPayload,
- /**
- * The CreateContractFields model constructor.
- * @property {module:model/CreateContractFields}
- */
- CreateContractFields,
-
- /**
- * The CreateContractPayload model constructor.
- * @property {module:model/CreateContractPayload}
- */
- CreateContractPayload,
-
- /**
- * The CreateDiscountResponse model constructor.
- * @property {module:model/CreateDiscountResponse}
- */
- CreateDiscountResponse,
-
- /**
- * The CreateDiscountsPayload model constructor.
- * @property {module:model/CreateDiscountsPayload}
- */
- CreateDiscountsPayload,
-
/**
* The CreateEnvironment model constructor.
* @property {module:model/CreateEnvironment}
@@ -777,12 +808,6 @@ export {
*/
CreateFirewallRulePayload,
- /**
- * The CreateGPU model constructor.
- * @property {module:model/CreateGPU}
- */
- CreateGPU,
-
/**
* The CreateImage model constructor.
* @property {module:model/CreateImage}
@@ -843,30 +868,6 @@ export {
*/
CreateUpdateComplianceResponse,
- /**
- * The CreateUpdatePermissionPayload model constructor.
- * @property {module:model/CreateUpdatePermissionPayload}
- */
- CreateUpdatePermissionPayload,
-
- /**
- * The CreateUpdatePermissionResponseModel model constructor.
- * @property {module:model/CreateUpdatePermissionResponseModel}
- */
- CreateUpdatePermissionResponseModel,
-
- /**
- * The CreateUpdatePolicyPayload model constructor.
- * @property {module:model/CreateUpdatePolicyPayload}
- */
- CreateUpdatePolicyPayload,
-
- /**
- * The CreateUpdatePolicyResponseModel model constructor.
- * @property {module:model/CreateUpdatePolicyResponseModel}
- */
- CreateUpdatePolicyResponseModel,
-
/**
* The CreateUpdateRbacRolePayload model constructor.
* @property {module:model/CreateUpdateRbacRolePayload}
@@ -879,30 +880,6 @@ export {
*/
CreateVolumePayload,
- /**
- * The Creditrechargelimitfield model constructor.
- * @property {module:model/Creditrechargelimitfield}
- */
- Creditrechargelimitfield,
-
- /**
- * The Creditrechargelimitresponse model constructor.
- * @property {module:model/Creditrechargelimitresponse}
- */
- Creditrechargelimitresponse,
-
- /**
- * The Creditrequestresponse model constructor.
- * @property {module:model/Creditrequestresponse}
- */
- Creditrequestresponse,
-
- /**
- * The Creditrequests model constructor.
- * @property {module:model/Creditrequests}
- */
- Creditrequests,
-
/**
* The CustomerContractDetailResponseModel model constructor.
* @property {module:model/CustomerContractDetailResponseModel}
@@ -915,18 +892,6 @@ export {
*/
CustomerContractFields,
- /**
- * The CustomerFields model constructor.
- * @property {module:model/CustomerFields}
- */
- CustomerFields,
-
- /**
- * The CustomerPayload model constructor.
- * @property {module:model/CustomerPayload}
- */
- CustomerPayload,
-
/**
* The DashboardInfoResponse model constructor.
* @property {module:model/DashboardInfoResponse}
@@ -934,10 +899,16 @@ export {
DashboardInfoResponse,
/**
- * The Data model constructor.
- * @property {module:model/Data}
+ * The DataSynthesisBillingHistoryDetailsResponseSchema model constructor.
+ * @property {module:model/DataSynthesisBillingHistoryDetailsResponseSchema}
*/
- Data,
+ DataSynthesisBillingHistoryDetailsResponseSchema,
+
+ /**
+ * The DeleteClusterNodesFields model constructor.
+ * @property {module:model/DeleteClusterNodesFields}
+ */
+ DeleteClusterNodesFields,
/**
* The DeploymentFields model constructor.
@@ -946,10 +917,10 @@ export {
DeploymentFields,
/**
- * The DeploymentFieldsforstartdeployments model constructor.
- * @property {module:model/DeploymentFieldsforstartdeployments}
+ * The DeploymentFieldsForStartDeployments model constructor.
+ * @property {module:model/DeploymentFieldsForStartDeployments}
*/
- DeploymentFieldsforstartdeployments,
+ DeploymentFieldsForStartDeployments,
/**
* The Deployments model constructor.
@@ -970,40 +941,10 @@ export {
DetachVolumesPayload,
/**
- * The DiscountEntityModel model constructor.
- * @property {module:model/DiscountEntityModel}
+ * The EditLabelOfAnExistingVMPayload model constructor.
+ * @property {module:model/EditLabelOfAnExistingVMPayload}
*/
- DiscountEntityModel,
-
- /**
- * The DiscountFields model constructor.
- * @property {module:model/DiscountFields}
- */
- DiscountFields,
-
- /**
- * The DiscountPlanFields model constructor.
- * @property {module:model/DiscountPlanFields}
- */
- DiscountPlanFields,
-
- /**
- * The DiscountResourceFields model constructor.
- * @property {module:model/DiscountResourceFields}
- */
- DiscountResourceFields,
-
- /**
- * The DiscountResourcePayload model constructor.
- * @property {module:model/DiscountResourcePayload}
- */
- DiscountResourcePayload,
-
- /**
- * The EditlabelofanexistingVMPayload model constructor.
- * @property {module:model/EditlabelofanexistingVMPayload}
- */
- EditlabelofanexistingVMPayload,
+ EditLabelOfAnExistingVMPayload,
/**
* The Environment model constructor.
@@ -1024,10 +965,10 @@ export {
EnvironmentFields,
/**
- * The EnvironmentFieldsforVolume model constructor.
- * @property {module:model/EnvironmentFieldsforVolume}
+ * The EnvironmentFieldsForVolume model constructor.
+ * @property {module:model/EnvironmentFieldsForVolume}
*/
- EnvironmentFieldsforVolume,
+ EnvironmentFieldsForVolume,
/**
* The Environments model constructor.
@@ -1041,36 +982,6 @@ export {
*/
ErrorResponseModel,
- /**
- * The ExcludeBillingPostPayload model constructor.
- * @property {module:model/ExcludeBillingPostPayload}
- */
- ExcludeBillingPostPayload,
-
- /**
- * The ExcludeBillingPostResponse model constructor.
- * @property {module:model/ExcludeBillingPostResponse}
- */
- ExcludeBillingPostResponse,
-
- /**
- * The ExportBillingDataRequest model constructor.
- * @property {module:model/ExportBillingDataRequest}
- */
- ExportBillingDataRequest,
-
- /**
- * The ExportBillingDataResponse model constructor.
- * @property {module:model/ExportBillingDataResponse}
- */
- ExportBillingDataResponse,
-
- /**
- * The FieldChange model constructor.
- * @property {module:model/FieldChange}
- */
- FieldChange,
-
/**
* The FirewallAttachmentModel model constructor.
* @property {module:model/FirewallAttachmentModel}
@@ -1137,6 +1048,12 @@ export {
*/
FlavorItemGetResponse,
+ /**
+ * The FlavorLabelFields model constructor.
+ * @property {module:model/FlavorLabelFields}
+ */
+ FlavorLabelFields,
+
/**
* The FlavorListResponse model constructor.
* @property {module:model/FlavorListResponse}
@@ -1150,64 +1067,10 @@ export {
FlavorObjectFields,
/**
- * The FlavorPayload model constructor.
- * @property {module:model/FlavorPayload}
- */
- FlavorPayload,
-
- /**
- * The FlavorResponse model constructor.
- * @property {module:model/FlavorResponse}
- */
- FlavorResponse,
-
- /**
- * The FlavorVMFields model constructor.
- * @property {module:model/FlavorVMFields}
- */
- FlavorVMFields,
-
- /**
- * The FlavorVMsResponse model constructor.
- * @property {module:model/FlavorVMsResponse}
- */
- FlavorVMsResponse,
-
- /**
- * The FutureNodeModel model constructor.
- * @property {module:model/FutureNodeModel}
- */
- FutureNodeModel,
-
- /**
- * The FutureNodeResponseModel model constructor.
- * @property {module:model/FutureNodeResponseModel}
- */
- FutureNodeResponseModel,
-
- /**
- * The FutureNodeStockModel model constructor.
- * @property {module:model/FutureNodeStockModel}
- */
- FutureNodeStockModel,
-
- /**
- * The FutureNodeUpdateModel model constructor.
- * @property {module:model/FutureNodeUpdateModel}
- */
- FutureNodeUpdateModel,
-
- /**
- * The FutureNodesStockModel model constructor.
- * @property {module:model/FutureNodesStockModel}
- */
- FutureNodesStockModel,
-
- /**
- * The GPU model constructor.
- * @property {module:model/GPU}
+ * The FlavorRestrictions model constructor.
+ * @property {module:model/FlavorRestrictions}
*/
- GPU,
+ FlavorRestrictions,
/**
* The GPUFields model constructor.
@@ -1239,30 +1102,6 @@ export {
*/
GenerateUpdateApiKeyResponseModel,
- /**
- * The GetAllContractFields model constructor.
- * @property {module:model/GetAllContractFields}
- */
- GetAllContractFields,
-
- /**
- * The GetAllContractsResponseModel model constructor.
- * @property {module:model/GetAllContractsResponseModel}
- */
- GetAllContractsResponseModel,
-
- /**
- * The GetAllDiscountForAllOrganizationResponse model constructor.
- * @property {module:model/GetAllDiscountForAllOrganizationResponse}
- */
- GetAllDiscountForAllOrganizationResponse,
-
- /**
- * The GetAllDiscountsFields model constructor.
- * @property {module:model/GetAllDiscountsFields}
- */
- GetAllDiscountsFields,
-
/**
* The GetApiKeysResponseModel model constructor.
* @property {module:model/GetApiKeysResponseModel}
@@ -1270,28 +1109,28 @@ export {
GetApiKeysResponseModel,
/**
- * The GetCustomerContractsListResponseModel model constructor.
- * @property {module:model/GetCustomerContractsListResponseModel}
+ * The GetCreditAndThresholdInfo model constructor.
+ * @property {module:model/GetCreditAndThresholdInfo}
*/
- GetCustomerContractsListResponseModel,
+ GetCreditAndThresholdInfo,
/**
- * The GetDiscountDetailResponse model constructor.
- * @property {module:model/GetDiscountDetailResponse}
+ * The GetCreditAndThresholdInfoInResponse model constructor.
+ * @property {module:model/GetCreditAndThresholdInfoInResponse}
*/
- GetDiscountDetailResponse,
+ GetCreditAndThresholdInfoInResponse,
/**
- * The GetDiscountResponse model constructor.
- * @property {module:model/GetDiscountResponse}
+ * The GetCustomerContractsListResponseModel model constructor.
+ * @property {module:model/GetCustomerContractsListResponseModel}
*/
- GetDiscountResponse,
+ GetCustomerContractsListResponseModel,
/**
- * The GetEntityDiscountDetailResponse model constructor.
- * @property {module:model/GetEntityDiscountDetailResponse}
+ * The GetInstanceLogsResponse model constructor.
+ * @property {module:model/GetInstanceLogsResponse}
*/
- GetEntityDiscountDetailResponse,
+ GetInstanceLogsResponse,
/**
* The GetInvitesResponseModel model constructor.
@@ -1323,54 +1162,18 @@ export {
*/
GetRbacRolesResponseModel,
- /**
- * The GetTokenPayload model constructor.
- * @property {module:model/GetTokenPayload}
- */
- GetTokenPayload,
-
/**
* The GetUserPermissionsResponseModel model constructor.
* @property {module:model/GetUserPermissionsResponseModel}
*/
GetUserPermissionsResponseModel,
- /**
- * The GetVersionResponse model constructor.
- * @property {module:model/GetVersionResponse}
- */
- GetVersionResponse,
-
- /**
- * The Getcreditandthresholdinfo model constructor.
- * @property {module:model/Getcreditandthresholdinfo}
- */
- Getcreditandthresholdinfo,
-
- /**
- * The Getcreditandthresholdinfoinresponse model constructor.
- * @property {module:model/Getcreditandthresholdinfoinresponse}
- */
- Getcreditandthresholdinfoinresponse,
-
/**
* The GraphDatetimeValueModel model constructor.
* @property {module:model/GraphDatetimeValueModel}
*/
GraphDatetimeValueModel,
- /**
- * The HistoricalInstance model constructor.
- * @property {module:model/HistoricalInstance}
- */
- HistoricalInstance,
-
- /**
- * The HistoricalInstancesFields model constructor.
- * @property {module:model/HistoricalInstancesFields}
- */
- HistoricalInstancesFields,
-
/**
* The Image model constructor.
* @property {module:model/Image}
@@ -1389,12 +1192,6 @@ export {
*/
ImageGetResponse,
- /**
- * The ImageLogos model constructor.
- * @property {module:model/ImageLogos}
- */
- ImageLogos,
-
/**
* The Images model constructor.
* @property {module:model/Images}
@@ -1413,24 +1210,12 @@ export {
*/
ImportKeypairResponse,
- /**
- * The InfrahubResourceObjectResponse model constructor.
- * @property {module:model/InfrahubResourceObjectResponse}
- */
- InfrahubResourceObjectResponse,
-
/**
* The InfrahubResourceObjectResponseForCustomer model constructor.
* @property {module:model/InfrahubResourceObjectResponseForCustomer}
*/
InfrahubResourceObjectResponseForCustomer,
- /**
- * The InsertDiscountPlanFields model constructor.
- * @property {module:model/InsertDiscountPlanFields}
- */
- InsertDiscountPlanFields,
-
/**
* The Instance model constructor.
* @property {module:model/Instance}
@@ -1497,72 +1282,6 @@ export {
*/
Instances,
- /**
- * The InstancesSummaryFields model constructor.
- * @property {module:model/InstancesSummaryFields}
- */
- InstancesSummaryFields,
-
- /**
- * The InternalEnvironmentFields model constructor.
- * @property {module:model/InternalEnvironmentFields}
- */
- InternalEnvironmentFields,
-
- /**
- * The InternalInstanceFields model constructor.
- * @property {module:model/InternalInstanceFields}
- */
- InternalInstanceFields,
-
- /**
- * The InternalInstanceFlavorFields model constructor.
- * @property {module:model/InternalInstanceFlavorFields}
- */
- InternalInstanceFlavorFields,
-
- /**
- * The InternalInstanceImageFields model constructor.
- * @property {module:model/InternalInstanceImageFields}
- */
- InternalInstanceImageFields,
-
- /**
- * The InternalInstanceKeypairFields model constructor.
- * @property {module:model/InternalInstanceKeypairFields}
- */
- InternalInstanceKeypairFields,
-
- /**
- * The InternalInstancesResponse model constructor.
- * @property {module:model/InternalInstancesResponse}
- */
- InternalInstancesResponse,
-
- /**
- * The InternalSecurityRulesFieldsForInstance model constructor.
- * @property {module:model/InternalSecurityRulesFieldsForInstance}
- */
- InternalSecurityRulesFieldsForInstance,
-
- /**
- * The InternalVolumeAttachmentFields model constructor.
- * @property {module:model/InternalVolumeAttachmentFields}
- */
- InternalVolumeAttachmentFields,
-
- /**
- * The InternalVolumeFields model constructor.
- * @property {module:model/InternalVolumeFields}
- */
- InternalVolumeFields,
-
- /**
- * The InternalVolumesResponse model constructor.
- * @property {module:model/InternalVolumesResponse}
- */
- InternalVolumesResponse,
-
/**
* The InviteFields model constructor.
* @property {module:model/InviteFields}
@@ -1581,6 +1300,18 @@ export {
*/
InviteUserResponseModel,
+ /**
+ * The KeypairEnvironmentFeatures model constructor.
+ * @property {module:model/KeypairEnvironmentFeatures}
+ */
+ KeypairEnvironmentFeatures,
+
+ /**
+ * The KeypairEnvironmentFields model constructor.
+ * @property {module:model/KeypairEnvironmentFields}
+ */
+ KeypairEnvironmentFields,
+
/**
* The KeypairFields model constructor.
* @property {module:model/KeypairFields}
@@ -1600,28 +1331,46 @@ export {
LableResonse,
/**
- * The Lastdaycostfields model constructor.
- * @property {module:model/Lastdaycostfields}
+ * The LastDayCostFields model constructor.
+ * @property {module:model/LastDayCostFields}
+ */
+ LastDayCostFields,
+
+ /**
+ * The LastDayCostResponse model constructor.
+ * @property {module:model/LastDayCostResponse}
+ */
+ LastDayCostResponse,
+
+ /**
+ * The Logos model constructor.
+ * @property {module:model/Logos}
*/
- Lastdaycostfields,
+ Logos,
/**
- * The Lastdaycostresponse model constructor.
- * @property {module:model/Lastdaycostresponse}
+ * The MFAStatusFields model constructor.
+ * @property {module:model/MFAStatusFields}
*/
- Lastdaycostresponse,
+ MFAStatusFields,
/**
- * The LogoGetResponse model constructor.
- * @property {module:model/LogoGetResponse}
+ * The MFAStatusResponse model constructor.
+ * @property {module:model/MFAStatusResponse}
*/
- LogoGetResponse,
+ MFAStatusResponse,
/**
- * The LogoutPayload model constructor.
- * @property {module:model/LogoutPayload}
+ * The ManualReconciliationModel model constructor.
+ * @property {module:model/ManualReconciliationModel}
*/
- LogoutPayload,
+ ManualReconciliationModel,
+
+ /**
+ * The MasterFlavorsResponse model constructor.
+ * @property {module:model/MasterFlavorsResponse}
+ */
+ MasterFlavorsResponse,
/**
* The MetricItemFields model constructor.
@@ -1635,6 +1384,12 @@ export {
*/
MetricsFields,
+ /**
+ * The ModelEvaluationBillingHistoryDetailsResponseSchema model constructor.
+ * @property {module:model/ModelEvaluationBillingHistoryDetailsResponseSchema}
+ */
+ ModelEvaluationBillingHistoryDetailsResponseSchema,
+
/**
* The NameAvailableModel model constructor.
* @property {module:model/NameAvailableModel}
@@ -1666,52 +1421,82 @@ export {
NewStockRetriveResponse,
/**
- * The NewStockUpdateResponseModel model constructor.
- * @property {module:model/NewStockUpdateResponseModel}
+ * The ObjectStorageAccessKeyCreateRequest model constructor.
+ * @property {module:model/ObjectStorageAccessKeyCreateRequest}
+ */
+ ObjectStorageAccessKeyCreateRequest,
+
+ /**
+ * The ObjectStorageAccessKeyCreateResponse model constructor.
+ * @property {module:model/ObjectStorageAccessKeyCreateResponse}
+ */
+ ObjectStorageAccessKeyCreateResponse,
+
+ /**
+ * The ObjectStorageAccessKeyListResponse model constructor.
+ * @property {module:model/ObjectStorageAccessKeyListResponse}
+ */
+ ObjectStorageAccessKeyListResponse,
+
+ /**
+ * The ObjectStorageAccessKeyResponse model constructor.
+ * @property {module:model/ObjectStorageAccessKeyResponse}
+ */
+ ObjectStorageAccessKeyResponse,
+
+ /**
+ * The ObjectStorageBucketListResponse model constructor.
+ * @property {module:model/ObjectStorageBucketListResponse}
+ */
+ ObjectStorageBucketListResponse,
+
+ /**
+ * The ObjectStorageBucketResponse model constructor.
+ * @property {module:model/ObjectStorageBucketResponse}
*/
- NewStockUpdateResponseModel,
+ ObjectStorageBucketResponse,
/**
- * The NodeModel model constructor.
- * @property {module:model/NodeModel}
+ * The ObjectStorageDeleteResponse model constructor.
+ * @property {module:model/ObjectStorageDeleteResponse}
*/
- NodeModel,
+ ObjectStorageDeleteResponse,
/**
- * The NodePayloadModel model constructor.
- * @property {module:model/NodePayloadModel}
+ * The ObjectStorageErrorResponse model constructor.
+ * @property {module:model/ObjectStorageErrorResponse}
*/
- NodePayloadModel,
+ ObjectStorageErrorResponse,
/**
- * The NodePowerUsageModel model constructor.
- * @property {module:model/NodePowerUsageModel}
+ * The ObjectStorageHealthResponse model constructor.
+ * @property {module:model/ObjectStorageHealthResponse}
*/
- NodePowerUsageModel,
+ ObjectStorageHealthResponse,
/**
- * The NodeResponseModel model constructor.
- * @property {module:model/NodeResponseModel}
+ * The ObjectStoragePaginationMeta model constructor.
+ * @property {module:model/ObjectStoragePaginationMeta}
*/
- NodeResponseModel,
+ ObjectStoragePaginationMeta,
/**
- * The NodeStockPayloadModel model constructor.
- * @property {module:model/NodeStockPayloadModel}
+ * The ObjectStorageRegionListResponse model constructor.
+ * @property {module:model/ObjectStorageRegionListResponse}
*/
- NodeStockPayloadModel,
+ ObjectStorageRegionListResponse,
/**
- * The NodeStockResponseModel model constructor.
- * @property {module:model/NodeStockResponseModel}
+ * The ObjectStorageRegionResponse model constructor.
+ * @property {module:model/ObjectStorageRegionResponse}
*/
- NodeStockResponseModel,
+ ObjectStorageRegionResponse,
/**
- * The NodeStocksPayload model constructor.
- * @property {module:model/NodeStocksPayload}
+ * The ObjectStorageRegionsEnum model constructor.
+ * @property {module:model/ObjectStorageRegionsEnum}
*/
- NodeStocksPayload,
+ ObjectStorageRegionsEnum,
/**
* The OrganizationFields model constructor.
@@ -1750,40 +1535,28 @@ export {
OrganizationLevelBillingHistoryResponseModel,
/**
- * The OrganizationObjectResponse model constructor.
- * @property {module:model/OrganizationObjectResponse}
+ * The OrganizationThresholdFields model constructor.
+ * @property {module:model/OrganizationThresholdFields}
*/
- OrganizationObjectResponse,
+ OrganizationThresholdFields,
/**
- * The OrganizationThresholdfields model constructor.
- * @property {module:model/OrganizationThresholdfields}
+ * The OrganizationThresholdUpdateResponse model constructor.
+ * @property {module:model/OrganizationThresholdUpdateResponse}
*/
- OrganizationThresholdfields,
+ OrganizationThresholdUpdateResponse,
/**
- * The OrganizationUserResponseModel model constructor.
- * @property {module:model/OrganizationUserResponseModel}
- */
- OrganizationUserResponseModel,
-
- /**
- * The Organizationcreditrechargelimitresponse model constructor.
- * @property {module:model/Organizationcreditrechargelimitresponse}
- */
- Organizationcreditrechargelimitresponse,
-
- /**
- * The Organizationthresholdsresponse model constructor.
- * @property {module:model/Organizationthresholdsresponse}
+ * The OrganizationThresholdsResponse model constructor.
+ * @property {module:model/OrganizationThresholdsResponse}
*/
- Organizationthresholdsresponse,
+ OrganizationThresholdsResponse,
/**
- * The Organizationthresholdupdateresponse model constructor.
- * @property {module:model/Organizationthresholdupdateresponse}
+ * The OrganizationUserResponseModel model constructor.
+ * @property {module:model/OrganizationUserResponseModel}
*/
- Organizationthresholdupdateresponse,
+ OrganizationUserResponseModel,
/**
* The OverviewInfo model constructor.
@@ -1791,12 +1564,24 @@ export {
*/
OverviewInfo,
+ /**
+ * The Pagination model constructor.
+ * @property {module:model/Pagination}
+ */
+ Pagination,
+
/**
* The PaginationData model constructor.
* @property {module:model/PaginationData}
*/
PaginationData,
+ /**
+ * The PartnerConfig model constructor.
+ * @property {module:model/PartnerConfig}
+ */
+ PartnerConfig,
+
/**
* The PaymentDetailsFields model constructor.
* @property {module:model/PaymentDetailsFields}
@@ -1845,30 +1630,24 @@ export {
*/
PolicyPermissionFields,
- /**
- * The PowerUsageModel model constructor.
- * @property {module:model/PowerUsageModel}
- */
- PowerUsageModel,
-
/**
* The PricebookModel model constructor.
* @property {module:model/PricebookModel}
*/
PricebookModel,
- /**
- * The PricebookResourceObjectResponse model constructor.
- * @property {module:model/PricebookResourceObjectResponse}
- */
- PricebookResourceObjectResponse,
-
/**
* The PricebookResourceObjectResponseForCustomer model constructor.
* @property {module:model/PricebookResourceObjectResponseForCustomer}
*/
PricebookResourceObjectResponseForCustomer,
+ /**
+ * The PrimaryColor model constructor.
+ * @property {module:model/PrimaryColor}
+ */
+ PrimaryColor,
+
/**
* The ProfileFields model constructor.
* @property {module:model/ProfileFields}
@@ -1912,10 +1691,10 @@ export {
RbacRoleFields,
/**
- * The RefreshTokenPayload model constructor.
- * @property {module:model/RefreshTokenPayload}
+ * The RedeemVoucherPayload model constructor.
+ * @property {module:model/RedeemVoucherPayload}
*/
- RefreshTokenPayload,
+ RedeemVoucherPayload,
/**
* The RegionFields model constructor.
@@ -1923,18 +1702,6 @@ export {
*/
RegionFields,
- /**
- * The RegionPayload model constructor.
- * @property {module:model/RegionPayload}
- */
- RegionPayload,
-
- /**
- * The RegionResponse model constructor.
- * @property {module:model/RegionResponse}
- */
- RegionResponse,
-
/**
* The Regions model constructor.
* @property {module:model/Regions}
@@ -1959,6 +1726,18 @@ export {
*/
RequestConsole,
+ /**
+ * The RequestInstanceLogsPayload model constructor.
+ * @property {module:model/RequestInstanceLogsPayload}
+ */
+ RequestInstanceLogsPayload,
+
+ /**
+ * The RequestInstanceLogsResponse model constructor.
+ * @property {module:model/RequestInstanceLogsResponse}
+ */
+ RequestInstanceLogsResponse,
+
/**
* The ResourceBillingEventsHistoryMetrics model constructor.
* @property {module:model/ResourceBillingEventsHistoryMetrics}
@@ -1977,6 +1756,12 @@ export {
*/
ResourceBillingResponseForCustomer,
+ /**
+ * The ResourceLevelBillingBucketDetailsResources model constructor.
+ * @property {module:model/ResourceLevelBillingBucketDetailsResources}
+ */
+ ResourceLevelBillingBucketDetailsResources,
+
/**
* The ResourceLevelBillingDetailsAttributes model constructor.
* @property {module:model/ResourceLevelBillingDetailsAttributes}
@@ -2025,6 +1810,12 @@ export {
*/
ResourceLevelBillingHistoryResources,
+ /**
+ * The ResourceLevelBillingHistoryResourcesCluster model constructor.
+ * @property {module:model/ResourceLevelBillingHistoryResourcesCluster}
+ */
+ ResourceLevelBillingHistoryResourcesCluster,
+
/**
* The ResourceLevelBillingHistoryResponseAttributes model constructor.
* @property {module:model/ResourceLevelBillingHistoryResponseAttributes}
@@ -2049,6 +1840,36 @@ export {
*/
ResourceLevelBillingVolumeDetailsResources,
+ /**
+ * The ResourceLevelBucketBillingDetailsResponseModel model constructor.
+ * @property {module:model/ResourceLevelBucketBillingDetailsResponseModel}
+ */
+ ResourceLevelBucketBillingDetailsResponseModel,
+
+ /**
+ * The ResourceLevelBucketBillingHistoryResponseModel model constructor.
+ * @property {module:model/ResourceLevelBucketBillingHistoryResponseModel}
+ */
+ ResourceLevelBucketBillingHistoryResponseModel,
+
+ /**
+ * The ResourceLevelClusterBillingDetailsResponseModel model constructor.
+ * @property {module:model/ResourceLevelClusterBillingDetailsResponseModel}
+ */
+ ResourceLevelClusterBillingDetailsResponseModel,
+
+ /**
+ * The ResourceLevelClusterBillingHistoryResponseModel model constructor.
+ * @property {module:model/ResourceLevelClusterBillingHistoryResponseModel}
+ */
+ ResourceLevelClusterBillingHistoryResponseModel,
+
+ /**
+ * The ResourceLevelClusterGraphBillingDetailsResponseModel model constructor.
+ * @property {module:model/ResourceLevelClusterGraphBillingDetailsResponseModel}
+ */
+ ResourceLevelClusterGraphBillingDetailsResponseModel,
+
/**
* The ResourceLevelGraphBillingDetailVolume model constructor.
* @property {module:model/ResourceLevelGraphBillingDetailVolume}
@@ -2061,6 +1882,12 @@ export {
*/
ResourceLevelGraphBillingDetailsAttributes,
+ /**
+ * The ResourceLevelGraphBillingDetailsBucket model constructor.
+ * @property {module:model/ResourceLevelGraphBillingDetailsBucket}
+ */
+ ResourceLevelGraphBillingDetailsBucket,
+
/**
* The ResourceLevelGraphBillingDetailsMetrics model constructor.
* @property {module:model/ResourceLevelGraphBillingDetailsMetrics}
@@ -2145,6 +1972,12 @@ export {
*/
RolePolicyFields,
+ /**
+ * The SecondaryColor model constructor.
+ * @property {module:model/SecondaryColor}
+ */
+ SecondaryColor,
+
/**
* The SecurityGroupRule model constructor.
* @property {module:model/SecurityGroupRule}
@@ -2158,10 +1991,10 @@ export {
SecurityGroupRuleFields,
/**
- * The SecurityRulesFieldsforInstance model constructor.
- * @property {module:model/SecurityRulesFieldsforInstance}
+ * The SecurityRulesFieldsForInstance model constructor.
+ * @property {module:model/SecurityRulesFieldsForInstance}
*/
- SecurityRulesFieldsforInstance,
+ SecurityRulesFieldsForInstance,
/**
* The SecurityRulesProtocolFields model constructor.
@@ -2170,16 +2003,10 @@ export {
SecurityRulesProtocolFields,
/**
- * The SetDefaultsPayload model constructor.
- * @property {module:model/SetDefaultsPayload}
+ * The ServerlessInferencedBillingHistoryDetailsResponseSchema model constructor.
+ * @property {module:model/ServerlessInferencedBillingHistoryDetailsResponseSchema}
*/
- SetDefaultsPayload,
-
- /**
- * The SingleVisibilityUserResponse model constructor.
- * @property {module:model/SingleVisibilityUserResponse}
- */
- SingleVisibilityUserResponse,
+ ServerlessInferencedBillingHistoryDetailsResponseSchema,
/**
* The SnapshotFields model constructor.
@@ -2223,18 +2050,6 @@ export {
*/
StartDeploymentPayload,
- /**
- * The StockVisibilityUserListResponse model constructor.
- * @property {module:model/StockVisibilityUserListResponse}
- */
- StockVisibilityUserListResponse,
-
- /**
- * The StockVisibilityUserPayload model constructor.
- * @property {module:model/StockVisibilityUserPayload}
- */
- StockVisibilityUserPayload,
-
/**
* The SubResourceGraphBillingDetailsMetrics model constructor.
* @property {module:model/SubResourceGraphBillingDetailsMetrics}
@@ -2260,16 +2075,10 @@ export {
SubResourcesGraphResponseModel,
/**
- * The Subscribeorunsubscribeupdatepayload model constructor.
- * @property {module:model/Subscribeorunsubscribeupdatepayload}
- */
- Subscribeorunsubscribeupdatepayload,
-
- /**
- * The SuccessResponseModel model constructor.
- * @property {module:model/SuccessResponseModel}
+ * The SubscribeOrUnsubscribeUpdatePayload model constructor.
+ * @property {module:model/SubscribeOrUnsubscribeUpdatePayload}
*/
- SuccessResponseModel,
+ SubscribeOrUnsubscribeUpdatePayload,
/**
* The Template model constructor.
@@ -2290,28 +2099,22 @@ export {
Templates,
/**
- * The TokenFields model constructor.
- * @property {module:model/TokenFields}
+ * The TokenBasedBillingHistoryResponse model constructor.
+ * @property {module:model/TokenBasedBillingHistoryResponse}
*/
- TokenFields,
+ TokenBasedBillingHistoryResponse,
/**
- * The UpdateContractPayload model constructor.
- * @property {module:model/UpdateContractPayload}
+ * The URIs model constructor.
+ * @property {module:model/URIs}
*/
- UpdateContractPayload,
+ URIs,
/**
- * The UpdateDiscountsPayload model constructor.
- * @property {module:model/UpdateDiscountsPayload}
+ * The UpdateClusterNodeGroupPayload model constructor.
+ * @property {module:model/UpdateClusterNodeGroupPayload}
*/
- UpdateDiscountsPayload,
-
- /**
- * The UpdateDiscountsStatusPayload model constructor.
- * @property {module:model/UpdateDiscountsStatusPayload}
- */
- UpdateDiscountsStatusPayload,
+ UpdateClusterNodeGroupPayload,
/**
* The UpdateEnvironment model constructor.
@@ -2319,12 +2122,6 @@ export {
*/
UpdateEnvironment,
- /**
- * The UpdateGPU model constructor.
- * @property {module:model/UpdateGPU}
- */
- UpdateGPU,
-
/**
* The UpdateKeypairName model constructor.
* @property {module:model/UpdateKeypairName}
@@ -2332,10 +2129,10 @@ export {
UpdateKeypairName,
/**
- * The UpdateKeypairnameresponse model constructor.
- * @property {module:model/UpdateKeypairnameresponse}
+ * The UpdateKeypairNameResponse model constructor.
+ * @property {module:model/UpdateKeypairNameResponse}
*/
- UpdateKeypairnameresponse,
+ UpdateKeypairNameResponse,
/**
* The UpdateOrganizationPayload model constructor.
@@ -2355,6 +2152,24 @@ export {
*/
UpdateTemplate,
+ /**
+ * The UpdateVolumeAttachmentPayload model constructor.
+ * @property {module:model/UpdateVolumeAttachmentPayload}
+ */
+ UpdateVolumeAttachmentPayload,
+
+ /**
+ * The UpdateVolumePayload model constructor.
+ * @property {module:model/UpdateVolumePayload}
+ */
+ UpdateVolumePayload,
+
+ /**
+ * The UpdateVolumeResponse model constructor.
+ * @property {module:model/UpdateVolumeResponse}
+ */
+ UpdateVolumeResponse,
+
/**
* The UserDefaultChoiceForUserFields model constructor.
* @property {module:model/UserDefaultChoiceForUserFields}
@@ -2368,22 +2183,22 @@ export {
UserDefaultChoicesForUserResponse,
/**
- * The UserPermissionFields model constructor.
- * @property {module:model/UserPermissionFields}
+ * The UserInfoPostPayload model constructor.
+ * @property {module:model/UserInfoPostPayload}
*/
- UserPermissionFields,
+ UserInfoPostPayload,
/**
- * The UserTransferPayload model constructor.
- * @property {module:model/UserTransferPayload}
+ * The UserOrganizationsResponse model constructor.
+ * @property {module:model/UserOrganizationsResponse}
*/
- UserTransferPayload,
+ UserOrganizationsResponse,
/**
- * The Userinfopostpayload model constructor.
- * @property {module:model/Userinfopostpayload}
+ * The UserPermissionFields model constructor.
+ * @property {module:model/UserPermissionFields}
*/
- Userinfopostpayload,
+ UserPermissionFields,
/**
* The UsersInfoFields model constructor.
@@ -2398,16 +2213,10 @@ export {
UsersInfoListResponse,
/**
- * The VMUsageRequestPayload model constructor.
- * @property {module:model/VMUsageRequestPayload}
+ * The VMQuota model constructor.
+ * @property {module:model/VMQuota}
*/
- VMUsageRequestPayload,
-
- /**
- * The VMUsageResponse model constructor.
- * @property {module:model/VMUsageResponse}
- */
- VMUsageResponse,
+ VMQuota,
/**
* The VNCURL model constructor.
@@ -2421,24 +2230,6 @@ export {
*/
VNCURLFields,
- /**
- * The VerifyApiKeyPayload model constructor.
- * @property {module:model/VerifyApiKeyPayload}
- */
- VerifyApiKeyPayload,
-
- /**
- * The VerifyApiKeyResponseModel model constructor.
- * @property {module:model/VerifyApiKeyResponseModel}
- */
- VerifyApiKeyResponseModel,
-
- /**
- * The VirtualMachineUsage model constructor.
- * @property {module:model/VirtualMachineUsage}
- */
- VirtualMachineUsage,
-
/**
* The Volume model constructor.
* @property {module:model/Volume}
@@ -2458,10 +2249,10 @@ export {
VolumeFields,
/**
- * The VolumeFieldsforInstance model constructor.
- * @property {module:model/VolumeFieldsforInstance}
+ * The VolumeFieldsForInstance model constructor.
+ * @property {module:model/VolumeFieldsForInstance}
*/
- VolumeFieldsforInstance,
+ VolumeFieldsForInstance,
/**
* The VolumeOverviewFields model constructor.
@@ -2469,12 +2260,6 @@ export {
*/
VolumeOverviewFields,
- /**
- * The VolumeStatusChangeFields model constructor.
- * @property {module:model/VolumeStatusChangeFields}
- */
- VolumeStatusChangeFields,
-
/**
* The VolumeTypes model constructor.
* @property {module:model/VolumeTypes}
@@ -2488,22 +2273,34 @@ export {
Volumes,
/**
- * The VolumesLastStatusChangeResponse model constructor.
- * @property {module:model/VolumesLastStatusChangeResponse}
+ * The VolumesFields model constructor.
+ * @property {module:model/VolumesFields}
+ */
+ VolumesFields,
+
+ /**
+ * The Voucher model constructor.
+ * @property {module:model/Voucher}
*/
- VolumesLastStatusChangeResponse,
+ Voucher,
/**
- * The WarningMailLogFields model constructor.
- * @property {module:model/WarningMailLogFields}
+ * The VoucherRedeemResponseSchema model constructor.
+ * @property {module:model/VoucherRedeemResponseSchema}
*/
- WarningMailLogFields,
+ VoucherRedeemResponseSchema,
/**
- * The WarningMailLogResponse model constructor.
- * @property {module:model/WarningMailLogResponse}
+ * The WorkloadBillingHistoryResponse model constructor.
+ * @property {module:model/WorkloadBillingHistoryResponse}
*/
- WarningMailLogResponse,
+ WorkloadBillingHistoryResponse,
+
+ /**
+ * The AccessKeysApi service constructor.
+ * @property {module:api/AccessKeysApi}
+ */
+ AccessKeysApi,
/**
* The AliveApi service constructor.
@@ -2529,12 +2326,24 @@ export {
*/
AuthApi,
+ /**
+ * The BetaAccessApi service constructor.
+ * @property {module:api/BetaAccessApi}
+ */
+ BetaAccessApi,
+
/**
* The BillingApi service constructor.
* @property {module:api/BillingApi}
*/
BillingApi,
+ /**
+ * The BucketsApi service constructor.
+ * @property {module:api/BucketsApi}
+ */
+ BucketsApi,
+
/**
* The CalculateApi service constructor.
* @property {module:api/CalculateApi}
@@ -2595,6 +2404,12 @@ export {
*/
EnvironmentApi,
+ /**
+ * The FIPExclusionsApi service constructor.
+ * @property {module:api/FIPExclusionsApi}
+ */
+ FIPExclusionsApi,
+
/**
* The FirewallAttachmentApi service constructor.
* @property {module:api/FirewallAttachmentApi}
@@ -2625,6 +2440,12 @@ export {
*/
GpuApi,
+ /**
+ * The HealthApi service constructor.
+ * @property {module:api/HealthApi}
+ */
+ HealthApi,
+
/**
* The ImageApi service constructor.
* @property {module:api/ImageApi}
@@ -2649,6 +2470,12 @@ export {
*/
OrganizationApi,
+ /**
+ * The PartnerConfigApi service constructor.
+ * @property {module:api/PartnerConfigApi}
+ */
+ PartnerConfigApi,
+
/**
* The PaymentApi service constructor.
* @property {module:api/PaymentApi}
@@ -2691,6 +2518,12 @@ export {
*/
RegionApi,
+ /**
+ * The RegionsApi service constructor.
+ * @property {module:api/RegionsApi}
+ */
+ RegionsApi,
+
/**
* The SecurityRulesApi service constructor.
* @property {module:api/SecurityRulesApi}
@@ -2767,5 +2600,11 @@ export {
* The VolumeAttachmentApi service constructor.
* @property {module:api/VolumeAttachmentApi}
*/
- VolumeAttachmentApi
+ VolumeAttachmentApi,
+
+ /**
+ * The VouchersApi service constructor.
+ * @property {module:api/VouchersApi}
+ */
+ VouchersApi
};
diff --git a/src/model/AccessTokenField.js b/src/model/AccessTokenField.js
new file mode 100644
index 00000000..980c54aa
--- /dev/null
+++ b/src/model/AccessTokenField.js
@@ -0,0 +1,87 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The AccessTokenField model module.
+ * @module model/AccessTokenField
+ * @version v1.51.1-alpha
+ */
+class AccessTokenField {
+ /**
+ * Constructs a new AccessTokenField.
+ * @alias module:model/AccessTokenField
+ */
+ constructor() {
+
+ AccessTokenField.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a AccessTokenField from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/AccessTokenField} obj Optional instance to populate.
+ * @return {module:model/AccessTokenField} The populated AccessTokenField instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new AccessTokenField();
+
+ if (data.hasOwnProperty('access_token')) {
+ obj['access_token'] = ApiClient.convertToType(data['access_token'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to AccessTokenField.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to AccessTokenField.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['access_token'] && !(typeof data['access_token'] === 'string' || data['access_token'] instanceof String)) {
+ throw new Error("Expected the field `access_token` to be a primitive type in the JSON string but got " + data['access_token']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {String} access_token
+ */
+AccessTokenField.prototype['access_token'] = undefined;
+
+
+
+
+
+
+export default AccessTokenField;
+
diff --git a/src/model/AddUpdateFlavorOrganizationPayload.js b/src/model/AddUpdateFlavorOrganizationPayload.js
deleted file mode 100644
index 312774dc..00000000
--- a/src/model/AddUpdateFlavorOrganizationPayload.js
+++ /dev/null
@@ -1,225 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The AddUpdateFlavorOrganizationPayload model module.
- * @module model/AddUpdateFlavorOrganizationPayload
- * @version v1.25.0-alpha
- */
-class AddUpdateFlavorOrganizationPayload {
- /**
- * Constructs a new AddUpdateFlavorOrganizationPayload.
- * @alias module:model/AddUpdateFlavorOrganizationPayload
- * @param cpu {Number}
- * @param disk {Number}
- * @param gpuCount {Number}
- * @param gpuId {Number}
- * @param isPublic {Boolean}
- * @param name {String}
- * @param openstackId {String}
- * @param organizations {Array.}
- * @param ram {Number}
- * @param regionId {Number}
- */
- constructor(cpu, disk, gpuCount, gpuId, isPublic, name, openstackId, organizations, ram, regionId) {
-
- AddUpdateFlavorOrganizationPayload.initialize(this, cpu, disk, gpuCount, gpuId, isPublic, name, openstackId, organizations, ram, regionId);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj, cpu, disk, gpuCount, gpuId, isPublic, name, openstackId, organizations, ram, regionId) {
- obj['cpu'] = cpu;
- obj['disk'] = disk;
- obj['gpu_count'] = gpuCount;
- obj['gpu_id'] = gpuId;
- obj['is_public'] = isPublic;
- obj['name'] = name;
- obj['openstack_id'] = openstackId;
- obj['organizations'] = organizations;
- obj['ram'] = ram;
- obj['region_id'] = regionId;
- }
-
- /**
- * Constructs a AddUpdateFlavorOrganizationPayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/AddUpdateFlavorOrganizationPayload} obj Optional instance to populate.
- * @return {module:model/AddUpdateFlavorOrganizationPayload} The populated AddUpdateFlavorOrganizationPayload instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new AddUpdateFlavorOrganizationPayload();
-
- if (data.hasOwnProperty('cpu')) {
- obj['cpu'] = ApiClient.convertToType(data['cpu'], 'Number');
- }
- if (data.hasOwnProperty('description')) {
- obj['description'] = ApiClient.convertToType(data['description'], 'String');
- }
- if (data.hasOwnProperty('disk')) {
- obj['disk'] = ApiClient.convertToType(data['disk'], 'Number');
- }
- if (data.hasOwnProperty('ephemeral')) {
- obj['ephemeral'] = ApiClient.convertToType(data['ephemeral'], 'Number');
- }
- if (data.hasOwnProperty('gpu_count')) {
- obj['gpu_count'] = ApiClient.convertToType(data['gpu_count'], 'Number');
- }
- if (data.hasOwnProperty('gpu_id')) {
- obj['gpu_id'] = ApiClient.convertToType(data['gpu_id'], 'Number');
- }
- if (data.hasOwnProperty('is_public')) {
- obj['is_public'] = ApiClient.convertToType(data['is_public'], 'Boolean');
- }
- if (data.hasOwnProperty('labels')) {
- obj['labels'] = ApiClient.convertToType(data['labels'], ['String']);
- }
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
- }
- if (data.hasOwnProperty('openstack_id')) {
- obj['openstack_id'] = ApiClient.convertToType(data['openstack_id'], 'String');
- }
- if (data.hasOwnProperty('organizations')) {
- obj['organizations'] = ApiClient.convertToType(data['organizations'], ['Number']);
- }
- if (data.hasOwnProperty('ram')) {
- obj['ram'] = ApiClient.convertToType(data['ram'], 'Number');
- }
- if (data.hasOwnProperty('region_id')) {
- obj['region_id'] = ApiClient.convertToType(data['region_id'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to AddUpdateFlavorOrganizationPayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to AddUpdateFlavorOrganizationPayload.
- */
- static validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- for (const property of AddUpdateFlavorOrganizationPayload.RequiredProperties) {
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
- }
- // ensure the json data is an array
- if (!Array.isArray(data['labels'])) {
- throw new Error("Expected the field `labels` to be an array in the JSON data but got " + data['labels']);
- }
- // ensure the json data is a string
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
- }
- // ensure the json data is a string
- if (data['openstack_id'] && !(typeof data['openstack_id'] === 'string' || data['openstack_id'] instanceof String)) {
- throw new Error("Expected the field `openstack_id` to be a primitive type in the JSON string but got " + data['openstack_id']);
- }
- // ensure the json data is an array
- if (!Array.isArray(data['organizations'])) {
- throw new Error("Expected the field `organizations` to be an array in the JSON data but got " + data['organizations']);
- }
-
- return true;
- }
-
-
-}
-
-AddUpdateFlavorOrganizationPayload.RequiredProperties = ["cpu", "disk", "gpu_count", "gpu_id", "is_public", "name", "openstack_id", "organizations", "ram", "region_id"];
-
-/**
- * @member {Number} cpu
- */
-AddUpdateFlavorOrganizationPayload.prototype['cpu'] = undefined;
-
-/**
- * @member {String} description
- */
-AddUpdateFlavorOrganizationPayload.prototype['description'] = undefined;
-
-/**
- * @member {Number} disk
- */
-AddUpdateFlavorOrganizationPayload.prototype['disk'] = undefined;
-
-/**
- * @member {Number} ephemeral
- */
-AddUpdateFlavorOrganizationPayload.prototype['ephemeral'] = undefined;
-
-/**
- * @member {Number} gpu_count
- */
-AddUpdateFlavorOrganizationPayload.prototype['gpu_count'] = undefined;
-
-/**
- * @member {Number} gpu_id
- */
-AddUpdateFlavorOrganizationPayload.prototype['gpu_id'] = undefined;
-
-/**
- * @member {Boolean} is_public
- */
-AddUpdateFlavorOrganizationPayload.prototype['is_public'] = undefined;
-
-/**
- * @member {Array.} labels
- */
-AddUpdateFlavorOrganizationPayload.prototype['labels'] = undefined;
-
-/**
- * @member {String} name
- */
-AddUpdateFlavorOrganizationPayload.prototype['name'] = undefined;
-
-/**
- * @member {String} openstack_id
- */
-AddUpdateFlavorOrganizationPayload.prototype['openstack_id'] = undefined;
-
-/**
- * @member {Array.} organizations
- */
-AddUpdateFlavorOrganizationPayload.prototype['organizations'] = undefined;
-
-/**
- * @member {Number} ram
- */
-AddUpdateFlavorOrganizationPayload.prototype['ram'] = undefined;
-
-/**
- * @member {Number} region_id
- */
-AddUpdateFlavorOrganizationPayload.prototype['region_id'] = undefined;
-
-
-
-
-
-
-export default AddUpdateFlavorOrganizationPayload;
-
diff --git a/src/model/AddUserInfoSuccessResponseModel.js b/src/model/AddUserInfoSuccessResponseModel.js
index 82d464a9..bf8ff059 100644
--- a/src/model/AddUserInfoSuccessResponseModel.js
+++ b/src/model/AddUserInfoSuccessResponseModel.js
@@ -17,7 +17,7 @@ import UsersInfoFields from './UsersInfoFields';
/**
* The AddUserInfoSuccessResponseModel model module.
* @module model/AddUserInfoSuccessResponseModel
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class AddUserInfoSuccessResponseModel {
/**
diff --git a/src/model/AllocatedGPUCountGraph.js b/src/model/AllocatedGPUCountGraph.js
index c82ee891..6bca3b77 100644
--- a/src/model/AllocatedGPUCountGraph.js
+++ b/src/model/AllocatedGPUCountGraph.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The AllocatedGPUCountGraph model module.
* @module model/AllocatedGPUCountGraph
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class AllocatedGPUCountGraph {
/**
diff --git a/src/model/ApiKeyFields.js b/src/model/ApiKeyFields.js
index 3fb53d3f..638dd97f 100644
--- a/src/model/ApiKeyFields.js
+++ b/src/model/ApiKeyFields.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ApiKeyFields model module.
* @module model/ApiKeyFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class ApiKeyFields {
/**
diff --git a/src/model/ApiKeyVerifyFields.js b/src/model/ApiKeyVerifyFields.js
deleted file mode 100644
index 19f5dac9..00000000
--- a/src/model/ApiKeyVerifyFields.js
+++ /dev/null
@@ -1,115 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The ApiKeyVerifyFields model module.
- * @module model/ApiKeyVerifyFields
- * @version v1.25.0-alpha
- */
-class ApiKeyVerifyFields {
- /**
- * Constructs a new ApiKeyVerifyFields.
- * @alias module:model/ApiKeyVerifyFields
- */
- constructor() {
-
- ApiKeyVerifyFields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a ApiKeyVerifyFields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ApiKeyVerifyFields} obj Optional instance to populate.
- * @return {module:model/ApiKeyVerifyFields} The populated ApiKeyVerifyFields instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ApiKeyVerifyFields();
-
- if (data.hasOwnProperty('org_id')) {
- obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number');
- }
- if (data.hasOwnProperty('sub')) {
- obj['sub'] = ApiClient.convertToType(data['sub'], 'String');
- }
- if (data.hasOwnProperty('user_id')) {
- obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number');
- }
- if (data.hasOwnProperty('user_role')) {
- obj['user_role'] = ApiClient.convertToType(data['user_role'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ApiKeyVerifyFields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ApiKeyVerifyFields.
- */
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['sub'] && !(typeof data['sub'] === 'string' || data['sub'] instanceof String)) {
- throw new Error("Expected the field `sub` to be a primitive type in the JSON string but got " + data['sub']);
- }
- // ensure the json data is a string
- if (data['user_role'] && !(typeof data['user_role'] === 'string' || data['user_role'] instanceof String)) {
- throw new Error("Expected the field `user_role` to be a primitive type in the JSON string but got " + data['user_role']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Number} org_id
- */
-ApiKeyVerifyFields.prototype['org_id'] = undefined;
-
-/**
- * @member {String} sub
- */
-ApiKeyVerifyFields.prototype['sub'] = undefined;
-
-/**
- * @member {Number} user_id
- */
-ApiKeyVerifyFields.prototype['user_id'] = undefined;
-
-/**
- * @member {String} user_role
- */
-ApiKeyVerifyFields.prototype['user_role'] = undefined;
-
-
-
-
-
-
-export default ApiKeyVerifyFields;
-
diff --git a/src/model/AssignRbacRolePayload.js b/src/model/AssignRbacRolePayload.js
index 1b9d001c..39b758b5 100644
--- a/src/model/AssignRbacRolePayload.js
+++ b/src/model/AssignRbacRolePayload.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The AssignRbacRolePayload model module.
* @module model/AssignRbacRolePayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class AssignRbacRolePayload {
/**
diff --git a/src/model/AttachCallbackPayload.js b/src/model/AttachCallbackPayload.js
index 50c13375..d1122746 100644
--- a/src/model/AttachCallbackPayload.js
+++ b/src/model/AttachCallbackPayload.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The AttachCallbackPayload model module.
* @module model/AttachCallbackPayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class AttachCallbackPayload {
/**
diff --git a/src/model/AttachCallbackResponse.js b/src/model/AttachCallbackResponse.js
index 2c76dab7..3f619881 100644
--- a/src/model/AttachCallbackResponse.js
+++ b/src/model/AttachCallbackResponse.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The AttachCallbackResponse model module.
* @module model/AttachCallbackResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class AttachCallbackResponse {
/**
diff --git a/src/model/AttachFirewallWithVM.js b/src/model/AttachFirewallWithVM.js
index b91069d9..ec300f4f 100644
--- a/src/model/AttachFirewallWithVM.js
+++ b/src/model/AttachFirewallWithVM.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The AttachFirewallWithVM model module.
* @module model/AttachFirewallWithVM
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class AttachFirewallWithVM {
/**
diff --git a/src/model/AttachFirewallsToVMPayload.js b/src/model/AttachFirewallsToVMPayload.js
index 505d195a..8af6f676 100644
--- a/src/model/AttachFirewallsToVMPayload.js
+++ b/src/model/AttachFirewallsToVMPayload.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The AttachFirewallsToVMPayload model module.
* @module model/AttachFirewallsToVMPayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class AttachFirewallsToVMPayload {
/**
diff --git a/src/model/AttachVolumeFields.js b/src/model/AttachVolumeFields.js
index 346eadaf..eb57d98f 100644
--- a/src/model/AttachVolumeFields.js
+++ b/src/model/AttachVolumeFields.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The AttachVolumeFields model module.
* @module model/AttachVolumeFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class AttachVolumeFields {
/**
@@ -50,12 +50,18 @@ class AttachVolumeFields {
if (data.hasOwnProperty('created_at')) {
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
}
+ if (data.hasOwnProperty('device')) {
+ obj['device'] = ApiClient.convertToType(data['device'], 'String');
+ }
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
if (data.hasOwnProperty('instance_id')) {
obj['instance_id'] = ApiClient.convertToType(data['instance_id'], 'Number');
}
+ if (data.hasOwnProperty('protected')) {
+ obj['protected'] = ApiClient.convertToType(data['protected'], 'Boolean');
+ }
if (data.hasOwnProperty('status')) {
obj['status'] = ApiClient.convertToType(data['status'], 'String');
}
@@ -72,6 +78,10 @@ class AttachVolumeFields {
* @return {boolean} to indicate whether the JSON data is valid with respect to AttachVolumeFields.
*/
static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['device'] && !(typeof data['device'] === 'string' || data['device'] instanceof String)) {
+ throw new Error("Expected the field `device` to be a primitive type in the JSON string but got " + data['device']);
+ }
// ensure the json data is a string
if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
@@ -90,6 +100,11 @@ class AttachVolumeFields {
*/
AttachVolumeFields.prototype['created_at'] = undefined;
+/**
+ * @member {String} device
+ */
+AttachVolumeFields.prototype['device'] = undefined;
+
/**
* @member {Number} id
*/
@@ -100,6 +115,11 @@ AttachVolumeFields.prototype['id'] = undefined;
*/
AttachVolumeFields.prototype['instance_id'] = undefined;
+/**
+ * @member {Boolean} protected
+ */
+AttachVolumeFields.prototype['protected'] = undefined;
+
/**
* @member {String} status
*/
diff --git a/src/model/AttachVolumes.js b/src/model/AttachVolumes.js
index ee012613..f1b07b08 100644
--- a/src/model/AttachVolumes.js
+++ b/src/model/AttachVolumes.js
@@ -17,7 +17,7 @@ import AttachVolumeFields from './AttachVolumeFields';
/**
* The AttachVolumes model module.
* @module model/AttachVolumes
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class AttachVolumes {
/**
diff --git a/src/model/AttachVolumesPayload.js b/src/model/AttachVolumesPayload.js
index 76d9c441..08f1780c 100644
--- a/src/model/AttachVolumesPayload.js
+++ b/src/model/AttachVolumesPayload.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The AttachVolumesPayload model module.
* @module model/AttachVolumesPayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class AttachVolumesPayload {
/**
@@ -34,6 +34,7 @@ class AttachVolumesPayload {
* Only for internal use.
*/
static initialize(obj) {
+ obj['protected'] = false;
}
/**
@@ -47,6 +48,9 @@ class AttachVolumesPayload {
if (data) {
obj = obj || new AttachVolumesPayload();
+ if (data.hasOwnProperty('protected')) {
+ obj['protected'] = ApiClient.convertToType(data['protected'], 'Boolean');
+ }
if (data.hasOwnProperty('volume_ids')) {
obj['volume_ids'] = ApiClient.convertToType(data['volume_ids'], ['Number']);
}
@@ -73,6 +77,12 @@ class AttachVolumesPayload {
+/**
+ * @member {Boolean} protected
+ * @default false
+ */
+AttachVolumesPayload.prototype['protected'] = false;
+
/**
* @member {Array.} volume_ids
*/
diff --git a/src/model/AttachmentsFieldsForVolume.js b/src/model/AttachmentsFieldsForVolume.js
new file mode 100644
index 00000000..56718bc5
--- /dev/null
+++ b/src/model/AttachmentsFieldsForVolume.js
@@ -0,0 +1,123 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The AttachmentsFieldsForVolume model module.
+ * @module model/AttachmentsFieldsForVolume
+ * @version v1.51.1-alpha
+ */
+class AttachmentsFieldsForVolume {
+ /**
+ * Constructs a new AttachmentsFieldsForVolume.
+ * @alias module:model/AttachmentsFieldsForVolume
+ */
+ constructor() {
+
+ AttachmentsFieldsForVolume.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a AttachmentsFieldsForVolume from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/AttachmentsFieldsForVolume} obj Optional instance to populate.
+ * @return {module:model/AttachmentsFieldsForVolume} The populated AttachmentsFieldsForVolume instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new AttachmentsFieldsForVolume();
+
+ if (data.hasOwnProperty('device')) {
+ obj['device'] = ApiClient.convertToType(data['device'], 'String');
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = ApiClient.convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('instance_id')) {
+ obj['instance_id'] = ApiClient.convertToType(data['instance_id'], 'Number');
+ }
+ if (data.hasOwnProperty('protected')) {
+ obj['protected'] = ApiClient.convertToType(data['protected'], 'Boolean');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to AttachmentsFieldsForVolume.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to AttachmentsFieldsForVolume.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['device'] && !(typeof data['device'] === 'string' || data['device'] instanceof String)) {
+ throw new Error("Expected the field `device` to be a primitive type in the JSON string but got " + data['device']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {String} device
+ */
+AttachmentsFieldsForVolume.prototype['device'] = undefined;
+
+/**
+ * @member {Number} id
+ */
+AttachmentsFieldsForVolume.prototype['id'] = undefined;
+
+/**
+ * @member {Number} instance_id
+ */
+AttachmentsFieldsForVolume.prototype['instance_id'] = undefined;
+
+/**
+ * @member {Boolean} protected
+ */
+AttachmentsFieldsForVolume.prototype['protected'] = undefined;
+
+/**
+ * @member {String} status
+ */
+AttachmentsFieldsForVolume.prototype['status'] = undefined;
+
+
+
+
+
+
+export default AttachmentsFieldsForVolume;
+
diff --git a/src/model/Attributes.js b/src/model/Attributes.js
new file mode 100644
index 00000000..14ee05b0
--- /dev/null
+++ b/src/model/Attributes.js
@@ -0,0 +1,149 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The Attributes model module.
+ * @module model/Attributes
+ * @version v1.51.1-alpha
+ */
+class Attributes {
+ /**
+ * Constructs a new Attributes.
+ * @alias module:model/Attributes
+ */
+ constructor() {
+
+ Attributes.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a Attributes from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Attributes} obj Optional instance to populate.
+ * @return {module:model/Attributes} The populated Attributes instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new Attributes();
+
+ if (data.hasOwnProperty('base_model')) {
+ obj['base_model'] = ApiClient.convertToType(data['base_model'], 'String');
+ }
+ if (data.hasOwnProperty('base_model_display_name')) {
+ obj['base_model_display_name'] = ApiClient.convertToType(data['base_model_display_name'], 'String');
+ }
+ if (data.hasOwnProperty('infrahub_id')) {
+ obj['infrahub_id'] = ApiClient.convertToType(data['infrahub_id'], 'Number');
+ }
+ if (data.hasOwnProperty('lora_adapter')) {
+ obj['lora_adapter'] = ApiClient.convertToType(data['lora_adapter'], 'String');
+ }
+ if (data.hasOwnProperty('resource_name')) {
+ obj['resource_name'] = ApiClient.convertToType(data['resource_name'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to Attributes.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to Attributes.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['base_model'] && !(typeof data['base_model'] === 'string' || data['base_model'] instanceof String)) {
+ throw new Error("Expected the field `base_model` to be a primitive type in the JSON string but got " + data['base_model']);
+ }
+ // ensure the json data is a string
+ if (data['base_model_display_name'] && !(typeof data['base_model_display_name'] === 'string' || data['base_model_display_name'] instanceof String)) {
+ throw new Error("Expected the field `base_model_display_name` to be a primitive type in the JSON string but got " + data['base_model_display_name']);
+ }
+ // ensure the json data is a string
+ if (data['lora_adapter'] && !(typeof data['lora_adapter'] === 'string' || data['lora_adapter'] instanceof String)) {
+ throw new Error("Expected the field `lora_adapter` to be a primitive type in the JSON string but got " + data['lora_adapter']);
+ }
+ // ensure the json data is a string
+ if (data['resource_name'] && !(typeof data['resource_name'] === 'string' || data['resource_name'] instanceof String)) {
+ throw new Error("Expected the field `resource_name` to be a primitive type in the JSON string but got " + data['resource_name']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ *
+ * @member {String} base_model
+ */
+Attributes.prototype['base_model'] = undefined;
+
+/**
+ *
+ * @member {String} base_model_display_name
+ */
+Attributes.prototype['base_model_display_name'] = undefined;
+
+/**
+ *
+ * @member {Number} infrahub_id
+ */
+Attributes.prototype['infrahub_id'] = undefined;
+
+/**
+ *
+ * @member {String} lora_adapter
+ */
+Attributes.prototype['lora_adapter'] = undefined;
+
+/**
+ *
+ * @member {String} resource_name
+ */
+Attributes.prototype['resource_name'] = undefined;
+
+/**
+ *
+ * @member {String} status
+ */
+Attributes.prototype['status'] = undefined;
+
+
+
+
+
+
+export default Attributes;
+
diff --git a/src/model/AuthGetTokenResponseModel.js b/src/model/AuthGetTokenResponseModel.js
index 0f5df634..dd774026 100644
--- a/src/model/AuthGetTokenResponseModel.js
+++ b/src/model/AuthGetTokenResponseModel.js
@@ -12,12 +12,12 @@
*/
import ApiClient from '../ApiClient';
-import TokenFields from './TokenFields';
+import AccessTokenField from './AccessTokenField';
/**
* The AuthGetTokenResponseModel model module.
* @module model/AuthGetTokenResponseModel
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class AuthGetTokenResponseModel {
/**
@@ -48,9 +48,6 @@ class AuthGetTokenResponseModel {
if (data) {
obj = obj || new AuthGetTokenResponseModel();
- if (data.hasOwnProperty('first_login')) {
- obj['first_login'] = ApiClient.convertToType(data['first_login'], 'Boolean');
- }
if (data.hasOwnProperty('message')) {
obj['message'] = ApiClient.convertToType(data['message'], 'String');
}
@@ -58,7 +55,7 @@ class AuthGetTokenResponseModel {
obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
}
if (data.hasOwnProperty('token')) {
- obj['token'] = TokenFields.constructFromObject(data['token']);
+ obj['token'] = AccessTokenField.constructFromObject(data['token']);
}
}
return obj;
@@ -76,7 +73,7 @@ class AuthGetTokenResponseModel {
}
// validate the optional field `token`
if (data['token']) { // data not null
- TokenFields.validateJSON(data['token']);
+ AccessTokenField.validateJSON(data['token']);
}
return true;
@@ -87,11 +84,6 @@ class AuthGetTokenResponseModel {
-/**
- * @member {Boolean} first_login
- */
-AuthGetTokenResponseModel.prototype['first_login'] = undefined;
-
/**
* @member {String} message
*/
@@ -103,7 +95,7 @@ AuthGetTokenResponseModel.prototype['message'] = undefined;
AuthGetTokenResponseModel.prototype['status'] = undefined;
/**
- * @member {module:model/TokenFields} token
+ * @member {module:model/AccessTokenField} token
*/
AuthGetTokenResponseModel.prototype['token'] = undefined;
diff --git a/src/model/AuthRequestLoginFields.js b/src/model/AuthRequestLoginFields.js
deleted file mode 100644
index 7a5dc97f..00000000
--- a/src/model/AuthRequestLoginFields.js
+++ /dev/null
@@ -1,99 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The AuthRequestLoginFields model module.
- * @module model/AuthRequestLoginFields
- * @version v1.25.0-alpha
- */
-class AuthRequestLoginFields {
- /**
- * Constructs a new AuthRequestLoginFields.
- * @alias module:model/AuthRequestLoginFields
- */
- constructor() {
-
- AuthRequestLoginFields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a AuthRequestLoginFields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/AuthRequestLoginFields} obj Optional instance to populate.
- * @return {module:model/AuthRequestLoginFields} The populated AuthRequestLoginFields instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new AuthRequestLoginFields();
-
- if (data.hasOwnProperty('authorization_url')) {
- obj['authorization_url'] = ApiClient.convertToType(data['authorization_url'], 'String');
- }
- if (data.hasOwnProperty('session_id')) {
- obj['session_id'] = ApiClient.convertToType(data['session_id'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to AuthRequestLoginFields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to AuthRequestLoginFields.
- */
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['authorization_url'] && !(typeof data['authorization_url'] === 'string' || data['authorization_url'] instanceof String)) {
- throw new Error("Expected the field `authorization_url` to be a primitive type in the JSON string but got " + data['authorization_url']);
- }
- // ensure the json data is a string
- if (data['session_id'] && !(typeof data['session_id'] === 'string' || data['session_id'] instanceof String)) {
- throw new Error("Expected the field `session_id` to be a primitive type in the JSON string but got " + data['session_id']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {String} authorization_url
- */
-AuthRequestLoginFields.prototype['authorization_url'] = undefined;
-
-/**
- * @member {String} session_id
- */
-AuthRequestLoginFields.prototype['session_id'] = undefined;
-
-
-
-
-
-
-export default AuthRequestLoginFields;
-
diff --git a/src/model/AuthRequestLoginResponseModel.js b/src/model/AuthRequestLoginResponseModel.js
deleted file mode 100644
index fb3b4854..00000000
--- a/src/model/AuthRequestLoginResponseModel.js
+++ /dev/null
@@ -1,108 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import AuthRequestLoginFields from './AuthRequestLoginFields';
-
-/**
- * The AuthRequestLoginResponseModel model module.
- * @module model/AuthRequestLoginResponseModel
- * @version v1.25.0-alpha
- */
-class AuthRequestLoginResponseModel {
- /**
- * Constructs a new AuthRequestLoginResponseModel.
- * @alias module:model/AuthRequestLoginResponseModel
- */
- constructor() {
-
- AuthRequestLoginResponseModel.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a AuthRequestLoginResponseModel from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/AuthRequestLoginResponseModel} obj Optional instance to populate.
- * @return {module:model/AuthRequestLoginResponseModel} The populated AuthRequestLoginResponseModel instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new AuthRequestLoginResponseModel();
-
- if (data.hasOwnProperty('data')) {
- obj['data'] = AuthRequestLoginFields.constructFromObject(data['data']);
- }
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to AuthRequestLoginResponseModel.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to AuthRequestLoginResponseModel.
- */
- static validateJSON(data) {
- // validate the optional field `data`
- if (data['data']) { // data not null
- AuthRequestLoginFields.validateJSON(data['data']);
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {module:model/AuthRequestLoginFields} data
- */
-AuthRequestLoginResponseModel.prototype['data'] = undefined;
-
-/**
- * @member {String} message
- */
-AuthRequestLoginResponseModel.prototype['message'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-AuthRequestLoginResponseModel.prototype['status'] = undefined;
-
-
-
-
-
-
-export default AuthRequestLoginResponseModel;
-
diff --git a/src/model/AuthUserFields.js b/src/model/AuthUserFields.js
index ff98bae2..31e78ec3 100644
--- a/src/model/AuthUserFields.js
+++ b/src/model/AuthUserFields.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The AuthUserFields model module.
* @module model/AuthUserFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class AuthUserFields {
/**
diff --git a/src/model/AuthUserInfoResponseModel.js b/src/model/AuthUserInfoResponseModel.js
index 4eb86662..a4d7ed8f 100644
--- a/src/model/AuthUserInfoResponseModel.js
+++ b/src/model/AuthUserInfoResponseModel.js
@@ -17,7 +17,7 @@ import AuthUserFields from './AuthUserFields';
/**
* The AuthUserInfoResponseModel model module.
* @module model/AuthUserInfoResponseModel
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class AuthUserInfoResponseModel {
/**
diff --git a/src/model/BetaAccessRequestFields.js b/src/model/BetaAccessRequestFields.js
new file mode 100644
index 00000000..cade6694
--- /dev/null
+++ b/src/model/BetaAccessRequestFields.js
@@ -0,0 +1,170 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The BetaAccessRequestFields model module.
+ * @module model/BetaAccessRequestFields
+ * @version v1.51.1-alpha
+ */
+class BetaAccessRequestFields {
+ /**
+ * Constructs a new BetaAccessRequestFields.
+ * @alias module:model/BetaAccessRequestFields
+ */
+ constructor() {
+
+ BetaAccessRequestFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a BetaAccessRequestFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BetaAccessRequestFields} obj Optional instance to populate.
+ * @return {module:model/BetaAccessRequestFields} The populated BetaAccessRequestFields instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BetaAccessRequestFields();
+
+ if (data.hasOwnProperty('created_at')) {
+ obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = ApiClient.convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('program_id')) {
+ obj['program_id'] = ApiClient.convertToType(data['program_id'], 'Number');
+ }
+ if (data.hasOwnProperty('program_name')) {
+ obj['program_name'] = ApiClient.convertToType(data['program_name'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'String');
+ }
+ if (data.hasOwnProperty('user_id')) {
+ obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BetaAccessRequestFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BetaAccessRequestFields.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['program_name'] && !(typeof data['program_name'] === 'string' || data['program_name'] instanceof String)) {
+ throw new Error("Expected the field `program_name` to be a primitive type in the JSON string but got " + data['program_name']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * When the request was made
+ * @member {Date} created_at
+ */
+BetaAccessRequestFields.prototype['created_at'] = undefined;
+
+/**
+ * Unique identifier for the request
+ * @member {Number} id
+ */
+BetaAccessRequestFields.prototype['id'] = undefined;
+
+/**
+ * ID of the beta program
+ * @member {Number} program_id
+ */
+BetaAccessRequestFields.prototype['program_id'] = undefined;
+
+/**
+ * Name of the beta program
+ * @member {String} program_name
+ */
+BetaAccessRequestFields.prototype['program_name'] = undefined;
+
+/**
+ * Status of the request
+ * @member {module:model/BetaAccessRequestFields.StatusEnum} status
+ */
+BetaAccessRequestFields.prototype['status'] = undefined;
+
+/**
+ * ID of the user who made the request
+ * @member {Number} user_id
+ */
+BetaAccessRequestFields.prototype['user_id'] = undefined;
+
+
+
+
+
+/**
+ * Allowed values for the status property.
+ * @enum {String}
+ * @readonly
+ */
+BetaAccessRequestFields['StatusEnum'] = {
+
+ /**
+ * value: "requested"
+ * @const
+ */
+ "requested": "requested",
+
+ /**
+ * value: "approved"
+ * @const
+ */
+ "approved": "approved",
+
+ /**
+ * value: "denied"
+ * @const
+ */
+ "denied": "denied",
+
+ /**
+ * value: "revoked"
+ * @const
+ */
+ "revoked": "revoked"
+};
+
+
+
+export default BetaAccessRequestFields;
+
diff --git a/src/model/BetaAccessRequestPayload.js b/src/model/BetaAccessRequestPayload.js
new file mode 100644
index 00000000..8400d273
--- /dev/null
+++ b/src/model/BetaAccessRequestPayload.js
@@ -0,0 +1,105 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The BetaAccessRequestPayload model module.
+ * @module model/BetaAccessRequestPayload
+ * @version v1.51.1-alpha
+ */
+class BetaAccessRequestPayload {
+ /**
+ * Constructs a new BetaAccessRequestPayload.
+ * @alias module:model/BetaAccessRequestPayload
+ * @param program {String} Name of the beta program
+ */
+ constructor(program) {
+
+ BetaAccessRequestPayload.initialize(this, program);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj, program) {
+ obj['program'] = program;
+ }
+
+ /**
+ * Constructs a BetaAccessRequestPayload from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BetaAccessRequestPayload} obj Optional instance to populate.
+ * @return {module:model/BetaAccessRequestPayload} The populated BetaAccessRequestPayload instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BetaAccessRequestPayload();
+
+ if (data.hasOwnProperty('metadata')) {
+ obj['metadata'] = ApiClient.convertToType(data['metadata'], Object);
+ }
+ if (data.hasOwnProperty('program')) {
+ obj['program'] = ApiClient.convertToType(data['program'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BetaAccessRequestPayload.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BetaAccessRequestPayload.
+ */
+ static validateJSON(data) {
+ // check to make sure all required properties are present in the JSON string
+ for (const property of BetaAccessRequestPayload.RequiredProperties) {
+ if (!data.hasOwnProperty(property)) {
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
+ }
+ }
+ // ensure the json data is a string
+ if (data['program'] && !(typeof data['program'] === 'string' || data['program'] instanceof String)) {
+ throw new Error("Expected the field `program` to be a primitive type in the JSON string but got " + data['program']);
+ }
+
+ return true;
+ }
+
+
+}
+
+BetaAccessRequestPayload.RequiredProperties = ["program"];
+
+/**
+ * Optional metadata for the request
+ * @member {Object} metadata
+ */
+BetaAccessRequestPayload.prototype['metadata'] = undefined;
+
+/**
+ * Name of the beta program
+ * @member {String} program
+ */
+BetaAccessRequestPayload.prototype['program'] = undefined;
+
+
+
+
+
+
+export default BetaAccessRequestPayload;
+
diff --git a/src/model/BetaAccessRequestResponseModel.js b/src/model/BetaAccessRequestResponseModel.js
new file mode 100644
index 00000000..fb3bded8
--- /dev/null
+++ b/src/model/BetaAccessRequestResponseModel.js
@@ -0,0 +1,108 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import BetaAccessRequestFields from './BetaAccessRequestFields';
+
+/**
+ * The BetaAccessRequestResponseModel model module.
+ * @module model/BetaAccessRequestResponseModel
+ * @version v1.51.1-alpha
+ */
+class BetaAccessRequestResponseModel {
+ /**
+ * Constructs a new BetaAccessRequestResponseModel.
+ * @alias module:model/BetaAccessRequestResponseModel
+ */
+ constructor() {
+
+ BetaAccessRequestResponseModel.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a BetaAccessRequestResponseModel from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BetaAccessRequestResponseModel} obj Optional instance to populate.
+ * @return {module:model/BetaAccessRequestResponseModel} The populated BetaAccessRequestResponseModel instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BetaAccessRequestResponseModel();
+
+ if (data.hasOwnProperty('beta_access_request')) {
+ obj['beta_access_request'] = BetaAccessRequestFields.constructFromObject(data['beta_access_request']);
+ }
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = ApiClient.convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BetaAccessRequestResponseModel.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BetaAccessRequestResponseModel.
+ */
+ static validateJSON(data) {
+ // validate the optional field `beta_access_request`
+ if (data['beta_access_request']) { // data not null
+ BetaAccessRequestFields.validateJSON(data['beta_access_request']);
+ }
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {module:model/BetaAccessRequestFields} beta_access_request
+ */
+BetaAccessRequestResponseModel.prototype['beta_access_request'] = undefined;
+
+/**
+ * @member {String} message
+ */
+BetaAccessRequestResponseModel.prototype['message'] = undefined;
+
+/**
+ * @member {Boolean} status
+ */
+BetaAccessRequestResponseModel.prototype['status'] = undefined;
+
+
+
+
+
+
+export default BetaAccessRequestResponseModel;
+
diff --git a/src/model/BetaAccessStatusItem.js b/src/model/BetaAccessStatusItem.js
new file mode 100644
index 00000000..04a5619a
--- /dev/null
+++ b/src/model/BetaAccessStatusItem.js
@@ -0,0 +1,143 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The BetaAccessStatusItem model module.
+ * @module model/BetaAccessStatusItem
+ * @version v1.51.1-alpha
+ */
+class BetaAccessStatusItem {
+ /**
+ * Constructs a new BetaAccessStatusItem.
+ * @alias module:model/BetaAccessStatusItem
+ */
+ constructor() {
+
+ BetaAccessStatusItem.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a BetaAccessStatusItem from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BetaAccessStatusItem} obj Optional instance to populate.
+ * @return {module:model/BetaAccessStatusItem} The populated BetaAccessStatusItem instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BetaAccessStatusItem();
+
+ if (data.hasOwnProperty('program_name')) {
+ obj['program_name'] = ApiClient.convertToType(data['program_name'], 'String');
+ }
+ if (data.hasOwnProperty('request_date')) {
+ obj['request_date'] = ApiClient.convertToType(data['request_date'], 'Date');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BetaAccessStatusItem.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BetaAccessStatusItem.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['program_name'] && !(typeof data['program_name'] === 'string' || data['program_name'] instanceof String)) {
+ throw new Error("Expected the field `program_name` to be a primitive type in the JSON string but got " + data['program_name']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * Name of the beta program
+ * @member {String} program_name
+ */
+BetaAccessStatusItem.prototype['program_name'] = undefined;
+
+/**
+ * When the request was made
+ * @member {Date} request_date
+ */
+BetaAccessStatusItem.prototype['request_date'] = undefined;
+
+/**
+ * Status of the request (requested, approved, denied, revoked)
+ * @member {module:model/BetaAccessStatusItem.StatusEnum} status
+ */
+BetaAccessStatusItem.prototype['status'] = undefined;
+
+
+
+
+
+/**
+ * Allowed values for the status property.
+ * @enum {String}
+ * @readonly
+ */
+BetaAccessStatusItem['StatusEnum'] = {
+
+ /**
+ * value: "requested"
+ * @const
+ */
+ "requested": "requested",
+
+ /**
+ * value: "approved"
+ * @const
+ */
+ "approved": "approved",
+
+ /**
+ * value: "denied"
+ * @const
+ */
+ "denied": "denied",
+
+ /**
+ * value: "revoked"
+ * @const
+ */
+ "revoked": "revoked"
+};
+
+
+
+export default BetaAccessStatusItem;
+
diff --git a/src/model/BetaAccessStatusResponseModel.js b/src/model/BetaAccessStatusResponseModel.js
new file mode 100644
index 00000000..cfb93276
--- /dev/null
+++ b/src/model/BetaAccessStatusResponseModel.js
@@ -0,0 +1,115 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import BetaAccessStatusItem from './BetaAccessStatusItem';
+
+/**
+ * The BetaAccessStatusResponseModel model module.
+ * @module model/BetaAccessStatusResponseModel
+ * @version v1.51.1-alpha
+ */
+class BetaAccessStatusResponseModel {
+ /**
+ * Constructs a new BetaAccessStatusResponseModel.
+ * @alias module:model/BetaAccessStatusResponseModel
+ */
+ constructor() {
+
+ BetaAccessStatusResponseModel.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a BetaAccessStatusResponseModel from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BetaAccessStatusResponseModel} obj Optional instance to populate.
+ * @return {module:model/BetaAccessStatusResponseModel} The populated BetaAccessStatusResponseModel instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BetaAccessStatusResponseModel();
+
+ if (data.hasOwnProperty('beta_access_requests')) {
+ obj['beta_access_requests'] = ApiClient.convertToType(data['beta_access_requests'], [BetaAccessStatusItem]);
+ }
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = ApiClient.convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BetaAccessStatusResponseModel.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BetaAccessStatusResponseModel.
+ */
+ static validateJSON(data) {
+ if (data['beta_access_requests']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['beta_access_requests'])) {
+ throw new Error("Expected the field `beta_access_requests` to be an array in the JSON data but got " + data['beta_access_requests']);
+ }
+ // validate the optional field `beta_access_requests` (array)
+ for (const item of data['beta_access_requests']) {
+ BetaAccessStatusItem.validateJSON(item);
+ };
+ }
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * List of beta access requests
+ * @member {Array.} beta_access_requests
+ */
+BetaAccessStatusResponseModel.prototype['beta_access_requests'] = undefined;
+
+/**
+ * @member {String} message
+ */
+BetaAccessStatusResponseModel.prototype['message'] = undefined;
+
+/**
+ * @member {Boolean} status
+ */
+BetaAccessStatusResponseModel.prototype['status'] = undefined;
+
+
+
+
+
+
+export default BetaAccessStatusResponseModel;
+
diff --git a/src/model/BillingHistory.js b/src/model/BillingHistory.js
new file mode 100644
index 00000000..592a64af
--- /dev/null
+++ b/src/model/BillingHistory.js
@@ -0,0 +1,96 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import Attributes from './Attributes';
+
+/**
+ * The BillingHistory model module.
+ * @module model/BillingHistory
+ * @version v1.51.1-alpha
+ */
+class BillingHistory {
+ /**
+ * Constructs a new BillingHistory.
+ * @alias module:model/BillingHistory
+ */
+ constructor() {
+
+ BillingHistory.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a BillingHistory from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BillingHistory} obj Optional instance to populate.
+ * @return {module:model/BillingHistory} The populated BillingHistory instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BillingHistory();
+
+ if (data.hasOwnProperty('attributes')) {
+ obj['attributes'] = Attributes.constructFromObject(data['attributes']);
+ }
+ if (data.hasOwnProperty('metrics')) {
+ obj['metrics'] = ApiClient.convertToType(data['metrics'], Object);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BillingHistory.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BillingHistory.
+ */
+ static validateJSON(data) {
+ // validate the optional field `attributes`
+ if (data['attributes']) { // data not null
+ Attributes.validateJSON(data['attributes']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {module:model/Attributes} attributes
+ */
+BillingHistory.prototype['attributes'] = undefined;
+
+/**
+ * @member {Object} metrics
+ */
+BillingHistory.prototype['metrics'] = undefined;
+
+
+
+
+
+
+export default BillingHistory;
+
diff --git a/src/model/BillingHistoryDataSynthesisDetails.js b/src/model/BillingHistoryDataSynthesisDetails.js
new file mode 100644
index 00000000..744bfa6a
--- /dev/null
+++ b/src/model/BillingHistoryDataSynthesisDetails.js
@@ -0,0 +1,126 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import BillingHistory from './BillingHistory';
+import Pagination from './Pagination';
+
+/**
+ * The BillingHistoryDataSynthesisDetails model module.
+ * @module model/BillingHistoryDataSynthesisDetails
+ * @version v1.51.1-alpha
+ */
+class BillingHistoryDataSynthesisDetails {
+ /**
+ * Constructs a new BillingHistoryDataSynthesisDetails.
+ * @alias module:model/BillingHistoryDataSynthesisDetails
+ */
+ constructor() {
+
+ BillingHistoryDataSynthesisDetails.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a BillingHistoryDataSynthesisDetails from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BillingHistoryDataSynthesisDetails} obj Optional instance to populate.
+ * @return {module:model/BillingHistoryDataSynthesisDetails} The populated BillingHistoryDataSynthesisDetails instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BillingHistoryDataSynthesisDetails();
+
+ if (data.hasOwnProperty('billing_history')) {
+ obj['billing_history'] = ApiClient.convertToType(data['billing_history'], [BillingHistory]);
+ }
+ if (data.hasOwnProperty('org_id')) {
+ obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number');
+ }
+ if (data.hasOwnProperty('pagination')) {
+ obj['pagination'] = Pagination.constructFromObject(data['pagination']);
+ }
+ if (data.hasOwnProperty('total_count')) {
+ obj['total_count'] = ApiClient.convertToType(data['total_count'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BillingHistoryDataSynthesisDetails.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BillingHistoryDataSynthesisDetails.
+ */
+ static validateJSON(data) {
+ if (data['billing_history']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['billing_history'])) {
+ throw new Error("Expected the field `billing_history` to be an array in the JSON data but got " + data['billing_history']);
+ }
+ // validate the optional field `billing_history` (array)
+ for (const item of data['billing_history']) {
+ BillingHistory.validateJSON(item);
+ };
+ }
+ // validate the optional field `pagination`
+ if (data['pagination']) { // data not null
+ Pagination.validateJSON(data['pagination']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ *
+ * @member {Array.} billing_history
+ */
+BillingHistoryDataSynthesisDetails.prototype['billing_history'] = undefined;
+
+/**
+ *
+ * @member {Number} org_id
+ */
+BillingHistoryDataSynthesisDetails.prototype['org_id'] = undefined;
+
+/**
+ * @member {module:model/Pagination} pagination
+ */
+BillingHistoryDataSynthesisDetails.prototype['pagination'] = undefined;
+
+/**
+ *
+ * @member {Number} total_count
+ */
+BillingHistoryDataSynthesisDetails.prototype['total_count'] = undefined;
+
+
+
+
+
+
+export default BillingHistoryDataSynthesisDetails;
+
diff --git a/src/model/BillingHistoryFineTuning.js b/src/model/BillingHistoryFineTuning.js
new file mode 100644
index 00000000..9bb88e41
--- /dev/null
+++ b/src/model/BillingHistoryFineTuning.js
@@ -0,0 +1,126 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import BillingHistory from './BillingHistory';
+import Pagination from './Pagination';
+
+/**
+ * The BillingHistoryFineTuning model module.
+ * @module model/BillingHistoryFineTuning
+ * @version v1.51.1-alpha
+ */
+class BillingHistoryFineTuning {
+ /**
+ * Constructs a new BillingHistoryFineTuning.
+ * @alias module:model/BillingHistoryFineTuning
+ */
+ constructor() {
+
+ BillingHistoryFineTuning.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a BillingHistoryFineTuning from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BillingHistoryFineTuning} obj Optional instance to populate.
+ * @return {module:model/BillingHistoryFineTuning} The populated BillingHistoryFineTuning instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BillingHistoryFineTuning();
+
+ if (data.hasOwnProperty('billing_history')) {
+ obj['billing_history'] = ApiClient.convertToType(data['billing_history'], [BillingHistory]);
+ }
+ if (data.hasOwnProperty('org_id')) {
+ obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number');
+ }
+ if (data.hasOwnProperty('pagination')) {
+ obj['pagination'] = Pagination.constructFromObject(data['pagination']);
+ }
+ if (data.hasOwnProperty('total_count')) {
+ obj['total_count'] = ApiClient.convertToType(data['total_count'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BillingHistoryFineTuning.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BillingHistoryFineTuning.
+ */
+ static validateJSON(data) {
+ if (data['billing_history']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['billing_history'])) {
+ throw new Error("Expected the field `billing_history` to be an array in the JSON data but got " + data['billing_history']);
+ }
+ // validate the optional field `billing_history` (array)
+ for (const item of data['billing_history']) {
+ BillingHistory.validateJSON(item);
+ };
+ }
+ // validate the optional field `pagination`
+ if (data['pagination']) { // data not null
+ Pagination.validateJSON(data['pagination']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ *
+ * @member {Array.} billing_history
+ */
+BillingHistoryFineTuning.prototype['billing_history'] = undefined;
+
+/**
+ *
+ * @member {Number} org_id
+ */
+BillingHistoryFineTuning.prototype['org_id'] = undefined;
+
+/**
+ * @member {module:model/Pagination} pagination
+ */
+BillingHistoryFineTuning.prototype['pagination'] = undefined;
+
+/**
+ *
+ * @member {Number} total_count
+ */
+BillingHistoryFineTuning.prototype['total_count'] = undefined;
+
+
+
+
+
+
+export default BillingHistoryFineTuning;
+
diff --git a/src/model/BillingHistoryModelEvalutationDetails.js b/src/model/BillingHistoryModelEvalutationDetails.js
new file mode 100644
index 00000000..927d66b2
--- /dev/null
+++ b/src/model/BillingHistoryModelEvalutationDetails.js
@@ -0,0 +1,126 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import BillingHistory from './BillingHistory';
+import Pagination from './Pagination';
+
+/**
+ * The BillingHistoryModelEvalutationDetails model module.
+ * @module model/BillingHistoryModelEvalutationDetails
+ * @version v1.51.1-alpha
+ */
+class BillingHistoryModelEvalutationDetails {
+ /**
+ * Constructs a new BillingHistoryModelEvalutationDetails.
+ * @alias module:model/BillingHistoryModelEvalutationDetails
+ */
+ constructor() {
+
+ BillingHistoryModelEvalutationDetails.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a BillingHistoryModelEvalutationDetails from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BillingHistoryModelEvalutationDetails} obj Optional instance to populate.
+ * @return {module:model/BillingHistoryModelEvalutationDetails} The populated BillingHistoryModelEvalutationDetails instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BillingHistoryModelEvalutationDetails();
+
+ if (data.hasOwnProperty('billing_history')) {
+ obj['billing_history'] = ApiClient.convertToType(data['billing_history'], [BillingHistory]);
+ }
+ if (data.hasOwnProperty('org_id')) {
+ obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number');
+ }
+ if (data.hasOwnProperty('pagination')) {
+ obj['pagination'] = Pagination.constructFromObject(data['pagination']);
+ }
+ if (data.hasOwnProperty('total_count')) {
+ obj['total_count'] = ApiClient.convertToType(data['total_count'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BillingHistoryModelEvalutationDetails.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BillingHistoryModelEvalutationDetails.
+ */
+ static validateJSON(data) {
+ if (data['billing_history']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['billing_history'])) {
+ throw new Error("Expected the field `billing_history` to be an array in the JSON data but got " + data['billing_history']);
+ }
+ // validate the optional field `billing_history` (array)
+ for (const item of data['billing_history']) {
+ BillingHistory.validateJSON(item);
+ };
+ }
+ // validate the optional field `pagination`
+ if (data['pagination']) { // data not null
+ Pagination.validateJSON(data['pagination']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ *
+ * @member {Array.} billing_history
+ */
+BillingHistoryModelEvalutationDetails.prototype['billing_history'] = undefined;
+
+/**
+ *
+ * @member {Number} org_id
+ */
+BillingHistoryModelEvalutationDetails.prototype['org_id'] = undefined;
+
+/**
+ * @member {module:model/Pagination} pagination
+ */
+BillingHistoryModelEvalutationDetails.prototype['pagination'] = undefined;
+
+/**
+ *
+ * @member {Number} total_count
+ */
+BillingHistoryModelEvalutationDetails.prototype['total_count'] = undefined;
+
+
+
+
+
+
+export default BillingHistoryModelEvalutationDetails;
+
diff --git a/src/model/BillingHistoryServerlessInference.js b/src/model/BillingHistoryServerlessInference.js
new file mode 100644
index 00000000..77cfa820
--- /dev/null
+++ b/src/model/BillingHistoryServerlessInference.js
@@ -0,0 +1,126 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import BillingHistory from './BillingHistory';
+import Pagination from './Pagination';
+
+/**
+ * The BillingHistoryServerlessInference model module.
+ * @module model/BillingHistoryServerlessInference
+ * @version v1.51.1-alpha
+ */
+class BillingHistoryServerlessInference {
+ /**
+ * Constructs a new BillingHistoryServerlessInference.
+ * @alias module:model/BillingHistoryServerlessInference
+ */
+ constructor() {
+
+ BillingHistoryServerlessInference.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a BillingHistoryServerlessInference from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BillingHistoryServerlessInference} obj Optional instance to populate.
+ * @return {module:model/BillingHistoryServerlessInference} The populated BillingHistoryServerlessInference instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BillingHistoryServerlessInference();
+
+ if (data.hasOwnProperty('billing_history')) {
+ obj['billing_history'] = ApiClient.convertToType(data['billing_history'], [BillingHistory]);
+ }
+ if (data.hasOwnProperty('org_id')) {
+ obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number');
+ }
+ if (data.hasOwnProperty('pagination')) {
+ obj['pagination'] = Pagination.constructFromObject(data['pagination']);
+ }
+ if (data.hasOwnProperty('total_count')) {
+ obj['total_count'] = ApiClient.convertToType(data['total_count'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BillingHistoryServerlessInference.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BillingHistoryServerlessInference.
+ */
+ static validateJSON(data) {
+ if (data['billing_history']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['billing_history'])) {
+ throw new Error("Expected the field `billing_history` to be an array in the JSON data but got " + data['billing_history']);
+ }
+ // validate the optional field `billing_history` (array)
+ for (const item of data['billing_history']) {
+ BillingHistory.validateJSON(item);
+ };
+ }
+ // validate the optional field `pagination`
+ if (data['pagination']) { // data not null
+ Pagination.validateJSON(data['pagination']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ *
+ * @member {Array.} billing_history
+ */
+BillingHistoryServerlessInference.prototype['billing_history'] = undefined;
+
+/**
+ *
+ * @member {Number} org_id
+ */
+BillingHistoryServerlessInference.prototype['org_id'] = undefined;
+
+/**
+ * @member {module:model/Pagination} pagination
+ */
+BillingHistoryServerlessInference.prototype['pagination'] = undefined;
+
+/**
+ *
+ * @member {Number} total_count
+ */
+BillingHistoryServerlessInference.prototype['total_count'] = undefined;
+
+
+
+
+
+
+export default BillingHistoryServerlessInference;
+
diff --git a/src/model/BillingHistoryServerlessInferenceDetails.js b/src/model/BillingHistoryServerlessInferenceDetails.js
new file mode 100644
index 00000000..d30527a0
--- /dev/null
+++ b/src/model/BillingHistoryServerlessInferenceDetails.js
@@ -0,0 +1,126 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import BillingHistory from './BillingHistory';
+import Pagination from './Pagination';
+
+/**
+ * The BillingHistoryServerlessInferenceDetails model module.
+ * @module model/BillingHistoryServerlessInferenceDetails
+ * @version v1.51.1-alpha
+ */
+class BillingHistoryServerlessInferenceDetails {
+ /**
+ * Constructs a new BillingHistoryServerlessInferenceDetails.
+ * @alias module:model/BillingHistoryServerlessInferenceDetails
+ */
+ constructor() {
+
+ BillingHistoryServerlessInferenceDetails.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a BillingHistoryServerlessInferenceDetails from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BillingHistoryServerlessInferenceDetails} obj Optional instance to populate.
+ * @return {module:model/BillingHistoryServerlessInferenceDetails} The populated BillingHistoryServerlessInferenceDetails instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BillingHistoryServerlessInferenceDetails();
+
+ if (data.hasOwnProperty('billing_history')) {
+ obj['billing_history'] = ApiClient.convertToType(data['billing_history'], [BillingHistory]);
+ }
+ if (data.hasOwnProperty('org_id')) {
+ obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number');
+ }
+ if (data.hasOwnProperty('pagination')) {
+ obj['pagination'] = Pagination.constructFromObject(data['pagination']);
+ }
+ if (data.hasOwnProperty('total_count')) {
+ obj['total_count'] = ApiClient.convertToType(data['total_count'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BillingHistoryServerlessInferenceDetails.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BillingHistoryServerlessInferenceDetails.
+ */
+ static validateJSON(data) {
+ if (data['billing_history']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['billing_history'])) {
+ throw new Error("Expected the field `billing_history` to be an array in the JSON data but got " + data['billing_history']);
+ }
+ // validate the optional field `billing_history` (array)
+ for (const item of data['billing_history']) {
+ BillingHistory.validateJSON(item);
+ };
+ }
+ // validate the optional field `pagination`
+ if (data['pagination']) { // data not null
+ Pagination.validateJSON(data['pagination']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ *
+ * @member {Array.} billing_history
+ */
+BillingHistoryServerlessInferenceDetails.prototype['billing_history'] = undefined;
+
+/**
+ *
+ * @member {Number} org_id
+ */
+BillingHistoryServerlessInferenceDetails.prototype['org_id'] = undefined;
+
+/**
+ * @member {module:model/Pagination} pagination
+ */
+BillingHistoryServerlessInferenceDetails.prototype['pagination'] = undefined;
+
+/**
+ *
+ * @member {Number} total_count
+ */
+BillingHistoryServerlessInferenceDetails.prototype['total_count'] = undefined;
+
+
+
+
+
+
+export default BillingHistoryServerlessInferenceDetails;
+
diff --git a/src/model/BillingImmuneResourcesResponse.js b/src/model/BillingImmuneResourcesResponse.js
deleted file mode 100644
index 51c08758..00000000
--- a/src/model/BillingImmuneResourcesResponse.js
+++ /dev/null
@@ -1,95 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import Data from './Data';
-
-/**
- * The BillingImmuneResourcesResponse model module.
- * @module model/BillingImmuneResourcesResponse
- * @version v1.25.0-alpha
- */
-class BillingImmuneResourcesResponse {
- /**
- * Constructs a new BillingImmuneResourcesResponse.
- * @alias module:model/BillingImmuneResourcesResponse
- */
- constructor() {
-
- BillingImmuneResourcesResponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a BillingImmuneResourcesResponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/BillingImmuneResourcesResponse} obj Optional instance to populate.
- * @return {module:model/BillingImmuneResourcesResponse} The populated BillingImmuneResourcesResponse instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new BillingImmuneResourcesResponse();
-
- if (data.hasOwnProperty('data')) {
- obj['data'] = ApiClient.convertToType(data['data'], [Data]);
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to BillingImmuneResourcesResponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to BillingImmuneResourcesResponse.
- */
- static validateJSON(data) {
- if (data['data']) { // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['data'])) {
- throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
- }
- // validate the optional field `data` (array)
- for (const item of data['data']) {
- Data.validateJSON(item);
- };
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- *
- * @member {Array.} data
- */
-BillingImmuneResourcesResponse.prototype['data'] = undefined;
-
-
-
-
-
-
-export default BillingImmuneResourcesResponse;
-
diff --git a/src/model/BillingMetricesFields.js b/src/model/BillingMetricesFields.js
new file mode 100644
index 00000000..e60cea47
--- /dev/null
+++ b/src/model/BillingMetricesFields.js
@@ -0,0 +1,171 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The BillingMetricesFields model module.
+ * @module model/BillingMetricesFields
+ * @version v1.51.1-alpha
+ */
+class BillingMetricesFields {
+ /**
+ * Constructs a new BillingMetricesFields.
+ * @alias module:model/BillingMetricesFields
+ */
+ constructor() {
+
+ BillingMetricesFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a BillingMetricesFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BillingMetricesFields} obj Optional instance to populate.
+ * @return {module:model/BillingMetricesFields} The populated BillingMetricesFields instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BillingMetricesFields();
+
+ if (data.hasOwnProperty('active')) {
+ obj['active'] = ApiClient.convertToType(data['active'], 'Boolean');
+ }
+ if (data.hasOwnProperty('bill_per_minute')) {
+ obj['bill_per_minute'] = ApiClient.convertToType(data['bill_per_minute'], 'Number');
+ }
+ if (data.hasOwnProperty('create_time')) {
+ obj['create_time'] = ApiClient.convertToType(data['create_time'], 'Date');
+ }
+ if (data.hasOwnProperty('exclude_billing')) {
+ obj['exclude_billing'] = ApiClient.convertToType(data['exclude_billing'], 'Boolean');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = ApiClient.convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('organization_id')) {
+ obj['organization_id'] = ApiClient.convertToType(data['organization_id'], 'Number');
+ }
+ if (data.hasOwnProperty('resource_id')) {
+ obj['resource_id'] = ApiClient.convertToType(data['resource_id'], 'Number');
+ }
+ if (data.hasOwnProperty('resource_type')) {
+ obj['resource_type'] = ApiClient.convertToType(data['resource_type'], 'String');
+ }
+ if (data.hasOwnProperty('terminate_time')) {
+ obj['terminate_time'] = ApiClient.convertToType(data['terminate_time'], 'Date');
+ }
+ if (data.hasOwnProperty('total_bill')) {
+ obj['total_bill'] = ApiClient.convertToType(data['total_bill'], 'Number');
+ }
+ if (data.hasOwnProperty('total_up_time')) {
+ obj['total_up_time'] = ApiClient.convertToType(data['total_up_time'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BillingMetricesFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BillingMetricesFields.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ // ensure the json data is a string
+ if (data['resource_type'] && !(typeof data['resource_type'] === 'string' || data['resource_type'] instanceof String)) {
+ throw new Error("Expected the field `resource_type` to be a primitive type in the JSON string but got " + data['resource_type']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {Boolean} active
+ */
+BillingMetricesFields.prototype['active'] = undefined;
+
+/**
+ * @member {Number} bill_per_minute
+ */
+BillingMetricesFields.prototype['bill_per_minute'] = undefined;
+
+/**
+ * @member {Date} create_time
+ */
+BillingMetricesFields.prototype['create_time'] = undefined;
+
+/**
+ * @member {Boolean} exclude_billing
+ */
+BillingMetricesFields.prototype['exclude_billing'] = undefined;
+
+/**
+ * @member {String} name
+ */
+BillingMetricesFields.prototype['name'] = undefined;
+
+/**
+ * @member {Number} organization_id
+ */
+BillingMetricesFields.prototype['organization_id'] = undefined;
+
+/**
+ * @member {Number} resource_id
+ */
+BillingMetricesFields.prototype['resource_id'] = undefined;
+
+/**
+ * @member {String} resource_type
+ */
+BillingMetricesFields.prototype['resource_type'] = undefined;
+
+/**
+ * @member {Date} terminate_time
+ */
+BillingMetricesFields.prototype['terminate_time'] = undefined;
+
+/**
+ * @member {Number} total_bill
+ */
+BillingMetricesFields.prototype['total_bill'] = undefined;
+
+/**
+ * @member {Number} total_up_time
+ */
+BillingMetricesFields.prototype['total_up_time'] = undefined;
+
+
+
+
+
+
+export default BillingMetricesFields;
+
diff --git a/src/model/BillingMetricesResponse.js b/src/model/BillingMetricesResponse.js
new file mode 100644
index 00000000..68bb81f1
--- /dev/null
+++ b/src/model/BillingMetricesResponse.js
@@ -0,0 +1,114 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import BillingMetricesFields from './BillingMetricesFields';
+
+/**
+ * The BillingMetricesResponse model module.
+ * @module model/BillingMetricesResponse
+ * @version v1.51.1-alpha
+ */
+class BillingMetricesResponse {
+ /**
+ * Constructs a new BillingMetricesResponse.
+ * @alias module:model/BillingMetricesResponse
+ */
+ constructor() {
+
+ BillingMetricesResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a BillingMetricesResponse from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/BillingMetricesResponse} obj Optional instance to populate.
+ * @return {module:model/BillingMetricesResponse} The populated BillingMetricesResponse instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new BillingMetricesResponse();
+
+ if (data.hasOwnProperty('data')) {
+ obj['data'] = ApiClient.convertToType(data['data'], [BillingMetricesFields]);
+ }
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = ApiClient.convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to BillingMetricesResponse.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to BillingMetricesResponse.
+ */
+ static validateJSON(data) {
+ if (data['data']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['data'])) {
+ throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
+ }
+ // validate the optional field `data` (array)
+ for (const item of data['data']) {
+ BillingMetricesFields.validateJSON(item);
+ };
+ }
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {Array.} data
+ */
+BillingMetricesResponse.prototype['data'] = undefined;
+
+/**
+ * @member {String} message
+ */
+BillingMetricesResponse.prototype['message'] = undefined;
+
+/**
+ * @member {Boolean} status
+ */
+BillingMetricesResponse.prototype['status'] = undefined;
+
+
+
+
+
+
+export default BillingMetricesResponse;
+
diff --git a/src/model/BillingResponse.js b/src/model/BillingResponse.js
deleted file mode 100644
index e5959e4e..00000000
--- a/src/model/BillingResponse.js
+++ /dev/null
@@ -1,114 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import OrganizationObjectResponse from './OrganizationObjectResponse';
-
-/**
- * The BillingResponse model module.
- * @module model/BillingResponse
- * @version v1.25.0-alpha
- */
-class BillingResponse {
- /**
- * Constructs a new BillingResponse.
- * @alias module:model/BillingResponse
- */
- constructor() {
-
- BillingResponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a BillingResponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/BillingResponse} obj Optional instance to populate.
- * @return {module:model/BillingResponse} The populated BillingResponse instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new BillingResponse();
-
- if (data.hasOwnProperty('calculated_bills')) {
- obj['calculated_bills'] = ApiClient.convertToType(data['calculated_bills'], [OrganizationObjectResponse]);
- }
- if (data.hasOwnProperty('calculation_time')) {
- obj['calculation_time'] = ApiClient.convertToType(data['calculation_time'], 'Date');
- }
- if (data.hasOwnProperty('type')) {
- obj['type'] = ApiClient.convertToType(data['type'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to BillingResponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to BillingResponse.
- */
- static validateJSON(data) {
- if (data['calculated_bills']) { // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['calculated_bills'])) {
- throw new Error("Expected the field `calculated_bills` to be an array in the JSON data but got " + data['calculated_bills']);
- }
- // validate the optional field `calculated_bills` (array)
- for (const item of data['calculated_bills']) {
- OrganizationObjectResponse.validateJSON(item);
- };
- }
- // ensure the json data is a string
- if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
- throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Array.} calculated_bills
- */
-BillingResponse.prototype['calculated_bills'] = undefined;
-
-/**
- * @member {Date} calculation_time
- */
-BillingResponse.prototype['calculation_time'] = undefined;
-
-/**
- * @member {String} type
- */
-BillingResponse.prototype['type'] = undefined;
-
-
-
-
-
-
-export default BillingResponse;
-
diff --git a/src/model/Billingmetricesfields.js b/src/model/Billingmetricesfields.js
deleted file mode 100644
index d19313b1..00000000
--- a/src/model/Billingmetricesfields.js
+++ /dev/null
@@ -1,171 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The Billingmetricesfields model module.
- * @module model/Billingmetricesfields
- * @version v1.25.0-alpha
- */
-class Billingmetricesfields {
- /**
- * Constructs a new Billingmetricesfields.
- * @alias module:model/Billingmetricesfields
- */
- constructor() {
-
- Billingmetricesfields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a Billingmetricesfields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Billingmetricesfields} obj Optional instance to populate.
- * @return {module:model/Billingmetricesfields} The populated Billingmetricesfields instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new Billingmetricesfields();
-
- if (data.hasOwnProperty('active')) {
- obj['active'] = ApiClient.convertToType(data['active'], 'Boolean');
- }
- if (data.hasOwnProperty('bill_per_minute')) {
- obj['bill_per_minute'] = ApiClient.convertToType(data['bill_per_minute'], 'Number');
- }
- if (data.hasOwnProperty('create_time')) {
- obj['create_time'] = ApiClient.convertToType(data['create_time'], 'Date');
- }
- if (data.hasOwnProperty('exclude_billing')) {
- obj['exclude_billing'] = ApiClient.convertToType(data['exclude_billing'], 'Boolean');
- }
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
- }
- if (data.hasOwnProperty('organization_id')) {
- obj['organization_id'] = ApiClient.convertToType(data['organization_id'], 'Number');
- }
- if (data.hasOwnProperty('resource_id')) {
- obj['resource_id'] = ApiClient.convertToType(data['resource_id'], 'Number');
- }
- if (data.hasOwnProperty('resource_type')) {
- obj['resource_type'] = ApiClient.convertToType(data['resource_type'], 'String');
- }
- if (data.hasOwnProperty('terminate_time')) {
- obj['terminate_time'] = ApiClient.convertToType(data['terminate_time'], 'Date');
- }
- if (data.hasOwnProperty('total_bill')) {
- obj['total_bill'] = ApiClient.convertToType(data['total_bill'], 'Number');
- }
- if (data.hasOwnProperty('total_up_time')) {
- obj['total_up_time'] = ApiClient.convertToType(data['total_up_time'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to Billingmetricesfields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to Billingmetricesfields.
- */
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
- }
- // ensure the json data is a string
- if (data['resource_type'] && !(typeof data['resource_type'] === 'string' || data['resource_type'] instanceof String)) {
- throw new Error("Expected the field `resource_type` to be a primitive type in the JSON string but got " + data['resource_type']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Boolean} active
- */
-Billingmetricesfields.prototype['active'] = undefined;
-
-/**
- * @member {Number} bill_per_minute
- */
-Billingmetricesfields.prototype['bill_per_minute'] = undefined;
-
-/**
- * @member {Date} create_time
- */
-Billingmetricesfields.prototype['create_time'] = undefined;
-
-/**
- * @member {Boolean} exclude_billing
- */
-Billingmetricesfields.prototype['exclude_billing'] = undefined;
-
-/**
- * @member {String} name
- */
-Billingmetricesfields.prototype['name'] = undefined;
-
-/**
- * @member {Number} organization_id
- */
-Billingmetricesfields.prototype['organization_id'] = undefined;
-
-/**
- * @member {Number} resource_id
- */
-Billingmetricesfields.prototype['resource_id'] = undefined;
-
-/**
- * @member {String} resource_type
- */
-Billingmetricesfields.prototype['resource_type'] = undefined;
-
-/**
- * @member {Date} terminate_time
- */
-Billingmetricesfields.prototype['terminate_time'] = undefined;
-
-/**
- * @member {Number} total_bill
- */
-Billingmetricesfields.prototype['total_bill'] = undefined;
-
-/**
- * @member {Number} total_up_time
- */
-Billingmetricesfields.prototype['total_up_time'] = undefined;
-
-
-
-
-
-
-export default Billingmetricesfields;
-
diff --git a/src/model/Billingmetricesresponse.js b/src/model/Billingmetricesresponse.js
deleted file mode 100644
index f8b696a1..00000000
--- a/src/model/Billingmetricesresponse.js
+++ /dev/null
@@ -1,114 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import Billingmetricesfields from './Billingmetricesfields';
-
-/**
- * The Billingmetricesresponse model module.
- * @module model/Billingmetricesresponse
- * @version v1.25.0-alpha
- */
-class Billingmetricesresponse {
- /**
- * Constructs a new Billingmetricesresponse.
- * @alias module:model/Billingmetricesresponse
- */
- constructor() {
-
- Billingmetricesresponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a Billingmetricesresponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Billingmetricesresponse} obj Optional instance to populate.
- * @return {module:model/Billingmetricesresponse} The populated Billingmetricesresponse instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new Billingmetricesresponse();
-
- if (data.hasOwnProperty('data')) {
- obj['data'] = ApiClient.convertToType(data['data'], [Billingmetricesfields]);
- }
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to Billingmetricesresponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to Billingmetricesresponse.
- */
- static validateJSON(data) {
- if (data['data']) { // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['data'])) {
- throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
- }
- // validate the optional field `data` (array)
- for (const item of data['data']) {
- Billingmetricesfields.validateJSON(item);
- };
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Array.} data
- */
-Billingmetricesresponse.prototype['data'] = undefined;
-
-/**
- * @member {String} message
- */
-Billingmetricesresponse.prototype['message'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-Billingmetricesresponse.prototype['status'] = undefined;
-
-
-
-
-
-
-export default Billingmetricesresponse;
-
diff --git a/src/model/ClusterEvents.js b/src/model/ClusterEvents.js
index 4a5eff5f..9c1a4b42 100644
--- a/src/model/ClusterEvents.js
+++ b/src/model/ClusterEvents.js
@@ -17,7 +17,7 @@ import ClusterEventsFields from './ClusterEventsFields';
/**
* The ClusterEvents model module.
* @module model/ClusterEvents
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class ClusterEvents {
/**
diff --git a/src/model/ClusterEventsFields.js b/src/model/ClusterEventsFields.js
index 3e366bd1..30d74852 100644
--- a/src/model/ClusterEventsFields.js
+++ b/src/model/ClusterEventsFields.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ClusterEventsFields model module.
* @module model/ClusterEventsFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class ClusterEventsFields {
/**
diff --git a/src/model/ClusterFields.js b/src/model/ClusterFields.js
index acf54468..ea888bd0 100644
--- a/src/model/ClusterFields.js
+++ b/src/model/ClusterFields.js
@@ -12,12 +12,14 @@
*/
import ApiClient from '../ApiClient';
-import InstanceFlavorFields from './InstanceFlavorFields';
+import ClusterFlavorFields from './ClusterFlavorFields';
+import ClusterNodeFields from './ClusterNodeFields';
+import ClusterNodeGroupFields from './ClusterNodeGroupFields';
/**
* The ClusterFields model module.
* @module model/ClusterFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class ClusterFields {
/**
@@ -60,6 +62,9 @@ class ClusterFields {
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
+ if (data.hasOwnProperty('is_reconciling')) {
+ obj['is_reconciling'] = ApiClient.convertToType(data['is_reconciling'], 'Boolean');
+ }
if (data.hasOwnProperty('keypair_name')) {
obj['keypair_name'] = ApiClient.convertToType(data['keypair_name'], 'String');
}
@@ -69,14 +74,17 @@ class ClusterFields {
if (data.hasOwnProperty('kubernetes_version')) {
obj['kubernetes_version'] = ApiClient.convertToType(data['kubernetes_version'], 'String');
}
+ if (data.hasOwnProperty('master_flavor')) {
+ obj['master_flavor'] = ClusterFlavorFields.constructFromObject(data['master_flavor']);
+ }
if (data.hasOwnProperty('name')) {
obj['name'] = ApiClient.convertToType(data['name'], 'String');
}
- if (data.hasOwnProperty('node_count')) {
- obj['node_count'] = ApiClient.convertToType(data['node_count'], 'Number');
+ if (data.hasOwnProperty('node_groups')) {
+ obj['node_groups'] = ApiClient.convertToType(data['node_groups'], [ClusterNodeGroupFields]);
}
- if (data.hasOwnProperty('node_flavor')) {
- obj['node_flavor'] = InstanceFlavorFields.constructFromObject(data['node_flavor']);
+ if (data.hasOwnProperty('nodes')) {
+ obj['nodes'] = ApiClient.convertToType(data['nodes'], [ClusterNodeFields]);
}
if (data.hasOwnProperty('status')) {
obj['status'] = ApiClient.convertToType(data['status'], 'String');
@@ -114,13 +122,33 @@ class ClusterFields {
if (data['kubernetes_version'] && !(typeof data['kubernetes_version'] === 'string' || data['kubernetes_version'] instanceof String)) {
throw new Error("Expected the field `kubernetes_version` to be a primitive type in the JSON string but got " + data['kubernetes_version']);
}
+ // validate the optional field `master_flavor`
+ if (data['master_flavor']) { // data not null
+ ClusterFlavorFields.validateJSON(data['master_flavor']);
+ }
// ensure the json data is a string
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
}
- // validate the optional field `node_flavor`
- if (data['node_flavor']) { // data not null
- InstanceFlavorFields.validateJSON(data['node_flavor']);
+ if (data['node_groups']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['node_groups'])) {
+ throw new Error("Expected the field `node_groups` to be an array in the JSON data but got " + data['node_groups']);
+ }
+ // validate the optional field `node_groups` (array)
+ for (const item of data['node_groups']) {
+ ClusterNodeGroupFields.validateJSON(item);
+ };
+ }
+ if (data['nodes']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['nodes'])) {
+ throw new Error("Expected the field `nodes` to be an array in the JSON data but got " + data['nodes']);
+ }
+ // validate the optional field `nodes` (array)
+ for (const item of data['nodes']) {
+ ClusterNodeFields.validateJSON(item);
+ };
}
// ensure the json data is a string
if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
@@ -159,6 +187,11 @@ ClusterFields.prototype['environment_name'] = undefined;
*/
ClusterFields.prototype['id'] = undefined;
+/**
+ * @member {Boolean} is_reconciling
+ */
+ClusterFields.prototype['is_reconciling'] = undefined;
+
/**
* @member {String} keypair_name
*/
@@ -174,20 +207,25 @@ ClusterFields.prototype['kube_config'] = undefined;
*/
ClusterFields.prototype['kubernetes_version'] = undefined;
+/**
+ * @member {module:model/ClusterFlavorFields} master_flavor
+ */
+ClusterFields.prototype['master_flavor'] = undefined;
+
/**
* @member {String} name
*/
ClusterFields.prototype['name'] = undefined;
/**
- * @member {Number} node_count
+ * @member {Array.} node_groups
*/
-ClusterFields.prototype['node_count'] = undefined;
+ClusterFields.prototype['node_groups'] = undefined;
/**
- * @member {module:model/InstanceFlavorFields} node_flavor
+ * @member {Array.} nodes
*/
-ClusterFields.prototype['node_flavor'] = undefined;
+ClusterFields.prototype['nodes'] = undefined;
/**
* @member {String} status
diff --git a/src/model/ClusterFlavorFields.js b/src/model/ClusterFlavorFields.js
new file mode 100644
index 00000000..a466495c
--- /dev/null
+++ b/src/model/ClusterFlavorFields.js
@@ -0,0 +1,174 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import LableResonse from './LableResonse';
+
+/**
+ * The ClusterFlavorFields model module.
+ * @module model/ClusterFlavorFields
+ * @version v1.51.1-alpha
+ */
+class ClusterFlavorFields {
+ /**
+ * Constructs a new ClusterFlavorFields.
+ * @alias module:model/ClusterFlavorFields
+ */
+ constructor() {
+
+ ClusterFlavorFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a ClusterFlavorFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterFlavorFields} obj Optional instance to populate.
+ * @return {module:model/ClusterFlavorFields} The populated ClusterFlavorFields instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterFlavorFields();
+
+ if (data.hasOwnProperty('cpu')) {
+ obj['cpu'] = ApiClient.convertToType(data['cpu'], 'Number');
+ }
+ if (data.hasOwnProperty('disk')) {
+ obj['disk'] = ApiClient.convertToType(data['disk'], 'Number');
+ }
+ if (data.hasOwnProperty('ephemeral')) {
+ obj['ephemeral'] = ApiClient.convertToType(data['ephemeral'], 'Number');
+ }
+ if (data.hasOwnProperty('features')) {
+ obj['features'] = ApiClient.convertToType(data['features'], Object);
+ }
+ if (data.hasOwnProperty('gpu')) {
+ obj['gpu'] = ApiClient.convertToType(data['gpu'], 'String');
+ }
+ if (data.hasOwnProperty('gpu_count')) {
+ obj['gpu_count'] = ApiClient.convertToType(data['gpu_count'], 'Number');
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = ApiClient.convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('labels')) {
+ obj['labels'] = ApiClient.convertToType(data['labels'], [LableResonse]);
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = ApiClient.convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('ram')) {
+ obj['ram'] = ApiClient.convertToType(data['ram'], 'Number');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterFlavorFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterFlavorFields.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['gpu'] && !(typeof data['gpu'] === 'string' || data['gpu'] instanceof String)) {
+ throw new Error("Expected the field `gpu` to be a primitive type in the JSON string but got " + data['gpu']);
+ }
+ if (data['labels']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['labels'])) {
+ throw new Error("Expected the field `labels` to be an array in the JSON data but got " + data['labels']);
+ }
+ // validate the optional field `labels` (array)
+ for (const item of data['labels']) {
+ LableResonse.validateJSON(item);
+ };
+ }
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {Number} cpu
+ */
+ClusterFlavorFields.prototype['cpu'] = undefined;
+
+/**
+ * @member {Number} disk
+ */
+ClusterFlavorFields.prototype['disk'] = undefined;
+
+/**
+ * @member {Number} ephemeral
+ */
+ClusterFlavorFields.prototype['ephemeral'] = undefined;
+
+/**
+ * @member {Object} features
+ */
+ClusterFlavorFields.prototype['features'] = undefined;
+
+/**
+ * @member {String} gpu
+ */
+ClusterFlavorFields.prototype['gpu'] = undefined;
+
+/**
+ * @member {Number} gpu_count
+ */
+ClusterFlavorFields.prototype['gpu_count'] = undefined;
+
+/**
+ * @member {Number} id
+ */
+ClusterFlavorFields.prototype['id'] = undefined;
+
+/**
+ * @member {Array.} labels
+ */
+ClusterFlavorFields.prototype['labels'] = undefined;
+
+/**
+ * @member {String} name
+ */
+ClusterFlavorFields.prototype['name'] = undefined;
+
+/**
+ * @member {Number} ram
+ */
+ClusterFlavorFields.prototype['ram'] = undefined;
+
+
+
+
+
+
+export default ClusterFlavorFields;
+
diff --git a/src/model/ClusterListResponse.js b/src/model/ClusterListResponse.js
index d7ad8067..6405c4e3 100644
--- a/src/model/ClusterListResponse.js
+++ b/src/model/ClusterListResponse.js
@@ -17,7 +17,7 @@ import ClusterFields from './ClusterFields';
/**
* The ClusterListResponse model module.
* @module model/ClusterListResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class ClusterListResponse {
/**
diff --git a/src/model/ClusterNodeFields.js b/src/model/ClusterNodeFields.js
new file mode 100644
index 00000000..b799d0fa
--- /dev/null
+++ b/src/model/ClusterNodeFields.js
@@ -0,0 +1,184 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import ClusterNodeInstanceFields from './ClusterNodeInstanceFields';
+
+/**
+ * The ClusterNodeFields model module.
+ * @module model/ClusterNodeFields
+ * @version v1.51.1-alpha
+ */
+class ClusterNodeFields {
+ /**
+ * Constructs a new ClusterNodeFields.
+ * @alias module:model/ClusterNodeFields
+ */
+ constructor() {
+
+ ClusterNodeFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a ClusterNodeFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterNodeFields} obj Optional instance to populate.
+ * @return {module:model/ClusterNodeFields} The populated ClusterNodeFields instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterNodeFields();
+
+ if (data.hasOwnProperty('created_at')) {
+ obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = ApiClient.convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('instance')) {
+ obj['instance'] = ClusterNodeInstanceFields.constructFromObject(data['instance']);
+ }
+ if (data.hasOwnProperty('is_bastion')) {
+ obj['is_bastion'] = ApiClient.convertToType(data['is_bastion'], 'Boolean');
+ }
+ if (data.hasOwnProperty('node_group_id')) {
+ obj['node_group_id'] = ApiClient.convertToType(data['node_group_id'], 'Number');
+ }
+ if (data.hasOwnProperty('node_group_name')) {
+ obj['node_group_name'] = ApiClient.convertToType(data['node_group_name'], 'String');
+ }
+ if (data.hasOwnProperty('requires_public_ip')) {
+ obj['requires_public_ip'] = ApiClient.convertToType(data['requires_public_ip'], 'Boolean');
+ }
+ if (data.hasOwnProperty('role')) {
+ obj['role'] = ApiClient.convertToType(data['role'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'String');
+ }
+ if (data.hasOwnProperty('status_reason')) {
+ obj['status_reason'] = ApiClient.convertToType(data['status_reason'], 'String');
+ }
+ if (data.hasOwnProperty('updated_at')) {
+ obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterNodeFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterNodeFields.
+ */
+ static validateJSON(data) {
+ // validate the optional field `instance`
+ if (data['instance']) { // data not null
+ ClusterNodeInstanceFields.validateJSON(data['instance']);
+ }
+ // ensure the json data is a string
+ if (data['node_group_name'] && !(typeof data['node_group_name'] === 'string' || data['node_group_name'] instanceof String)) {
+ throw new Error("Expected the field `node_group_name` to be a primitive type in the JSON string but got " + data['node_group_name']);
+ }
+ // ensure the json data is a string
+ if (data['role'] && !(typeof data['role'] === 'string' || data['role'] instanceof String)) {
+ throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data['role']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+ // ensure the json data is a string
+ if (data['status_reason'] && !(typeof data['status_reason'] === 'string' || data['status_reason'] instanceof String)) {
+ throw new Error("Expected the field `status_reason` to be a primitive type in the JSON string but got " + data['status_reason']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {Date} created_at
+ */
+ClusterNodeFields.prototype['created_at'] = undefined;
+
+/**
+ * @member {Number} id
+ */
+ClusterNodeFields.prototype['id'] = undefined;
+
+/**
+ * @member {module:model/ClusterNodeInstanceFields} instance
+ */
+ClusterNodeFields.prototype['instance'] = undefined;
+
+/**
+ * @member {Boolean} is_bastion
+ */
+ClusterNodeFields.prototype['is_bastion'] = undefined;
+
+/**
+ * @member {Number} node_group_id
+ */
+ClusterNodeFields.prototype['node_group_id'] = undefined;
+
+/**
+ * @member {String} node_group_name
+ */
+ClusterNodeFields.prototype['node_group_name'] = undefined;
+
+/**
+ * @member {Boolean} requires_public_ip
+ */
+ClusterNodeFields.prototype['requires_public_ip'] = undefined;
+
+/**
+ * @member {String} role
+ */
+ClusterNodeFields.prototype['role'] = undefined;
+
+/**
+ * @member {String} status
+ */
+ClusterNodeFields.prototype['status'] = undefined;
+
+/**
+ * @member {String} status_reason
+ */
+ClusterNodeFields.prototype['status_reason'] = undefined;
+
+/**
+ * @member {Date} updated_at
+ */
+ClusterNodeFields.prototype['updated_at'] = undefined;
+
+
+
+
+
+
+export default ClusterNodeFields;
+
diff --git a/src/model/ClusterNodeGroupFields.js b/src/model/ClusterNodeGroupFields.js
new file mode 100644
index 00000000..3b4115fc
--- /dev/null
+++ b/src/model/ClusterNodeGroupFields.js
@@ -0,0 +1,191 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import ClusterFlavorFields from './ClusterFlavorFields';
+import ClusterNodeGroupFirewallFields from './ClusterNodeGroupFirewallFields';
+
+/**
+ * The ClusterNodeGroupFields model module.
+ * @module model/ClusterNodeGroupFields
+ * @version v1.51.1-alpha
+ */
+class ClusterNodeGroupFields {
+ /**
+ * Constructs a new ClusterNodeGroupFields.
+ * @alias module:model/ClusterNodeGroupFields
+ */
+ constructor() {
+
+ ClusterNodeGroupFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a ClusterNodeGroupFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterNodeGroupFields} obj Optional instance to populate.
+ * @return {module:model/ClusterNodeGroupFields} The populated ClusterNodeGroupFields instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterNodeGroupFields();
+
+ if (data.hasOwnProperty('count')) {
+ obj['count'] = ApiClient.convertToType(data['count'], 'Number');
+ }
+ if (data.hasOwnProperty('created_at')) {
+ obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
+ }
+ if (data.hasOwnProperty('firewall_ids')) {
+ obj['firewall_ids'] = ApiClient.convertToType(data['firewall_ids'], ['Number']);
+ }
+ if (data.hasOwnProperty('firewalls')) {
+ obj['firewalls'] = ApiClient.convertToType(data['firewalls'], [ClusterNodeGroupFirewallFields]);
+ }
+ if (data.hasOwnProperty('flavor')) {
+ obj['flavor'] = ClusterFlavorFields.constructFromObject(data['flavor']);
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = ApiClient.convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('max_count')) {
+ obj['max_count'] = ApiClient.convertToType(data['max_count'], 'Number');
+ }
+ if (data.hasOwnProperty('min_count')) {
+ obj['min_count'] = ApiClient.convertToType(data['min_count'], 'Number');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = ApiClient.convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('role')) {
+ obj['role'] = ApiClient.convertToType(data['role'], 'String');
+ }
+ if (data.hasOwnProperty('updated_at')) {
+ obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterNodeGroupFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterNodeGroupFields.
+ */
+ static validateJSON(data) {
+ // ensure the json data is an array
+ if (!Array.isArray(data['firewall_ids'])) {
+ throw new Error("Expected the field `firewall_ids` to be an array in the JSON data but got " + data['firewall_ids']);
+ }
+ if (data['firewalls']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['firewalls'])) {
+ throw new Error("Expected the field `firewalls` to be an array in the JSON data but got " + data['firewalls']);
+ }
+ // validate the optional field `firewalls` (array)
+ for (const item of data['firewalls']) {
+ ClusterNodeGroupFirewallFields.validateJSON(item);
+ };
+ }
+ // validate the optional field `flavor`
+ if (data['flavor']) { // data not null
+ ClusterFlavorFields.validateJSON(data['flavor']);
+ }
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ // ensure the json data is a string
+ if (data['role'] && !(typeof data['role'] === 'string' || data['role'] instanceof String)) {
+ throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data['role']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {Number} count
+ */
+ClusterNodeGroupFields.prototype['count'] = undefined;
+
+/**
+ * @member {Date} created_at
+ */
+ClusterNodeGroupFields.prototype['created_at'] = undefined;
+
+/**
+ * @member {Array.} firewall_ids
+ */
+ClusterNodeGroupFields.prototype['firewall_ids'] = undefined;
+
+/**
+ * @member {Array.} firewalls
+ */
+ClusterNodeGroupFields.prototype['firewalls'] = undefined;
+
+/**
+ * @member {module:model/ClusterFlavorFields} flavor
+ */
+ClusterNodeGroupFields.prototype['flavor'] = undefined;
+
+/**
+ * @member {Number} id
+ */
+ClusterNodeGroupFields.prototype['id'] = undefined;
+
+/**
+ * @member {Number} max_count
+ */
+ClusterNodeGroupFields.prototype['max_count'] = undefined;
+
+/**
+ * @member {Number} min_count
+ */
+ClusterNodeGroupFields.prototype['min_count'] = undefined;
+
+/**
+ * @member {String} name
+ */
+ClusterNodeGroupFields.prototype['name'] = undefined;
+
+/**
+ * @member {String} role
+ */
+ClusterNodeGroupFields.prototype['role'] = undefined;
+
+/**
+ * @member {Date} updated_at
+ */
+ClusterNodeGroupFields.prototype['updated_at'] = undefined;
+
+
+
+
+
+
+export default ClusterNodeGroupFields;
+
diff --git a/src/model/ClusterNodeGroupFirewallFields.js b/src/model/ClusterNodeGroupFirewallFields.js
new file mode 100644
index 00000000..f50b71fb
--- /dev/null
+++ b/src/model/ClusterNodeGroupFirewallFields.js
@@ -0,0 +1,107 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The ClusterNodeGroupFirewallFields model module.
+ * @module model/ClusterNodeGroupFirewallFields
+ * @version v1.51.1-alpha
+ */
+class ClusterNodeGroupFirewallFields {
+ /**
+ * Constructs a new ClusterNodeGroupFirewallFields.
+ * @alias module:model/ClusterNodeGroupFirewallFields
+ */
+ constructor() {
+
+ ClusterNodeGroupFirewallFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a ClusterNodeGroupFirewallFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterNodeGroupFirewallFields} obj Optional instance to populate.
+ * @return {module:model/ClusterNodeGroupFirewallFields} The populated ClusterNodeGroupFirewallFields instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterNodeGroupFirewallFields();
+
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = ApiClient.convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = ApiClient.convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterNodeGroupFirewallFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterNodeGroupFirewallFields.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {Number} id
+ */
+ClusterNodeGroupFirewallFields.prototype['id'] = undefined;
+
+/**
+ * @member {String} name
+ */
+ClusterNodeGroupFirewallFields.prototype['name'] = undefined;
+
+/**
+ * @member {String} status
+ */
+ClusterNodeGroupFirewallFields.prototype['status'] = undefined;
+
+
+
+
+
+
+export default ClusterNodeGroupFirewallFields;
+
diff --git a/src/model/ClusterNodeGroupsCreateResponse.js b/src/model/ClusterNodeGroupsCreateResponse.js
new file mode 100644
index 00000000..9567ef20
--- /dev/null
+++ b/src/model/ClusterNodeGroupsCreateResponse.js
@@ -0,0 +1,127 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import ClusterNodeFields from './ClusterNodeFields';
+import ClusterNodeGroupFields from './ClusterNodeGroupFields';
+
+/**
+ * The ClusterNodeGroupsCreateResponse model module.
+ * @module model/ClusterNodeGroupsCreateResponse
+ * @version v1.51.1-alpha
+ */
+class ClusterNodeGroupsCreateResponse {
+ /**
+ * Constructs a new ClusterNodeGroupsCreateResponse.
+ * @alias module:model/ClusterNodeGroupsCreateResponse
+ */
+ constructor() {
+
+ ClusterNodeGroupsCreateResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a ClusterNodeGroupsCreateResponse from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterNodeGroupsCreateResponse} obj Optional instance to populate.
+ * @return {module:model/ClusterNodeGroupsCreateResponse} The populated ClusterNodeGroupsCreateResponse instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterNodeGroupsCreateResponse();
+
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = ApiClient.convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('node_group')) {
+ obj['node_group'] = ClusterNodeGroupFields.constructFromObject(data['node_group']);
+ }
+ if (data.hasOwnProperty('nodes')) {
+ obj['nodes'] = ApiClient.convertToType(data['nodes'], [ClusterNodeFields]);
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterNodeGroupsCreateResponse.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterNodeGroupsCreateResponse.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+ // validate the optional field `node_group`
+ if (data['node_group']) { // data not null
+ ClusterNodeGroupFields.validateJSON(data['node_group']);
+ }
+ if (data['nodes']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['nodes'])) {
+ throw new Error("Expected the field `nodes` to be an array in the JSON data but got " + data['nodes']);
+ }
+ // validate the optional field `nodes` (array)
+ for (const item of data['nodes']) {
+ ClusterNodeFields.validateJSON(item);
+ };
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {String} message
+ */
+ClusterNodeGroupsCreateResponse.prototype['message'] = undefined;
+
+/**
+ * @member {module:model/ClusterNodeGroupFields} node_group
+ */
+ClusterNodeGroupsCreateResponse.prototype['node_group'] = undefined;
+
+/**
+ * @member {Array.} nodes
+ */
+ClusterNodeGroupsCreateResponse.prototype['nodes'] = undefined;
+
+/**
+ * @member {Boolean} status
+ */
+ClusterNodeGroupsCreateResponse.prototype['status'] = undefined;
+
+
+
+
+
+
+export default ClusterNodeGroupsCreateResponse;
+
diff --git a/src/model/ClusterNodeGroupsGetResponse.js b/src/model/ClusterNodeGroupsGetResponse.js
new file mode 100644
index 00000000..0c986e96
--- /dev/null
+++ b/src/model/ClusterNodeGroupsGetResponse.js
@@ -0,0 +1,108 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import ClusterNodeGroupFields from './ClusterNodeGroupFields';
+
+/**
+ * The ClusterNodeGroupsGetResponse model module.
+ * @module model/ClusterNodeGroupsGetResponse
+ * @version v1.51.1-alpha
+ */
+class ClusterNodeGroupsGetResponse {
+ /**
+ * Constructs a new ClusterNodeGroupsGetResponse.
+ * @alias module:model/ClusterNodeGroupsGetResponse
+ */
+ constructor() {
+
+ ClusterNodeGroupsGetResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a ClusterNodeGroupsGetResponse from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterNodeGroupsGetResponse} obj Optional instance to populate.
+ * @return {module:model/ClusterNodeGroupsGetResponse} The populated ClusterNodeGroupsGetResponse instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterNodeGroupsGetResponse();
+
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = ApiClient.convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('node_group')) {
+ obj['node_group'] = ClusterNodeGroupFields.constructFromObject(data['node_group']);
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterNodeGroupsGetResponse.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterNodeGroupsGetResponse.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+ // validate the optional field `node_group`
+ if (data['node_group']) { // data not null
+ ClusterNodeGroupFields.validateJSON(data['node_group']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {String} message
+ */
+ClusterNodeGroupsGetResponse.prototype['message'] = undefined;
+
+/**
+ * @member {module:model/ClusterNodeGroupFields} node_group
+ */
+ClusterNodeGroupsGetResponse.prototype['node_group'] = undefined;
+
+/**
+ * @member {Boolean} status
+ */
+ClusterNodeGroupsGetResponse.prototype['status'] = undefined;
+
+
+
+
+
+
+export default ClusterNodeGroupsGetResponse;
+
diff --git a/src/model/ClusterNodeGroupsListResponse.js b/src/model/ClusterNodeGroupsListResponse.js
new file mode 100644
index 00000000..a3bf4fce
--- /dev/null
+++ b/src/model/ClusterNodeGroupsListResponse.js
@@ -0,0 +1,114 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import ClusterNodeGroupFields from './ClusterNodeGroupFields';
+
+/**
+ * The ClusterNodeGroupsListResponse model module.
+ * @module model/ClusterNodeGroupsListResponse
+ * @version v1.51.1-alpha
+ */
+class ClusterNodeGroupsListResponse {
+ /**
+ * Constructs a new ClusterNodeGroupsListResponse.
+ * @alias module:model/ClusterNodeGroupsListResponse
+ */
+ constructor() {
+
+ ClusterNodeGroupsListResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a ClusterNodeGroupsListResponse from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterNodeGroupsListResponse} obj Optional instance to populate.
+ * @return {module:model/ClusterNodeGroupsListResponse} The populated ClusterNodeGroupsListResponse instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterNodeGroupsListResponse();
+
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = ApiClient.convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('node_groups')) {
+ obj['node_groups'] = ApiClient.convertToType(data['node_groups'], [ClusterNodeGroupFields]);
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterNodeGroupsListResponse.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterNodeGroupsListResponse.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+ if (data['node_groups']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['node_groups'])) {
+ throw new Error("Expected the field `node_groups` to be an array in the JSON data but got " + data['node_groups']);
+ }
+ // validate the optional field `node_groups` (array)
+ for (const item of data['node_groups']) {
+ ClusterNodeGroupFields.validateJSON(item);
+ };
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {String} message
+ */
+ClusterNodeGroupsListResponse.prototype['message'] = undefined;
+
+/**
+ * @member {Array.} node_groups
+ */
+ClusterNodeGroupsListResponse.prototype['node_groups'] = undefined;
+
+/**
+ * @member {Boolean} status
+ */
+ClusterNodeGroupsListResponse.prototype['status'] = undefined;
+
+
+
+
+
+
+export default ClusterNodeGroupsListResponse;
+
diff --git a/src/model/ClusterNodeInstanceFields.js b/src/model/ClusterNodeInstanceFields.js
new file mode 100644
index 00000000..3ecce835
--- /dev/null
+++ b/src/model/ClusterNodeInstanceFields.js
@@ -0,0 +1,159 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The ClusterNodeInstanceFields model module.
+ * @module model/ClusterNodeInstanceFields
+ * @version v1.51.1-alpha
+ */
+class ClusterNodeInstanceFields {
+ /**
+ * Constructs a new ClusterNodeInstanceFields.
+ * @alias module:model/ClusterNodeInstanceFields
+ */
+ constructor() {
+
+ ClusterNodeInstanceFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a ClusterNodeInstanceFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterNodeInstanceFields} obj Optional instance to populate.
+ * @return {module:model/ClusterNodeInstanceFields} The populated ClusterNodeInstanceFields instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterNodeInstanceFields();
+
+ if (data.hasOwnProperty('contract_id')) {
+ obj['contract_id'] = ApiClient.convertToType(data['contract_id'], 'Number');
+ }
+ if (data.hasOwnProperty('fixed_ip')) {
+ obj['fixed_ip'] = ApiClient.convertToType(data['fixed_ip'], 'String');
+ }
+ if (data.hasOwnProperty('floating_ip')) {
+ obj['floating_ip'] = ApiClient.convertToType(data['floating_ip'], 'String');
+ }
+ if (data.hasOwnProperty('floating_ip_status')) {
+ obj['floating_ip_status'] = ApiClient.convertToType(data['floating_ip_status'], 'String');
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = ApiClient.convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('image_id')) {
+ obj['image_id'] = ApiClient.convertToType(data['image_id'], 'Number');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = ApiClient.convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterNodeInstanceFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterNodeInstanceFields.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['fixed_ip'] && !(typeof data['fixed_ip'] === 'string' || data['fixed_ip'] instanceof String)) {
+ throw new Error("Expected the field `fixed_ip` to be a primitive type in the JSON string but got " + data['fixed_ip']);
+ }
+ // ensure the json data is a string
+ if (data['floating_ip'] && !(typeof data['floating_ip'] === 'string' || data['floating_ip'] instanceof String)) {
+ throw new Error("Expected the field `floating_ip` to be a primitive type in the JSON string but got " + data['floating_ip']);
+ }
+ // ensure the json data is a string
+ if (data['floating_ip_status'] && !(typeof data['floating_ip_status'] === 'string' || data['floating_ip_status'] instanceof String)) {
+ throw new Error("Expected the field `floating_ip_status` to be a primitive type in the JSON string but got " + data['floating_ip_status']);
+ }
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {Number} contract_id
+ */
+ClusterNodeInstanceFields.prototype['contract_id'] = undefined;
+
+/**
+ * @member {String} fixed_ip
+ */
+ClusterNodeInstanceFields.prototype['fixed_ip'] = undefined;
+
+/**
+ * @member {String} floating_ip
+ */
+ClusterNodeInstanceFields.prototype['floating_ip'] = undefined;
+
+/**
+ * @member {String} floating_ip_status
+ */
+ClusterNodeInstanceFields.prototype['floating_ip_status'] = undefined;
+
+/**
+ * @member {Number} id
+ */
+ClusterNodeInstanceFields.prototype['id'] = undefined;
+
+/**
+ * @member {Number} image_id
+ */
+ClusterNodeInstanceFields.prototype['image_id'] = undefined;
+
+/**
+ * @member {String} name
+ */
+ClusterNodeInstanceFields.prototype['name'] = undefined;
+
+/**
+ * @member {String} status
+ */
+ClusterNodeInstanceFields.prototype['status'] = undefined;
+
+
+
+
+
+
+export default ClusterNodeInstanceFields;
+
diff --git a/src/model/ClusterNodesListResponse.js b/src/model/ClusterNodesListResponse.js
new file mode 100644
index 00000000..344ec4ff
--- /dev/null
+++ b/src/model/ClusterNodesListResponse.js
@@ -0,0 +1,114 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import ClusterNodeFields from './ClusterNodeFields';
+
+/**
+ * The ClusterNodesListResponse model module.
+ * @module model/ClusterNodesListResponse
+ * @version v1.51.1-alpha
+ */
+class ClusterNodesListResponse {
+ /**
+ * Constructs a new ClusterNodesListResponse.
+ * @alias module:model/ClusterNodesListResponse
+ */
+ constructor() {
+
+ ClusterNodesListResponse.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a ClusterNodesListResponse from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterNodesListResponse} obj Optional instance to populate.
+ * @return {module:model/ClusterNodesListResponse} The populated ClusterNodesListResponse instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterNodesListResponse();
+
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = ApiClient.convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('nodes')) {
+ obj['nodes'] = ApiClient.convertToType(data['nodes'], [ClusterNodeFields]);
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterNodesListResponse.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterNodesListResponse.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+ if (data['nodes']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['nodes'])) {
+ throw new Error("Expected the field `nodes` to be an array in the JSON data but got " + data['nodes']);
+ }
+ // validate the optional field `nodes` (array)
+ for (const item of data['nodes']) {
+ ClusterNodeFields.validateJSON(item);
+ };
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {String} message
+ */
+ClusterNodesListResponse.prototype['message'] = undefined;
+
+/**
+ * @member {Array.} nodes
+ */
+ClusterNodesListResponse.prototype['nodes'] = undefined;
+
+/**
+ * @member {Boolean} status
+ */
+ClusterNodesListResponse.prototype['status'] = undefined;
+
+
+
+
+
+
+export default ClusterNodesListResponse;
+
diff --git a/src/model/ClusterResponse.js b/src/model/ClusterResponse.js
index 11e1b821..f8721b00 100644
--- a/src/model/ClusterResponse.js
+++ b/src/model/ClusterResponse.js
@@ -17,7 +17,7 @@ import ClusterFields from './ClusterFields';
/**
* The ClusterResponse model module.
* @module model/ClusterResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class ClusterResponse {
/**
diff --git a/src/model/ClusterVersion.js b/src/model/ClusterVersion.js
new file mode 100644
index 00000000..364f1a9b
--- /dev/null
+++ b/src/model/ClusterVersion.js
@@ -0,0 +1,131 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The ClusterVersion model module.
+ * @module model/ClusterVersion
+ * @version v1.51.1-alpha
+ */
+class ClusterVersion {
+ /**
+ * Constructs a new ClusterVersion.
+ * @alias module:model/ClusterVersion
+ */
+ constructor() {
+
+ ClusterVersion.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a ClusterVersion from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/ClusterVersion} obj Optional instance to populate.
+ * @return {module:model/ClusterVersion} The populated ClusterVersion instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new ClusterVersion();
+
+ if (data.hasOwnProperty('created_at')) {
+ obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = ApiClient.convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('image')) {
+ obj['image'] = ApiClient.convertToType(data['image'], Object);
+ }
+ if (data.hasOwnProperty('region')) {
+ obj['region'] = ApiClient.convertToType(data['region'], Object);
+ }
+ if (data.hasOwnProperty('updated_at')) {
+ obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
+ }
+ if (data.hasOwnProperty('version')) {
+ obj['version'] = ApiClient.convertToType(data['version'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to ClusterVersion.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterVersion.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
+ throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ *
+ * @member {Date} created_at
+ */
+ClusterVersion.prototype['created_at'] = undefined;
+
+/**
+ *
+ * @member {Number} id
+ */
+ClusterVersion.prototype['id'] = undefined;
+
+/**
+ * @member {Object} image
+ */
+ClusterVersion.prototype['image'] = undefined;
+
+/**
+ * @member {Object} region
+ */
+ClusterVersion.prototype['region'] = undefined;
+
+/**
+ *
+ * @member {Date} updated_at
+ */
+ClusterVersion.prototype['updated_at'] = undefined;
+
+/**
+ *
+ * @member {String} version
+ */
+ClusterVersion.prototype['version'] = undefined;
+
+
+
+
+
+
+export default ClusterVersion;
+
diff --git a/src/model/ClusterVersions.js b/src/model/ClusterVersions.js
index 162f7a17..8b5b6065 100644
--- a/src/model/ClusterVersions.js
+++ b/src/model/ClusterVersions.js
@@ -12,11 +12,12 @@
*/
import ApiClient from '../ApiClient';
+import ClusterVersion from './ClusterVersion';
/**
* The ClusterVersions model module.
* @module model/ClusterVersions
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class ClusterVersions {
/**
@@ -54,7 +55,7 @@ class ClusterVersions {
obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
}
if (data.hasOwnProperty('versions')) {
- obj['versions'] = ApiClient.convertToType(data['versions'], ['String']);
+ obj['versions'] = ApiClient.convertToType(data['versions'], [ClusterVersion]);
}
}
return obj;
@@ -70,9 +71,15 @@ class ClusterVersions {
if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
}
- // ensure the json data is an array
- if (!Array.isArray(data['versions'])) {
- throw new Error("Expected the field `versions` to be an array in the JSON data but got " + data['versions']);
+ if (data['versions']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['versions'])) {
+ throw new Error("Expected the field `versions` to be an array in the JSON data but got " + data['versions']);
+ }
+ // validate the optional field `versions` (array)
+ for (const item of data['versions']) {
+ ClusterVersion.validateJSON(item);
+ };
}
return true;
@@ -94,7 +101,7 @@ ClusterVersions.prototype['message'] = undefined;
ClusterVersions.prototype['status'] = undefined;
/**
- * @member {Array.} versions
+ * @member {Array.} versions
*/
ClusterVersions.prototype['versions'] = undefined;
diff --git a/src/model/Colors.js b/src/model/Colors.js
new file mode 100644
index 00000000..cb8c2e60
--- /dev/null
+++ b/src/model/Colors.js
@@ -0,0 +1,101 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import PrimaryColor from './PrimaryColor';
+import SecondaryColor from './SecondaryColor';
+
+/**
+ * The Colors model module.
+ * @module model/Colors
+ * @version v1.51.1-alpha
+ */
+class Colors {
+ /**
+ * Constructs a new Colors.
+ * @alias module:model/Colors
+ */
+ constructor() {
+
+ Colors.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a Colors from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/Colors} obj Optional instance to populate.
+ * @return {module:model/Colors} The populated Colors instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new Colors();
+
+ if (data.hasOwnProperty('primary')) {
+ obj['primary'] = PrimaryColor.constructFromObject(data['primary']);
+ }
+ if (data.hasOwnProperty('secondary')) {
+ obj['secondary'] = SecondaryColor.constructFromObject(data['secondary']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to Colors.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to Colors.
+ */
+ static validateJSON(data) {
+ // validate the optional field `primary`
+ if (data['primary']) { // data not null
+ PrimaryColor.validateJSON(data['primary']);
+ }
+ // validate the optional field `secondary`
+ if (data['secondary']) { // data not null
+ SecondaryColor.validateJSON(data['secondary']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {module:model/PrimaryColor} primary
+ */
+Colors.prototype['primary'] = undefined;
+
+/**
+ * @member {module:model/SecondaryColor} secondary
+ */
+Colors.prototype['secondary'] = undefined;
+
+
+
+
+
+
+export default Colors;
+
diff --git a/src/model/CommonResponseModel.js b/src/model/CommonResponseModel.js
index 525d1910..39dd4421 100644
--- a/src/model/CommonResponseModel.js
+++ b/src/model/CommonResponseModel.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The CommonResponseModel model module.
* @module model/CommonResponseModel
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CommonResponseModel {
/**
diff --git a/src/model/CompatibleFlavor.js b/src/model/CompatibleFlavor.js
new file mode 100644
index 00000000..6cb65c43
--- /dev/null
+++ b/src/model/CompatibleFlavor.js
@@ -0,0 +1,129 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The CompatibleFlavor model module.
+ * @module model/CompatibleFlavor
+ * @version v1.51.1-alpha
+ */
+class CompatibleFlavor {
+ /**
+ * Constructs a new CompatibleFlavor.
+ * @alias module:model/CompatibleFlavor
+ */
+ constructor() {
+
+ CompatibleFlavor.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a CompatibleFlavor from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CompatibleFlavor} obj Optional instance to populate.
+ * @return {module:model/CompatibleFlavor} The populated CompatibleFlavor instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new CompatibleFlavor();
+
+ if (data.hasOwnProperty('constraints')) {
+ obj['constraints'] = ApiClient.convertToType(data['constraints'], Object);
+ }
+ if (data.hasOwnProperty('flavor_id')) {
+ obj['flavor_id'] = ApiClient.convertToType(data['flavor_id'], 'Number');
+ }
+ if (data.hasOwnProperty('flavor_name')) {
+ obj['flavor_name'] = ApiClient.convertToType(data['flavor_name'], 'String');
+ }
+ if (data.hasOwnProperty('link_type')) {
+ obj['link_type'] = ApiClient.convertToType(data['link_type'], 'String');
+ }
+ if (data.hasOwnProperty('reason')) {
+ obj['reason'] = ApiClient.convertToType(data['reason'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to CompatibleFlavor.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to CompatibleFlavor.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['flavor_name'] && !(typeof data['flavor_name'] === 'string' || data['flavor_name'] instanceof String)) {
+ throw new Error("Expected the field `flavor_name` to be a primitive type in the JSON string but got " + data['flavor_name']);
+ }
+ // ensure the json data is a string
+ if (data['link_type'] && !(typeof data['link_type'] === 'string' || data['link_type'] instanceof String)) {
+ throw new Error("Expected the field `link_type` to be a primitive type in the JSON string but got " + data['link_type']);
+ }
+ // ensure the json data is a string
+ if (data['reason'] && !(typeof data['reason'] === 'string' || data['reason'] instanceof String)) {
+ throw new Error("Expected the field `reason` to be a primitive type in the JSON string but got " + data['reason']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * JSON constraints object
+ * @member {Object} constraints
+ */
+CompatibleFlavor.prototype['constraints'] = undefined;
+
+/**
+ * @member {Number} flavor_id
+ */
+CompatibleFlavor.prototype['flavor_id'] = undefined;
+
+/**
+ * @member {String} flavor_name
+ */
+CompatibleFlavor.prototype['flavor_name'] = undefined;
+
+/**
+ * Either 'hard' or 'soft'
+ * @member {String} link_type
+ */
+CompatibleFlavor.prototype['link_type'] = undefined;
+
+/**
+ * @member {String} reason
+ */
+CompatibleFlavor.prototype['reason'] = undefined;
+
+
+
+
+
+
+export default CompatibleFlavor;
+
diff --git a/src/model/ComplianceFields.js b/src/model/ComplianceFields.js
index 10386ec8..15e05ff4 100644
--- a/src/model/ComplianceFields.js
+++ b/src/model/ComplianceFields.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ComplianceFields model module.
* @module model/ComplianceFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class ComplianceFields {
/**
diff --git a/src/model/ComplianceModelFields.js b/src/model/ComplianceModelFields.js
index a15218e9..06ad826b 100644
--- a/src/model/ComplianceModelFields.js
+++ b/src/model/ComplianceModelFields.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ComplianceModelFields model module.
* @module model/ComplianceModelFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class ComplianceModelFields {
/**
diff --git a/src/model/CompliancePayload.js b/src/model/CompliancePayload.js
index 30ad5689..69cbecf7 100644
--- a/src/model/CompliancePayload.js
+++ b/src/model/CompliancePayload.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The CompliancePayload model module.
* @module model/CompliancePayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CompliancePayload {
/**
diff --git a/src/model/ComplianceResponse.js b/src/model/ComplianceResponse.js
index 84487ef4..19f94737 100644
--- a/src/model/ComplianceResponse.js
+++ b/src/model/ComplianceResponse.js
@@ -17,7 +17,7 @@ import ComplianceFields from './ComplianceFields';
/**
* The ComplianceResponse model module.
* @module model/ComplianceResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class ComplianceResponse {
/**
diff --git a/src/model/ContainerOverviewFields.js b/src/model/ContainerOverviewFields.js
index 8d65c27c..fc44db5e 100644
--- a/src/model/ContainerOverviewFields.js
+++ b/src/model/ContainerOverviewFields.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ContainerOverviewFields model module.
* @module model/ContainerOverviewFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class ContainerOverviewFields {
/**
diff --git a/src/model/Contract.js b/src/model/Contract.js
index 86129fe1..e15e0827 100644
--- a/src/model/Contract.js
+++ b/src/model/Contract.js
@@ -17,7 +17,7 @@ import AllocatedGPUCountGraph from './AllocatedGPUCountGraph';
/**
* The Contract model module.
* @module model/Contract
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class Contract {
/**
diff --git a/src/model/ContractBillingHistory.js b/src/model/ContractBillingHistory.js
deleted file mode 100644
index 6c15b0a4..00000000
--- a/src/model/ContractBillingHistory.js
+++ /dev/null
@@ -1,101 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import ContractBillingHistoryResponseAttributes from './ContractBillingHistoryResponseAttributes';
-import ContractlBillingHistoryResponseMetrics from './ContractlBillingHistoryResponseMetrics';
-
-/**
- * The ContractBillingHistory model module.
- * @module model/ContractBillingHistory
- * @version v1.25.0-alpha
- */
-class ContractBillingHistory {
- /**
- * Constructs a new ContractBillingHistory.
- * @alias module:model/ContractBillingHistory
- */
- constructor() {
-
- ContractBillingHistory.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a ContractBillingHistory from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractBillingHistory} obj Optional instance to populate.
- * @return {module:model/ContractBillingHistory} The populated ContractBillingHistory instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractBillingHistory();
-
- if (data.hasOwnProperty('attributes')) {
- obj['attributes'] = ContractBillingHistoryResponseAttributes.constructFromObject(data['attributes']);
- }
- if (data.hasOwnProperty('metrics')) {
- obj['metrics'] = ContractlBillingHistoryResponseMetrics.constructFromObject(data['metrics']);
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractBillingHistory.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractBillingHistory.
- */
- static validateJSON(data) {
- // validate the optional field `attributes`
- if (data['attributes']) { // data not null
- ContractBillingHistoryResponseAttributes.validateJSON(data['attributes']);
- }
- // validate the optional field `metrics`
- if (data['metrics']) { // data not null
- ContractlBillingHistoryResponseMetrics.validateJSON(data['metrics']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {module:model/ContractBillingHistoryResponseAttributes} attributes
- */
-ContractBillingHistory.prototype['attributes'] = undefined;
-
-/**
- * @member {module:model/ContractlBillingHistoryResponseMetrics} metrics
- */
-ContractBillingHistory.prototype['metrics'] = undefined;
-
-
-
-
-
-
-export default ContractBillingHistory;
-
diff --git a/src/model/ContractBillingHistoryResponseAttributes.js b/src/model/ContractBillingHistoryResponseAttributes.js
deleted file mode 100644
index be217569..00000000
--- a/src/model/ContractBillingHistoryResponseAttributes.js
+++ /dev/null
@@ -1,147 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The ContractBillingHistoryResponseAttributes model module.
- * @module model/ContractBillingHistoryResponseAttributes
- * @version v1.25.0-alpha
- */
-class ContractBillingHistoryResponseAttributes {
- /**
- * Constructs a new ContractBillingHistoryResponseAttributes.
- * @alias module:model/ContractBillingHistoryResponseAttributes
- */
- constructor() {
-
- ContractBillingHistoryResponseAttributes.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a ContractBillingHistoryResponseAttributes from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractBillingHistoryResponseAttributes} obj Optional instance to populate.
- * @return {module:model/ContractBillingHistoryResponseAttributes} The populated ContractBillingHistoryResponseAttributes instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractBillingHistoryResponseAttributes();
-
- if (data.hasOwnProperty('description')) {
- obj['description'] = ApiClient.convertToType(data['description'], 'String');
- }
- if (data.hasOwnProperty('end_date')) {
- obj['end_date'] = ApiClient.convertToType(data['end_date'], 'String');
- }
- if (data.hasOwnProperty('gpu_count')) {
- obj['gpu_count'] = ApiClient.convertToType(data['gpu_count'], 'Number');
- }
- if (data.hasOwnProperty('gpu_name')) {
- obj['gpu_name'] = ApiClient.convertToType(data['gpu_name'], 'String');
- }
- if (data.hasOwnProperty('id')) {
- obj['id'] = ApiClient.convertToType(data['id'], 'String');
- }
- if (data.hasOwnProperty('infrahub_id')) {
- obj['infrahub_id'] = ApiClient.convertToType(data['infrahub_id'], 'Number');
- }
- if (data.hasOwnProperty('price_per_hour')) {
- obj['price_per_hour'] = ApiClient.convertToType(data['price_per_hour'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractBillingHistoryResponseAttributes.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractBillingHistoryResponseAttributes.
- */
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
- }
- // ensure the json data is a string
- if (data['end_date'] && !(typeof data['end_date'] === 'string' || data['end_date'] instanceof String)) {
- throw new Error("Expected the field `end_date` to be a primitive type in the JSON string but got " + data['end_date']);
- }
- // ensure the json data is a string
- if (data['gpu_name'] && !(typeof data['gpu_name'] === 'string' || data['gpu_name'] instanceof String)) {
- throw new Error("Expected the field `gpu_name` to be a primitive type in the JSON string but got " + data['gpu_name']);
- }
- // ensure the json data is a string
- if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
- throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {String} description
- */
-ContractBillingHistoryResponseAttributes.prototype['description'] = undefined;
-
-/**
- * @member {String} end_date
- */
-ContractBillingHistoryResponseAttributes.prototype['end_date'] = undefined;
-
-/**
- * @member {Number} gpu_count
- */
-ContractBillingHistoryResponseAttributes.prototype['gpu_count'] = undefined;
-
-/**
- * @member {String} gpu_name
- */
-ContractBillingHistoryResponseAttributes.prototype['gpu_name'] = undefined;
-
-/**
- * @member {String} id
- */
-ContractBillingHistoryResponseAttributes.prototype['id'] = undefined;
-
-/**
- * @member {Number} infrahub_id
- */
-ContractBillingHistoryResponseAttributes.prototype['infrahub_id'] = undefined;
-
-/**
- * @member {Number} price_per_hour
- */
-ContractBillingHistoryResponseAttributes.prototype['price_per_hour'] = undefined;
-
-
-
-
-
-
-export default ContractBillingHistoryResponseAttributes;
-
diff --git a/src/model/ContractBillingHistoryResponseModel.js b/src/model/ContractBillingHistoryResponseModel.js
deleted file mode 100644
index e0876633..00000000
--- a/src/model/ContractBillingHistoryResponseModel.js
+++ /dev/null
@@ -1,108 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import ContractBillingHistory from './ContractBillingHistory';
-
-/**
- * The ContractBillingHistoryResponseModel model module.
- * @module model/ContractBillingHistoryResponseModel
- * @version v1.25.0-alpha
- */
-class ContractBillingHistoryResponseModel {
- /**
- * Constructs a new ContractBillingHistoryResponseModel.
- * @alias module:model/ContractBillingHistoryResponseModel
- */
- constructor() {
-
- ContractBillingHistoryResponseModel.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a ContractBillingHistoryResponseModel from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractBillingHistoryResponseModel} obj Optional instance to populate.
- * @return {module:model/ContractBillingHistoryResponseModel} The populated ContractBillingHistoryResponseModel instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractBillingHistoryResponseModel();
-
- if (data.hasOwnProperty('billing_history_contract')) {
- obj['billing_history_contract'] = ContractBillingHistory.constructFromObject(data['billing_history_contract']);
- }
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractBillingHistoryResponseModel.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractBillingHistoryResponseModel.
- */
- static validateJSON(data) {
- // validate the optional field `billing_history_contract`
- if (data['billing_history_contract']) { // data not null
- ContractBillingHistory.validateJSON(data['billing_history_contract']);
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {module:model/ContractBillingHistory} billing_history_contract
- */
-ContractBillingHistoryResponseModel.prototype['billing_history_contract'] = undefined;
-
-/**
- * @member {String} message
- */
-ContractBillingHistoryResponseModel.prototype['message'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-ContractBillingHistoryResponseModel.prototype['status'] = undefined;
-
-
-
-
-
-
-export default ContractBillingHistoryResponseModel;
-
diff --git a/src/model/ContractChangePayload.js b/src/model/ContractChangePayload.js
deleted file mode 100644
index 39912d69..00000000
--- a/src/model/ContractChangePayload.js
+++ /dev/null
@@ -1,138 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import FieldChange from './FieldChange';
-
-/**
- * The ContractChangePayload model module.
- * @module model/ContractChangePayload
- * @version v1.25.0-alpha
- */
-class ContractChangePayload {
- /**
- * Constructs a new ContractChangePayload.
- * @alias module:model/ContractChangePayload
- * @param id {Number} The ID of the contract
- * @param orgId {Number} The ORG ID of the contract
- * @param type {String} Purpose of the change: created, deleted, expired, or updated
- */
- constructor(id, orgId, type) {
-
- ContractChangePayload.initialize(this, id, orgId, type);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj, id, orgId, type) {
- obj['id'] = id;
- obj['org_id'] = orgId;
- obj['type'] = type;
- }
-
- /**
- * Constructs a ContractChangePayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractChangePayload} obj Optional instance to populate.
- * @return {module:model/ContractChangePayload} The populated ContractChangePayload instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractChangePayload();
-
- if (data.hasOwnProperty('changes')) {
- obj['changes'] = ApiClient.convertToType(data['changes'], [FieldChange]);
- }
- if (data.hasOwnProperty('id')) {
- obj['id'] = ApiClient.convertToType(data['id'], 'Number');
- }
- if (data.hasOwnProperty('org_id')) {
- obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number');
- }
- if (data.hasOwnProperty('type')) {
- obj['type'] = ApiClient.convertToType(data['type'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractChangePayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractChangePayload.
- */
- static validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- for (const property of ContractChangePayload.RequiredProperties) {
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- if (data['changes']) { // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['changes'])) {
- throw new Error("Expected the field `changes` to be an array in the JSON data but got " + data['changes']);
- }
- // validate the optional field `changes` (array)
- for (const item of data['changes']) {
- FieldChange.validateJSON(item);
- };
- }
- // ensure the json data is a string
- if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
- throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
- }
-
- return true;
- }
-
-
-}
-
-ContractChangePayload.RequiredProperties = ["id", "org_id", "type"];
-
-/**
- * List of field changes for 'updated' type
- * @member {Array.} changes
- */
-ContractChangePayload.prototype['changes'] = undefined;
-
-/**
- * The ID of the contract
- * @member {Number} id
- */
-ContractChangePayload.prototype['id'] = undefined;
-
-/**
- * The ORG ID of the contract
- * @member {Number} org_id
- */
-ContractChangePayload.prototype['org_id'] = undefined;
-
-/**
- * Purpose of the change: created, deleted, expired, or updated
- * @member {String} type
- */
-ContractChangePayload.prototype['type'] = undefined;
-
-
-
-
-
-
-export default ContractChangePayload;
-
diff --git a/src/model/ContractDiscountPlanFields.js b/src/model/ContractDiscountPlanFields.js
index 9a8f8007..af3abebf 100644
--- a/src/model/ContractDiscountPlanFields.js
+++ b/src/model/ContractDiscountPlanFields.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ContractDiscountPlanFields model module.
* @module model/ContractDiscountPlanFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class ContractDiscountPlanFields {
/**
@@ -65,6 +65,9 @@ class ContractDiscountPlanFields {
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'Number');
}
+ if (data.hasOwnProperty('remaining_count')) {
+ obj['remaining_count'] = ApiClient.convertToType(data['remaining_count'], 'Number');
+ }
if (data.hasOwnProperty('resource_count')) {
obj['resource_count'] = ApiClient.convertToType(data['resource_count'], 'Number');
}
@@ -139,6 +142,11 @@ ContractDiscountPlanFields.prototype['discount_type'] = undefined;
*/
ContractDiscountPlanFields.prototype['id'] = undefined;
+/**
+ * @member {Number} remaining_count
+ */
+ContractDiscountPlanFields.prototype['remaining_count'] = undefined;
+
/**
* @member {Number} resource_count
*/
diff --git a/src/model/ContractEligibleInstanceFields.js b/src/model/ContractEligibleInstanceFields.js
deleted file mode 100644
index 480a8dfb..00000000
--- a/src/model/ContractEligibleInstanceFields.js
+++ /dev/null
@@ -1,151 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The ContractEligibleInstanceFields model module.
- * @module model/ContractEligibleInstanceFields
- * @version v1.25.0-alpha
- */
-class ContractEligibleInstanceFields {
- /**
- * Constructs a new ContractEligibleInstanceFields.
- * @alias module:model/ContractEligibleInstanceFields
- */
- constructor() {
-
- ContractEligibleInstanceFields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a ContractEligibleInstanceFields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractEligibleInstanceFields} obj Optional instance to populate.
- * @return {module:model/ContractEligibleInstanceFields} The populated ContractEligibleInstanceFields instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractEligibleInstanceFields();
-
- if (data.hasOwnProperty('contract_id')) {
- obj['contract_id'] = ApiClient.convertToType(data['contract_id'], 'Number');
- }
- if (data.hasOwnProperty('host')) {
- obj['host'] = ApiClient.convertToType(data['host'], 'String');
- }
- if (data.hasOwnProperty('id')) {
- obj['id'] = ApiClient.convertToType(data['id'], 'Number');
- }
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
- }
- if (data.hasOwnProperty('openstack_id')) {
- obj['openstack_id'] = ApiClient.convertToType(data['openstack_id'], 'String');
- }
- if (data.hasOwnProperty('public_ip')) {
- obj['public_ip'] = ApiClient.convertToType(data['public_ip'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = ApiClient.convertToType(data['status'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractEligibleInstanceFields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractEligibleInstanceFields.
- */
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['host'] && !(typeof data['host'] === 'string' || data['host'] instanceof String)) {
- throw new Error("Expected the field `host` to be a primitive type in the JSON string but got " + data['host']);
- }
- // ensure the json data is a string
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
- }
- // ensure the json data is a string
- if (data['openstack_id'] && !(typeof data['openstack_id'] === 'string' || data['openstack_id'] instanceof String)) {
- throw new Error("Expected the field `openstack_id` to be a primitive type in the JSON string but got " + data['openstack_id']);
- }
- // ensure the json data is a string
- if (data['public_ip'] && !(typeof data['public_ip'] === 'string' || data['public_ip'] instanceof String)) {
- throw new Error("Expected the field `public_ip` to be a primitive type in the JSON string but got " + data['public_ip']);
- }
- // ensure the json data is a string
- if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
- throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Number} contract_id
- */
-ContractEligibleInstanceFields.prototype['contract_id'] = undefined;
-
-/**
- * @member {String} host
- */
-ContractEligibleInstanceFields.prototype['host'] = undefined;
-
-/**
- * @member {Number} id
- */
-ContractEligibleInstanceFields.prototype['id'] = undefined;
-
-/**
- * @member {String} name
- */
-ContractEligibleInstanceFields.prototype['name'] = undefined;
-
-/**
- * @member {String} openstack_id
- */
-ContractEligibleInstanceFields.prototype['openstack_id'] = undefined;
-
-/**
- * @member {String} public_ip
- */
-ContractEligibleInstanceFields.prototype['public_ip'] = undefined;
-
-/**
- * @member {String} status
- */
-ContractEligibleInstanceFields.prototype['status'] = undefined;
-
-
-
-
-
-
-export default ContractEligibleInstanceFields;
-
diff --git a/src/model/ContractEligibleInstancesResponse.js b/src/model/ContractEligibleInstancesResponse.js
deleted file mode 100644
index ee842114..00000000
--- a/src/model/ContractEligibleInstancesResponse.js
+++ /dev/null
@@ -1,122 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import ContractEligibleInstanceFields from './ContractEligibleInstanceFields';
-
-/**
- * The ContractEligibleInstancesResponse model module.
- * @module model/ContractEligibleInstancesResponse
- * @version v1.25.0-alpha
- */
-class ContractEligibleInstancesResponse {
- /**
- * Constructs a new ContractEligibleInstancesResponse.
- * @alias module:model/ContractEligibleInstancesResponse
- */
- constructor() {
-
- ContractEligibleInstancesResponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a ContractEligibleInstancesResponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractEligibleInstancesResponse} obj Optional instance to populate.
- * @return {module:model/ContractEligibleInstancesResponse} The populated ContractEligibleInstancesResponse instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractEligibleInstancesResponse();
-
- if (data.hasOwnProperty('instance_count')) {
- obj['instance_count'] = ApiClient.convertToType(data['instance_count'], 'Number');
- }
- if (data.hasOwnProperty('instances')) {
- obj['instances'] = ApiClient.convertToType(data['instances'], [ContractEligibleInstanceFields]);
- }
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractEligibleInstancesResponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractEligibleInstancesResponse.
- */
- static validateJSON(data) {
- if (data['instances']) { // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['instances'])) {
- throw new Error("Expected the field `instances` to be an array in the JSON data but got " + data['instances']);
- }
- // validate the optional field `instances` (array)
- for (const item of data['instances']) {
- ContractEligibleInstanceFields.validateJSON(item);
- };
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Number} instance_count
- */
-ContractEligibleInstancesResponse.prototype['instance_count'] = undefined;
-
-/**
- * @member {Array.} instances
- */
-ContractEligibleInstancesResponse.prototype['instances'] = undefined;
-
-/**
- * @member {String} message
- */
-ContractEligibleInstancesResponse.prototype['message'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-ContractEligibleInstancesResponse.prototype['status'] = undefined;
-
-
-
-
-
-
-export default ContractEligibleInstancesResponse;
-
diff --git a/src/model/ContractEventCreateModel.js b/src/model/ContractEventCreateModel.js
deleted file mode 100644
index 4779a147..00000000
--- a/src/model/ContractEventCreateModel.js
+++ /dev/null
@@ -1,126 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The ContractEventCreateModel model module.
- * @module model/ContractEventCreateModel
- * @version v1.25.0-alpha
- */
-class ContractEventCreateModel {
- /**
- * Constructs a new ContractEventCreateModel.
- * @alias module:model/ContractEventCreateModel
- * @param message {String} Message for the event
- * @param reason {String} Reason for the event
- * @param type {String} Event type
- */
- constructor(message, reason, type) {
-
- ContractEventCreateModel.initialize(this, message, reason, type);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj, message, reason, type) {
- obj['message'] = message;
- obj['reason'] = reason;
- obj['type'] = type;
- }
-
- /**
- * Constructs a ContractEventCreateModel from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractEventCreateModel} obj Optional instance to populate.
- * @return {module:model/ContractEventCreateModel} The populated ContractEventCreateModel instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractEventCreateModel();
-
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('reason')) {
- obj['reason'] = ApiClient.convertToType(data['reason'], 'String');
- }
- if (data.hasOwnProperty('type')) {
- obj['type'] = ApiClient.convertToType(data['type'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractEventCreateModel.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractEventCreateModel.
- */
- static validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- for (const property of ContractEventCreateModel.RequiredProperties) {
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
- // ensure the json data is a string
- if (data['reason'] && !(typeof data['reason'] === 'string' || data['reason'] instanceof String)) {
- throw new Error("Expected the field `reason` to be a primitive type in the JSON string but got " + data['reason']);
- }
- // ensure the json data is a string
- if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
- throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
- }
-
- return true;
- }
-
-
-}
-
-ContractEventCreateModel.RequiredProperties = ["message", "reason", "type"];
-
-/**
- * Message for the event
- * @member {String} message
- */
-ContractEventCreateModel.prototype['message'] = undefined;
-
-/**
- * Reason for the event
- * @member {String} reason
- */
-ContractEventCreateModel.prototype['reason'] = undefined;
-
-/**
- * Event type
- * @member {String} type
- */
-ContractEventCreateModel.prototype['type'] = undefined;
-
-
-
-
-
-
-export default ContractEventCreateModel;
-
diff --git a/src/model/ContractGPUAllocationGraphResponse.js b/src/model/ContractGPUAllocationGraphResponse.js
index 96de9555..57361a84 100644
--- a/src/model/ContractGPUAllocationGraphResponse.js
+++ b/src/model/ContractGPUAllocationGraphResponse.js
@@ -17,7 +17,7 @@ import Contract from './Contract';
/**
* The ContractGPUAllocationGraphResponse model module.
* @module model/ContractGPUAllocationGraphResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class ContractGPUAllocationGraphResponse {
/**
diff --git a/src/model/ContractInstanceFields.js b/src/model/ContractInstanceFields.js
index 23bd0a7b..d097f38f 100644
--- a/src/model/ContractInstanceFields.js
+++ b/src/model/ContractInstanceFields.js
@@ -12,11 +12,12 @@
*/
import ApiClient from '../ApiClient';
+import ClusterFields from './ClusterFields';
/**
* The ContractInstanceFields model module.
* @module model/ContractInstanceFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class ContractInstanceFields {
/**
@@ -47,6 +48,9 @@ class ContractInstanceFields {
if (data) {
obj = obj || new ContractInstanceFields();
+ if (data.hasOwnProperty('cluster')) {
+ obj['cluster'] = ClusterFields.constructFromObject(data['cluster']);
+ }
if (data.hasOwnProperty('created_at')) {
obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
}
@@ -81,6 +85,10 @@ class ContractInstanceFields {
* @return {boolean} to indicate whether the JSON data is valid with respect to ContractInstanceFields.
*/
static validateJSON(data) {
+ // validate the optional field `cluster`
+ if (data['cluster']) { // data not null
+ ClusterFields.validateJSON(data['cluster']);
+ }
// ensure the json data is a string
if (data['flavor_name'] && !(typeof data['flavor_name'] === 'string' || data['flavor_name'] instanceof String)) {
throw new Error("Expected the field `flavor_name` to be a primitive type in the JSON string but got " + data['flavor_name']);
@@ -102,6 +110,11 @@ class ContractInstanceFields {
+/**
+ * @member {module:model/ClusterFields} cluster
+ */
+ContractInstanceFields.prototype['cluster'] = undefined;
+
/**
* @member {Date} created_at
*/
diff --git a/src/model/ContractInstancesResponse.js b/src/model/ContractInstancesResponse.js
index f6fb018d..264ec234 100644
--- a/src/model/ContractInstancesResponse.js
+++ b/src/model/ContractInstancesResponse.js
@@ -17,7 +17,7 @@ import ContractInstanceFields from './ContractInstanceFields';
/**
* The ContractInstancesResponse model module.
* @module model/ContractInstancesResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class ContractInstancesResponse {
/**
diff --git a/src/model/ContractResourcePayload.js b/src/model/ContractResourcePayload.js
deleted file mode 100644
index 958f64f3..00000000
--- a/src/model/ContractResourcePayload.js
+++ /dev/null
@@ -1,129 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The ContractResourcePayload model module.
- * @module model/ContractResourcePayload
- * @version v1.25.0-alpha
- */
-class ContractResourcePayload {
- /**
- * Constructs a new ContractResourcePayload.
- * @alias module:model/ContractResourcePayload
- * @param discountType {String}
- * @param resourceId {Number}
- */
- constructor(discountType, resourceId) {
-
- ContractResourcePayload.initialize(this, discountType, resourceId);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj, discountType, resourceId) {
- obj['discount_type'] = discountType;
- obj['resource_id'] = resourceId;
- }
-
- /**
- * Constructs a ContractResourcePayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractResourcePayload} obj Optional instance to populate.
- * @return {module:model/ContractResourcePayload} The populated ContractResourcePayload instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractResourcePayload();
-
- if (data.hasOwnProperty('discount_amount')) {
- obj['discount_amount'] = ApiClient.convertToType(data['discount_amount'], 'Number');
- }
- if (data.hasOwnProperty('discount_percent')) {
- obj['discount_percent'] = ApiClient.convertToType(data['discount_percent'], 'Number');
- }
- if (data.hasOwnProperty('discount_type')) {
- obj['discount_type'] = ApiClient.convertToType(data['discount_type'], 'String');
- }
- if (data.hasOwnProperty('resource_count')) {
- obj['resource_count'] = ApiClient.convertToType(data['resource_count'], 'Number');
- }
- if (data.hasOwnProperty('resource_id')) {
- obj['resource_id'] = ApiClient.convertToType(data['resource_id'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractResourcePayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractResourcePayload.
- */
- static validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- for (const property of ContractResourcePayload.RequiredProperties) {
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- if (data['discount_type'] && !(typeof data['discount_type'] === 'string' || data['discount_type'] instanceof String)) {
- throw new Error("Expected the field `discount_type` to be a primitive type in the JSON string but got " + data['discount_type']);
- }
-
- return true;
- }
-
-
-}
-
-ContractResourcePayload.RequiredProperties = ["discount_type", "resource_id"];
-
-/**
- * @member {Number} discount_amount
- */
-ContractResourcePayload.prototype['discount_amount'] = undefined;
-
-/**
- * @member {Number} discount_percent
- */
-ContractResourcePayload.prototype['discount_percent'] = undefined;
-
-/**
- * @member {String} discount_type
- */
-ContractResourcePayload.prototype['discount_type'] = undefined;
-
-/**
- * @member {Number} resource_count
- */
-ContractResourcePayload.prototype['resource_count'] = undefined;
-
-/**
- * @member {Number} resource_id
- */
-ContractResourcePayload.prototype['resource_id'] = undefined;
-
-
-
-
-
-
-export default ContractResourcePayload;
-
diff --git a/src/model/ContractlBillingHistoryResponseMetrics.js b/src/model/ContractlBillingHistoryResponseMetrics.js
deleted file mode 100644
index 29cdba3b..00000000
--- a/src/model/ContractlBillingHistoryResponseMetrics.js
+++ /dev/null
@@ -1,83 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The ContractlBillingHistoryResponseMetrics model module.
- * @module model/ContractlBillingHistoryResponseMetrics
- * @version v1.25.0-alpha
- */
-class ContractlBillingHistoryResponseMetrics {
- /**
- * Constructs a new ContractlBillingHistoryResponseMetrics.
- * @alias module:model/ContractlBillingHistoryResponseMetrics
- */
- constructor() {
-
- ContractlBillingHistoryResponseMetrics.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a ContractlBillingHistoryResponseMetrics from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ContractlBillingHistoryResponseMetrics} obj Optional instance to populate.
- * @return {module:model/ContractlBillingHistoryResponseMetrics} The populated ContractlBillingHistoryResponseMetrics instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ContractlBillingHistoryResponseMetrics();
-
- if (data.hasOwnProperty('incurred_bill')) {
- obj['incurred_bill'] = ApiClient.convertToType(data['incurred_bill'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ContractlBillingHistoryResponseMetrics.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ContractlBillingHistoryResponseMetrics.
- */
- static validateJSON(data) {
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Number} incurred_bill
- */
-ContractlBillingHistoryResponseMetrics.prototype['incurred_bill'] = undefined;
-
-
-
-
-
-
-export default ContractlBillingHistoryResponseMetrics;
-
diff --git a/src/model/CreateClusterNodeFields.js b/src/model/CreateClusterNodeFields.js
new file mode 100644
index 00000000..1a798b4c
--- /dev/null
+++ b/src/model/CreateClusterNodeFields.js
@@ -0,0 +1,128 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The CreateClusterNodeFields model module.
+ * @module model/CreateClusterNodeFields
+ * @version v1.51.1-alpha
+ */
+class CreateClusterNodeFields {
+ /**
+ * Constructs a new CreateClusterNodeFields.
+ * @alias module:model/CreateClusterNodeFields
+ */
+ constructor() {
+
+ CreateClusterNodeFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a CreateClusterNodeFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CreateClusterNodeFields} obj Optional instance to populate.
+ * @return {module:model/CreateClusterNodeFields} The populated CreateClusterNodeFields instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new CreateClusterNodeFields();
+
+ if (data.hasOwnProperty('count')) {
+ obj['count'] = ApiClient.convertToType(data['count'], 'Number');
+ }
+ if (data.hasOwnProperty('node_group')) {
+ obj['node_group'] = ApiClient.convertToType(data['node_group'], 'String');
+ }
+ if (data.hasOwnProperty('role')) {
+ obj['role'] = ApiClient.convertToType(data['role'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to CreateClusterNodeFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to CreateClusterNodeFields.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['node_group'] && !(typeof data['node_group'] === 'string' || data['node_group'] instanceof String)) {
+ throw new Error("Expected the field `node_group` to be a primitive type in the JSON string but got " + data['node_group']);
+ }
+ // ensure the json data is a string
+ if (data['role'] && !(typeof data['role'] === 'string' || data['role'] instanceof String)) {
+ throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data['role']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {Number} count
+ */
+CreateClusterNodeFields.prototype['count'] = undefined;
+
+/**
+ * @member {String} node_group
+ */
+CreateClusterNodeFields.prototype['node_group'] = undefined;
+
+/**
+ * @member {module:model/CreateClusterNodeFields.RoleEnum} role
+ */
+CreateClusterNodeFields.prototype['role'] = undefined;
+
+
+
+
+
+/**
+ * Allowed values for the role property.
+ * @enum {String}
+ * @readonly
+ */
+CreateClusterNodeFields['RoleEnum'] = {
+
+ /**
+ * value: "worker"
+ * @const
+ */
+ "worker": "worker",
+
+ /**
+ * value: "master"
+ * @const
+ */
+ "master": "master"
+};
+
+
+
+export default CreateClusterNodeFields;
+
diff --git a/src/model/CreateClusterNodeGroupPayload.js b/src/model/CreateClusterNodeGroupPayload.js
new file mode 100644
index 00000000..d7ab432d
--- /dev/null
+++ b/src/model/CreateClusterNodeGroupPayload.js
@@ -0,0 +1,176 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The CreateClusterNodeGroupPayload model module.
+ * @module model/CreateClusterNodeGroupPayload
+ * @version v1.51.1-alpha
+ */
+class CreateClusterNodeGroupPayload {
+ /**
+ * Constructs a new CreateClusterNodeGroupPayload.
+ * @alias module:model/CreateClusterNodeGroupPayload
+ * @param flavorName {String}
+ * @param name {String}
+ * @param role {module:model/CreateClusterNodeGroupPayload.RoleEnum}
+ */
+ constructor(flavorName, name, role) {
+
+ CreateClusterNodeGroupPayload.initialize(this, flavorName, name, role);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj, flavorName, name, role) {
+ obj['flavor_name'] = flavorName;
+ obj['name'] = name;
+ obj['role'] = role || 'worker';
+ }
+
+ /**
+ * Constructs a CreateClusterNodeGroupPayload from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/CreateClusterNodeGroupPayload} obj Optional instance to populate.
+ * @return {module:model/CreateClusterNodeGroupPayload} The populated CreateClusterNodeGroupPayload instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new CreateClusterNodeGroupPayload();
+
+ if (data.hasOwnProperty('count')) {
+ obj['count'] = ApiClient.convertToType(data['count'], 'Number');
+ }
+ if (data.hasOwnProperty('firewall_ids')) {
+ obj['firewall_ids'] = ApiClient.convertToType(data['firewall_ids'], ['Number']);
+ }
+ if (data.hasOwnProperty('flavor_name')) {
+ obj['flavor_name'] = ApiClient.convertToType(data['flavor_name'], 'String');
+ }
+ if (data.hasOwnProperty('max_count')) {
+ obj['max_count'] = ApiClient.convertToType(data['max_count'], 'Number');
+ }
+ if (data.hasOwnProperty('min_count')) {
+ obj['min_count'] = ApiClient.convertToType(data['min_count'], 'Number');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = ApiClient.convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('role')) {
+ obj['role'] = ApiClient.convertToType(data['role'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to CreateClusterNodeGroupPayload.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to CreateClusterNodeGroupPayload.
+ */
+ static validateJSON(data) {
+ // check to make sure all required properties are present in the JSON string
+ for (const property of CreateClusterNodeGroupPayload.RequiredProperties) {
+ if (!data.hasOwnProperty(property)) {
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
+ }
+ }
+ // ensure the json data is an array
+ if (!Array.isArray(data['firewall_ids'])) {
+ throw new Error("Expected the field `firewall_ids` to be an array in the JSON data but got " + data['firewall_ids']);
+ }
+ // ensure the json data is a string
+ if (data['flavor_name'] && !(typeof data['flavor_name'] === 'string' || data['flavor_name'] instanceof String)) {
+ throw new Error("Expected the field `flavor_name` to be a primitive type in the JSON string but got " + data['flavor_name']);
+ }
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ // ensure the json data is a string
+ if (data['role'] && !(typeof data['role'] === 'string' || data['role'] instanceof String)) {
+ throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data['role']);
+ }
+
+ return true;
+ }
+
+
+}
+
+CreateClusterNodeGroupPayload.RequiredProperties = ["flavor_name", "name", "role"];
+
+/**
+ * @member {Number} count
+ */
+CreateClusterNodeGroupPayload.prototype['count'] = undefined;
+
+/**
+ * IDs of the firewalls to apply to all nodes in this node group
+ * @member {Array.} firewall_ids
+ */
+CreateClusterNodeGroupPayload.prototype['firewall_ids'] = undefined;
+
+/**
+ * @member {String} flavor_name
+ */
+CreateClusterNodeGroupPayload.prototype['flavor_name'] = undefined;
+
+/**
+ * @member {Number} max_count
+ */
+CreateClusterNodeGroupPayload.prototype['max_count'] = undefined;
+
+/**
+ * @member {Number} min_count
+ */
+CreateClusterNodeGroupPayload.prototype['min_count'] = undefined;
+
+/**
+ * @member {String} name
+ */
+CreateClusterNodeGroupPayload.prototype['name'] = undefined;
+
+/**
+ * @member {module:model/CreateClusterNodeGroupPayload.RoleEnum} role
+ * @default 'worker'
+ */
+CreateClusterNodeGroupPayload.prototype['role'] = 'worker';
+
+
+
+
+
+/**
+ * Allowed values for the role property.
+ * @enum {String}
+ * @readonly
+ */
+CreateClusterNodeGroupPayload['RoleEnum'] = {
+
+ /**
+ * value: "worker"
+ * @const
+ */
+ "worker": "worker"
+};
+
+
+
+export default CreateClusterNodeGroupPayload;
+
diff --git a/src/model/CreateClusterPayload.js b/src/model/CreateClusterPayload.js
index fffe3a69..bf4e95ce 100644
--- a/src/model/CreateClusterPayload.js
+++ b/src/model/CreateClusterPayload.js
@@ -12,28 +12,26 @@
*/
import ApiClient from '../ApiClient';
+import CreateClusterNodeGroupPayload from './CreateClusterNodeGroupPayload';
/**
* The CreateClusterPayload model module.
* @module model/CreateClusterPayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CreateClusterPayload {
/**
* Constructs a new CreateClusterPayload.
* @alias module:model/CreateClusterPayload
* @param environmentName {String}
- * @param imageName {String}
* @param keypairName {String}
* @param kubernetesVersion {String}
* @param masterFlavorName {String}
* @param name {String}
- * @param nodeCount {Number}
- * @param nodeFlavorName {String}
*/
- constructor(environmentName, imageName, keypairName, kubernetesVersion, masterFlavorName, name, nodeCount, nodeFlavorName) {
+ constructor(environmentName, keypairName, kubernetesVersion, masterFlavorName, name) {
- CreateClusterPayload.initialize(this, environmentName, imageName, keypairName, kubernetesVersion, masterFlavorName, name, nodeCount, nodeFlavorName);
+ CreateClusterPayload.initialize(this, environmentName, keypairName, kubernetesVersion, masterFlavorName, name);
}
/**
@@ -41,15 +39,13 @@ class CreateClusterPayload {
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
- static initialize(obj, environmentName, imageName, keypairName, kubernetesVersion, masterFlavorName, name, nodeCount, nodeFlavorName) {
+ static initialize(obj, environmentName, keypairName, kubernetesVersion, masterFlavorName, name) {
+ obj['deployment_mode'] = 'full';
obj['environment_name'] = environmentName;
- obj['image_name'] = imageName;
obj['keypair_name'] = keypairName;
obj['kubernetes_version'] = kubernetesVersion;
obj['master_flavor_name'] = masterFlavorName;
obj['name'] = name;
- obj['node_count'] = nodeCount;
- obj['node_flavor_name'] = nodeFlavorName;
}
/**
@@ -63,18 +59,21 @@ class CreateClusterPayload {
if (data) {
obj = obj || new CreateClusterPayload();
+ if (data.hasOwnProperty('deployment_mode')) {
+ obj['deployment_mode'] = ApiClient.convertToType(data['deployment_mode'], 'String');
+ }
if (data.hasOwnProperty('environment_name')) {
obj['environment_name'] = ApiClient.convertToType(data['environment_name'], 'String');
}
- if (data.hasOwnProperty('image_name')) {
- obj['image_name'] = ApiClient.convertToType(data['image_name'], 'String');
- }
if (data.hasOwnProperty('keypair_name')) {
obj['keypair_name'] = ApiClient.convertToType(data['keypair_name'], 'String');
}
if (data.hasOwnProperty('kubernetes_version')) {
obj['kubernetes_version'] = ApiClient.convertToType(data['kubernetes_version'], 'String');
}
+ if (data.hasOwnProperty('master_count')) {
+ obj['master_count'] = ApiClient.convertToType(data['master_count'], 'Number');
+ }
if (data.hasOwnProperty('master_flavor_name')) {
obj['master_flavor_name'] = ApiClient.convertToType(data['master_flavor_name'], 'String');
}
@@ -87,6 +86,9 @@ class CreateClusterPayload {
if (data.hasOwnProperty('node_flavor_name')) {
obj['node_flavor_name'] = ApiClient.convertToType(data['node_flavor_name'], 'String');
}
+ if (data.hasOwnProperty('node_groups')) {
+ obj['node_groups'] = ApiClient.convertToType(data['node_groups'], [CreateClusterNodeGroupPayload]);
+ }
}
return obj;
}
@@ -104,12 +106,12 @@ class CreateClusterPayload {
}
}
// ensure the json data is a string
- if (data['environment_name'] && !(typeof data['environment_name'] === 'string' || data['environment_name'] instanceof String)) {
- throw new Error("Expected the field `environment_name` to be a primitive type in the JSON string but got " + data['environment_name']);
+ if (data['deployment_mode'] && !(typeof data['deployment_mode'] === 'string' || data['deployment_mode'] instanceof String)) {
+ throw new Error("Expected the field `deployment_mode` to be a primitive type in the JSON string but got " + data['deployment_mode']);
}
// ensure the json data is a string
- if (data['image_name'] && !(typeof data['image_name'] === 'string' || data['image_name'] instanceof String)) {
- throw new Error("Expected the field `image_name` to be a primitive type in the JSON string but got " + data['image_name']);
+ if (data['environment_name'] && !(typeof data['environment_name'] === 'string' || data['environment_name'] instanceof String)) {
+ throw new Error("Expected the field `environment_name` to be a primitive type in the JSON string but got " + data['environment_name']);
}
// ensure the json data is a string
if (data['keypair_name'] && !(typeof data['keypair_name'] === 'string' || data['keypair_name'] instanceof String)) {
@@ -131,6 +133,16 @@ class CreateClusterPayload {
if (data['node_flavor_name'] && !(typeof data['node_flavor_name'] === 'string' || data['node_flavor_name'] instanceof String)) {
throw new Error("Expected the field `node_flavor_name` to be a primitive type in the JSON string but got " + data['node_flavor_name']);
}
+ if (data['node_groups']) { // data not null
+ // ensure the json data is an array
+ if (!Array.isArray(data['node_groups'])) {
+ throw new Error("Expected the field `node_groups` to be an array in the JSON data but got " + data['node_groups']);
+ }
+ // validate the optional field `node_groups` (array)
+ for (const item of data['node_groups']) {
+ CreateClusterNodeGroupPayload.validateJSON(item);
+ };
+ }
return true;
}
@@ -138,17 +150,18 @@ class CreateClusterPayload {
}
-CreateClusterPayload.RequiredProperties = ["environment_name", "image_name", "keypair_name", "kubernetes_version", "master_flavor_name", "name", "node_count", "node_flavor_name"];
+CreateClusterPayload.RequiredProperties = ["environment_name", "keypair_name", "kubernetes_version", "master_flavor_name", "name"];
/**
- * @member {String} environment_name
+ * @member {module:model/CreateClusterPayload.DeploymentModeEnum} deployment_mode
+ * @default 'full'
*/
-CreateClusterPayload.prototype['environment_name'] = undefined;
+CreateClusterPayload.prototype['deployment_mode'] = 'full';
/**
- * @member {String} image_name
+ * @member {String} environment_name
*/
-CreateClusterPayload.prototype['image_name'] = undefined;
+CreateClusterPayload.prototype['environment_name'] = undefined;
/**
* @member {String} keypair_name
@@ -160,6 +173,11 @@ CreateClusterPayload.prototype['keypair_name'] = undefined;
*/
CreateClusterPayload.prototype['kubernetes_version'] = undefined;
+/**
+ * @member {Number} master_count
+ */
+CreateClusterPayload.prototype['master_count'] = undefined;
+
/**
* @member {String} master_flavor_name
*/
@@ -180,9 +198,35 @@ CreateClusterPayload.prototype['node_count'] = undefined;
*/
CreateClusterPayload.prototype['node_flavor_name'] = undefined;
+/**
+ * @member {Array.} node_groups
+ */
+CreateClusterPayload.prototype['node_groups'] = undefined;
+
+
+/**
+ * Allowed values for the deployment_mode property.
+ * @enum {String}
+ * @readonly
+ */
+CreateClusterPayload['DeploymentModeEnum'] = {
+
+ /**
+ * value: "full"
+ * @const
+ */
+ "full": "full",
+
+ /**
+ * value: "standard"
+ * @const
+ */
+ "standard": "standard"
+};
+
export default CreateClusterPayload;
diff --git a/src/model/CreateContractFields.js b/src/model/CreateContractFields.js
deleted file mode 100644
index 922cc8c5..00000000
--- a/src/model/CreateContractFields.js
+++ /dev/null
@@ -1,154 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import ContractDiscountPlanFields from './ContractDiscountPlanFields';
-
-/**
- * The CreateContractFields model module.
- * @module model/CreateContractFields
- * @version v1.25.0-alpha
- */
-class CreateContractFields {
- /**
- * Constructs a new CreateContractFields.
- * @alias module:model/CreateContractFields
- */
- constructor() {
-
- CreateContractFields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a CreateContractFields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateContractFields} obj Optional instance to populate.
- * @return {module:model/CreateContractFields} The populated CreateContractFields instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateContractFields();
-
- if (data.hasOwnProperty('created_at')) {
- obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
- }
- if (data.hasOwnProperty('description')) {
- obj['description'] = ApiClient.convertToType(data['description'], 'String');
- }
- if (data.hasOwnProperty('discount_plans')) {
- obj['discount_plans'] = ApiClient.convertToType(data['discount_plans'], [ContractDiscountPlanFields]);
- }
- if (data.hasOwnProperty('end_date')) {
- obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date');
- }
- if (data.hasOwnProperty('expiration_policy')) {
- obj['expiration_policy'] = ApiClient.convertToType(data['expiration_policy'], 'Number');
- }
- if (data.hasOwnProperty('id')) {
- obj['id'] = ApiClient.convertToType(data['id'], 'Number');
- }
- if (data.hasOwnProperty('org_id')) {
- obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number');
- }
- if (data.hasOwnProperty('start_date')) {
- obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateContractFields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateContractFields.
- */
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
- }
- if (data['discount_plans']) { // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['discount_plans'])) {
- throw new Error("Expected the field `discount_plans` to be an array in the JSON data but got " + data['discount_plans']);
- }
- // validate the optional field `discount_plans` (array)
- for (const item of data['discount_plans']) {
- ContractDiscountPlanFields.validateJSON(item);
- };
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Date} created_at
- */
-CreateContractFields.prototype['created_at'] = undefined;
-
-/**
- * @member {String} description
- */
-CreateContractFields.prototype['description'] = undefined;
-
-/**
- * @member {Array.} discount_plans
- */
-CreateContractFields.prototype['discount_plans'] = undefined;
-
-/**
- * @member {Date} end_date
- */
-CreateContractFields.prototype['end_date'] = undefined;
-
-/**
- * @member {Number} expiration_policy
- */
-CreateContractFields.prototype['expiration_policy'] = undefined;
-
-/**
- * @member {Number} id
- */
-CreateContractFields.prototype['id'] = undefined;
-
-/**
- * @member {Number} org_id
- */
-CreateContractFields.prototype['org_id'] = undefined;
-
-/**
- * @member {Date} start_date
- */
-CreateContractFields.prototype['start_date'] = undefined;
-
-
-
-
-
-
-export default CreateContractFields;
-
diff --git a/src/model/CreateContractPayload.js b/src/model/CreateContractPayload.js
deleted file mode 100644
index 32e834e4..00000000
--- a/src/model/CreateContractPayload.js
+++ /dev/null
@@ -1,150 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import ContractResourcePayload from './ContractResourcePayload';
-
-/**
- * The CreateContractPayload model module.
- * @module model/CreateContractPayload
- * @version v1.25.0-alpha
- */
-class CreateContractPayload {
- /**
- * Constructs a new CreateContractPayload.
- * @alias module:model/CreateContractPayload
- * @param discountResources {Array.}
- * @param expirationPolicy {Number}
- * @param orgId {Number}
- */
- constructor(discountResources, expirationPolicy, orgId) {
-
- CreateContractPayload.initialize(this, discountResources, expirationPolicy, orgId);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj, discountResources, expirationPolicy, orgId) {
- obj['discount_resources'] = discountResources;
- obj['expiration_policy'] = expirationPolicy;
- obj['org_id'] = orgId;
- }
-
- /**
- * Constructs a CreateContractPayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateContractPayload} obj Optional instance to populate.
- * @return {module:model/CreateContractPayload} The populated CreateContractPayload instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateContractPayload();
-
- if (data.hasOwnProperty('description')) {
- obj['description'] = ApiClient.convertToType(data['description'], 'String');
- }
- if (data.hasOwnProperty('discount_resources')) {
- obj['discount_resources'] = ApiClient.convertToType(data['discount_resources'], [ContractResourcePayload]);
- }
- if (data.hasOwnProperty('end_date')) {
- obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date');
- }
- if (data.hasOwnProperty('expiration_policy')) {
- obj['expiration_policy'] = ApiClient.convertToType(data['expiration_policy'], 'Number');
- }
- if (data.hasOwnProperty('org_id')) {
- obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number');
- }
- if (data.hasOwnProperty('start_date')) {
- obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateContractPayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateContractPayload.
- */
- static validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- for (const property of CreateContractPayload.RequiredProperties) {
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
- }
- if (data['discount_resources']) { // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['discount_resources'])) {
- throw new Error("Expected the field `discount_resources` to be an array in the JSON data but got " + data['discount_resources']);
- }
- // validate the optional field `discount_resources` (array)
- for (const item of data['discount_resources']) {
- ContractResourcePayload.validateJSON(item);
- };
- }
-
- return true;
- }
-
-
-}
-
-CreateContractPayload.RequiredProperties = ["discount_resources", "expiration_policy", "org_id"];
-
-/**
- * @member {String} description
- */
-CreateContractPayload.prototype['description'] = undefined;
-
-/**
- * @member {Array.} discount_resources
- */
-CreateContractPayload.prototype['discount_resources'] = undefined;
-
-/**
- * @member {Date} end_date
- */
-CreateContractPayload.prototype['end_date'] = undefined;
-
-/**
- * @member {Number} expiration_policy
- */
-CreateContractPayload.prototype['expiration_policy'] = undefined;
-
-/**
- * @member {Number} org_id
- */
-CreateContractPayload.prototype['org_id'] = undefined;
-
-/**
- * @member {Date} start_date
- */
-CreateContractPayload.prototype['start_date'] = undefined;
-
-
-
-
-
-
-export default CreateContractPayload;
-
diff --git a/src/model/CreateDiscountResponse.js b/src/model/CreateDiscountResponse.js
deleted file mode 100644
index c5bc0a57..00000000
--- a/src/model/CreateDiscountResponse.js
+++ /dev/null
@@ -1,108 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import InsertDiscountPlanFields from './InsertDiscountPlanFields';
-
-/**
- * The CreateDiscountResponse model module.
- * @module model/CreateDiscountResponse
- * @version v1.25.0-alpha
- */
-class CreateDiscountResponse {
- /**
- * Constructs a new CreateDiscountResponse.
- * @alias module:model/CreateDiscountResponse
- */
- constructor() {
-
- CreateDiscountResponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a CreateDiscountResponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateDiscountResponse} obj Optional instance to populate.
- * @return {module:model/CreateDiscountResponse} The populated CreateDiscountResponse instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateDiscountResponse();
-
- if (data.hasOwnProperty('discount_plan')) {
- obj['discount_plan'] = InsertDiscountPlanFields.constructFromObject(data['discount_plan']);
- }
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateDiscountResponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateDiscountResponse.
- */
- static validateJSON(data) {
- // validate the optional field `discount_plan`
- if (data['discount_plan']) { // data not null
- InsertDiscountPlanFields.validateJSON(data['discount_plan']);
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {module:model/InsertDiscountPlanFields} discount_plan
- */
-CreateDiscountResponse.prototype['discount_plan'] = undefined;
-
-/**
- * @member {String} message
- */
-CreateDiscountResponse.prototype['message'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-CreateDiscountResponse.prototype['status'] = undefined;
-
-
-
-
-
-
-export default CreateDiscountResponse;
-
diff --git a/src/model/CreateDiscountsPayload.js b/src/model/CreateDiscountsPayload.js
deleted file mode 100644
index ff687efa..00000000
--- a/src/model/CreateDiscountsPayload.js
+++ /dev/null
@@ -1,153 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import CustomerPayload from './CustomerPayload';
-import DiscountResourcePayload from './DiscountResourcePayload';
-
-/**
- * The CreateDiscountsPayload model module.
- * @module model/CreateDiscountsPayload
- * @version v1.25.0-alpha
- */
-class CreateDiscountsPayload {
- /**
- * Constructs a new CreateDiscountsPayload.
- * @alias module:model/CreateDiscountsPayload
- * @param customers {Array.}
- * @param discountResources {Array.}
- * @param discountStatus {String}
- */
- constructor(customers, discountResources, discountStatus) {
-
- CreateDiscountsPayload.initialize(this, customers, discountResources, discountStatus);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj, customers, discountResources, discountStatus) {
- obj['customers'] = customers;
- obj['discount_resources'] = discountResources;
- obj['discount_status'] = discountStatus;
- }
-
- /**
- * Constructs a CreateDiscountsPayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateDiscountsPayload} obj Optional instance to populate.
- * @return {module:model/CreateDiscountsPayload} The populated CreateDiscountsPayload instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateDiscountsPayload();
-
- if (data.hasOwnProperty('customers')) {
- obj['customers'] = ApiClient.convertToType(data['customers'], [CustomerPayload]);
- }
- if (data.hasOwnProperty('discount_resources')) {
- obj['discount_resources'] = ApiClient.convertToType(data['discount_resources'], [DiscountResourcePayload]);
- }
- if (data.hasOwnProperty('discount_status')) {
- obj['discount_status'] = ApiClient.convertToType(data['discount_status'], 'String');
- }
- if (data.hasOwnProperty('end_date')) {
- obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date');
- }
- if (data.hasOwnProperty('start_date')) {
- obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateDiscountsPayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateDiscountsPayload.
- */
- static validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- for (const property of CreateDiscountsPayload.RequiredProperties) {
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- if (data['customers']) { // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['customers'])) {
- throw new Error("Expected the field `customers` to be an array in the JSON data but got " + data['customers']);
- }
- // validate the optional field `customers` (array)
- for (const item of data['customers']) {
- CustomerPayload.validateJSON(item);
- };
- }
- if (data['discount_resources']) { // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['discount_resources'])) {
- throw new Error("Expected the field `discount_resources` to be an array in the JSON data but got " + data['discount_resources']);
- }
- // validate the optional field `discount_resources` (array)
- for (const item of data['discount_resources']) {
- DiscountResourcePayload.validateJSON(item);
- };
- }
- // ensure the json data is a string
- if (data['discount_status'] && !(typeof data['discount_status'] === 'string' || data['discount_status'] instanceof String)) {
- throw new Error("Expected the field `discount_status` to be a primitive type in the JSON string but got " + data['discount_status']);
- }
-
- return true;
- }
-
-
-}
-
-CreateDiscountsPayload.RequiredProperties = ["customers", "discount_resources", "discount_status"];
-
-/**
- * @member {Array.} customers
- */
-CreateDiscountsPayload.prototype['customers'] = undefined;
-
-/**
- * @member {Array.} discount_resources
- */
-CreateDiscountsPayload.prototype['discount_resources'] = undefined;
-
-/**
- * @member {String} discount_status
- */
-CreateDiscountsPayload.prototype['discount_status'] = undefined;
-
-/**
- * @member {Date} end_date
- */
-CreateDiscountsPayload.prototype['end_date'] = undefined;
-
-/**
- * @member {Date} start_date
- */
-CreateDiscountsPayload.prototype['start_date'] = undefined;
-
-
-
-
-
-
-export default CreateDiscountsPayload;
-
diff --git a/src/model/CreateEnvironment.js b/src/model/CreateEnvironment.js
index ac22d99e..3efc2416 100644
--- a/src/model/CreateEnvironment.js
+++ b/src/model/CreateEnvironment.js
@@ -16,14 +16,14 @@ import ApiClient from '../ApiClient';
/**
* The CreateEnvironment model module.
* @module model/CreateEnvironment
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CreateEnvironment {
/**
* Constructs a new CreateEnvironment.
* @alias module:model/CreateEnvironment
* @param name {String} The name of the environment being created.
- * @param region {String} The geographic location of the data center where the environment is being created. To learn more about regions, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/regions).
+ * @param region {String} The geographic location of the data center where the environment is being created. To learn more about regions, [**click here**]({Config.INFRAHUB_DOCS_BASE}/docs/features/regions).
*/
constructor(name, region) {
@@ -97,7 +97,7 @@ CreateEnvironment.RequiredProperties = ["name", "region"];
CreateEnvironment.prototype['name'] = undefined;
/**
- * The geographic location of the data center where the environment is being created. To learn more about regions, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/regions).
+ * The geographic location of the data center where the environment is being created. To learn more about regions, [**click here**]({Config.INFRAHUB_DOCS_BASE}/docs/features/regions).
* @member {String} region
*/
CreateEnvironment.prototype['region'] = undefined;
diff --git a/src/model/CreateFirewallPayload.js b/src/model/CreateFirewallPayload.js
index ce414935..8a952a5e 100644
--- a/src/model/CreateFirewallPayload.js
+++ b/src/model/CreateFirewallPayload.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The CreateFirewallPayload model module.
* @module model/CreateFirewallPayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CreateFirewallPayload {
/**
diff --git a/src/model/CreateFirewallRulePayload.js b/src/model/CreateFirewallRulePayload.js
index 606aa8b9..70fbc098 100644
--- a/src/model/CreateFirewallRulePayload.js
+++ b/src/model/CreateFirewallRulePayload.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The CreateFirewallRulePayload model module.
* @module model/CreateFirewallRulePayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CreateFirewallRulePayload {
/**
diff --git a/src/model/CreateGPU.js b/src/model/CreateGPU.js
deleted file mode 100644
index c482ad81..00000000
--- a/src/model/CreateGPU.js
+++ /dev/null
@@ -1,120 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The CreateGPU model module.
- * @module model/CreateGPU
- * @version v1.25.0-alpha
- */
-class CreateGPU {
- /**
- * Constructs a new CreateGPU.
- * @alias module:model/CreateGPU
- * @param name {String}
- */
- constructor(name) {
-
- CreateGPU.initialize(this, name);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj, name) {
- obj['name'] = name;
- }
-
- /**
- * Constructs a CreateGPU from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateGPU} obj Optional instance to populate.
- * @return {module:model/CreateGPU} The populated CreateGPU instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateGPU();
-
- if (data.hasOwnProperty('example_metadata')) {
- obj['example_metadata'] = ApiClient.convertToType(data['example_metadata'], 'String');
- }
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
- }
- if (data.hasOwnProperty('regions')) {
- obj['regions'] = ApiClient.convertToType(data['regions'], ['String']);
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateGPU.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateGPU.
- */
- static validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- for (const property of CreateGPU.RequiredProperties) {
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- if (data['example_metadata'] && !(typeof data['example_metadata'] === 'string' || data['example_metadata'] instanceof String)) {
- throw new Error("Expected the field `example_metadata` to be a primitive type in the JSON string but got " + data['example_metadata']);
- }
- // ensure the json data is a string
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
- }
- // ensure the json data is an array
- if (!Array.isArray(data['regions'])) {
- throw new Error("Expected the field `regions` to be an array in the JSON data but got " + data['regions']);
- }
-
- return true;
- }
-
-
-}
-
-CreateGPU.RequiredProperties = ["name"];
-
-/**
- * A valid JSON string.
- * @member {String} example_metadata
- */
-CreateGPU.prototype['example_metadata'] = undefined;
-
-/**
- * @member {String} name
- */
-CreateGPU.prototype['name'] = undefined;
-
-/**
- * @member {Array.} regions
- */
-CreateGPU.prototype['regions'] = undefined;
-
-
-
-
-
-
-export default CreateGPU;
-
diff --git a/src/model/CreateImage.js b/src/model/CreateImage.js
index cef249bd..b3a01f40 100644
--- a/src/model/CreateImage.js
+++ b/src/model/CreateImage.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The CreateImage model module.
* @module model/CreateImage
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CreateImage {
/**
diff --git a/src/model/CreateImagePayload.js b/src/model/CreateImagePayload.js
index 143a2d57..faed8680 100644
--- a/src/model/CreateImagePayload.js
+++ b/src/model/CreateImagePayload.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The CreateImagePayload model module.
* @module model/CreateImagePayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CreateImagePayload {
/**
diff --git a/src/model/CreateInstancesPayload.js b/src/model/CreateInstancesPayload.js
index e53e24e5..72803827 100644
--- a/src/model/CreateInstancesPayload.js
+++ b/src/model/CreateInstancesPayload.js
@@ -19,16 +19,16 @@ import ProfileObjectFields from './ProfileObjectFields';
/**
* The CreateInstancesPayload model module.
* @module model/CreateInstancesPayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CreateInstancesPayload {
/**
* Constructs a new CreateInstancesPayload.
* @alias module:model/CreateInstancesPayload
* @param count {Number} The number of virtual machines to be created.
- * @param environmentName {String} The name of the [environment](https://infrahub-doc.nexgencloud.com/docs/features/environments-available-features) in which the virtual machine is to be created.
- * @param flavorName {String} The name of the GPU hardware configuration ([flavor](https://infrahub-doc.nexgencloud.com/docs/hardware/flavors)) for the virtual machines being created.
- * @param keyName {String} The name of the existing SSH key pair to be used for secure access to the virtual machine. For additional information on SSH key pairs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/getting-started/create-keypair).
+ * @param environmentName {String} The name of the [environment](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/) in which the virtual machine is to be created.
+ * @param flavorName {String} The name of the GPU hardware configuration ([flavor](https://docs.hyperstack.cloud/docs/hardware/flavors)) for the virtual machines being created.
+ * @param keyName {String} The name of the existing SSH key pair to be used for secure access to the virtual machine. For additional information on SSH key pairs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/keypairs/).
* @param name {String} The name of the virtual machine being created.
*/
constructor(count, environmentName, flavorName, keyName, name) {
@@ -189,13 +189,13 @@ class CreateInstancesPayload {
CreateInstancesPayload.RequiredProperties = ["count", "environment_name", "flavor_name", "key_name", "name"];
/**
- * When this field is set to `true`, it attaches a [public IP address](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/public-ip)to the virtual machine, enabling internet accessibility.
+ * When this field is set to `true`, it attaches a [public IP address](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/floating-ip/) to the virtual machine, enabling internet accessibility.
* @member {Boolean} assign_floating_ip
*/
CreateInstancesPayload.prototype['assign_floating_ip'] = undefined;
/**
- * An optional URL where actions performed on the virtual machine will be sent. For additional information on event callbacks, [**click here**](https://infrahub-doc.nexgencloud.com/docs/features/webhooks-callbacks).
+ * An optional URL where actions performed on the virtual machine will be sent. For additional information on event callbacks, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/).
* @member {String} callback_url
*/
CreateInstancesPayload.prototype['callback_url'] = undefined;
@@ -220,7 +220,7 @@ CreateInstancesPayload.prototype['create_bootable_volume'] = undefined;
CreateInstancesPayload.prototype['enable_port_randomization'] = true;
/**
- * The name of the [environment](https://infrahub-doc.nexgencloud.com/docs/features/environments-available-features) in which the virtual machine is to be created.
+ * The name of the [environment](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/) in which the virtual machine is to be created.
* @member {String} environment_name
*/
CreateInstancesPayload.prototype['environment_name'] = undefined;
@@ -231,19 +231,19 @@ CreateInstancesPayload.prototype['environment_name'] = undefined;
CreateInstancesPayload.prototype['flavor'] = undefined;
/**
- * The name of the GPU hardware configuration ([flavor](https://infrahub-doc.nexgencloud.com/docs/hardware/flavors)) for the virtual machines being created.
+ * The name of the GPU hardware configuration ([flavor](https://docs.hyperstack.cloud/docs/hardware/flavors)) for the virtual machines being created.
* @member {String} flavor_name
*/
CreateInstancesPayload.prototype['flavor_name'] = undefined;
/**
- * The [operating system (OS) image](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/images) name designated for installation on the virtual machine.It also accepts custom, private images, created from [existing snapshots](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/custom-images).
+ * The [operating system (OS) image](https://docs.hyperstack.cloud/docs/virtual-machines/images) name designated for installation on the virtual machine.It also accepts custom, private images, created from [existing snapshots](https://docs.hyperstack.cloud/docs/virtual-machines/custom-images).
* @member {String} image_name
*/
CreateInstancesPayload.prototype['image_name'] = undefined;
/**
- * The name of the existing SSH key pair to be used for secure access to the virtual machine. For additional information on SSH key pairs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/getting-started/create-keypair).
+ * The name of the existing SSH key pair to be used for secure access to the virtual machine. For additional information on SSH key pairs, [**click here**](https://docs.hyperstack.cloud/docs/api-reference/core-resources/keypairs/).
* @member {String} key_name
*/
CreateInstancesPayload.prototype['key_name'] = undefined;
@@ -270,7 +270,7 @@ CreateInstancesPayload.prototype['profile'] = undefined;
CreateInstancesPayload.prototype['security_rules'] = undefined;
/**
- * Optional initialization configuration commands to manage the configuration of a virtual machine at launch using cloud-init scripts. For more information about custom VM configuration using cloud-init, [**click here**](https://infrahub-doc.nexgencloud.com/docs/virtual-machines/initialization-configuration).
+ * Optional initialization configuration commands to manage the configuration of a virtual machine at launch using cloud-init scripts. For more information about custom VM configuration using cloud-init, [**click here**](https://docs.hyperstack.cloud/docs/virtual-machines/initialization-configuration).
* @member {String} user_data
*/
CreateInstancesPayload.prototype['user_data'] = undefined;
diff --git a/src/model/CreateInstancesResponse.js b/src/model/CreateInstancesResponse.js
index 5bd813a6..75695df4 100644
--- a/src/model/CreateInstancesResponse.js
+++ b/src/model/CreateInstancesResponse.js
@@ -17,7 +17,7 @@ import InstanceFields from './InstanceFields';
/**
* The CreateInstancesResponse model module.
* @module model/CreateInstancesResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CreateInstancesResponse {
/**
diff --git a/src/model/CreateProfilePayload.js b/src/model/CreateProfilePayload.js
index b0258bb1..4d507e20 100644
--- a/src/model/CreateProfilePayload.js
+++ b/src/model/CreateProfilePayload.js
@@ -16,13 +16,13 @@ import ApiClient from '../ApiClient';
/**
* The CreateProfilePayload model module.
* @module model/CreateProfilePayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CreateProfilePayload {
/**
* Constructs a new CreateProfilePayload.
* @alias module:model/CreateProfilePayload
- * @param data {Object.} The data object which contains the configuration of the virtual machine profile being created.
+ * @param data {Object.} The data object containing the configuration details of the virtual machine profile being created.
* @param name {String} The name of the profile being created.
*/
constructor(data, name) {
@@ -94,7 +94,7 @@ class CreateProfilePayload {
CreateProfilePayload.RequiredProperties = ["data", "name"];
/**
- * The data object which contains the configuration of the virtual machine profile being created.
+ * The data object containing the configuration details of the virtual machine profile being created.
* @member {Object.} data
*/
CreateProfilePayload.prototype['data'] = undefined;
diff --git a/src/model/CreateProfileResponse.js b/src/model/CreateProfileResponse.js
index 748d5406..5d39164a 100644
--- a/src/model/CreateProfileResponse.js
+++ b/src/model/CreateProfileResponse.js
@@ -17,7 +17,7 @@ import ProfileFields from './ProfileFields';
/**
* The CreateProfileResponse model module.
* @module model/CreateProfileResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CreateProfileResponse {
/**
diff --git a/src/model/CreateSecurityRulePayload.js b/src/model/CreateSecurityRulePayload.js
index 0ef3d192..32ef84ad 100644
--- a/src/model/CreateSecurityRulePayload.js
+++ b/src/model/CreateSecurityRulePayload.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The CreateSecurityRulePayload model module.
* @module model/CreateSecurityRulePayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CreateSecurityRulePayload {
/**
diff --git a/src/model/CreateSnapshotPayload.js b/src/model/CreateSnapshotPayload.js
index b2878040..ccbd3d0c 100644
--- a/src/model/CreateSnapshotPayload.js
+++ b/src/model/CreateSnapshotPayload.js
@@ -16,19 +16,18 @@ import ApiClient from '../ApiClient';
/**
* The CreateSnapshotPayload model module.
* @module model/CreateSnapshotPayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CreateSnapshotPayload {
/**
* Constructs a new CreateSnapshotPayload.
* @alias module:model/CreateSnapshotPayload
* @param description {String} description
- * @param isImage {Boolean} Indicates if the snapshot is an image
* @param name {String} Snapshot name
*/
- constructor(description, isImage, name) {
+ constructor(description, name) {
- CreateSnapshotPayload.initialize(this, description, isImage, name);
+ CreateSnapshotPayload.initialize(this, description, name);
}
/**
@@ -36,9 +35,8 @@ class CreateSnapshotPayload {
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
- static initialize(obj, description, isImage, name) {
+ static initialize(obj, description, name) {
obj['description'] = description;
- obj['is_image'] = isImage;
obj['name'] = name;
}
@@ -56,9 +54,6 @@ class CreateSnapshotPayload {
if (data.hasOwnProperty('description')) {
obj['description'] = ApiClient.convertToType(data['description'], 'String');
}
- if (data.hasOwnProperty('is_image')) {
- obj['is_image'] = ApiClient.convertToType(data['is_image'], 'Boolean');
- }
if (data.hasOwnProperty('labels')) {
obj['labels'] = ApiClient.convertToType(data['labels'], ['String']);
}
@@ -100,7 +95,7 @@ class CreateSnapshotPayload {
}
-CreateSnapshotPayload.RequiredProperties = ["description", "is_image", "name"];
+CreateSnapshotPayload.RequiredProperties = ["description", "name"];
/**
* description
@@ -108,12 +103,6 @@ CreateSnapshotPayload.RequiredProperties = ["description", "is_image", "name"];
*/
CreateSnapshotPayload.prototype['description'] = undefined;
-/**
- * Indicates if the snapshot is an image
- * @member {Boolean} is_image
- */
-CreateSnapshotPayload.prototype['is_image'] = undefined;
-
/**
* Labels associated with snapshot
* @member {Array.} labels
diff --git a/src/model/CreateSnapshotResponse.js b/src/model/CreateSnapshotResponse.js
index 95f639b1..6b645aa8 100644
--- a/src/model/CreateSnapshotResponse.js
+++ b/src/model/CreateSnapshotResponse.js
@@ -17,7 +17,7 @@ import SnapshotFields from './SnapshotFields';
/**
* The CreateSnapshotResponse model module.
* @module model/CreateSnapshotResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CreateSnapshotResponse {
/**
diff --git a/src/model/CreateUpdateComplianceResponse.js b/src/model/CreateUpdateComplianceResponse.js
index eb1b6703..0d26ae40 100644
--- a/src/model/CreateUpdateComplianceResponse.js
+++ b/src/model/CreateUpdateComplianceResponse.js
@@ -17,7 +17,7 @@ import ComplianceModelFields from './ComplianceModelFields';
/**
* The CreateUpdateComplianceResponse model module.
* @module model/CreateUpdateComplianceResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CreateUpdateComplianceResponse {
/**
diff --git a/src/model/CreateUpdatePermissionPayload.js b/src/model/CreateUpdatePermissionPayload.js
deleted file mode 100644
index 3dde9cca..00000000
--- a/src/model/CreateUpdatePermissionPayload.js
+++ /dev/null
@@ -1,137 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The CreateUpdatePermissionPayload model module.
- * @module model/CreateUpdatePermissionPayload
- * @version v1.25.0-alpha
- */
-class CreateUpdatePermissionPayload {
- /**
- * Constructs a new CreateUpdatePermissionPayload.
- * @alias module:model/CreateUpdatePermissionPayload
- * @param endpoint {String}
- * @param method {String}
- * @param permission {String}
- * @param resource {String}
- */
- constructor(endpoint, method, permission, resource) {
-
- CreateUpdatePermissionPayload.initialize(this, endpoint, method, permission, resource);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj, endpoint, method, permission, resource) {
- obj['endpoint'] = endpoint;
- obj['method'] = method;
- obj['permission'] = permission;
- obj['resource'] = resource;
- }
-
- /**
- * Constructs a CreateUpdatePermissionPayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateUpdatePermissionPayload} obj Optional instance to populate.
- * @return {module:model/CreateUpdatePermissionPayload} The populated CreateUpdatePermissionPayload instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateUpdatePermissionPayload();
-
- if (data.hasOwnProperty('endpoint')) {
- obj['endpoint'] = ApiClient.convertToType(data['endpoint'], 'String');
- }
- if (data.hasOwnProperty('method')) {
- obj['method'] = ApiClient.convertToType(data['method'], 'String');
- }
- if (data.hasOwnProperty('permission')) {
- obj['permission'] = ApiClient.convertToType(data['permission'], 'String');
- }
- if (data.hasOwnProperty('resource')) {
- obj['resource'] = ApiClient.convertToType(data['resource'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateUpdatePermissionPayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateUpdatePermissionPayload.
- */
- static validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- for (const property of CreateUpdatePermissionPayload.RequiredProperties) {
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- if (data['endpoint'] && !(typeof data['endpoint'] === 'string' || data['endpoint'] instanceof String)) {
- throw new Error("Expected the field `endpoint` to be a primitive type in the JSON string but got " + data['endpoint']);
- }
- // ensure the json data is a string
- if (data['method'] && !(typeof data['method'] === 'string' || data['method'] instanceof String)) {
- throw new Error("Expected the field `method` to be a primitive type in the JSON string but got " + data['method']);
- }
- // ensure the json data is a string
- if (data['permission'] && !(typeof data['permission'] === 'string' || data['permission'] instanceof String)) {
- throw new Error("Expected the field `permission` to be a primitive type in the JSON string but got " + data['permission']);
- }
- // ensure the json data is a string
- if (data['resource'] && !(typeof data['resource'] === 'string' || data['resource'] instanceof String)) {
- throw new Error("Expected the field `resource` to be a primitive type in the JSON string but got " + data['resource']);
- }
-
- return true;
- }
-
-
-}
-
-CreateUpdatePermissionPayload.RequiredProperties = ["endpoint", "method", "permission", "resource"];
-
-/**
- * @member {String} endpoint
- */
-CreateUpdatePermissionPayload.prototype['endpoint'] = undefined;
-
-/**
- * @member {String} method
- */
-CreateUpdatePermissionPayload.prototype['method'] = undefined;
-
-/**
- * @member {String} permission
- */
-CreateUpdatePermissionPayload.prototype['permission'] = undefined;
-
-/**
- * @member {String} resource
- */
-CreateUpdatePermissionPayload.prototype['resource'] = undefined;
-
-
-
-
-
-
-export default CreateUpdatePermissionPayload;
-
diff --git a/src/model/CreateUpdatePermissionResponseModel.js b/src/model/CreateUpdatePermissionResponseModel.js
deleted file mode 100644
index 925bd45f..00000000
--- a/src/model/CreateUpdatePermissionResponseModel.js
+++ /dev/null
@@ -1,108 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import PermissionFields from './PermissionFields';
-
-/**
- * The CreateUpdatePermissionResponseModel model module.
- * @module model/CreateUpdatePermissionResponseModel
- * @version v1.25.0-alpha
- */
-class CreateUpdatePermissionResponseModel {
- /**
- * Constructs a new CreateUpdatePermissionResponseModel.
- * @alias module:model/CreateUpdatePermissionResponseModel
- */
- constructor() {
-
- CreateUpdatePermissionResponseModel.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a CreateUpdatePermissionResponseModel from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateUpdatePermissionResponseModel} obj Optional instance to populate.
- * @return {module:model/CreateUpdatePermissionResponseModel} The populated CreateUpdatePermissionResponseModel instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateUpdatePermissionResponseModel();
-
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('permission')) {
- obj['permission'] = PermissionFields.constructFromObject(data['permission']);
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateUpdatePermissionResponseModel.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateUpdatePermissionResponseModel.
- */
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
- // validate the optional field `permission`
- if (data['permission']) { // data not null
- PermissionFields.validateJSON(data['permission']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {String} message
- */
-CreateUpdatePermissionResponseModel.prototype['message'] = undefined;
-
-/**
- * @member {module:model/PermissionFields} permission
- */
-CreateUpdatePermissionResponseModel.prototype['permission'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-CreateUpdatePermissionResponseModel.prototype['status'] = undefined;
-
-
-
-
-
-
-export default CreateUpdatePermissionResponseModel;
-
diff --git a/src/model/CreateUpdatePolicyPayload.js b/src/model/CreateUpdatePolicyPayload.js
deleted file mode 100644
index dfb721dc..00000000
--- a/src/model/CreateUpdatePolicyPayload.js
+++ /dev/null
@@ -1,133 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The CreateUpdatePolicyPayload model module.
- * @module model/CreateUpdatePolicyPayload
- * @version v1.25.0-alpha
- */
-class CreateUpdatePolicyPayload {
- /**
- * Constructs a new CreateUpdatePolicyPayload.
- * @alias module:model/CreateUpdatePolicyPayload
- * @param description {String}
- * @param isPublic {Boolean}
- * @param name {String}
- * @param permissions {Array.}
- */
- constructor(description, isPublic, name, permissions) {
-
- CreateUpdatePolicyPayload.initialize(this, description, isPublic, name, permissions);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj, description, isPublic, name, permissions) {
- obj['description'] = description;
- obj['is_public'] = isPublic;
- obj['name'] = name;
- obj['permissions'] = permissions;
- }
-
- /**
- * Constructs a CreateUpdatePolicyPayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateUpdatePolicyPayload} obj Optional instance to populate.
- * @return {module:model/CreateUpdatePolicyPayload} The populated CreateUpdatePolicyPayload instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateUpdatePolicyPayload();
-
- if (data.hasOwnProperty('description')) {
- obj['description'] = ApiClient.convertToType(data['description'], 'String');
- }
- if (data.hasOwnProperty('is_public')) {
- obj['is_public'] = ApiClient.convertToType(data['is_public'], 'Boolean');
- }
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
- }
- if (data.hasOwnProperty('permissions')) {
- obj['permissions'] = ApiClient.convertToType(data['permissions'], ['Number']);
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateUpdatePolicyPayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateUpdatePolicyPayload.
- */
- static validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- for (const property of CreateUpdatePolicyPayload.RequiredProperties) {
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
- }
- // ensure the json data is a string
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
- }
- // ensure the json data is an array
- if (!Array.isArray(data['permissions'])) {
- throw new Error("Expected the field `permissions` to be an array in the JSON data but got " + data['permissions']);
- }
-
- return true;
- }
-
-
-}
-
-CreateUpdatePolicyPayload.RequiredProperties = ["description", "is_public", "name", "permissions"];
-
-/**
- * @member {String} description
- */
-CreateUpdatePolicyPayload.prototype['description'] = undefined;
-
-/**
- * @member {Boolean} is_public
- */
-CreateUpdatePolicyPayload.prototype['is_public'] = undefined;
-
-/**
- * @member {String} name
- */
-CreateUpdatePolicyPayload.prototype['name'] = undefined;
-
-/**
- * @member {Array.} permissions
- */
-CreateUpdatePolicyPayload.prototype['permissions'] = undefined;
-
-
-
-
-
-
-export default CreateUpdatePolicyPayload;
-
diff --git a/src/model/CreateUpdatePolicyResponseModel.js b/src/model/CreateUpdatePolicyResponseModel.js
deleted file mode 100644
index f95d5ebe..00000000
--- a/src/model/CreateUpdatePolicyResponseModel.js
+++ /dev/null
@@ -1,108 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import PolicyFields from './PolicyFields';
-
-/**
- * The CreateUpdatePolicyResponseModel model module.
- * @module model/CreateUpdatePolicyResponseModel
- * @version v1.25.0-alpha
- */
-class CreateUpdatePolicyResponseModel {
- /**
- * Constructs a new CreateUpdatePolicyResponseModel.
- * @alias module:model/CreateUpdatePolicyResponseModel
- */
- constructor() {
-
- CreateUpdatePolicyResponseModel.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a CreateUpdatePolicyResponseModel from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CreateUpdatePolicyResponseModel} obj Optional instance to populate.
- * @return {module:model/CreateUpdatePolicyResponseModel} The populated CreateUpdatePolicyResponseModel instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CreateUpdatePolicyResponseModel();
-
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('policy')) {
- obj['policy'] = PolicyFields.constructFromObject(data['policy']);
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CreateUpdatePolicyResponseModel.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CreateUpdatePolicyResponseModel.
- */
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
- // validate the optional field `policy`
- if (data['policy']) { // data not null
- PolicyFields.validateJSON(data['policy']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {String} message
- */
-CreateUpdatePolicyResponseModel.prototype['message'] = undefined;
-
-/**
- * @member {module:model/PolicyFields} policy
- */
-CreateUpdatePolicyResponseModel.prototype['policy'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-CreateUpdatePolicyResponseModel.prototype['status'] = undefined;
-
-
-
-
-
-
-export default CreateUpdatePolicyResponseModel;
-
diff --git a/src/model/CreateUpdateRbacRolePayload.js b/src/model/CreateUpdateRbacRolePayload.js
index 2819553d..3ffbe092 100644
--- a/src/model/CreateUpdateRbacRolePayload.js
+++ b/src/model/CreateUpdateRbacRolePayload.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The CreateUpdateRbacRolePayload model module.
* @module model/CreateUpdateRbacRolePayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CreateUpdateRbacRolePayload {
/**
diff --git a/src/model/CreateVolumePayload.js b/src/model/CreateVolumePayload.js
index 6d04d6d0..651d8260 100644
--- a/src/model/CreateVolumePayload.js
+++ b/src/model/CreateVolumePayload.js
@@ -16,13 +16,13 @@ import ApiClient from '../ApiClient';
/**
* The CreateVolumePayload model module.
* @module model/CreateVolumePayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CreateVolumePayload {
/**
* Constructs a new CreateVolumePayload.
* @alias module:model/CreateVolumePayload
- * @param environmentName {String} The name of the [environment](https://infrahub-doc.nexgencloud.com/docs/features/environments-available-features) within which the volume is being created.
+ * @param environmentName {String} The name of the [environment](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/) within which the volume is being created.
* @param name {String} The name of the volume being created.
* @param size {Number} The size of the volume in GB. 1048576GB storage capacity per volume.
* @param volumeType {String} Specifies the type of volume being created, which determines the storage technology it will use. Call the [List volume types](https://infrahub-api-doc.nexgencloud.com/#get-/core/volumes) endpoint to retrieve a list of available volume model types.
@@ -134,7 +134,7 @@ CreateVolumePayload.prototype['callback_url'] = undefined;
CreateVolumePayload.prototype['description'] = undefined;
/**
- * The name of the [environment](https://infrahub-doc.nexgencloud.com/docs/features/environments-available-features) within which the volume is being created.
+ * The name of the [environment](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/) within which the volume is being created.
* @member {String} environment_name
*/
CreateVolumePayload.prototype['environment_name'] = undefined;
diff --git a/src/model/Creditrechargelimitfield.js b/src/model/Creditrechargelimitfield.js
deleted file mode 100644
index 3f883846..00000000
--- a/src/model/Creditrechargelimitfield.js
+++ /dev/null
@@ -1,107 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The Creditrechargelimitfield model module.
- * @module model/Creditrechargelimitfield
- * @version v1.25.0-alpha
- */
-class Creditrechargelimitfield {
- /**
- * Constructs a new Creditrechargelimitfield.
- * @alias module:model/Creditrechargelimitfield
- */
- constructor() {
-
- Creditrechargelimitfield.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a Creditrechargelimitfield from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Creditrechargelimitfield} obj Optional instance to populate.
- * @return {module:model/Creditrechargelimitfield} The populated Creditrechargelimitfield instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new Creditrechargelimitfield();
-
- if (data.hasOwnProperty('credit_granted')) {
- obj['credit_granted'] = ApiClient.convertToType(data['credit_granted'], 'Number');
- }
- if (data.hasOwnProperty('credit_limit')) {
- obj['credit_limit'] = ApiClient.convertToType(data['credit_limit'], 'Number');
- }
- if (data.hasOwnProperty('organization_id')) {
- obj['organization_id'] = ApiClient.convertToType(data['organization_id'], 'Number');
- }
- if (data.hasOwnProperty('user_id')) {
- obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to Creditrechargelimitfield.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to Creditrechargelimitfield.
- */
- static validateJSON(data) {
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Number} credit_granted
- */
-Creditrechargelimitfield.prototype['credit_granted'] = undefined;
-
-/**
- * @member {Number} credit_limit
- */
-Creditrechargelimitfield.prototype['credit_limit'] = undefined;
-
-/**
- * @member {Number} organization_id
- */
-Creditrechargelimitfield.prototype['organization_id'] = undefined;
-
-/**
- * @member {Number} user_id
- */
-Creditrechargelimitfield.prototype['user_id'] = undefined;
-
-
-
-
-
-
-export default Creditrechargelimitfield;
-
diff --git a/src/model/Creditrechargelimitresponse.js b/src/model/Creditrechargelimitresponse.js
deleted file mode 100644
index 66dec8da..00000000
--- a/src/model/Creditrechargelimitresponse.js
+++ /dev/null
@@ -1,114 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import Creditrechargelimitfield from './Creditrechargelimitfield';
-
-/**
- * The Creditrechargelimitresponse model module.
- * @module model/Creditrechargelimitresponse
- * @version v1.25.0-alpha
- */
-class Creditrechargelimitresponse {
- /**
- * Constructs a new Creditrechargelimitresponse.
- * @alias module:model/Creditrechargelimitresponse
- */
- constructor() {
-
- Creditrechargelimitresponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a Creditrechargelimitresponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Creditrechargelimitresponse} obj Optional instance to populate.
- * @return {module:model/Creditrechargelimitresponse} The populated Creditrechargelimitresponse instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new Creditrechargelimitresponse();
-
- if (data.hasOwnProperty('data')) {
- obj['data'] = ApiClient.convertToType(data['data'], [Creditrechargelimitfield]);
- }
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to Creditrechargelimitresponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to Creditrechargelimitresponse.
- */
- static validateJSON(data) {
- if (data['data']) { // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['data'])) {
- throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
- }
- // validate the optional field `data` (array)
- for (const item of data['data']) {
- Creditrechargelimitfield.validateJSON(item);
- };
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Array.} data
- */
-Creditrechargelimitresponse.prototype['data'] = undefined;
-
-/**
- * @member {String} message
- */
-Creditrechargelimitresponse.prototype['message'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-Creditrechargelimitresponse.prototype['status'] = undefined;
-
-
-
-
-
-
-export default Creditrechargelimitresponse;
-
diff --git a/src/model/Creditrequestresponse.js b/src/model/Creditrequestresponse.js
deleted file mode 100644
index da869c28..00000000
--- a/src/model/Creditrequestresponse.js
+++ /dev/null
@@ -1,114 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import Creditrequests from './Creditrequests';
-
-/**
- * The Creditrequestresponse model module.
- * @module model/Creditrequestresponse
- * @version v1.25.0-alpha
- */
-class Creditrequestresponse {
- /**
- * Constructs a new Creditrequestresponse.
- * @alias module:model/Creditrequestresponse
- */
- constructor() {
-
- Creditrequestresponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a Creditrequestresponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Creditrequestresponse} obj Optional instance to populate.
- * @return {module:model/Creditrequestresponse} The populated Creditrequestresponse instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new Creditrequestresponse();
-
- if (data.hasOwnProperty('data')) {
- obj['data'] = ApiClient.convertToType(data['data'], [Creditrequests]);
- }
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to Creditrequestresponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to Creditrequestresponse.
- */
- static validateJSON(data) {
- if (data['data']) { // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['data'])) {
- throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
- }
- // validate the optional field `data` (array)
- for (const item of data['data']) {
- Creditrequests.validateJSON(item);
- };
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Array.} data
- */
-Creditrequestresponse.prototype['data'] = undefined;
-
-/**
- * @member {String} message
- */
-Creditrequestresponse.prototype['message'] = undefined;
-
-/**
- * @member {Boolean} status
- */
-Creditrequestresponse.prototype['status'] = undefined;
-
-
-
-
-
-
-export default Creditrequestresponse;
-
diff --git a/src/model/Creditrequests.js b/src/model/Creditrequests.js
deleted file mode 100644
index 56d7d055..00000000
--- a/src/model/Creditrequests.js
+++ /dev/null
@@ -1,123 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The Creditrequests model module.
- * @module model/Creditrequests
- * @version v1.25.0-alpha
- */
-class Creditrequests {
- /**
- * Constructs a new Creditrequests.
- * @alias module:model/Creditrequests
- */
- constructor() {
-
- Creditrequests.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a Creditrequests from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Creditrequests} obj Optional instance to populate.
- * @return {module:model/Creditrequests} The populated Creditrequests instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new Creditrequests();
-
- if (data.hasOwnProperty('admin_user_id')) {
- obj['admin_user_id'] = ApiClient.convertToType(data['admin_user_id'], 'Number');
- }
- if (data.hasOwnProperty('amount')) {
- obj['amount'] = ApiClient.convertToType(data['amount'], 'Number');
- }
- if (data.hasOwnProperty('reason')) {
- obj['reason'] = ApiClient.convertToType(data['reason'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = ApiClient.convertToType(data['status'], 'String');
- }
- if (data.hasOwnProperty('updated_at')) {
- obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to Creditrequests.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to Creditrequests.
- */
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['reason'] && !(typeof data['reason'] === 'string' || data['reason'] instanceof String)) {
- throw new Error("Expected the field `reason` to be a primitive type in the JSON string but got " + data['reason']);
- }
- // ensure the json data is a string
- if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
- throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Number} admin_user_id
- */
-Creditrequests.prototype['admin_user_id'] = undefined;
-
-/**
- * @member {Number} amount
- */
-Creditrequests.prototype['amount'] = undefined;
-
-/**
- * @member {String} reason
- */
-Creditrequests.prototype['reason'] = undefined;
-
-/**
- * @member {String} status
- */
-Creditrequests.prototype['status'] = undefined;
-
-/**
- * @member {Date} updated_at
- */
-Creditrequests.prototype['updated_at'] = undefined;
-
-
-
-
-
-
-export default Creditrequests;
-
diff --git a/src/model/CustomerContractDetailResponseModel.js b/src/model/CustomerContractDetailResponseModel.js
index 801ab2ee..6ab10ff6 100644
--- a/src/model/CustomerContractDetailResponseModel.js
+++ b/src/model/CustomerContractDetailResponseModel.js
@@ -17,7 +17,7 @@ import CustomerContractFields from './CustomerContractFields';
/**
* The CustomerContractDetailResponseModel model module.
* @module model/CustomerContractDetailResponseModel
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CustomerContractDetailResponseModel {
/**
diff --git a/src/model/CustomerContractFields.js b/src/model/CustomerContractFields.js
index 87ea90fd..abe70541 100644
--- a/src/model/CustomerContractFields.js
+++ b/src/model/CustomerContractFields.js
@@ -17,7 +17,7 @@ import ContractDiscountPlanFields from './ContractDiscountPlanFields';
/**
* The CustomerContractFields model module.
* @module model/CustomerContractFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class CustomerContractFields {
/**
diff --git a/src/model/CustomerFields.js b/src/model/CustomerFields.js
deleted file mode 100644
index 45c91a2e..00000000
--- a/src/model/CustomerFields.js
+++ /dev/null
@@ -1,95 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The CustomerFields model module.
- * @module model/CustomerFields
- * @version v1.25.0-alpha
- */
-class CustomerFields {
- /**
- * Constructs a new CustomerFields.
- * @alias module:model/CustomerFields
- */
- constructor() {
-
- CustomerFields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a CustomerFields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CustomerFields} obj Optional instance to populate.
- * @return {module:model/CustomerFields} The populated CustomerFields instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CustomerFields();
-
- if (data.hasOwnProperty('id')) {
- obj['id'] = ApiClient.convertToType(data['id'], 'Number');
- }
- if (data.hasOwnProperty('plan_type')) {
- obj['plan_type'] = ApiClient.convertToType(data['plan_type'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CustomerFields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CustomerFields.
- */
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['plan_type'] && !(typeof data['plan_type'] === 'string' || data['plan_type'] instanceof String)) {
- throw new Error("Expected the field `plan_type` to be a primitive type in the JSON string but got " + data['plan_type']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Number} id
- */
-CustomerFields.prototype['id'] = undefined;
-
-/**
- * @member {String} plan_type
- */
-CustomerFields.prototype['plan_type'] = undefined;
-
-
-
-
-
-
-export default CustomerFields;
-
diff --git a/src/model/CustomerPayload.js b/src/model/CustomerPayload.js
deleted file mode 100644
index 13d2b834..00000000
--- a/src/model/CustomerPayload.js
+++ /dev/null
@@ -1,105 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The CustomerPayload model module.
- * @module model/CustomerPayload
- * @version v1.25.0-alpha
- */
-class CustomerPayload {
- /**
- * Constructs a new CustomerPayload.
- * @alias module:model/CustomerPayload
- * @param id {Number}
- * @param planType {String}
- */
- constructor(id, planType) {
-
- CustomerPayload.initialize(this, id, planType);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj, id, planType) {
- obj['id'] = id;
- obj['plan_type'] = planType;
- }
-
- /**
- * Constructs a CustomerPayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/CustomerPayload} obj Optional instance to populate.
- * @return {module:model/CustomerPayload} The populated CustomerPayload instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new CustomerPayload();
-
- if (data.hasOwnProperty('id')) {
- obj['id'] = ApiClient.convertToType(data['id'], 'Number');
- }
- if (data.hasOwnProperty('plan_type')) {
- obj['plan_type'] = ApiClient.convertToType(data['plan_type'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to CustomerPayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to CustomerPayload.
- */
- static validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- for (const property of CustomerPayload.RequiredProperties) {
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- if (data['plan_type'] && !(typeof data['plan_type'] === 'string' || data['plan_type'] instanceof String)) {
- throw new Error("Expected the field `plan_type` to be a primitive type in the JSON string but got " + data['plan_type']);
- }
-
- return true;
- }
-
-
-}
-
-CustomerPayload.RequiredProperties = ["id", "plan_type"];
-
-/**
- * @member {Number} id
- */
-CustomerPayload.prototype['id'] = undefined;
-
-/**
- * @member {String} plan_type
- */
-CustomerPayload.prototype['plan_type'] = undefined;
-
-
-
-
-
-
-export default CustomerPayload;
-
diff --git a/src/model/DashboardInfoResponse.js b/src/model/DashboardInfoResponse.js
index 17a67ac0..eeecebb5 100644
--- a/src/model/DashboardInfoResponse.js
+++ b/src/model/DashboardInfoResponse.js
@@ -17,7 +17,7 @@ import OverviewInfo from './OverviewInfo';
/**
* The DashboardInfoResponse model module.
* @module model/DashboardInfoResponse
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class DashboardInfoResponse {
/**
diff --git a/src/model/Data.js b/src/model/Data.js
deleted file mode 100644
index 41bd037e..00000000
--- a/src/model/Data.js
+++ /dev/null
@@ -1,106 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The Data model module.
- * @module model/Data
- * @version v1.25.0-alpha
- */
-class Data {
- /**
- * Constructs a new Data.
- * @alias module:model/Data
- */
- constructor() {
-
- Data.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a Data from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/Data} obj Optional instance to populate.
- * @return {module:model/Data} The populated Data instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new Data();
-
- if (data.hasOwnProperty('organization_id')) {
- obj['organization_id'] = ApiClient.convertToType(data['organization_id'], 'Number');
- }
- if (data.hasOwnProperty('resource_id')) {
- obj['resource_id'] = ApiClient.convertToType(data['resource_id'], 'Number');
- }
- if (data.hasOwnProperty('resource_type')) {
- obj['resource_type'] = ApiClient.convertToType(data['resource_type'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to Data.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to Data.
- */
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['resource_type'] && !(typeof data['resource_type'] === 'string' || data['resource_type'] instanceof String)) {
- throw new Error("Expected the field `resource_type` to be a primitive type in the JSON string but got " + data['resource_type']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * Organization ID associated with the resource.
- * @member {Number} organization_id
- */
-Data.prototype['organization_id'] = undefined;
-
-/**
- * ID of the resource.
- * @member {Number} resource_id
- */
-Data.prototype['resource_id'] = undefined;
-
-/**
- * Type of the resource.
- * @member {String} resource_type
- */
-Data.prototype['resource_type'] = undefined;
-
-
-
-
-
-
-export default Data;
-
diff --git a/src/model/DataSynthesisBillingHistoryDetailsResponseSchema.js b/src/model/DataSynthesisBillingHistoryDetailsResponseSchema.js
new file mode 100644
index 00000000..3156054b
--- /dev/null
+++ b/src/model/DataSynthesisBillingHistoryDetailsResponseSchema.js
@@ -0,0 +1,110 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+import BillingHistoryDataSynthesisDetails from './BillingHistoryDataSynthesisDetails';
+
+/**
+ * The DataSynthesisBillingHistoryDetailsResponseSchema model module.
+ * @module model/DataSynthesisBillingHistoryDetailsResponseSchema
+ * @version v1.51.1-alpha
+ */
+class DataSynthesisBillingHistoryDetailsResponseSchema {
+ /**
+ * Constructs a new DataSynthesisBillingHistoryDetailsResponseSchema.
+ * @alias module:model/DataSynthesisBillingHistoryDetailsResponseSchema
+ */
+ constructor() {
+
+ DataSynthesisBillingHistoryDetailsResponseSchema.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a DataSynthesisBillingHistoryDetailsResponseSchema from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/DataSynthesisBillingHistoryDetailsResponseSchema} obj Optional instance to populate.
+ * @return {module:model/DataSynthesisBillingHistoryDetailsResponseSchema} The populated DataSynthesisBillingHistoryDetailsResponseSchema instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new DataSynthesisBillingHistoryDetailsResponseSchema();
+
+ if (data.hasOwnProperty('billing_history_data_synthesis_details')) {
+ obj['billing_history_data_synthesis_details'] = BillingHistoryDataSynthesisDetails.constructFromObject(data['billing_history_data_synthesis_details']);
+ }
+ if (data.hasOwnProperty('message')) {
+ obj['message'] = ApiClient.convertToType(data['message'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'Boolean');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to DataSynthesisBillingHistoryDetailsResponseSchema.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to DataSynthesisBillingHistoryDetailsResponseSchema.
+ */
+ static validateJSON(data) {
+ // validate the optional field `billing_history_data_synthesis_details`
+ if (data['billing_history_data_synthesis_details']) { // data not null
+ BillingHistoryDataSynthesisDetails.validateJSON(data['billing_history_data_synthesis_details']);
+ }
+ // ensure the json data is a string
+ if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
+ throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {module:model/BillingHistoryDataSynthesisDetails} billing_history_data_synthesis_details
+ */
+DataSynthesisBillingHistoryDetailsResponseSchema.prototype['billing_history_data_synthesis_details'] = undefined;
+
+/**
+ *
+ * @member {String} message
+ */
+DataSynthesisBillingHistoryDetailsResponseSchema.prototype['message'] = undefined;
+
+/**
+ *
+ * @member {Boolean} status
+ */
+DataSynthesisBillingHistoryDetailsResponseSchema.prototype['status'] = undefined;
+
+
+
+
+
+
+export default DataSynthesisBillingHistoryDetailsResponseSchema;
+
diff --git a/src/model/DeleteClusterNodesFields.js b/src/model/DeleteClusterNodesFields.js
new file mode 100644
index 00000000..8f30964a
--- /dev/null
+++ b/src/model/DeleteClusterNodesFields.js
@@ -0,0 +1,87 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The DeleteClusterNodesFields model module.
+ * @module model/DeleteClusterNodesFields
+ * @version v1.51.1-alpha
+ */
+class DeleteClusterNodesFields {
+ /**
+ * Constructs a new DeleteClusterNodesFields.
+ * @alias module:model/DeleteClusterNodesFields
+ */
+ constructor() {
+
+ DeleteClusterNodesFields.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a DeleteClusterNodesFields from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/DeleteClusterNodesFields} obj Optional instance to populate.
+ * @return {module:model/DeleteClusterNodesFields} The populated DeleteClusterNodesFields instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new DeleteClusterNodesFields();
+
+ if (data.hasOwnProperty('ids')) {
+ obj['ids'] = ApiClient.convertToType(data['ids'], ['Number']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to DeleteClusterNodesFields.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to DeleteClusterNodesFields.
+ */
+ static validateJSON(data) {
+ // ensure the json data is an array
+ if (!Array.isArray(data['ids'])) {
+ throw new Error("Expected the field `ids` to be an array in the JSON data but got " + data['ids']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {Array.} ids
+ */
+DeleteClusterNodesFields.prototype['ids'] = undefined;
+
+
+
+
+
+
+export default DeleteClusterNodesFields;
+
diff --git a/src/model/DeploymentFields.js b/src/model/DeploymentFields.js
index 4601197f..699486eb 100644
--- a/src/model/DeploymentFields.js
+++ b/src/model/DeploymentFields.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The DeploymentFields model module.
* @module model/DeploymentFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class DeploymentFields {
/**
diff --git a/src/model/DeploymentFieldsForStartDeployments.js b/src/model/DeploymentFieldsForStartDeployments.js
new file mode 100644
index 00000000..29ddfae6
--- /dev/null
+++ b/src/model/DeploymentFieldsForStartDeployments.js
@@ -0,0 +1,151 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The DeploymentFieldsForStartDeployments model module.
+ * @module model/DeploymentFieldsForStartDeployments
+ * @version v1.51.1-alpha
+ */
+class DeploymentFieldsForStartDeployments {
+ /**
+ * Constructs a new DeploymentFieldsForStartDeployments.
+ * @alias module:model/DeploymentFieldsForStartDeployments
+ */
+ constructor() {
+
+ DeploymentFieldsForStartDeployments.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a DeploymentFieldsForStartDeployments from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/DeploymentFieldsForStartDeployments} obj Optional instance to populate.
+ * @return {module:model/DeploymentFieldsForStartDeployments} The populated DeploymentFieldsForStartDeployments instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new DeploymentFieldsForStartDeployments();
+
+ if (data.hasOwnProperty('created_at')) {
+ obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
+ }
+ if (data.hasOwnProperty('description')) {
+ obj['description'] = ApiClient.convertToType(data['description'], 'String');
+ }
+ if (data.hasOwnProperty('id')) {
+ obj['id'] = ApiClient.convertToType(data['id'], 'Number');
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = ApiClient.convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('status')) {
+ obj['status'] = ApiClient.convertToType(data['status'], 'String');
+ }
+ if (data.hasOwnProperty('template')) {
+ obj['template'] = ApiClient.convertToType(data['template'], 'String');
+ }
+ if (data.hasOwnProperty('variables')) {
+ obj['variables'] = ApiClient.convertToType(data['variables'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to DeploymentFieldsForStartDeployments.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to DeploymentFieldsForStartDeployments.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
+ throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
+ }
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ // ensure the json data is a string
+ if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
+ }
+ // ensure the json data is a string
+ if (data['template'] && !(typeof data['template'] === 'string' || data['template'] instanceof String)) {
+ throw new Error("Expected the field `template` to be a primitive type in the JSON string but got " + data['template']);
+ }
+ // ensure the json data is a string
+ if (data['variables'] && !(typeof data['variables'] === 'string' || data['variables'] instanceof String)) {
+ throw new Error("Expected the field `variables` to be a primitive type in the JSON string but got " + data['variables']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {Date} created_at
+ */
+DeploymentFieldsForStartDeployments.prototype['created_at'] = undefined;
+
+/**
+ * @member {String} description
+ */
+DeploymentFieldsForStartDeployments.prototype['description'] = undefined;
+
+/**
+ * @member {Number} id
+ */
+DeploymentFieldsForStartDeployments.prototype['id'] = undefined;
+
+/**
+ * @member {String} name
+ */
+DeploymentFieldsForStartDeployments.prototype['name'] = undefined;
+
+/**
+ * @member {String} status
+ */
+DeploymentFieldsForStartDeployments.prototype['status'] = undefined;
+
+/**
+ * @member {String} template
+ */
+DeploymentFieldsForStartDeployments.prototype['template'] = undefined;
+
+/**
+ * @member {String} variables
+ */
+DeploymentFieldsForStartDeployments.prototype['variables'] = undefined;
+
+
+
+
+
+
+export default DeploymentFieldsForStartDeployments;
+
diff --git a/src/model/DeploymentFieldsforstartdeployments.js b/src/model/DeploymentFieldsforstartdeployments.js
deleted file mode 100644
index b466f7a7..00000000
--- a/src/model/DeploymentFieldsforstartdeployments.js
+++ /dev/null
@@ -1,151 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The DeploymentFieldsforstartdeployments model module.
- * @module model/DeploymentFieldsforstartdeployments
- * @version v1.25.0-alpha
- */
-class DeploymentFieldsforstartdeployments {
- /**
- * Constructs a new DeploymentFieldsforstartdeployments.
- * @alias module:model/DeploymentFieldsforstartdeployments
- */
- constructor() {
-
- DeploymentFieldsforstartdeployments.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a DeploymentFieldsforstartdeployments from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/DeploymentFieldsforstartdeployments} obj Optional instance to populate.
- * @return {module:model/DeploymentFieldsforstartdeployments} The populated DeploymentFieldsforstartdeployments instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new DeploymentFieldsforstartdeployments();
-
- if (data.hasOwnProperty('created_at')) {
- obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date');
- }
- if (data.hasOwnProperty('description')) {
- obj['description'] = ApiClient.convertToType(data['description'], 'String');
- }
- if (data.hasOwnProperty('id')) {
- obj['id'] = ApiClient.convertToType(data['id'], 'Number');
- }
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
- }
- if (data.hasOwnProperty('status')) {
- obj['status'] = ApiClient.convertToType(data['status'], 'String');
- }
- if (data.hasOwnProperty('template')) {
- obj['template'] = ApiClient.convertToType(data['template'], 'String');
- }
- if (data.hasOwnProperty('variables')) {
- obj['variables'] = ApiClient.convertToType(data['variables'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to DeploymentFieldsforstartdeployments.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to DeploymentFieldsforstartdeployments.
- */
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
- }
- // ensure the json data is a string
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
- }
- // ensure the json data is a string
- if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
- throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
- }
- // ensure the json data is a string
- if (data['template'] && !(typeof data['template'] === 'string' || data['template'] instanceof String)) {
- throw new Error("Expected the field `template` to be a primitive type in the JSON string but got " + data['template']);
- }
- // ensure the json data is a string
- if (data['variables'] && !(typeof data['variables'] === 'string' || data['variables'] instanceof String)) {
- throw new Error("Expected the field `variables` to be a primitive type in the JSON string but got " + data['variables']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Date} created_at
- */
-DeploymentFieldsforstartdeployments.prototype['created_at'] = undefined;
-
-/**
- * @member {String} description
- */
-DeploymentFieldsforstartdeployments.prototype['description'] = undefined;
-
-/**
- * @member {Number} id
- */
-DeploymentFieldsforstartdeployments.prototype['id'] = undefined;
-
-/**
- * @member {String} name
- */
-DeploymentFieldsforstartdeployments.prototype['name'] = undefined;
-
-/**
- * @member {String} status
- */
-DeploymentFieldsforstartdeployments.prototype['status'] = undefined;
-
-/**
- * @member {String} template
- */
-DeploymentFieldsforstartdeployments.prototype['template'] = undefined;
-
-/**
- * @member {String} variables
- */
-DeploymentFieldsforstartdeployments.prototype['variables'] = undefined;
-
-
-
-
-
-
-export default DeploymentFieldsforstartdeployments;
-
diff --git a/src/model/Deployments.js b/src/model/Deployments.js
index 16814b08..e2884f17 100644
--- a/src/model/Deployments.js
+++ b/src/model/Deployments.js
@@ -17,7 +17,7 @@ import DeploymentFields from './DeploymentFields';
/**
* The Deployments model module.
* @module model/Deployments
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class Deployments {
/**
diff --git a/src/model/DetachVolumes.js b/src/model/DetachVolumes.js
index 71f7cafb..caf7784a 100644
--- a/src/model/DetachVolumes.js
+++ b/src/model/DetachVolumes.js
@@ -17,7 +17,7 @@ import AttachVolumeFields from './AttachVolumeFields';
/**
* The DetachVolumes model module.
* @module model/DetachVolumes
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class DetachVolumes {
/**
diff --git a/src/model/DetachVolumesPayload.js b/src/model/DetachVolumesPayload.js
index f72aae77..03b900b9 100644
--- a/src/model/DetachVolumesPayload.js
+++ b/src/model/DetachVolumesPayload.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The DetachVolumesPayload model module.
* @module model/DetachVolumesPayload
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class DetachVolumesPayload {
/**
diff --git a/src/model/DiscountEntityModel.js b/src/model/DiscountEntityModel.js
deleted file mode 100644
index 6cf5c7d2..00000000
--- a/src/model/DiscountEntityModel.js
+++ /dev/null
@@ -1,106 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import DiscountPlanFields from './DiscountPlanFields';
-
-/**
- * The DiscountEntityModel model module.
- * @module model/DiscountEntityModel
- * @version v1.25.0-alpha
- */
-class DiscountEntityModel {
- /**
- * Constructs a new DiscountEntityModel.
- * @alias module:model/DiscountEntityModel
- */
- constructor() {
-
- DiscountEntityModel.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a DiscountEntityModel from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/DiscountEntityModel} obj Optional instance to populate.
- * @return {module:model/DiscountEntityModel} The populated DiscountEntityModel instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new DiscountEntityModel();
-
- if (data.hasOwnProperty('data')) {
- obj['data'] = ApiClient.convertToType(data['data'], [DiscountPlanFields]);
- }
- if (data.hasOwnProperty('entity')) {
- obj['entity'] = ApiClient.convertToType(data['entity'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to DiscountEntityModel.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to DiscountEntityModel.
- */
- static validateJSON(data) {
- if (data['data']) { // data not null
- // ensure the json data is an array
- if (!Array.isArray(data['data'])) {
- throw new Error("Expected the field `data` to be an array in the JSON data but got " + data['data']);
- }
- // validate the optional field `data` (array)
- for (const item of data['data']) {
- DiscountPlanFields.validateJSON(item);
- };
- }
- // ensure the json data is a string
- if (data['entity'] && !(typeof data['entity'] === 'string' || data['entity'] instanceof String)) {
- throw new Error("Expected the field `entity` to be a primitive type in the JSON string but got " + data['entity']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Array.} data
- */
-DiscountEntityModel.prototype['data'] = undefined;
-
-/**
- * @member {String} entity
- */
-DiscountEntityModel.prototype['entity'] = undefined;
-
-
-
-
-
-
-export default DiscountEntityModel;
-
diff --git a/src/model/DiscountFields.js b/src/model/DiscountFields.js
deleted file mode 100644
index b36b0f4a..00000000
--- a/src/model/DiscountFields.js
+++ /dev/null
@@ -1,147 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The DiscountFields model module.
- * @module model/DiscountFields
- * @version v1.25.0-alpha
- */
-class DiscountFields {
- /**
- * Constructs a new DiscountFields.
- * @alias module:model/DiscountFields
- */
- constructor() {
-
- DiscountFields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a DiscountFields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/DiscountFields} obj Optional instance to populate.
- * @return {module:model/DiscountFields} The populated DiscountFields instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new DiscountFields();
-
- if (data.hasOwnProperty('discount_status')) {
- obj['discount_status'] = ApiClient.convertToType(data['discount_status'], 'String');
- }
- if (data.hasOwnProperty('end_date')) {
- obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date');
- }
- if (data.hasOwnProperty('org_id')) {
- obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number');
- }
- if (data.hasOwnProperty('org_name')) {
- obj['org_name'] = ApiClient.convertToType(data['org_name'], 'String');
- }
- if (data.hasOwnProperty('plan_type')) {
- obj['plan_type'] = ApiClient.convertToType(data['plan_type'], 'String');
- }
- if (data.hasOwnProperty('vm_id')) {
- obj['vm_id'] = ApiClient.convertToType(data['vm_id'], 'Number');
- }
- if (data.hasOwnProperty('vm_name')) {
- obj['vm_name'] = ApiClient.convertToType(data['vm_name'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to DiscountFields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to DiscountFields.
- */
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['discount_status'] && !(typeof data['discount_status'] === 'string' || data['discount_status'] instanceof String)) {
- throw new Error("Expected the field `discount_status` to be a primitive type in the JSON string but got " + data['discount_status']);
- }
- // ensure the json data is a string
- if (data['org_name'] && !(typeof data['org_name'] === 'string' || data['org_name'] instanceof String)) {
- throw new Error("Expected the field `org_name` to be a primitive type in the JSON string but got " + data['org_name']);
- }
- // ensure the json data is a string
- if (data['plan_type'] && !(typeof data['plan_type'] === 'string' || data['plan_type'] instanceof String)) {
- throw new Error("Expected the field `plan_type` to be a primitive type in the JSON string but got " + data['plan_type']);
- }
- // ensure the json data is a string
- if (data['vm_name'] && !(typeof data['vm_name'] === 'string' || data['vm_name'] instanceof String)) {
- throw new Error("Expected the field `vm_name` to be a primitive type in the JSON string but got " + data['vm_name']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {String} discount_status
- */
-DiscountFields.prototype['discount_status'] = undefined;
-
-/**
- * @member {Date} end_date
- */
-DiscountFields.prototype['end_date'] = undefined;
-
-/**
- * @member {Number} org_id
- */
-DiscountFields.prototype['org_id'] = undefined;
-
-/**
- * @member {String} org_name
- */
-DiscountFields.prototype['org_name'] = undefined;
-
-/**
- * @member {String} plan_type
- */
-DiscountFields.prototype['plan_type'] = undefined;
-
-/**
- * @member {Number} vm_id
- */
-DiscountFields.prototype['vm_id'] = undefined;
-
-/**
- * @member {String} vm_name
- */
-DiscountFields.prototype['vm_name'] = undefined;
-
-
-
-
-
-
-export default DiscountFields;
-
diff --git a/src/model/DiscountPlanFields.js b/src/model/DiscountPlanFields.js
deleted file mode 100644
index 010e81fb..00000000
--- a/src/model/DiscountPlanFields.js
+++ /dev/null
@@ -1,179 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The DiscountPlanFields model module.
- * @module model/DiscountPlanFields
- * @version v1.25.0-alpha
- */
-class DiscountPlanFields {
- /**
- * Constructs a new DiscountPlanFields.
- * @alias module:model/DiscountPlanFields
- */
- constructor() {
-
- DiscountPlanFields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a DiscountPlanFields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/DiscountPlanFields} obj Optional instance to populate.
- * @return {module:model/DiscountPlanFields} The populated DiscountPlanFields instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new DiscountPlanFields();
-
- if (data.hasOwnProperty('discount_amount')) {
- obj['discount_amount'] = ApiClient.convertToType(data['discount_amount'], 'Number');
- }
- if (data.hasOwnProperty('discount_code')) {
- obj['discount_code'] = ApiClient.convertToType(data['discount_code'], 'String');
- }
- if (data.hasOwnProperty('discount_percent')) {
- obj['discount_percent'] = ApiClient.convertToType(data['discount_percent'], 'Number');
- }
- if (data.hasOwnProperty('discount_status')) {
- obj['discount_status'] = ApiClient.convertToType(data['discount_status'], 'String');
- }
- if (data.hasOwnProperty('discount_type')) {
- obj['discount_type'] = ApiClient.convertToType(data['discount_type'], 'String');
- }
- if (data.hasOwnProperty('end_date')) {
- obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date');
- }
- if (data.hasOwnProperty('id')) {
- obj['id'] = ApiClient.convertToType(data['id'], 'Number');
- }
- if (data.hasOwnProperty('resource')) {
- obj['resource'] = ApiClient.convertToType(data['resource'], 'String');
- }
- if (data.hasOwnProperty('start_date')) {
- obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date');
- }
- if (data.hasOwnProperty('validity_days')) {
- obj['validity_days'] = ApiClient.convertToType(data['validity_days'], 'Number');
- }
- if (data.hasOwnProperty('vm_id')) {
- obj['vm_id'] = ApiClient.convertToType(data['vm_id'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to DiscountPlanFields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to DiscountPlanFields.
- */
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['discount_code'] && !(typeof data['discount_code'] === 'string' || data['discount_code'] instanceof String)) {
- throw new Error("Expected the field `discount_code` to be a primitive type in the JSON string but got " + data['discount_code']);
- }
- // ensure the json data is a string
- if (data['discount_status'] && !(typeof data['discount_status'] === 'string' || data['discount_status'] instanceof String)) {
- throw new Error("Expected the field `discount_status` to be a primitive type in the JSON string but got " + data['discount_status']);
- }
- // ensure the json data is a string
- if (data['discount_type'] && !(typeof data['discount_type'] === 'string' || data['discount_type'] instanceof String)) {
- throw new Error("Expected the field `discount_type` to be a primitive type in the JSON string but got " + data['discount_type']);
- }
- // ensure the json data is a string
- if (data['resource'] && !(typeof data['resource'] === 'string' || data['resource'] instanceof String)) {
- throw new Error("Expected the field `resource` to be a primitive type in the JSON string but got " + data['resource']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Number} discount_amount
- */
-DiscountPlanFields.prototype['discount_amount'] = undefined;
-
-/**
- * @member {String} discount_code
- */
-DiscountPlanFields.prototype['discount_code'] = undefined;
-
-/**
- * @member {Number} discount_percent
- */
-DiscountPlanFields.prototype['discount_percent'] = undefined;
-
-/**
- * @member {String} discount_status
- */
-DiscountPlanFields.prototype['discount_status'] = undefined;
-
-/**
- * @member {String} discount_type
- */
-DiscountPlanFields.prototype['discount_type'] = undefined;
-
-/**
- * @member {Date} end_date
- */
-DiscountPlanFields.prototype['end_date'] = undefined;
-
-/**
- * @member {Number} id
- */
-DiscountPlanFields.prototype['id'] = undefined;
-
-/**
- * @member {String} resource
- */
-DiscountPlanFields.prototype['resource'] = undefined;
-
-/**
- * @member {Date} start_date
- */
-DiscountPlanFields.prototype['start_date'] = undefined;
-
-/**
- * @member {Number} validity_days
- */
-DiscountPlanFields.prototype['validity_days'] = undefined;
-
-/**
- * @member {Number} vm_id
- */
-DiscountPlanFields.prototype['vm_id'] = undefined;
-
-
-
-
-
-
-export default DiscountPlanFields;
-
diff --git a/src/model/DiscountResourceFields.js b/src/model/DiscountResourceFields.js
deleted file mode 100644
index d97c8143..00000000
--- a/src/model/DiscountResourceFields.js
+++ /dev/null
@@ -1,111 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The DiscountResourceFields model module.
- * @module model/DiscountResourceFields
- * @version v1.25.0-alpha
- */
-class DiscountResourceFields {
- /**
- * Constructs a new DiscountResourceFields.
- * @alias module:model/DiscountResourceFields
- */
- constructor() {
-
- DiscountResourceFields.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a DiscountResourceFields from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/DiscountResourceFields} obj Optional instance to populate.
- * @return {module:model/DiscountResourceFields} The populated DiscountResourceFields instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new DiscountResourceFields();
-
- if (data.hasOwnProperty('discount_amount')) {
- obj['discount_amount'] = ApiClient.convertToType(data['discount_amount'], 'Number');
- }
- if (data.hasOwnProperty('discount_percent')) {
- obj['discount_percent'] = ApiClient.convertToType(data['discount_percent'], 'Number');
- }
- if (data.hasOwnProperty('discount_type')) {
- obj['discount_type'] = ApiClient.convertToType(data['discount_type'], 'String');
- }
- if (data.hasOwnProperty('resource_id')) {
- obj['resource_id'] = ApiClient.convertToType(data['resource_id'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to DiscountResourceFields.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to DiscountResourceFields.
- */
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['discount_type'] && !(typeof data['discount_type'] === 'string' || data['discount_type'] instanceof String)) {
- throw new Error("Expected the field `discount_type` to be a primitive type in the JSON string but got " + data['discount_type']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Number} discount_amount
- */
-DiscountResourceFields.prototype['discount_amount'] = undefined;
-
-/**
- * @member {Number} discount_percent
- */
-DiscountResourceFields.prototype['discount_percent'] = undefined;
-
-/**
- * @member {String} discount_type
- */
-DiscountResourceFields.prototype['discount_type'] = undefined;
-
-/**
- * @member {Number} resource_id
- */
-DiscountResourceFields.prototype['resource_id'] = undefined;
-
-
-
-
-
-
-export default DiscountResourceFields;
-
diff --git a/src/model/DiscountResourcePayload.js b/src/model/DiscountResourcePayload.js
deleted file mode 100644
index dcb4584d..00000000
--- a/src/model/DiscountResourcePayload.js
+++ /dev/null
@@ -1,125 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The DiscountResourcePayload model module.
- * @module model/DiscountResourcePayload
- * @version v1.25.0-alpha
- */
-class DiscountResourcePayload {
- /**
- * Constructs a new DiscountResourcePayload.
- * @alias module:model/DiscountResourcePayload
- * @param discountAmount {Number}
- * @param discountPercent {Number}
- * @param discountType {String}
- * @param resourceId {Number}
- */
- constructor(discountAmount, discountPercent, discountType, resourceId) {
-
- DiscountResourcePayload.initialize(this, discountAmount, discountPercent, discountType, resourceId);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj, discountAmount, discountPercent, discountType, resourceId) {
- obj['discount_amount'] = discountAmount;
- obj['discount_percent'] = discountPercent;
- obj['discount_type'] = discountType;
- obj['resource_id'] = resourceId;
- }
-
- /**
- * Constructs a DiscountResourcePayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/DiscountResourcePayload} obj Optional instance to populate.
- * @return {module:model/DiscountResourcePayload} The populated DiscountResourcePayload instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new DiscountResourcePayload();
-
- if (data.hasOwnProperty('discount_amount')) {
- obj['discount_amount'] = ApiClient.convertToType(data['discount_amount'], 'Number');
- }
- if (data.hasOwnProperty('discount_percent')) {
- obj['discount_percent'] = ApiClient.convertToType(data['discount_percent'], 'Number');
- }
- if (data.hasOwnProperty('discount_type')) {
- obj['discount_type'] = ApiClient.convertToType(data['discount_type'], 'String');
- }
- if (data.hasOwnProperty('resource_id')) {
- obj['resource_id'] = ApiClient.convertToType(data['resource_id'], 'Number');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to DiscountResourcePayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to DiscountResourcePayload.
- */
- static validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- for (const property of DiscountResourcePayload.RequiredProperties) {
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- if (data['discount_type'] && !(typeof data['discount_type'] === 'string' || data['discount_type'] instanceof String)) {
- throw new Error("Expected the field `discount_type` to be a primitive type in the JSON string but got " + data['discount_type']);
- }
-
- return true;
- }
-
-
-}
-
-DiscountResourcePayload.RequiredProperties = ["discount_amount", "discount_percent", "discount_type", "resource_id"];
-
-/**
- * @member {Number} discount_amount
- */
-DiscountResourcePayload.prototype['discount_amount'] = undefined;
-
-/**
- * @member {Number} discount_percent
- */
-DiscountResourcePayload.prototype['discount_percent'] = undefined;
-
-/**
- * @member {String} discount_type
- */
-DiscountResourcePayload.prototype['discount_type'] = undefined;
-
-/**
- * @member {Number} resource_id
- */
-DiscountResourcePayload.prototype['resource_id'] = undefined;
-
-
-
-
-
-
-export default DiscountResourcePayload;
-
diff --git a/src/model/EditLabelOfAnExistingVMPayload.js b/src/model/EditLabelOfAnExistingVMPayload.js
new file mode 100644
index 00000000..5818bd91
--- /dev/null
+++ b/src/model/EditLabelOfAnExistingVMPayload.js
@@ -0,0 +1,88 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The EditLabelOfAnExistingVMPayload model module.
+ * @module model/EditLabelOfAnExistingVMPayload
+ * @version v1.51.1-alpha
+ */
+class EditLabelOfAnExistingVMPayload {
+ /**
+ * Constructs a new EditLabelOfAnExistingVMPayload.
+ * @alias module:model/EditLabelOfAnExistingVMPayload
+ */
+ constructor() {
+
+ EditLabelOfAnExistingVMPayload.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a EditLabelOfAnExistingVMPayload from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/EditLabelOfAnExistingVMPayload} obj Optional instance to populate.
+ * @return {module:model/EditLabelOfAnExistingVMPayload} The populated EditLabelOfAnExistingVMPayload instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new EditLabelOfAnExistingVMPayload();
+
+ if (data.hasOwnProperty('labels')) {
+ obj['labels'] = ApiClient.convertToType(data['labels'], ['String']);
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to EditLabelOfAnExistingVMPayload.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to EditLabelOfAnExistingVMPayload.
+ */
+ static validateJSON(data) {
+ // ensure the json data is an array
+ if (!Array.isArray(data['labels'])) {
+ throw new Error("Expected the field `labels` to be an array in the JSON data but got " + data['labels']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * Multiple labels can be added by separating with spaces
+ * @member {Array.} labels
+ */
+EditLabelOfAnExistingVMPayload.prototype['labels'] = undefined;
+
+
+
+
+
+
+export default EditLabelOfAnExistingVMPayload;
+
diff --git a/src/model/EditlabelofanexistingVMPayload.js b/src/model/EditlabelofanexistingVMPayload.js
deleted file mode 100644
index e2d6b627..00000000
--- a/src/model/EditlabelofanexistingVMPayload.js
+++ /dev/null
@@ -1,88 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The EditlabelofanexistingVMPayload model module.
- * @module model/EditlabelofanexistingVMPayload
- * @version v1.25.0-alpha
- */
-class EditlabelofanexistingVMPayload {
- /**
- * Constructs a new EditlabelofanexistingVMPayload.
- * @alias module:model/EditlabelofanexistingVMPayload
- */
- constructor() {
-
- EditlabelofanexistingVMPayload.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a EditlabelofanexistingVMPayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/EditlabelofanexistingVMPayload} obj Optional instance to populate.
- * @return {module:model/EditlabelofanexistingVMPayload} The populated EditlabelofanexistingVMPayload instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new EditlabelofanexistingVMPayload();
-
- if (data.hasOwnProperty('labels')) {
- obj['labels'] = ApiClient.convertToType(data['labels'], ['String']);
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to EditlabelofanexistingVMPayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to EditlabelofanexistingVMPayload.
- */
- static validateJSON(data) {
- // ensure the json data is an array
- if (!Array.isArray(data['labels'])) {
- throw new Error("Expected the field `labels` to be an array in the JSON data but got " + data['labels']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * Multiple labels can be added by separating with spaces
- * @member {Array.} labels
- */
-EditlabelofanexistingVMPayload.prototype['labels'] = undefined;
-
-
-
-
-
-
-export default EditlabelofanexistingVMPayload;
-
diff --git a/src/model/Environment.js b/src/model/Environment.js
index 6acef33f..a00001c4 100644
--- a/src/model/Environment.js
+++ b/src/model/Environment.js
@@ -17,7 +17,7 @@ import EnvironmentFields from './EnvironmentFields';
/**
* The Environment model module.
* @module model/Environment
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class Environment {
/**
diff --git a/src/model/EnvironmentFeatures.js b/src/model/EnvironmentFeatures.js
index e8a67a27..21fa227c 100644
--- a/src/model/EnvironmentFeatures.js
+++ b/src/model/EnvironmentFeatures.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The EnvironmentFeatures model module.
* @module model/EnvironmentFeatures
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class EnvironmentFeatures {
/**
@@ -47,6 +47,9 @@ class EnvironmentFeatures {
if (data) {
obj = obj || new EnvironmentFeatures();
+ if (data.hasOwnProperty('green_status')) {
+ obj['green_status'] = ApiClient.convertToType(data['green_status'], 'String');
+ }
if (data.hasOwnProperty('network_optimised')) {
obj['network_optimised'] = ApiClient.convertToType(data['network_optimised'], 'Boolean');
}
@@ -60,6 +63,10 @@ class EnvironmentFeatures {
* @return {boolean} to indicate whether the JSON data is valid with respect to EnvironmentFeatures.
*/
static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['green_status'] && !(typeof data['green_status'] === 'string' || data['green_status'] instanceof String)) {
+ throw new Error("Expected the field `green_status` to be a primitive type in the JSON string but got " + data['green_status']);
+ }
return true;
}
@@ -69,6 +76,11 @@ class EnvironmentFeatures {
+/**
+ * @member {module:model/EnvironmentFeatures.GreenStatusEnum} green_status
+ */
+EnvironmentFeatures.prototype['green_status'] = undefined;
+
/**
* @member {Boolean} network_optimised
*/
@@ -78,6 +90,33 @@ EnvironmentFeatures.prototype['network_optimised'] = undefined;
+/**
+ * Allowed values for the green_status property.
+ * @enum {String}
+ * @readonly
+ */
+EnvironmentFeatures['GreenStatusEnum'] = {
+
+ /**
+ * value: "GREEN"
+ * @const
+ */
+ "GREEN": "GREEN",
+
+ /**
+ * value: "PARTIALLY_GREEN"
+ * @const
+ */
+ "PARTIALLY_GREEN": "PARTIALLY_GREEN",
+
+ /**
+ * value: "NOT_GREEN"
+ * @const
+ */
+ "NOT_GREEN": "NOT_GREEN"
+};
+
+
export default EnvironmentFeatures;
diff --git a/src/model/EnvironmentFields.js b/src/model/EnvironmentFields.js
index 2d9d43cb..a7661c70 100644
--- a/src/model/EnvironmentFields.js
+++ b/src/model/EnvironmentFields.js
@@ -17,7 +17,7 @@ import EnvironmentFeatures from './EnvironmentFeatures';
/**
* The EnvironmentFields model module.
* @module model/EnvironmentFields
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class EnvironmentFields {
/**
diff --git a/src/model/EnvironmentFieldsForVolume.js b/src/model/EnvironmentFieldsForVolume.js
new file mode 100644
index 00000000..eeff6dd9
--- /dev/null
+++ b/src/model/EnvironmentFieldsForVolume.js
@@ -0,0 +1,107 @@
+/**
+ * Infrahub-API
+ * 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.
+ *
+ * The version of the OpenAPI document: 1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ *
+ */
+
+import ApiClient from '../ApiClient';
+
+/**
+ * The EnvironmentFieldsForVolume model module.
+ * @module model/EnvironmentFieldsForVolume
+ * @version v1.51.1-alpha
+ */
+class EnvironmentFieldsForVolume {
+ /**
+ * Constructs a new EnvironmentFieldsForVolume.
+ * @alias module:model/EnvironmentFieldsForVolume
+ */
+ constructor() {
+
+ EnvironmentFieldsForVolume.initialize(this);
+ }
+
+ /**
+ * Initializes the fields of this object.
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
+ * Only for internal use.
+ */
+ static initialize(obj) {
+ }
+
+ /**
+ * Constructs a EnvironmentFieldsForVolume from a plain JavaScript object, optionally creating a new instance.
+ * Copies all relevant properties from data to obj if supplied or a new instance if not.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @param {module:model/EnvironmentFieldsForVolume} obj Optional instance to populate.
+ * @return {module:model/EnvironmentFieldsForVolume} The populated EnvironmentFieldsForVolume instance.
+ */
+ static constructFromObject(data, obj) {
+ if (data) {
+ obj = obj || new EnvironmentFieldsForVolume();
+
+ if (data.hasOwnProperty('features')) {
+ obj['features'] = ApiClient.convertToType(data['features'], Object);
+ }
+ if (data.hasOwnProperty('name')) {
+ obj['name'] = ApiClient.convertToType(data['name'], 'String');
+ }
+ if (data.hasOwnProperty('region')) {
+ obj['region'] = ApiClient.convertToType(data['region'], 'String');
+ }
+ }
+ return obj;
+ }
+
+ /**
+ * Validates the JSON data with respect to EnvironmentFieldsForVolume.
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
+ * @return {boolean} to indicate whether the JSON data is valid with respect to EnvironmentFieldsForVolume.
+ */
+ static validateJSON(data) {
+ // ensure the json data is a string
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
+ }
+ // ensure the json data is a string
+ if (data['region'] && !(typeof data['region'] === 'string' || data['region'] instanceof String)) {
+ throw new Error("Expected the field `region` to be a primitive type in the JSON string but got " + data['region']);
+ }
+
+ return true;
+ }
+
+
+}
+
+
+
+/**
+ * @member {Object} features
+ */
+EnvironmentFieldsForVolume.prototype['features'] = undefined;
+
+/**
+ * @member {String} name
+ */
+EnvironmentFieldsForVolume.prototype['name'] = undefined;
+
+/**
+ * @member {String} region
+ */
+EnvironmentFieldsForVolume.prototype['region'] = undefined;
+
+
+
+
+
+
+export default EnvironmentFieldsForVolume;
+
diff --git a/src/model/EnvironmentFieldsforVolume.js b/src/model/EnvironmentFieldsforVolume.js
deleted file mode 100644
index f931ae70..00000000
--- a/src/model/EnvironmentFieldsforVolume.js
+++ /dev/null
@@ -1,87 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The EnvironmentFieldsforVolume model module.
- * @module model/EnvironmentFieldsforVolume
- * @version v1.25.0-alpha
- */
-class EnvironmentFieldsforVolume {
- /**
- * Constructs a new EnvironmentFieldsforVolume.
- * @alias module:model/EnvironmentFieldsforVolume
- */
- constructor() {
-
- EnvironmentFieldsforVolume.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a EnvironmentFieldsforVolume from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/EnvironmentFieldsforVolume} obj Optional instance to populate.
- * @return {module:model/EnvironmentFieldsforVolume} The populated EnvironmentFieldsforVolume instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new EnvironmentFieldsforVolume();
-
- if (data.hasOwnProperty('name')) {
- obj['name'] = ApiClient.convertToType(data['name'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to EnvironmentFieldsforVolume.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to EnvironmentFieldsforVolume.
- */
- static validateJSON(data) {
- // ensure the json data is a string
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {String} name
- */
-EnvironmentFieldsforVolume.prototype['name'] = undefined;
-
-
-
-
-
-
-export default EnvironmentFieldsforVolume;
-
diff --git a/src/model/Environments.js b/src/model/Environments.js
index fa56f730..a5d2029f 100644
--- a/src/model/Environments.js
+++ b/src/model/Environments.js
@@ -17,7 +17,7 @@ import EnvironmentFields from './EnvironmentFields';
/**
* The Environments model module.
* @module model/Environments
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class Environments {
/**
diff --git a/src/model/ErrorResponseModel.js b/src/model/ErrorResponseModel.js
index 58360541..371cf81f 100644
--- a/src/model/ErrorResponseModel.js
+++ b/src/model/ErrorResponseModel.js
@@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The ErrorResponseModel model module.
* @module model/ErrorResponseModel
- * @version v1.25.0-alpha
+ * @version v1.51.1-alpha
*/
class ErrorResponseModel {
/**
diff --git a/src/model/ExcludeBillingPostPayload.js b/src/model/ExcludeBillingPostPayload.js
deleted file mode 100644
index b385aae3..00000000
--- a/src/model/ExcludeBillingPostPayload.js
+++ /dev/null
@@ -1,118 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The ExcludeBillingPostPayload model module.
- * @module model/ExcludeBillingPostPayload
- * @version v1.25.0-alpha
- */
-class ExcludeBillingPostPayload {
- /**
- * Constructs a new ExcludeBillingPostPayload.
- * @alias module:model/ExcludeBillingPostPayload
- * @param exclude {Boolean} `true` excludes the resource from billing while `false` does not.
- * @param resourceId {Number} The ID of the resource which is being excluded from billing.
- * @param resourceType {String} The type of the resource which is being excluded from billing.
- */
- constructor(exclude, resourceId, resourceType) {
-
- ExcludeBillingPostPayload.initialize(this, exclude, resourceId, resourceType);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj, exclude, resourceId, resourceType) {
- obj['exclude'] = exclude;
- obj['resource_id'] = resourceId;
- obj['resource_type'] = resourceType;
- }
-
- /**
- * Constructs a ExcludeBillingPostPayload from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ExcludeBillingPostPayload} obj Optional instance to populate.
- * @return {module:model/ExcludeBillingPostPayload} The populated ExcludeBillingPostPayload instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ExcludeBillingPostPayload();
-
- if (data.hasOwnProperty('exclude')) {
- obj['exclude'] = ApiClient.convertToType(data['exclude'], 'Boolean');
- }
- if (data.hasOwnProperty('resource_id')) {
- obj['resource_id'] = ApiClient.convertToType(data['resource_id'], 'Number');
- }
- if (data.hasOwnProperty('resource_type')) {
- obj['resource_type'] = ApiClient.convertToType(data['resource_type'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ExcludeBillingPostPayload.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ExcludeBillingPostPayload.
- */
- static validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- for (const property of ExcludeBillingPostPayload.RequiredProperties) {
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is a string
- if (data['resource_type'] && !(typeof data['resource_type'] === 'string' || data['resource_type'] instanceof String)) {
- throw new Error("Expected the field `resource_type` to be a primitive type in the JSON string but got " + data['resource_type']);
- }
-
- return true;
- }
-
-
-}
-
-ExcludeBillingPostPayload.RequiredProperties = ["exclude", "resource_id", "resource_type"];
-
-/**
- * `true` excludes the resource from billing while `false` does not.
- * @member {Boolean} exclude
- */
-ExcludeBillingPostPayload.prototype['exclude'] = undefined;
-
-/**
- * The ID of the resource which is being excluded from billing.
- * @member {Number} resource_id
- */
-ExcludeBillingPostPayload.prototype['resource_id'] = undefined;
-
-/**
- * The type of the resource which is being excluded from billing.
- * @member {String} resource_type
- */
-ExcludeBillingPostPayload.prototype['resource_type'] = undefined;
-
-
-
-
-
-
-export default ExcludeBillingPostPayload;
-
diff --git a/src/model/ExcludeBillingPostResponse.js b/src/model/ExcludeBillingPostResponse.js
deleted file mode 100644
index 25a162e1..00000000
--- a/src/model/ExcludeBillingPostResponse.js
+++ /dev/null
@@ -1,88 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-import Data from './Data';
-
-/**
- * The ExcludeBillingPostResponse model module.
- * @module model/ExcludeBillingPostResponse
- * @version v1.25.0-alpha
- */
-class ExcludeBillingPostResponse {
- /**
- * Constructs a new ExcludeBillingPostResponse.
- * @alias module:model/ExcludeBillingPostResponse
- */
- constructor() {
-
- ExcludeBillingPostResponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a ExcludeBillingPostResponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ExcludeBillingPostResponse} obj Optional instance to populate.
- * @return {module:model/ExcludeBillingPostResponse} The populated ExcludeBillingPostResponse instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ExcludeBillingPostResponse();
-
- if (data.hasOwnProperty('data')) {
- obj['data'] = Data.constructFromObject(data['data']);
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ExcludeBillingPostResponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ExcludeBillingPostResponse.
- */
- static validateJSON(data) {
- // validate the optional field `data`
- if (data['data']) { // data not null
- Data.validateJSON(data['data']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {module:model/Data} data
- */
-ExcludeBillingPostResponse.prototype['data'] = undefined;
-
-
-
-
-
-
-export default ExcludeBillingPostResponse;
-
diff --git a/src/model/ExportBillingDataRequest.js b/src/model/ExportBillingDataRequest.js
deleted file mode 100644
index 070c3030..00000000
--- a/src/model/ExportBillingDataRequest.js
+++ /dev/null
@@ -1,172 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The ExportBillingDataRequest model module.
- * @module model/ExportBillingDataRequest
- * @version v1.25.0-alpha
- */
-class ExportBillingDataRequest {
- /**
- * Constructs a new ExportBillingDataRequest.
- * @alias module:model/ExportBillingDataRequest
- * @param endDate {Date}
- * @param requiredAttributes {Array.}
- * @param requiredMetrics {Array.}
- * @param resourceType {module:model/ExportBillingDataRequest.ResourceTypeEnum}
- * @param startDate {Date}
- */
- constructor(endDate, requiredAttributes, requiredMetrics, resourceType, startDate) {
-
- ExportBillingDataRequest.initialize(this, endDate, requiredAttributes, requiredMetrics, resourceType, startDate);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj, endDate, requiredAttributes, requiredMetrics, resourceType, startDate) {
- obj['end_date'] = endDate;
- obj['required_attributes'] = requiredAttributes;
- obj['required_metrics'] = requiredMetrics;
- obj['resource_type'] = resourceType;
- obj['start_date'] = startDate;
- }
-
- /**
- * Constructs a ExportBillingDataRequest from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ExportBillingDataRequest} obj Optional instance to populate.
- * @return {module:model/ExportBillingDataRequest} The populated ExportBillingDataRequest instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ExportBillingDataRequest();
-
- if (data.hasOwnProperty('end_date')) {
- obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date');
- }
- if (data.hasOwnProperty('org_id')) {
- obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number');
- }
- if (data.hasOwnProperty('required_attributes')) {
- obj['required_attributes'] = ApiClient.convertToType(data['required_attributes'], ['String']);
- }
- if (data.hasOwnProperty('required_metrics')) {
- obj['required_metrics'] = ApiClient.convertToType(data['required_metrics'], ['String']);
- }
- if (data.hasOwnProperty('resource_type')) {
- obj['resource_type'] = ApiClient.convertToType(data['resource_type'], 'String');
- }
- if (data.hasOwnProperty('start_date')) {
- obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ExportBillingDataRequest.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ExportBillingDataRequest.
- */
- static validateJSON(data) {
- // check to make sure all required properties are present in the JSON string
- for (const property of ExportBillingDataRequest.RequiredProperties) {
- if (!data.hasOwnProperty(property)) {
- throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
- }
- }
- // ensure the json data is an array
- if (!Array.isArray(data['required_attributes'])) {
- throw new Error("Expected the field `required_attributes` to be an array in the JSON data but got " + data['required_attributes']);
- }
- // ensure the json data is an array
- if (!Array.isArray(data['required_metrics'])) {
- throw new Error("Expected the field `required_metrics` to be an array in the JSON data but got " + data['required_metrics']);
- }
- // ensure the json data is a string
- if (data['resource_type'] && !(typeof data['resource_type'] === 'string' || data['resource_type'] instanceof String)) {
- throw new Error("Expected the field `resource_type` to be a primitive type in the JSON string but got " + data['resource_type']);
- }
-
- return true;
- }
-
-
-}
-
-ExportBillingDataRequest.RequiredProperties = ["end_date", "required_attributes", "required_metrics", "resource_type", "start_date"];
-
-/**
- * @member {Date} end_date
- */
-ExportBillingDataRequest.prototype['end_date'] = undefined;
-
-/**
- * @member {Number} org_id
- */
-ExportBillingDataRequest.prototype['org_id'] = undefined;
-
-/**
- * @member {Array.} required_attributes
- */
-ExportBillingDataRequest.prototype['required_attributes'] = undefined;
-
-/**
- * @member {Array.} required_metrics
- */
-ExportBillingDataRequest.prototype['required_metrics'] = undefined;
-
-/**
- * @member {module:model/ExportBillingDataRequest.ResourceTypeEnum} resource_type
- */
-ExportBillingDataRequest.prototype['resource_type'] = undefined;
-
-/**
- * @member {Date} start_date
- */
-ExportBillingDataRequest.prototype['start_date'] = undefined;
-
-
-
-
-
-/**
- * Allowed values for the resource_type property.
- * @enum {String}
- * @readonly
- */
-ExportBillingDataRequest['ResourceTypeEnum'] = {
-
- /**
- * value: "virtual_machine"
- * @const
- */
- "virtual_machine": "virtual_machine",
-
- /**
- * value: "volume"
- * @const
- */
- "volume": "volume"
-};
-
-
-
-export default ExportBillingDataRequest;
-
diff --git a/src/model/ExportBillingDataResponse.js b/src/model/ExportBillingDataResponse.js
deleted file mode 100644
index ad8b295d..00000000
--- a/src/model/ExportBillingDataResponse.js
+++ /dev/null
@@ -1,99 +0,0 @@
-/**
- * Infrahub-API
- * 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.
- *
- * The version of the OpenAPI document: 1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- *
- */
-
-import ApiClient from '../ApiClient';
-
-/**
- * The ExportBillingDataResponse model module.
- * @module model/ExportBillingDataResponse
- * @version v1.25.0-alpha
- */
-class ExportBillingDataResponse {
- /**
- * Constructs a new ExportBillingDataResponse.
- * @alias module:model/ExportBillingDataResponse
- */
- constructor() {
-
- ExportBillingDataResponse.initialize(this);
- }
-
- /**
- * Initializes the fields of this object.
- * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
- * Only for internal use.
- */
- static initialize(obj) {
- }
-
- /**
- * Constructs a ExportBillingDataResponse from a plain JavaScript object, optionally creating a new instance.
- * Copies all relevant properties from data to obj if supplied or a new instance if not.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @param {module:model/ExportBillingDataResponse} obj Optional instance to populate.
- * @return {module:model/ExportBillingDataResponse} The populated ExportBillingDataResponse instance.
- */
- static constructFromObject(data, obj) {
- if (data) {
- obj = obj || new ExportBillingDataResponse();
-
- if (data.hasOwnProperty('measures')) {
- obj['measures'] = ApiClient.convertToType(data['measures'], [Object]);
- }
- if (data.hasOwnProperty('message')) {
- obj['message'] = ApiClient.convertToType(data['message'], 'String');
- }
- }
- return obj;
- }
-
- /**
- * Validates the JSON data with respect to ExportBillingDataResponse.
- * @param {Object} data The plain JavaScript object bearing properties of interest.
- * @return {boolean} to indicate whether the JSON data is valid with respect to ExportBillingDataResponse.
- */
- static validateJSON(data) {
- // ensure the json data is an array
- if (!Array.isArray(data['measures'])) {
- throw new Error("Expected the field `measures` to be an array in the JSON data but got " + data['measures']);
- }
- // ensure the json data is a string
- if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
- throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
- }
-
- return true;
- }
-
-
-}
-
-
-
-/**
- * @member {Array.