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.} measures - */ -ExportBillingDataResponse.prototype['measures'] = undefined; - -/** - * @member {String} message - */ -ExportBillingDataResponse.prototype['message'] = undefined; -var _default = exports["default"] = ExportBillingDataResponse; \ No newline at end of file diff --git a/dist/model/FieldChange.js b/dist/model/FieldChange.js deleted file mode 100644 index 1e93fc45..00000000 --- a/dist/model/FieldChange.js +++ /dev/null @@ -1,116 +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 FieldChange model module. - * @module model/FieldChange - * @version v1.25.0-alpha - */ -var FieldChange = /*#__PURE__*/function () { - /** - * Constructs a new FieldChange. - * @alias module:model/FieldChange - */ - function FieldChange() { - _classCallCheck(this, FieldChange); - FieldChange.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(FieldChange, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a FieldChange 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/FieldChange} obj Optional instance to populate. - * @return {module:model/FieldChange} The populated FieldChange instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new FieldChange(); - if (data.hasOwnProperty('field_name')) { - obj['field_name'] = _ApiClient["default"].convertToType(data['field_name'], 'String'); - } - if (data.hasOwnProperty('new_value')) { - obj['new_value'] = _ApiClient["default"].convertToType(data['new_value'], 'String'); - } - if (data.hasOwnProperty('old_value')) { - obj['old_value'] = _ApiClient["default"].convertToType(data['old_value'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to FieldChange. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FieldChange. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // ensure the json data is a string - if (data['field_name'] && !(typeof data['field_name'] === 'string' || data['field_name'] instanceof String)) { - throw new Error("Expected the field `field_name` to be a primitive type in the JSON string but got " + data['field_name']); - } - // ensure the json data is a string - if (data['new_value'] && !(typeof data['new_value'] === 'string' || data['new_value'] instanceof String)) { - throw new Error("Expected the field `new_value` to be a primitive type in the JSON string but got " + data['new_value']); - } - // ensure the json data is a string - if (data['old_value'] && !(typeof data['old_value'] === 'string' || data['old_value'] instanceof String)) { - throw new Error("Expected the field `old_value` to be a primitive type in the JSON string but got " + data['old_value']); - } - return true; - } - }]); -}(); -/** - * The name of the field that was changed - * @member {String} field_name - */ -FieldChange.prototype['field_name'] = undefined; - -/** - * The new value of the field - * @member {String} new_value - */ -FieldChange.prototype['new_value'] = undefined; - -/** - * The old value of the field - * @member {String} old_value - */ -FieldChange.prototype['old_value'] = undefined; -var _default = exports["default"] = FieldChange; \ No newline at end of file diff --git a/dist/model/FirewallAttachmentModel.js b/dist/model/FirewallAttachmentModel.js index 5c3a81df..e8fc476e 100644 --- a/dist/model/FirewallAttachmentModel.js +++ b/dist/model/FirewallAttachmentModel.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The FirewallAttachmentModel model module. * @module model/FirewallAttachmentModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var FirewallAttachmentModel = /*#__PURE__*/function () { /** diff --git a/dist/model/FirewallAttachmentVMModel.js b/dist/model/FirewallAttachmentVMModel.js index a589bfe8..67c3ab68 100644 --- a/dist/model/FirewallAttachmentVMModel.js +++ b/dist/model/FirewallAttachmentVMModel.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The FirewallAttachmentVMModel model module. * @module model/FirewallAttachmentVMModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var FirewallAttachmentVMModel = /*#__PURE__*/function () { /** diff --git a/dist/model/FirewallDetailFields.js b/dist/model/FirewallDetailFields.js index 930424a9..301d6b30 100644 --- a/dist/model/FirewallDetailFields.js +++ b/dist/model/FirewallDetailFields.js @@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The FirewallDetailFields model module. * @module model/FirewallDetailFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var FirewallDetailFields = /*#__PURE__*/function () { /** diff --git a/dist/model/FirewallDetailResponse.js b/dist/model/FirewallDetailResponse.js index 7b4331cb..2b3fd1a0 100644 --- a/dist/model/FirewallDetailResponse.js +++ b/dist/model/FirewallDetailResponse.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The FirewallDetailResponse model module. * @module model/FirewallDetailResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var FirewallDetailResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/FirewallEnvironmentFields.js b/dist/model/FirewallEnvironmentFields.js index 2146dd1c..08c8f5a0 100644 --- a/dist/model/FirewallEnvironmentFields.js +++ b/dist/model/FirewallEnvironmentFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The FirewallEnvironmentFields model module. * @module model/FirewallEnvironmentFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var FirewallEnvironmentFields = /*#__PURE__*/function () { /** diff --git a/dist/model/FirewallFields.js b/dist/model/FirewallFields.js index ba034c11..5f15cc9e 100644 --- a/dist/model/FirewallFields.js +++ b/dist/model/FirewallFields.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The FirewallFields model module. * @module model/FirewallFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var FirewallFields = /*#__PURE__*/function () { /** diff --git a/dist/model/FirewallResponse.js b/dist/model/FirewallResponse.js index bbaf60dd..389a06c2 100644 --- a/dist/model/FirewallResponse.js +++ b/dist/model/FirewallResponse.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The FirewallResponse model module. * @module model/FirewallResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var FirewallResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/FirewallRule.js b/dist/model/FirewallRule.js index f3c22295..4509ffe7 100644 --- a/dist/model/FirewallRule.js +++ b/dist/model/FirewallRule.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The FirewallRule model module. * @module model/FirewallRule - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var FirewallRule = /*#__PURE__*/function () { /** diff --git a/dist/model/FirewallsListResponse.js b/dist/model/FirewallsListResponse.js index 09308484..7e859246 100644 --- a/dist/model/FirewallsListResponse.js +++ b/dist/model/FirewallsListResponse.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The FirewallsListResponse model module. * @module model/FirewallsListResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var FirewallsListResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/FlavorFields.js b/dist/model/FlavorFields.js index e6b2bdd8..37ba7a6a 100644 --- a/dist/model/FlavorFields.js +++ b/dist/model/FlavorFields.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The FlavorFields model module. * @module model/FlavorFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var FlavorFields = /*#__PURE__*/function () { /** @@ -78,6 +78,9 @@ var FlavorFields = /*#__PURE__*/function () { 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'); } @@ -180,6 +183,11 @@ FlavorFields.prototype['display_name'] = undefined; */ FlavorFields.prototype['ephemeral'] = undefined; +/** + * @member {Object} features + */ +FlavorFields.prototype['features'] = undefined; + /** * @member {String} gpu */ diff --git a/dist/model/FlavorItemGetResponse.js b/dist/model/FlavorItemGetResponse.js index 34d379c8..ac8022aa 100644 --- a/dist/model/FlavorItemGetResponse.js +++ b/dist/model/FlavorItemGetResponse.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The FlavorItemGetResponse model module. * @module model/FlavorItemGetResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var FlavorItemGetResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/FlavorLabelFields.js b/dist/model/FlavorLabelFields.js new file mode 100644 index 00000000..abd1b4c2 --- /dev/null +++ b/dist/model/FlavorLabelFields.js @@ -0,0 +1,99 @@ +"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 FlavorLabelFields model module. + * @module model/FlavorLabelFields + * @version v1.51.1-alpha + */ +var FlavorLabelFields = /*#__PURE__*/function () { + /** + * Constructs a new FlavorLabelFields. + * @alias module:model/FlavorLabelFields + */ + function FlavorLabelFields() { + _classCallCheck(this, FlavorLabelFields); + FlavorLabelFields.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(FlavorLabelFields, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a FlavorLabelFields 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/FlavorLabelFields} obj Optional instance to populate. + * @return {module:model/FlavorLabelFields} The populated FlavorLabelFields instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new FlavorLabelFields(); + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('label')) { + obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to FlavorLabelFields. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to FlavorLabelFields. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // ensure the json data is a string + if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) { + throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']); + } + return true; + } + }]); +}(); +/** + * + * @member {Number} id + */ +FlavorLabelFields.prototype['id'] = undefined; + +/** + * + * @member {String} label + */ +FlavorLabelFields.prototype['label'] = undefined; +var _default = exports["default"] = FlavorLabelFields; \ No newline at end of file diff --git a/dist/model/FlavorListResponse.js b/dist/model/FlavorListResponse.js index f819d9a2..49491a2a 100644 --- a/dist/model/FlavorListResponse.js +++ b/dist/model/FlavorListResponse.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The FlavorListResponse model module. * @module model/FlavorListResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var FlavorListResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/FlavorObjectFields.js b/dist/model/FlavorObjectFields.js index 791233b0..6b551c5a 100644 --- a/dist/model/FlavorObjectFields.js +++ b/dist/model/FlavorObjectFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The FlavorObjectFields model module. * @module model/FlavorObjectFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var FlavorObjectFields = /*#__PURE__*/function () { /** diff --git a/dist/model/FlavorPayload.js b/dist/model/FlavorPayload.js deleted file mode 100644 index ff5ae127..00000000 --- a/dist/model/FlavorPayload.js +++ /dev/null @@ -1,190 +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 FlavorPayload model module. - * @module model/FlavorPayload - * @version v1.25.0-alpha - */ -var FlavorPayload = /*#__PURE__*/function () { - /** - * Constructs a new FlavorPayload. - * @alias module:model/FlavorPayload - * @param cpu {Number} - * @param disk {Number} - * @param gpu {String} - * @param gpuCount {Number} - * @param isPublic {Boolean} - * @param name {String} - * @param ram {Number} - * @param regionName {String} - */ - function FlavorPayload(cpu, disk, gpu, gpuCount, isPublic, name, ram, regionName) { - _classCallCheck(this, FlavorPayload); - FlavorPayload.initialize(this, cpu, disk, gpu, gpuCount, isPublic, name, ram, regionName); - } - - /** - * 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(FlavorPayload, null, [{ - key: "initialize", - value: function initialize(obj, cpu, disk, gpu, gpuCount, isPublic, name, ram, regionName) { - obj['cpu'] = cpu; - obj['disk'] = disk; - obj['gpu'] = gpu; - obj['gpu_count'] = gpuCount; - obj['is_public'] = isPublic; - obj['name'] = name; - obj['ram'] = ram; - obj['region_name'] = regionName; - } - - /** - * Constructs a FlavorPayload 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/FlavorPayload} obj Optional instance to populate. - * @return {module:model/FlavorPayload} The populated FlavorPayload instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new FlavorPayload(); - 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('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('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('ram')) { - obj['ram'] = _ApiClient["default"].convertToType(data['ram'], 'Number'); - } - if (data.hasOwnProperty('region_name')) { - obj['region_name'] = _ApiClient["default"].convertToType(data['region_name'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to FlavorPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FlavorPayload. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(FlavorPayload.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['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']); - } - // 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_name'] && !(typeof data['region_name'] === 'string' || data['region_name'] instanceof String)) { - throw new Error("Expected the field `region_name` to be a primitive type in the JSON string but got " + data['region_name']); - } - return true; - } - }]); -}(); -FlavorPayload.RequiredProperties = ["cpu", "disk", "gpu", "gpu_count", "is_public", "name", "ram", "region_name"]; - -/** - * @member {Number} cpu - */ -FlavorPayload.prototype['cpu'] = undefined; - -/** - * @member {Number} disk - */ -FlavorPayload.prototype['disk'] = undefined; - -/** - * @member {String} gpu - */ -FlavorPayload.prototype['gpu'] = undefined; - -/** - * @member {Number} gpu_count - */ -FlavorPayload.prototype['gpu_count'] = undefined; - -/** - * @member {Boolean} is_public - */ -FlavorPayload.prototype['is_public'] = undefined; - -/** - * @member {String} name - */ -FlavorPayload.prototype['name'] = undefined; - -/** - * @member {Number} ram - */ -FlavorPayload.prototype['ram'] = undefined; - -/** - * @member {String} region_name - */ -FlavorPayload.prototype['region_name'] = undefined; -var _default = exports["default"] = FlavorPayload; \ No newline at end of file diff --git a/dist/model/FlavorResponse.js b/dist/model/FlavorResponse.js deleted file mode 100644 index b8f74997..00000000 --- a/dist/model/FlavorResponse.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 _FlavorFields = _interopRequireDefault(require("./FlavorFields")); -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 FlavorResponse model module. - * @module model/FlavorResponse - * @version v1.25.0-alpha - */ -var FlavorResponse = /*#__PURE__*/function () { - /** - * Constructs a new FlavorResponse. - * @alias module:model/FlavorResponse - */ - function FlavorResponse() { - _classCallCheck(this, FlavorResponse); - FlavorResponse.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(FlavorResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a FlavorResponse 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/FlavorResponse} obj Optional instance to populate. - * @return {module:model/FlavorResponse} The populated FlavorResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new FlavorResponse(); - if (data.hasOwnProperty('flavor')) { - obj['flavor'] = _FlavorFields["default"].constructFromObject(data['flavor']); - } - 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 FlavorResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FlavorResponse. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // validate the optional field `flavor` - if (data['flavor']) { - // data not null - _FlavorFields["default"].validateJSON(data['flavor']); - } - // 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/FlavorFields} flavor - */ -FlavorResponse.prototype['flavor'] = undefined; - -/** - * @member {String} message - */ -FlavorResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -FlavorResponse.prototype['status'] = undefined; -var _default = exports["default"] = FlavorResponse; \ No newline at end of file diff --git a/dist/model/FlavorRestrictions.js b/dist/model/FlavorRestrictions.js new file mode 100644 index 00000000..b95174f2 --- /dev/null +++ b/dist/model/FlavorRestrictions.js @@ -0,0 +1,133 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _CompatibleFlavor = _interopRequireDefault(require("./CompatibleFlavor")); +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 FlavorRestrictions model module. + * @module model/FlavorRestrictions + * @version v1.51.1-alpha + */ +var FlavorRestrictions = /*#__PURE__*/function () { + /** + * Constructs a new FlavorRestrictions. + * @alias module:model/FlavorRestrictions + */ + function FlavorRestrictions() { + _classCallCheck(this, FlavorRestrictions); + FlavorRestrictions.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(FlavorRestrictions, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a FlavorRestrictions 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/FlavorRestrictions} obj Optional instance to populate. + * @return {module:model/FlavorRestrictions} The populated FlavorRestrictions instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new FlavorRestrictions(); + if (data.hasOwnProperty('compatible_flavors')) { + obj['compatible_flavors'] = _ApiClient["default"].convertToType(data['compatible_flavors'], [_CompatibleFlavor["default"]]); + } + if (data.hasOwnProperty('has_flavor_restrictions')) { + obj['has_flavor_restrictions'] = _ApiClient["default"].convertToType(data['has_flavor_restrictions'], 'Boolean'); + } + if (data.hasOwnProperty('restriction_type')) { + obj['restriction_type'] = _ApiClient["default"].convertToType(data['restriction_type'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to FlavorRestrictions. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to FlavorRestrictions. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + if (data['compatible_flavors']) { + // data not null + // ensure the json data is an array + if (!Array.isArray(data['compatible_flavors'])) { + throw new Error("Expected the field `compatible_flavors` to be an array in the JSON data but got " + data['compatible_flavors']); + } + // validate the optional field `compatible_flavors` (array) + var _iterator = _createForOfIteratorHelper(data['compatible_flavors']), + _step; + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var item = _step.value; + _CompatibleFlavor["default"].validateJSON(item); + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + ; + } + // ensure the json data is a string + if (data['restriction_type'] && !(typeof data['restriction_type'] === 'string' || data['restriction_type'] instanceof String)) { + throw new Error("Expected the field `restriction_type` to be a primitive type in the JSON string but got " + data['restriction_type']); + } + return true; + } + }]); +}(); +/** + * List of compatible flavors with their link metadata + * @member {Array.} compatible_flavors + */ +FlavorRestrictions.prototype['compatible_flavors'] = undefined; + +/** + * Whether the image has any flavor restrictions + * @member {Boolean} has_flavor_restrictions + */ +FlavorRestrictions.prototype['has_flavor_restrictions'] = undefined; + +/** + * Either 'hard', 'soft', or null if no restrictions + * @member {String} restriction_type + */ +FlavorRestrictions.prototype['restriction_type'] = undefined; +var _default = exports["default"] = FlavorRestrictions; \ No newline at end of file diff --git a/dist/model/FlavorVMFields.js b/dist/model/FlavorVMFields.js deleted file mode 100644 index 44cfba08..00000000 --- a/dist/model/FlavorVMFields.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 FlavorVMFields model module. - * @module model/FlavorVMFields - * @version v1.25.0-alpha - */ -var FlavorVMFields = /*#__PURE__*/function () { - /** - * Constructs a new FlavorVMFields. - * @alias module:model/FlavorVMFields - */ - function FlavorVMFields() { - _classCallCheck(this, FlavorVMFields); - FlavorVMFields.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(FlavorVMFields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a FlavorVMFields 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/FlavorVMFields} obj Optional instance to populate. - * @return {module:model/FlavorVMFields} The populated FlavorVMFields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new FlavorVMFields(); - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); - } - 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('org_id')) { - obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to FlavorVMFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FlavorVMFields. - */ - }, { - 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['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 {Date} created_at - */ -FlavorVMFields.prototype['created_at'] = undefined; - -/** - * @member {String} host - */ -FlavorVMFields.prototype['host'] = undefined; - -/** - * @member {Number} id - */ -FlavorVMFields.prototype['id'] = undefined; - -/** - * @member {String} name - */ -FlavorVMFields.prototype['name'] = undefined; - -/** - * @member {String} openstack_id - */ -FlavorVMFields.prototype['openstack_id'] = undefined; - -/** - * @member {Number} org_id - */ -FlavorVMFields.prototype['org_id'] = undefined; - -/** - * @member {String} status - */ -FlavorVMFields.prototype['status'] = undefined; -var _default = exports["default"] = FlavorVMFields; \ No newline at end of file diff --git a/dist/model/FlavorVMsResponse.js b/dist/model/FlavorVMsResponse.js deleted file mode 100644 index ad88f23f..00000000 --- a/dist/model/FlavorVMsResponse.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 _FlavorVMFields = _interopRequireDefault(require("./FlavorVMFields")); -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 FlavorVMsResponse model module. - * @module model/FlavorVMsResponse - * @version v1.25.0-alpha - */ -var FlavorVMsResponse = /*#__PURE__*/function () { - /** - * Constructs a new FlavorVMsResponse. - * @alias module:model/FlavorVMsResponse - */ - function FlavorVMsResponse() { - _classCallCheck(this, FlavorVMsResponse); - FlavorVMsResponse.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(FlavorVMsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a FlavorVMsResponse 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/FlavorVMsResponse} obj Optional instance to populate. - * @return {module:model/FlavorVMsResponse} The populated FlavorVMsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new FlavorVMsResponse(); - if (data.hasOwnProperty('flavor_vms')) { - obj['flavor_vms'] = _ApiClient["default"].convertToType(data['flavor_vms'], [_FlavorVMFields["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 FlavorVMsResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FlavorVMsResponse. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - if (data['flavor_vms']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['flavor_vms'])) { - throw new Error("Expected the field `flavor_vms` to be an array in the JSON data but got " + data['flavor_vms']); - } - // validate the optional field `flavor_vms` (array) - var _iterator = _createForOfIteratorHelper(data['flavor_vms']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _FlavorVMFields["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.} flavor_vms - */ -FlavorVMsResponse.prototype['flavor_vms'] = undefined; - -/** - * @member {String} message - */ -FlavorVMsResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -FlavorVMsResponse.prototype['status'] = undefined; -var _default = exports["default"] = FlavorVMsResponse; \ No newline at end of file diff --git a/dist/model/FutureNodeModel.js b/dist/model/FutureNodeModel.js deleted file mode 100644 index 9336e909..00000000 --- a/dist/model/FutureNodeModel.js +++ /dev/null @@ -1,171 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _FutureNodeStockModel = _interopRequireDefault(require("./FutureNodeStockModel")); -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 FutureNodeModel model module. - * @module model/FutureNodeModel - * @version v1.25.0-alpha - */ -var FutureNodeModel = /*#__PURE__*/function () { - /** - * Constructs a new FutureNodeModel. - * @alias module:model/FutureNodeModel - * @param expectedProvisionDate {Date} Date and time in the format YYYY-MM-DD HH:mm:ss - */ - function FutureNodeModel(expectedProvisionDate) { - _classCallCheck(this, FutureNodeModel); - FutureNodeModel.initialize(this, expectedProvisionDate); - } - - /** - * 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(FutureNodeModel, null, [{ - key: "initialize", - value: function initialize(obj, expectedProvisionDate) { - obj['expected_provision_date'] = expectedProvisionDate; - } - - /** - * Constructs a FutureNodeModel 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/FutureNodeModel} obj Optional instance to populate. - * @return {module:model/FutureNodeModel} The populated FutureNodeModel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new FutureNodeModel(); - if (data.hasOwnProperty('expected_provision_date')) { - obj['expected_provision_date'] = _ApiClient["default"].convertToType(data['expected_provision_date'], 'Date'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('nexgen_name')) { - obj['nexgen_name'] = _ApiClient["default"].convertToType(data['nexgen_name'], 'String'); - } - if (data.hasOwnProperty('openstack_name')) { - obj['openstack_name'] = _ApiClient["default"].convertToType(data['openstack_name'], 'String'); - } - if (data.hasOwnProperty('stocks')) { - obj['stocks'] = _ApiClient["default"].convertToType(data['stocks'], [_FutureNodeStockModel["default"]]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to FutureNodeModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FutureNodeModel. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(FutureNodeModel.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['nexgen_name'] && !(typeof data['nexgen_name'] === 'string' || data['nexgen_name'] instanceof String)) { - throw new Error("Expected the field `nexgen_name` to be a primitive type in the JSON string but got " + data['nexgen_name']); - } - // ensure the json data is a string - if (data['openstack_name'] && !(typeof data['openstack_name'] === 'string' || data['openstack_name'] instanceof String)) { - throw new Error("Expected the field `openstack_name` to be a primitive type in the JSON string but got " + data['openstack_name']); - } - if (data['stocks']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['stocks'])) { - throw new Error("Expected the field `stocks` to be an array in the JSON data but got " + data['stocks']); - } - // validate the optional field `stocks` (array) - var _iterator2 = _createForOfIteratorHelper(data['stocks']), - _step2; - try { - for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { - var item = _step2.value; - _FutureNodeStockModel["default"].validateJSON(item); - } - } catch (err) { - _iterator2.e(err); - } finally { - _iterator2.f(); - } - ; - } - return true; - } - }]); -}(); -FutureNodeModel.RequiredProperties = ["expected_provision_date"]; - -/** - * Date and time in the format YYYY-MM-DD HH:mm:ss - * @member {Date} expected_provision_date - */ -FutureNodeModel.prototype['expected_provision_date'] = undefined; - -/** - * @member {Number} id - */ -FutureNodeModel.prototype['id'] = undefined; - -/** - * @member {String} nexgen_name - */ -FutureNodeModel.prototype['nexgen_name'] = undefined; - -/** - * @member {String} openstack_name - */ -FutureNodeModel.prototype['openstack_name'] = undefined; - -/** - * @member {Array.} stocks - */ -FutureNodeModel.prototype['stocks'] = undefined; -var _default = exports["default"] = FutureNodeModel; \ No newline at end of file diff --git a/dist/model/FutureNodeResponseModel.js b/dist/model/FutureNodeResponseModel.js deleted file mode 100644 index 0f5fa4d8..00000000 --- a/dist/model/FutureNodeResponseModel.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 _FutureNodeModel = _interopRequireDefault(require("./FutureNodeModel")); -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 FutureNodeResponseModel model module. - * @module model/FutureNodeResponseModel - * @version v1.25.0-alpha - */ -var FutureNodeResponseModel = /*#__PURE__*/function () { - /** - * Constructs a new FutureNodeResponseModel. - * @alias module:model/FutureNodeResponseModel - */ - function FutureNodeResponseModel() { - _classCallCheck(this, FutureNodeResponseModel); - FutureNodeResponseModel.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(FutureNodeResponseModel, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a FutureNodeResponseModel 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/FutureNodeResponseModel} obj Optional instance to populate. - * @return {module:model/FutureNodeResponseModel} The populated FutureNodeResponseModel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new FutureNodeResponseModel(); - if (data.hasOwnProperty('nodes')) { - obj['nodes'] = _ApiClient["default"].convertToType(data['nodes'], [_FutureNodeModel["default"]]); - } - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to FutureNodeResponseModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FutureNodeResponseModel. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - 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; - _FutureNodeModel["default"].validateJSON(item); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - ; - } - // 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 {Array.} nodes - */ -FutureNodeResponseModel.prototype['nodes'] = undefined; - -/** - * @member {String} region - */ -FutureNodeResponseModel.prototype['region'] = undefined; -var _default = exports["default"] = FutureNodeResponseModel; \ No newline at end of file diff --git a/dist/model/FutureNodeStockModel.js b/dist/model/FutureNodeStockModel.js deleted file mode 100644 index 4e09f6a8..00000000 --- a/dist/model/FutureNodeStockModel.js +++ /dev/null @@ -1,128 +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 FutureNodeStockModel model module. - * @module model/FutureNodeStockModel - * @version v1.25.0-alpha - */ -var FutureNodeStockModel = /*#__PURE__*/function () { - /** - * Constructs a new FutureNodeStockModel. - * @alias module:model/FutureNodeStockModel - * @param expectedAmount {Number} - */ - function FutureNodeStockModel(expectedAmount) { - _classCallCheck(this, FutureNodeStockModel); - FutureNodeStockModel.initialize(this, expectedAmount); - } - - /** - * 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(FutureNodeStockModel, null, [{ - key: "initialize", - value: function initialize(obj, expectedAmount) { - obj['expected_amount'] = expectedAmount; - } - - /** - * Constructs a FutureNodeStockModel 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/FutureNodeStockModel} obj Optional instance to populate. - * @return {module:model/FutureNodeStockModel} The populated FutureNodeStockModel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new FutureNodeStockModel(); - if (data.hasOwnProperty('expected_amount')) { - obj['expected_amount'] = _ApiClient["default"].convertToType(data['expected_amount'], 'Number'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to FutureNodeStockModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FutureNodeStockModel. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(FutureNodeStockModel.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['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; - } - }]); -}(); -FutureNodeStockModel.RequiredProperties = ["expected_amount"]; - -/** - * @member {Number} expected_amount - */ -FutureNodeStockModel.prototype['expected_amount'] = undefined; - -/** - * @member {Number} id - */ -FutureNodeStockModel.prototype['id'] = undefined; - -/** - * @member {String} name - */ -FutureNodeStockModel.prototype['name'] = undefined; -var _default = exports["default"] = FutureNodeStockModel; \ No newline at end of file diff --git a/dist/model/FutureNodeUpdateModel.js b/dist/model/FutureNodeUpdateModel.js deleted file mode 100644 index b7105b4c..00000000 --- a/dist/model/FutureNodeUpdateModel.js +++ /dev/null @@ -1,152 +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 FutureNodeUpdateModel model module. - * @module model/FutureNodeUpdateModel - * @version v1.25.0-alpha - */ -var FutureNodeUpdateModel = /*#__PURE__*/function () { - /** - * Constructs a new FutureNodeUpdateModel. - * @alias module:model/FutureNodeUpdateModel - * @param expectedProvisionDate {Date} - * @param nexgenName {String} - * @param openstackName {String} - */ - function FutureNodeUpdateModel(expectedProvisionDate, nexgenName, openstackName) { - _classCallCheck(this, FutureNodeUpdateModel); - FutureNodeUpdateModel.initialize(this, expectedProvisionDate, nexgenName, openstackName); - } - - /** - * 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(FutureNodeUpdateModel, null, [{ - key: "initialize", - value: function initialize(obj, expectedProvisionDate, nexgenName, openstackName) { - obj['expected_provision_date'] = expectedProvisionDate; - obj['nexgen_name'] = nexgenName; - obj['openstack_name'] = openstackName; - } - - /** - * Constructs a FutureNodeUpdateModel 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/FutureNodeUpdateModel} obj Optional instance to populate. - * @return {module:model/FutureNodeUpdateModel} The populated FutureNodeUpdateModel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new FutureNodeUpdateModel(); - if (data.hasOwnProperty('expected_provision_date')) { - obj['expected_provision_date'] = _ApiClient["default"].convertToType(data['expected_provision_date'], 'Date'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('nexgen_name')) { - obj['nexgen_name'] = _ApiClient["default"].convertToType(data['nexgen_name'], 'String'); - } - if (data.hasOwnProperty('openstack_name')) { - obj['openstack_name'] = _ApiClient["default"].convertToType(data['openstack_name'], 'String'); - } - if (data.hasOwnProperty('region_id')) { - obj['region_id'] = _ApiClient["default"].convertToType(data['region_id'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to FutureNodeUpdateModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FutureNodeUpdateModel. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(FutureNodeUpdateModel.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['nexgen_name'] && !(typeof data['nexgen_name'] === 'string' || data['nexgen_name'] instanceof String)) { - throw new Error("Expected the field `nexgen_name` to be a primitive type in the JSON string but got " + data['nexgen_name']); - } - // ensure the json data is a string - if (data['openstack_name'] && !(typeof data['openstack_name'] === 'string' || data['openstack_name'] instanceof String)) { - throw new Error("Expected the field `openstack_name` to be a primitive type in the JSON string but got " + data['openstack_name']); - } - return true; - } - }]); -}(); -FutureNodeUpdateModel.RequiredProperties = ["expected_provision_date", "nexgen_name", "openstack_name"]; - -/** - * @member {Date} expected_provision_date - */ -FutureNodeUpdateModel.prototype['expected_provision_date'] = undefined; - -/** - * @member {Number} id - */ -FutureNodeUpdateModel.prototype['id'] = undefined; - -/** - * @member {String} nexgen_name - */ -FutureNodeUpdateModel.prototype['nexgen_name'] = undefined; - -/** - * @member {String} openstack_name - */ -FutureNodeUpdateModel.prototype['openstack_name'] = undefined; - -/** - * @member {Number} region_id - */ -FutureNodeUpdateModel.prototype['region_id'] = undefined; -var _default = exports["default"] = FutureNodeUpdateModel; \ No newline at end of file diff --git a/dist/model/FutureNodesStockModel.js b/dist/model/FutureNodesStockModel.js deleted file mode 100644 index 4e7935cb..00000000 --- a/dist/model/FutureNodesStockModel.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _FutureNodeResponseModel = _interopRequireDefault(require("./FutureNodeResponseModel")); -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 FutureNodesStockModel model module. - * @module model/FutureNodesStockModel - * @version v1.25.0-alpha - */ -var FutureNodesStockModel = /*#__PURE__*/function () { - /** - * Constructs a new FutureNodesStockModel. - * @alias module:model/FutureNodesStockModel - */ - function FutureNodesStockModel() { - _classCallCheck(this, FutureNodesStockModel); - FutureNodesStockModel.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(FutureNodesStockModel, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a FutureNodesStockModel 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/FutureNodesStockModel} obj Optional instance to populate. - * @return {module:model/FutureNodesStockModel} The populated FutureNodesStockModel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new FutureNodesStockModel(); - if (data.hasOwnProperty('future_stocks')) { - obj['future_stocks'] = _ApiClient["default"].convertToType(data['future_stocks'], [_FutureNodeResponseModel["default"]]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to FutureNodesStockModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FutureNodesStockModel. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - if (data['future_stocks']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['future_stocks'])) { - throw new Error("Expected the field `future_stocks` to be an array in the JSON data but got " + data['future_stocks']); - } - // validate the optional field `future_stocks` (array) - var _iterator = _createForOfIteratorHelper(data['future_stocks']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _FutureNodeResponseModel["default"].validateJSON(item); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - ; - } - return true; - } - }]); -}(); -/** - * @member {Array.} future_stocks - */ -FutureNodesStockModel.prototype['future_stocks'] = undefined; -var _default = exports["default"] = FutureNodesStockModel; \ No newline at end of file diff --git a/dist/model/GPU.js b/dist/model/GPU.js deleted file mode 100644 index 799579f1..00000000 --- a/dist/model/GPU.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 _GPUFields = _interopRequireDefault(require("./GPUFields")); -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 GPU model module. - * @module model/GPU - * @version v1.25.0-alpha - */ -var GPU = /*#__PURE__*/function () { - /** - * Constructs a new GPU. - * @alias module:model/GPU - */ - function GPU() { - _classCallCheck(this, GPU); - GPU.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(GPU, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GPU 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/GPU} obj Optional instance to populate. - * @return {module:model/GPU} The populated GPU instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GPU(); - if (data.hasOwnProperty('gpu')) { - obj['gpu'] = _GPUFields["default"].constructFromObject(data['gpu']); - } - 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 GPU. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GPU. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // validate the optional field `gpu` - if (data['gpu']) { - // data not null - _GPUFields["default"].validateJSON(data['gpu']); - } - // 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/GPUFields} gpu - */ -GPU.prototype['gpu'] = undefined; - -/** - * @member {String} message - */ -GPU.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -GPU.prototype['status'] = undefined; -var _default = exports["default"] = GPU; \ No newline at end of file diff --git a/dist/model/GPUFields.js b/dist/model/GPUFields.js index 7979ee94..e50fd3a8 100644 --- a/dist/model/GPUFields.js +++ b/dist/model/GPUFields.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The GPUFields model module. * @module model/GPUFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var GPUFields = /*#__PURE__*/function () { /** diff --git a/dist/model/GPUList.js b/dist/model/GPUList.js index 479a8ff1..e0ced187 100644 --- a/dist/model/GPUList.js +++ b/dist/model/GPUList.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The GPUList model module. * @module model/GPUList - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var GPUList = /*#__PURE__*/function () { /** diff --git a/dist/model/GPURegionFields.js b/dist/model/GPURegionFields.js index 8719a742..edf09a7d 100644 --- a/dist/model/GPURegionFields.js +++ b/dist/model/GPURegionFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The GPURegionFields model module. * @module model/GPURegionFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var GPURegionFields = /*#__PURE__*/function () { /** diff --git a/dist/model/GenerateUpdateApiKeyPayload.js b/dist/model/GenerateUpdateApiKeyPayload.js index 71e48e28..661bb3d8 100644 --- a/dist/model/GenerateUpdateApiKeyPayload.js +++ b/dist/model/GenerateUpdateApiKeyPayload.js @@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The GenerateUpdateApiKeyPayload model module. * @module model/GenerateUpdateApiKeyPayload - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var GenerateUpdateApiKeyPayload = /*#__PURE__*/function () { /** diff --git a/dist/model/GenerateUpdateApiKeyResponseModel.js b/dist/model/GenerateUpdateApiKeyResponseModel.js index 20d4055c..65591619 100644 --- a/dist/model/GenerateUpdateApiKeyResponseModel.js +++ b/dist/model/GenerateUpdateApiKeyResponseModel.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The GenerateUpdateApiKeyResponseModel model module. * @module model/GenerateUpdateApiKeyResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var GenerateUpdateApiKeyResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/GetAllContractFields.js b/dist/model/GetAllContractFields.js deleted file mode 100644 index b5e0d39d..00000000 --- a/dist/model/GetAllContractFields.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 _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 GetAllContractFields model module. - * @module model/GetAllContractFields - * @version v1.25.0-alpha - */ -var GetAllContractFields = /*#__PURE__*/function () { - /** - * Constructs a new GetAllContractFields. - * @alias module:model/GetAllContractFields - */ - function GetAllContractFields() { - _classCallCheck(this, GetAllContractFields); - GetAllContractFields.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(GetAllContractFields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GetAllContractFields 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/GetAllContractFields} obj Optional instance to populate. - * @return {module:model/GetAllContractFields} The populated GetAllContractFields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAllContractFields(); - 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('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 GetAllContractFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetAllContractFields. - */ - }, { - 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']); - } - return true; - } - }]); -}(); -/** - * @member {Date} created_at - */ -GetAllContractFields.prototype['created_at'] = undefined; - -/** - * @member {String} description - */ -GetAllContractFields.prototype['description'] = undefined; - -/** - * @member {Date} end_date - */ -GetAllContractFields.prototype['end_date'] = undefined; - -/** - * @member {Number} expiration_policy - */ -GetAllContractFields.prototype['expiration_policy'] = undefined; - -/** - * @member {Number} id - */ -GetAllContractFields.prototype['id'] = undefined; - -/** - * @member {Number} org_id - */ -GetAllContractFields.prototype['org_id'] = undefined; - -/** - * @member {Date} start_date - */ -GetAllContractFields.prototype['start_date'] = undefined; -var _default = exports["default"] = GetAllContractFields; \ No newline at end of file diff --git a/dist/model/GetAllContractsResponseModel.js b/dist/model/GetAllContractsResponseModel.js deleted file mode 100644 index b7d9ef39..00000000 --- a/dist/model/GetAllContractsResponseModel.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 _GetAllContractFields = _interopRequireDefault(require("./GetAllContractFields")); -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 GetAllContractsResponseModel model module. - * @module model/GetAllContractsResponseModel - * @version v1.25.0-alpha - */ -var GetAllContractsResponseModel = /*#__PURE__*/function () { - /** - * Constructs a new GetAllContractsResponseModel. - * @alias module:model/GetAllContractsResponseModel - */ - function GetAllContractsResponseModel() { - _classCallCheck(this, GetAllContractsResponseModel); - GetAllContractsResponseModel.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(GetAllContractsResponseModel, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GetAllContractsResponseModel 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/GetAllContractsResponseModel} obj Optional instance to populate. - * @return {module:model/GetAllContractsResponseModel} The populated GetAllContractsResponseModel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAllContractsResponseModel(); - if (data.hasOwnProperty('contracts')) { - obj['contracts'] = _ApiClient["default"].convertToType(data['contracts'], [_GetAllContractFields["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 GetAllContractsResponseModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetAllContractsResponseModel. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - if (data['contracts']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['contracts'])) { - throw new Error("Expected the field `contracts` to be an array in the JSON data but got " + data['contracts']); - } - // validate the optional field `contracts` (array) - var _iterator = _createForOfIteratorHelper(data['contracts']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _GetAllContractFields["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.} contracts - */ -GetAllContractsResponseModel.prototype['contracts'] = undefined; - -/** - * @member {String} message - */ -GetAllContractsResponseModel.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -GetAllContractsResponseModel.prototype['status'] = undefined; -var _default = exports["default"] = GetAllContractsResponseModel; \ No newline at end of file diff --git a/dist/model/GetAllDiscountForAllOrganizationResponse.js b/dist/model/GetAllDiscountForAllOrganizationResponse.js deleted file mode 100644 index 26842033..00000000 --- a/dist/model/GetAllDiscountForAllOrganizationResponse.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 _GetAllDiscountsFields = _interopRequireDefault(require("./GetAllDiscountsFields")); -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 GetAllDiscountForAllOrganizationResponse model module. - * @module model/GetAllDiscountForAllOrganizationResponse - * @version v1.25.0-alpha - */ -var GetAllDiscountForAllOrganizationResponse = /*#__PURE__*/function () { - /** - * Constructs a new GetAllDiscountForAllOrganizationResponse. - * @alias module:model/GetAllDiscountForAllOrganizationResponse - */ - function GetAllDiscountForAllOrganizationResponse() { - _classCallCheck(this, GetAllDiscountForAllOrganizationResponse); - GetAllDiscountForAllOrganizationResponse.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(GetAllDiscountForAllOrganizationResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GetAllDiscountForAllOrganizationResponse 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/GetAllDiscountForAllOrganizationResponse} obj Optional instance to populate. - * @return {module:model/GetAllDiscountForAllOrganizationResponse} The populated GetAllDiscountForAllOrganizationResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAllDiscountForAllOrganizationResponse(); - if (data.hasOwnProperty('discount_plans')) { - obj['discount_plans'] = _ApiClient["default"].convertToType(data['discount_plans'], [_GetAllDiscountsFields["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 GetAllDiscountForAllOrganizationResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetAllDiscountForAllOrganizationResponse. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - 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; - _GetAllDiscountsFields["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.} discount_plans - */ -GetAllDiscountForAllOrganizationResponse.prototype['discount_plans'] = undefined; - -/** - * @member {String} message - */ -GetAllDiscountForAllOrganizationResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -GetAllDiscountForAllOrganizationResponse.prototype['status'] = undefined; -var _default = exports["default"] = GetAllDiscountForAllOrganizationResponse; \ No newline at end of file diff --git a/dist/model/GetAllDiscountsFields.js b/dist/model/GetAllDiscountsFields.js deleted file mode 100644 index 3aee36c4..00000000 --- a/dist/model/GetAllDiscountsFields.js +++ /dev/null @@ -1,158 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _DiscountResourceFields = _interopRequireDefault(require("./DiscountResourceFields")); -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 GetAllDiscountsFields model module. - * @module model/GetAllDiscountsFields - * @version v1.25.0-alpha - */ -var GetAllDiscountsFields = /*#__PURE__*/function () { - /** - * Constructs a new GetAllDiscountsFields. - * @alias module:model/GetAllDiscountsFields - */ - function GetAllDiscountsFields() { - _classCallCheck(this, GetAllDiscountsFields); - GetAllDiscountsFields.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(GetAllDiscountsFields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GetAllDiscountsFields 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/GetAllDiscountsFields} obj Optional instance to populate. - * @return {module:model/GetAllDiscountsFields} The populated GetAllDiscountsFields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAllDiscountsFields(); - if (data.hasOwnProperty('discount_resources')) { - obj['discount_resources'] = _ApiClient["default"].convertToType(data['discount_resources'], [_DiscountResourceFields["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('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('start_date')) { - obj['start_date'] = _ApiClient["default"].convertToType(data['start_date'], 'Date'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to GetAllDiscountsFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetAllDiscountsFields. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - 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 _iterator = _createForOfIteratorHelper(data['discount_resources']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _DiscountResourceFields["default"].validateJSON(item); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.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']); - } - // 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']); - } - return true; - } - }]); -}(); -/** - * @member {Array.} discount_resources - */ -GetAllDiscountsFields.prototype['discount_resources'] = undefined; - -/** - * @member {String} discount_status - */ -GetAllDiscountsFields.prototype['discount_status'] = undefined; - -/** - * @member {Date} end_date - */ -GetAllDiscountsFields.prototype['end_date'] = undefined; - -/** - * @member {Number} org_id - */ -GetAllDiscountsFields.prototype['org_id'] = undefined; - -/** - * @member {String} org_name - */ -GetAllDiscountsFields.prototype['org_name'] = undefined; - -/** - * @member {Date} start_date - */ -GetAllDiscountsFields.prototype['start_date'] = undefined; -var _default = exports["default"] = GetAllDiscountsFields; \ No newline at end of file diff --git a/dist/model/GetApiKeysResponseModel.js b/dist/model/GetApiKeysResponseModel.js index b1d980e5..59baca95 100644 --- a/dist/model/GetApiKeysResponseModel.js +++ b/dist/model/GetApiKeysResponseModel.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The GetApiKeysResponseModel model module. * @module model/GetApiKeysResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var GetApiKeysResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/GetCreditAndThresholdInfo.js b/dist/model/GetCreditAndThresholdInfo.js new file mode 100644 index 00000000..cb4d18bc --- /dev/null +++ b/dist/model/GetCreditAndThresholdInfo.js @@ -0,0 +1,101 @@ +"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 GetCreditAndThresholdInfo model module. + * @module model/GetCreditAndThresholdInfo + * @version v1.51.1-alpha + */ +var GetCreditAndThresholdInfo = /*#__PURE__*/function () { + /** + * Constructs a new GetCreditAndThresholdInfo. + * @alias module:model/GetCreditAndThresholdInfo + */ + function GetCreditAndThresholdInfo() { + _classCallCheck(this, GetCreditAndThresholdInfo); + GetCreditAndThresholdInfo.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(GetCreditAndThresholdInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a GetCreditAndThresholdInfo 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/GetCreditAndThresholdInfo} obj Optional instance to populate. + * @return {module:model/GetCreditAndThresholdInfo} The populated GetCreditAndThresholdInfo instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetCreditAndThresholdInfo(); + if (data.hasOwnProperty('can_create_instance')) { + obj['can_create_instance'] = _ApiClient["default"].convertToType(data['can_create_instance'], 'Boolean'); + } + if (data.hasOwnProperty('credit')) { + obj['credit'] = _ApiClient["default"].convertToType(data['credit'], 'Number'); + } + if (data.hasOwnProperty('threshold')) { + obj['threshold'] = _ApiClient["default"].convertToType(data['threshold'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to GetCreditAndThresholdInfo. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to GetCreditAndThresholdInfo. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + return true; + } + }]); +}(); +/** + * @member {Boolean} can_create_instance + */ +GetCreditAndThresholdInfo.prototype['can_create_instance'] = undefined; + +/** + * @member {Number} credit + */ +GetCreditAndThresholdInfo.prototype['credit'] = undefined; + +/** + * @member {Number} threshold + */ +GetCreditAndThresholdInfo.prototype['threshold'] = undefined; +var _default = exports["default"] = GetCreditAndThresholdInfo; \ No newline at end of file diff --git a/dist/model/GetCreditAndThresholdInfoInResponse.js b/dist/model/GetCreditAndThresholdInfoInResponse.js new file mode 100644 index 00000000..b937532f --- /dev/null +++ b/dist/model/GetCreditAndThresholdInfoInResponse.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _GetCreditAndThresholdInfo = _interopRequireDefault(require("./GetCreditAndThresholdInfo")); +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 GetCreditAndThresholdInfoInResponse model module. + * @module model/GetCreditAndThresholdInfoInResponse + * @version v1.51.1-alpha + */ +var GetCreditAndThresholdInfoInResponse = /*#__PURE__*/function () { + /** + * Constructs a new GetCreditAndThresholdInfoInResponse. + * @alias module:model/GetCreditAndThresholdInfoInResponse + */ + function GetCreditAndThresholdInfoInResponse() { + _classCallCheck(this, GetCreditAndThresholdInfoInResponse); + GetCreditAndThresholdInfoInResponse.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(GetCreditAndThresholdInfoInResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a GetCreditAndThresholdInfoInResponse 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/GetCreditAndThresholdInfoInResponse} obj Optional instance to populate. + * @return {module:model/GetCreditAndThresholdInfoInResponse} The populated GetCreditAndThresholdInfoInResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetCreditAndThresholdInfoInResponse(); + if (data.hasOwnProperty('data')) { + obj['data'] = _GetCreditAndThresholdInfo["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 GetCreditAndThresholdInfoInResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to GetCreditAndThresholdInfoInResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // validate the optional field `data` + if (data['data']) { + // data not null + _GetCreditAndThresholdInfo["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/GetCreditAndThresholdInfo} data + */ +GetCreditAndThresholdInfoInResponse.prototype['data'] = undefined; + +/** + * @member {String} message + */ +GetCreditAndThresholdInfoInResponse.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +GetCreditAndThresholdInfoInResponse.prototype['status'] = undefined; +var _default = exports["default"] = GetCreditAndThresholdInfoInResponse; \ No newline at end of file diff --git a/dist/model/GetCustomerContractsListResponseModel.js b/dist/model/GetCustomerContractsListResponseModel.js index 57e8de3e..ac2f5e50 100644 --- a/dist/model/GetCustomerContractsListResponseModel.js +++ b/dist/model/GetCustomerContractsListResponseModel.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The GetCustomerContractsListResponseModel model module. * @module model/GetCustomerContractsListResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var GetCustomerContractsListResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/GetDiscountDetailResponse.js b/dist/model/GetDiscountDetailResponse.js deleted file mode 100644 index e53fda84..00000000 --- a/dist/model/GetDiscountDetailResponse.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 _DiscountEntityModel = _interopRequireDefault(require("./DiscountEntityModel")); -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 GetDiscountDetailResponse model module. - * @module model/GetDiscountDetailResponse - * @version v1.25.0-alpha - */ -var GetDiscountDetailResponse = /*#__PURE__*/function () { - /** - * Constructs a new GetDiscountDetailResponse. - * @alias module:model/GetDiscountDetailResponse - */ - function GetDiscountDetailResponse() { - _classCallCheck(this, GetDiscountDetailResponse); - GetDiscountDetailResponse.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(GetDiscountDetailResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GetDiscountDetailResponse 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/GetDiscountDetailResponse} obj Optional instance to populate. - * @return {module:model/GetDiscountDetailResponse} The populated GetDiscountDetailResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDiscountDetailResponse(); - if (data.hasOwnProperty('discounts_entity')) { - obj['discounts_entity'] = _DiscountEntityModel["default"].constructFromObject(data['discounts_entity']); - } - 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 GetDiscountDetailResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetDiscountDetailResponse. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // validate the optional field `discounts_entity` - if (data['discounts_entity']) { - // data not null - _DiscountEntityModel["default"].validateJSON(data['discounts_entity']); - } - // 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/DiscountEntityModel} discounts_entity - */ -GetDiscountDetailResponse.prototype['discounts_entity'] = undefined; - -/** - * @member {String} message - */ -GetDiscountDetailResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -GetDiscountDetailResponse.prototype['status'] = undefined; -var _default = exports["default"] = GetDiscountDetailResponse; \ No newline at end of file diff --git a/dist/model/GetDiscountResponse.js b/dist/model/GetDiscountResponse.js deleted file mode 100644 index 9976e5f5..00000000 --- a/dist/model/GetDiscountResponse.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 _DiscountFields = _interopRequireDefault(require("./DiscountFields")); -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 GetDiscountResponse model module. - * @module model/GetDiscountResponse - * @version v1.25.0-alpha - */ -var GetDiscountResponse = /*#__PURE__*/function () { - /** - * Constructs a new GetDiscountResponse. - * @alias module:model/GetDiscountResponse - */ - function GetDiscountResponse() { - _classCallCheck(this, GetDiscountResponse); - GetDiscountResponse.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(GetDiscountResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GetDiscountResponse 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/GetDiscountResponse} obj Optional instance to populate. - * @return {module:model/GetDiscountResponse} The populated GetDiscountResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDiscountResponse(); - if (data.hasOwnProperty('discount_entites')) { - obj['discount_entites'] = _ApiClient["default"].convertToType(data['discount_entites'], [_DiscountFields["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 GetDiscountResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetDiscountResponse. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - if (data['discount_entites']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['discount_entites'])) { - throw new Error("Expected the field `discount_entites` to be an array in the JSON data but got " + data['discount_entites']); - } - // validate the optional field `discount_entites` (array) - var _iterator = _createForOfIteratorHelper(data['discount_entites']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _DiscountFields["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.} discount_entites - */ -GetDiscountResponse.prototype['discount_entites'] = undefined; - -/** - * @member {String} message - */ -GetDiscountResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -GetDiscountResponse.prototype['status'] = undefined; -var _default = exports["default"] = GetDiscountResponse; \ No newline at end of file diff --git a/dist/model/GetEntityDiscountDetailResponse.js b/dist/model/GetEntityDiscountDetailResponse.js deleted file mode 100644 index 897eb4ab..00000000 --- a/dist/model/GetEntityDiscountDetailResponse.js +++ /dev/null @@ -1,159 +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 GetEntityDiscountDetailResponse model module. - * @module model/GetEntityDiscountDetailResponse - * @version v1.25.0-alpha - */ -var GetEntityDiscountDetailResponse = /*#__PURE__*/function () { - /** - * Constructs a new GetEntityDiscountDetailResponse. - * @alias module:model/GetEntityDiscountDetailResponse - */ - function GetEntityDiscountDetailResponse() { - _classCallCheck(this, GetEntityDiscountDetailResponse); - GetEntityDiscountDetailResponse.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(GetEntityDiscountDetailResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GetEntityDiscountDetailResponse 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/GetEntityDiscountDetailResponse} obj Optional instance to populate. - * @return {module:model/GetEntityDiscountDetailResponse} The populated GetEntityDiscountDetailResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetEntityDiscountDetailResponse(); - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('organization')) { - obj['organization'] = _ApiClient["default"].convertToType(data['organization'], [_DiscountPlanFields["default"]]); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('virtual-machine')) { - obj['virtual-machine'] = _ApiClient["default"].convertToType(data['virtual-machine'], [_DiscountPlanFields["default"]]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to GetEntityDiscountDetailResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetEntityDiscountDetailResponse. - */ - }, { - 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['organization']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['organization'])) { - throw new Error("Expected the field `organization` to be an array in the JSON data but got " + data['organization']); - } - // validate the optional field `organization` (array) - var _iterator = _createForOfIteratorHelper(data['organization']), - _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(); - } - ; - } - if (data['virtual-machine']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['virtual-machine'])) { - throw new Error("Expected the field `virtual-machine` to be an array in the JSON data but got " + data['virtual-machine']); - } - // validate the optional field `virtual-machine` (array) - var _iterator2 = _createForOfIteratorHelper(data['virtual-machine']), - _step2; - try { - for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { - var _item = _step2.value; - _DiscountPlanFields["default"].validateJSON(_item); - } - } catch (err) { - _iterator2.e(err); - } finally { - _iterator2.f(); - } - ; - } - return true; - } - }]); -}(); -/** - * @member {String} message - */ -GetEntityDiscountDetailResponse.prototype['message'] = undefined; - -/** - * @member {Array.} organization - */ -GetEntityDiscountDetailResponse.prototype['organization'] = undefined; - -/** - * @member {Boolean} status - */ -GetEntityDiscountDetailResponse.prototype['status'] = undefined; - -/** - * @member {Array.} virtual-machine - */ -GetEntityDiscountDetailResponse.prototype['virtual-machine'] = undefined; -var _default = exports["default"] = GetEntityDiscountDetailResponse; \ No newline at end of file diff --git a/dist/model/GetInstanceLogsResponse.js b/dist/model/GetInstanceLogsResponse.js new file mode 100644 index 00000000..0d044fc3 --- /dev/null +++ b/dist/model/GetInstanceLogsResponse.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 GetInstanceLogsResponse model module. + * @module model/GetInstanceLogsResponse + * @version v1.51.1-alpha + */ +var GetInstanceLogsResponse = /*#__PURE__*/function () { + /** + * Constructs a new GetInstanceLogsResponse. + * @alias module:model/GetInstanceLogsResponse + */ + function GetInstanceLogsResponse() { + _classCallCheck(this, GetInstanceLogsResponse); + GetInstanceLogsResponse.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(GetInstanceLogsResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a GetInstanceLogsResponse 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/GetInstanceLogsResponse} obj Optional instance to populate. + * @return {module:model/GetInstanceLogsResponse} The populated GetInstanceLogsResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetInstanceLogsResponse(); + if (data.hasOwnProperty('logs')) { + obj['logs'] = _ApiClient["default"].convertToType(data['logs'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to GetInstanceLogsResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to GetInstanceLogsResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // ensure the json data is a string + if (data['logs'] && !(typeof data['logs'] === 'string' || data['logs'] instanceof String)) { + throw new Error("Expected the field `logs` to be a primitive type in the JSON string but got " + data['logs']); + } + return true; + } + }]); +}(); +/** + * @member {String} logs + */ +GetInstanceLogsResponse.prototype['logs'] = undefined; +var _default = exports["default"] = GetInstanceLogsResponse; \ No newline at end of file diff --git a/dist/model/GetInvitesResponseModel.js b/dist/model/GetInvitesResponseModel.js index 48e952a8..4eb76e05 100644 --- a/dist/model/GetInvitesResponseModel.js +++ b/dist/model/GetInvitesResponseModel.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The GetInvitesResponseModel model module. * @module model/GetInvitesResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var GetInvitesResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/GetOrganizationResponseModel.js b/dist/model/GetOrganizationResponseModel.js index 800c5a76..445ca53a 100644 --- a/dist/model/GetOrganizationResponseModel.js +++ b/dist/model/GetOrganizationResponseModel.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The GetOrganizationResponseModel model module. * @module model/GetOrganizationResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var GetOrganizationResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/GetPermissionsResponseModel.js b/dist/model/GetPermissionsResponseModel.js index 28211fe9..f3270fdb 100644 --- a/dist/model/GetPermissionsResponseModel.js +++ b/dist/model/GetPermissionsResponseModel.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The GetPermissionsResponseModel model module. * @module model/GetPermissionsResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var GetPermissionsResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/GetPoliciesResponseModel.js b/dist/model/GetPoliciesResponseModel.js index 5013f087..76dbc2d6 100644 --- a/dist/model/GetPoliciesResponseModel.js +++ b/dist/model/GetPoliciesResponseModel.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The GetPoliciesResponseModel model module. * @module model/GetPoliciesResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var GetPoliciesResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/GetRbacRolesResponseModel.js b/dist/model/GetRbacRolesResponseModel.js index dd1598d9..5a333eee 100644 --- a/dist/model/GetRbacRolesResponseModel.js +++ b/dist/model/GetRbacRolesResponseModel.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The GetRbacRolesResponseModel model module. * @module model/GetRbacRolesResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var GetRbacRolesResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/GetTokenPayload.js b/dist/model/GetTokenPayload.js deleted file mode 100644 index 6d8d12d4..00000000 --- a/dist/model/GetTokenPayload.js +++ /dev/null @@ -1,126 +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 GetTokenPayload model module. - * @module model/GetTokenPayload - * @version v1.25.0-alpha - */ -var GetTokenPayload = /*#__PURE__*/function () { - /** - * Constructs a new GetTokenPayload. - * @alias module:model/GetTokenPayload - * @param callbackCode {String} - * @param sessionId {String} - */ - function GetTokenPayload(callbackCode, sessionId) { - _classCallCheck(this, GetTokenPayload); - GetTokenPayload.initialize(this, callbackCode, sessionId); - } - - /** - * 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(GetTokenPayload, null, [{ - key: "initialize", - value: function initialize(obj, callbackCode, sessionId) { - obj['callback_code'] = callbackCode; - obj['session_id'] = sessionId; - } - - /** - * Constructs a GetTokenPayload 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/GetTokenPayload} obj Optional instance to populate. - * @return {module:model/GetTokenPayload} The populated GetTokenPayload instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetTokenPayload(); - if (data.hasOwnProperty('callback_code')) { - obj['callback_code'] = _ApiClient["default"].convertToType(data['callback_code'], '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 GetTokenPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetTokenPayload. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(GetTokenPayload.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['callback_code'] && !(typeof data['callback_code'] === 'string' || data['callback_code'] instanceof String)) { - throw new Error("Expected the field `callback_code` to be a primitive type in the JSON string but got " + data['callback_code']); - } - // 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; - } - }]); -}(); -GetTokenPayload.RequiredProperties = ["callback_code", "session_id"]; - -/** - * @member {String} callback_code - */ -GetTokenPayload.prototype['callback_code'] = undefined; - -/** - * @member {String} session_id - */ -GetTokenPayload.prototype['session_id'] = undefined; -var _default = exports["default"] = GetTokenPayload; \ No newline at end of file diff --git a/dist/model/GetUserPermissionsResponseModel.js b/dist/model/GetUserPermissionsResponseModel.js index 42f3cd83..240ddbe4 100644 --- a/dist/model/GetUserPermissionsResponseModel.js +++ b/dist/model/GetUserPermissionsResponseModel.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The GetUserPermissionsResponseModel model module. * @module model/GetUserPermissionsResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var GetUserPermissionsResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/GetVersionResponse.js b/dist/model/GetVersionResponse.js deleted file mode 100644 index 58480895..00000000 --- a/dist/model/GetVersionResponse.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 GetVersionResponse model module. - * @module model/GetVersionResponse - * @version v1.25.0-alpha - */ -var GetVersionResponse = /*#__PURE__*/function () { - /** - * Constructs a new GetVersionResponse. - * @alias module:model/GetVersionResponse - */ - function GetVersionResponse() { - _classCallCheck(this, GetVersionResponse); - GetVersionResponse.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(GetVersionResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GetVersionResponse 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/GetVersionResponse} obj Optional instance to populate. - * @return {module:model/GetVersionResponse} The populated GetVersionResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetVersionResponse(); - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to GetVersionResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetVersionResponse. - */ - }, { - 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']); - } - // 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 {String} message - */ -GetVersionResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -GetVersionResponse.prototype['status'] = undefined; - -/** - * @member {String} version - */ -GetVersionResponse.prototype['version'] = undefined; -var _default = exports["default"] = GetVersionResponse; \ No newline at end of file diff --git a/dist/model/Getcreditandthresholdinfo.js b/dist/model/Getcreditandthresholdinfo.js deleted file mode 100644 index d1b41865..00000000 --- a/dist/model/Getcreditandthresholdinfo.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 Getcreditandthresholdinfo model module. - * @module model/Getcreditandthresholdinfo - * @version v1.25.0-alpha - */ -var Getcreditandthresholdinfo = /*#__PURE__*/function () { - /** - * Constructs a new Getcreditandthresholdinfo. - * @alias module:model/Getcreditandthresholdinfo - */ - function Getcreditandthresholdinfo() { - _classCallCheck(this, Getcreditandthresholdinfo); - Getcreditandthresholdinfo.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(Getcreditandthresholdinfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a Getcreditandthresholdinfo 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/Getcreditandthresholdinfo} obj Optional instance to populate. - * @return {module:model/Getcreditandthresholdinfo} The populated Getcreditandthresholdinfo instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Getcreditandthresholdinfo(); - if (data.hasOwnProperty('can_create_instance')) { - obj['can_create_instance'] = _ApiClient["default"].convertToType(data['can_create_instance'], 'Boolean'); - } - if (data.hasOwnProperty('credit')) { - obj['credit'] = _ApiClient["default"].convertToType(data['credit'], 'Number'); - } - if (data.hasOwnProperty('threshold')) { - obj['threshold'] = _ApiClient["default"].convertToType(data['threshold'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to Getcreditandthresholdinfo. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Getcreditandthresholdinfo. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - return true; - } - }]); -}(); -/** - * @member {Boolean} can_create_instance - */ -Getcreditandthresholdinfo.prototype['can_create_instance'] = undefined; - -/** - * @member {Number} credit - */ -Getcreditandthresholdinfo.prototype['credit'] = undefined; - -/** - * @member {Number} threshold - */ -Getcreditandthresholdinfo.prototype['threshold'] = undefined; -var _default = exports["default"] = Getcreditandthresholdinfo; \ No newline at end of file diff --git a/dist/model/Getcreditandthresholdinfoinresponse.js b/dist/model/Getcreditandthresholdinfoinresponse.js deleted file mode 100644 index ac7bca53..00000000 --- a/dist/model/Getcreditandthresholdinfoinresponse.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 _Getcreditandthresholdinfo = _interopRequireDefault(require("./Getcreditandthresholdinfo")); -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 Getcreditandthresholdinfoinresponse model module. - * @module model/Getcreditandthresholdinfoinresponse - * @version v1.25.0-alpha - */ -var Getcreditandthresholdinfoinresponse = /*#__PURE__*/function () { - /** - * Constructs a new Getcreditandthresholdinfoinresponse. - * @alias module:model/Getcreditandthresholdinfoinresponse - */ - function Getcreditandthresholdinfoinresponse() { - _classCallCheck(this, Getcreditandthresholdinfoinresponse); - Getcreditandthresholdinfoinresponse.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(Getcreditandthresholdinfoinresponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a Getcreditandthresholdinfoinresponse 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/Getcreditandthresholdinfoinresponse} obj Optional instance to populate. - * @return {module:model/Getcreditandthresholdinfoinresponse} The populated Getcreditandthresholdinfoinresponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Getcreditandthresholdinfoinresponse(); - if (data.hasOwnProperty('data')) { - obj['data'] = _Getcreditandthresholdinfo["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 Getcreditandthresholdinfoinresponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Getcreditandthresholdinfoinresponse. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // validate the optional field `data` - if (data['data']) { - // data not null - _Getcreditandthresholdinfo["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/Getcreditandthresholdinfo} data - */ -Getcreditandthresholdinfoinresponse.prototype['data'] = undefined; - -/** - * @member {String} message - */ -Getcreditandthresholdinfoinresponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -Getcreditandthresholdinfoinresponse.prototype['status'] = undefined; -var _default = exports["default"] = Getcreditandthresholdinfoinresponse; \ No newline at end of file diff --git a/dist/model/GraphDatetimeValueModel.js b/dist/model/GraphDatetimeValueModel.js index 50535b6c..c7ad4d3f 100644 --- a/dist/model/GraphDatetimeValueModel.js +++ b/dist/model/GraphDatetimeValueModel.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The GraphDatetimeValueModel model module. * @module model/GraphDatetimeValueModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var GraphDatetimeValueModel = /*#__PURE__*/function () { /** diff --git a/dist/model/HistoricalInstance.js b/dist/model/HistoricalInstance.js deleted file mode 100644 index 2fea10d7..00000000 --- a/dist/model/HistoricalInstance.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 _HistoricalInstancesFields = _interopRequireDefault(require("./HistoricalInstancesFields")); -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 HistoricalInstance model module. - * @module model/HistoricalInstance - * @version v1.25.0-alpha - */ -var HistoricalInstance = /*#__PURE__*/function () { - /** - * Constructs a new HistoricalInstance. - * @alias module:model/HistoricalInstance - */ - function HistoricalInstance() { - _classCallCheck(this, HistoricalInstance); - HistoricalInstance.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(HistoricalInstance, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a HistoricalInstance 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/HistoricalInstance} obj Optional instance to populate. - * @return {module:model/HistoricalInstance} The populated HistoricalInstance instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new HistoricalInstance(); - 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'], [_HistoricalInstancesFields["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 HistoricalInstance. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to HistoricalInstance. - */ - }, { - 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; - _HistoricalInstancesFields["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 - */ -HistoricalInstance.prototype['instance_count'] = undefined; - -/** - * @member {Array.} instances - */ -HistoricalInstance.prototype['instances'] = undefined; - -/** - * @member {String} message - */ -HistoricalInstance.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -HistoricalInstance.prototype['status'] = undefined; -var _default = exports["default"] = HistoricalInstance; \ No newline at end of file diff --git a/dist/model/HistoricalInstancesFields.js b/dist/model/HistoricalInstancesFields.js deleted file mode 100644 index 174b6abe..00000000 --- a/dist/model/HistoricalInstancesFields.js +++ /dev/null @@ -1,201 +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 HistoricalInstancesFields model module. - * @module model/HistoricalInstancesFields - * @version v1.25.0-alpha - */ -var HistoricalInstancesFields = /*#__PURE__*/function () { - /** - * Constructs a new HistoricalInstancesFields. - * @alias module:model/HistoricalInstancesFields - */ - function HistoricalInstancesFields() { - _classCallCheck(this, HistoricalInstancesFields); - HistoricalInstancesFields.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(HistoricalInstancesFields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a HistoricalInstancesFields 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/HistoricalInstancesFields} obj Optional instance to populate. - * @return {module:model/HistoricalInstancesFields} The populated HistoricalInstancesFields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new HistoricalInstancesFields(); - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('environment')) { - obj['environment'] = _ApiClient["default"].convertToType(data['environment'], 'String'); - } - if (data.hasOwnProperty('environment_id')) { - obj['environment_id'] = _ApiClient["default"].convertToType(data['environment_id'], 'Number'); - } - if (data.hasOwnProperty('flavor')) { - obj['flavor'] = _ApiClient["default"].convertToType(data['flavor'], 'String'); - } - if (data.hasOwnProperty('flavor_id')) { - obj['flavor_id'] = _ApiClient["default"].convertToType(data['flavor_id'], 'Number'); - } - if (data.hasOwnProperty('floating_ip')) { - obj['floating_ip'] = _ApiClient["default"].convertToType(data['floating_ip'], 'String'); - } - 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('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 HistoricalInstancesFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to HistoricalInstancesFields. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // ensure the json data is a string - if (data['environment'] && !(typeof data['environment'] === 'string' || data['environment'] instanceof String)) { - throw new Error("Expected the field `environment` to be a primitive type in the JSON string but got " + data['environment']); - } - // ensure the json data is a string - if (data['flavor'] && !(typeof data['flavor'] === 'string' || data['flavor'] instanceof String)) { - throw new Error("Expected the field `flavor` to be a primitive type in the JSON string but got " + data['flavor']); - } - // 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['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['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 {Date} created_at - */ -HistoricalInstancesFields.prototype['created_at'] = undefined; - -/** - * @member {String} environment - */ -HistoricalInstancesFields.prototype['environment'] = undefined; - -/** - * @member {Number} environment_id - */ -HistoricalInstancesFields.prototype['environment_id'] = undefined; - -/** - * @member {String} flavor - */ -HistoricalInstancesFields.prototype['flavor'] = undefined; - -/** - * @member {Number} flavor_id - */ -HistoricalInstancesFields.prototype['flavor_id'] = undefined; - -/** - * @member {String} floating_ip - */ -HistoricalInstancesFields.prototype['floating_ip'] = undefined; - -/** - * @member {String} host - */ -HistoricalInstancesFields.prototype['host'] = undefined; - -/** - * @member {Number} id - */ -HistoricalInstancesFields.prototype['id'] = undefined; - -/** - * @member {String} name - */ -HistoricalInstancesFields.prototype['name'] = undefined; - -/** - * @member {String} openstack_id - */ -HistoricalInstancesFields.prototype['openstack_id'] = undefined; - -/** - * @member {String} status - */ -HistoricalInstancesFields.prototype['status'] = undefined; - -/** - * @member {Date} updated_at - */ -HistoricalInstancesFields.prototype['updated_at'] = undefined; -var _default = exports["default"] = HistoricalInstancesFields; \ No newline at end of file diff --git a/dist/model/Image.js b/dist/model/Image.js index 9b9f60be..bc8c2d6b 100644 --- a/dist/model/Image.js +++ b/dist/model/Image.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The Image model module. * @module model/Image - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var Image = /*#__PURE__*/function () { /** diff --git a/dist/model/ImageFields.js b/dist/model/ImageFields.js index c739f2ed..c945d292 100644 --- a/dist/model/ImageFields.js +++ b/dist/model/ImageFields.js @@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _FlavorRestrictions = _interopRequireDefault(require("./FlavorRestrictions")); 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); } @@ -30,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ImageFields model module. * @module model/ImageFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ImageFields = /*#__PURE__*/function () { /** @@ -69,6 +70,9 @@ var ImageFields = /*#__PURE__*/function () { if (data.hasOwnProperty('display_size')) { obj['display_size'] = _ApiClient["default"].convertToType(data['display_size'], 'String'); } + if (data.hasOwnProperty('flavor_restrictions')) { + obj['flavor_restrictions'] = _ApiClient["default"].convertToType(data['flavor_restrictions'], _FlavorRestrictions["default"]); + } if (data.hasOwnProperty('id')) { obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); } @@ -113,6 +117,11 @@ var ImageFields = /*#__PURE__*/function () { if (data['display_size'] && !(typeof data['display_size'] === 'string' || data['display_size'] instanceof String)) { throw new Error("Expected the field `display_size` to be a primitive type in the JSON string but got " + data['display_size']); } + // validate the optional field `flavor_restrictions` + if (data['flavor_restrictions']) { + // data not null + _FlavorRestrictions["default"].validateJSON(data['flavor_restrictions']); + } if (data['labels']) { // data not null // ensure the json data is an array @@ -164,6 +173,12 @@ ImageFields.prototype['description'] = undefined; */ ImageFields.prototype['display_size'] = undefined; +/** + * Flavor compatibility restrictions for this image + * @member {module:model/FlavorRestrictions} flavor_restrictions + */ +ImageFields.prototype['flavor_restrictions'] = undefined; + /** * @member {Number} id */ diff --git a/dist/model/ImageGetResponse.js b/dist/model/ImageGetResponse.js index 29ad35f5..a68d2361 100644 --- a/dist/model/ImageGetResponse.js +++ b/dist/model/ImageGetResponse.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ImageGetResponse model module. * @module model/ImageGetResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ImageGetResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/ImageLogos.js b/dist/model/ImageLogos.js deleted file mode 100644 index 42794770..00000000 --- a/dist/model/ImageLogos.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 _LogoGetResponse = _interopRequireDefault(require("./LogoGetResponse")); -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 ImageLogos model module. - * @module model/ImageLogos - * @version v1.25.0-alpha - */ -var ImageLogos = /*#__PURE__*/function () { - /** - * Constructs a new ImageLogos. - * @alias module:model/ImageLogos - */ - function ImageLogos() { - _classCallCheck(this, ImageLogos); - ImageLogos.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(ImageLogos, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ImageLogos 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/ImageLogos} obj Optional instance to populate. - * @return {module:model/ImageLogos} The populated ImageLogos instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ImageLogos(); - if (data.hasOwnProperty('logos')) { - obj['logos'] = _ApiClient["default"].convertToType(data['logos'], [_LogoGetResponse["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 ImageLogos. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to ImageLogos. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - if (data['logos']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['logos'])) { - throw new Error("Expected the field `logos` to be an array in the JSON data but got " + data['logos']); - } - // validate the optional field `logos` (array) - var _iterator = _createForOfIteratorHelper(data['logos']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _LogoGetResponse["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.} logos - */ -ImageLogos.prototype['logos'] = undefined; - -/** - * @member {String} message - */ -ImageLogos.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -ImageLogos.prototype['status'] = undefined; -var _default = exports["default"] = ImageLogos; \ No newline at end of file diff --git a/dist/model/Images.js b/dist/model/Images.js index 9647b3e7..297b9f71 100644 --- a/dist/model/Images.js +++ b/dist/model/Images.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The Images model module. * @module model/Images - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var Images = /*#__PURE__*/function () { /** diff --git a/dist/model/ImportKeypairPayload.js b/dist/model/ImportKeypairPayload.js index 29fcaa7f..c8f7de0a 100644 --- a/dist/model/ImportKeypairPayload.js +++ b/dist/model/ImportKeypairPayload.js @@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ImportKeypairPayload model module. * @module model/ImportKeypairPayload - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ImportKeypairPayload = /*#__PURE__*/function () { /** diff --git a/dist/model/ImportKeypairResponse.js b/dist/model/ImportKeypairResponse.js index 561400d9..bb96eb6d 100644 --- a/dist/model/ImportKeypairResponse.js +++ b/dist/model/ImportKeypairResponse.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ImportKeypairResponse model module. * @module model/ImportKeypairResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ImportKeypairResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/InfrahubResourceObjectResponse.js b/dist/model/InfrahubResourceObjectResponse.js deleted file mode 100644 index 7e3db69d..00000000 --- a/dist/model/InfrahubResourceObjectResponse.js +++ /dev/null @@ -1,222 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _PricebookResourceObjectResponse = _interopRequireDefault(require("./PricebookResourceObjectResponse")); -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 InfrahubResourceObjectResponse model module. - * @module model/InfrahubResourceObjectResponse - * @version v1.25.0-alpha - */ -var InfrahubResourceObjectResponse = /*#__PURE__*/function () { - /** - * Constructs a new InfrahubResourceObjectResponse. - * @alias module:model/InfrahubResourceObjectResponse - */ - function InfrahubResourceObjectResponse() { - _classCallCheck(this, InfrahubResourceObjectResponse); - InfrahubResourceObjectResponse.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(InfrahubResourceObjectResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a InfrahubResourceObjectResponse 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/InfrahubResourceObjectResponse} obj Optional instance to populate. - * @return {module:model/InfrahubResourceObjectResponse} The populated InfrahubResourceObjectResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new InfrahubResourceObjectResponse(); - if (data.hasOwnProperty('actual_host_price')) { - obj['actual_host_price'] = _ApiClient["default"].convertToType(data['actual_host_price'], 'Number'); - } - if (data.hasOwnProperty('actual_price')) { - obj['actual_price'] = _ApiClient["default"].convertToType(data['actual_price'], 'Number'); - } - 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('host_price')) { - obj['host_price'] = _ApiClient["default"].convertToType(data['host_price'], 'Number'); - } - if (data.hasOwnProperty('infrahub_id')) { - obj['infrahub_id'] = _ApiClient["default"].convertToType(data['infrahub_id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('nexgen_actual_price')) { - obj['nexgen_actual_price'] = _ApiClient["default"].convertToType(data['nexgen_actual_price'], 'Number'); - } - if (data.hasOwnProperty('nexgen_price')) { - obj['nexgen_price'] = _ApiClient["default"].convertToType(data['nexgen_price'], 'Number'); - } - if (data.hasOwnProperty('price')) { - obj['price'] = _ApiClient["default"].convertToType(data['price'], 'Number'); - } - if (data.hasOwnProperty('resources')) { - obj['resources'] = _ApiClient["default"].convertToType(data['resources'], [_PricebookResourceObjectResponse["default"]]); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InfrahubResourceObjectResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InfrahubResourceObjectResponse. - */ - }, { - 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']); - } - if (data['resources']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['resources'])) { - throw new Error("Expected the field `resources` to be an array in the JSON data but got " + data['resources']); - } - // validate the optional field `resources` (array) - var _iterator = _createForOfIteratorHelper(data['resources']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _PricebookResourceObjectResponse["default"].validateJSON(item); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - ; - } - // 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['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 {Number} actual_host_price - */ -InfrahubResourceObjectResponse.prototype['actual_host_price'] = undefined; - -/** - * @member {Number} actual_price - */ -InfrahubResourceObjectResponse.prototype['actual_price'] = undefined; - -/** - * @member {Number} contract_id - */ -InfrahubResourceObjectResponse.prototype['contract_id'] = undefined; - -/** - * @member {String} host - */ -InfrahubResourceObjectResponse.prototype['host'] = undefined; - -/** - * @member {Number} host_price - */ -InfrahubResourceObjectResponse.prototype['host_price'] = undefined; - -/** - * @member {Number} infrahub_id - */ -InfrahubResourceObjectResponse.prototype['infrahub_id'] = undefined; - -/** - * @member {String} name - */ -InfrahubResourceObjectResponse.prototype['name'] = undefined; - -/** - * @member {Number} nexgen_actual_price - */ -InfrahubResourceObjectResponse.prototype['nexgen_actual_price'] = undefined; - -/** - * @member {Number} nexgen_price - */ -InfrahubResourceObjectResponse.prototype['nexgen_price'] = undefined; - -/** - * @member {Number} price - */ -InfrahubResourceObjectResponse.prototype['price'] = undefined; - -/** - * @member {Array.} resources - */ -InfrahubResourceObjectResponse.prototype['resources'] = undefined; - -/** - * @member {String} status - */ -InfrahubResourceObjectResponse.prototype['status'] = undefined; - -/** - * @member {String} type - */ -InfrahubResourceObjectResponse.prototype['type'] = undefined; -var _default = exports["default"] = InfrahubResourceObjectResponse; \ No newline at end of file diff --git a/dist/model/InfrahubResourceObjectResponseForCustomer.js b/dist/model/InfrahubResourceObjectResponseForCustomer.js index bb1384e1..cd13fbfc 100644 --- a/dist/model/InfrahubResourceObjectResponseForCustomer.js +++ b/dist/model/InfrahubResourceObjectResponseForCustomer.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The InfrahubResourceObjectResponseForCustomer model module. * @module model/InfrahubResourceObjectResponseForCustomer - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var InfrahubResourceObjectResponseForCustomer = /*#__PURE__*/function () { /** diff --git a/dist/model/InsertDiscountPlanFields.js b/dist/model/InsertDiscountPlanFields.js deleted file mode 100644 index 456ee9e0..00000000 --- a/dist/model/InsertDiscountPlanFields.js +++ /dev/null @@ -1,168 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _CustomerFields = _interopRequireDefault(require("./CustomerFields")); -var _DiscountResourceFields = _interopRequireDefault(require("./DiscountResourceFields")); -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 InsertDiscountPlanFields model module. - * @module model/InsertDiscountPlanFields - * @version v1.25.0-alpha - */ -var InsertDiscountPlanFields = /*#__PURE__*/function () { - /** - * Constructs a new InsertDiscountPlanFields. - * @alias module:model/InsertDiscountPlanFields - */ - function InsertDiscountPlanFields() { - _classCallCheck(this, InsertDiscountPlanFields); - InsertDiscountPlanFields.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(InsertDiscountPlanFields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a InsertDiscountPlanFields 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/InsertDiscountPlanFields} obj Optional instance to populate. - * @return {module:model/InsertDiscountPlanFields} The populated InsertDiscountPlanFields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new InsertDiscountPlanFields(); - if (data.hasOwnProperty('customers')) { - obj['customers'] = _ApiClient["default"].convertToType(data['customers'], [_CustomerFields["default"]]); - } - if (data.hasOwnProperty('discount_resources')) { - obj['discount_resources'] = _ApiClient["default"].convertToType(data['discount_resources'], [_DiscountResourceFields["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 InsertDiscountPlanFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InsertDiscountPlanFields. - */ - }, { - key: "validateJSON", - value: function validateJSON(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) - var _iterator = _createForOfIteratorHelper(data['customers']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _CustomerFields["default"].validateJSON(item); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.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 _iterator2 = _createForOfIteratorHelper(data['discount_resources']), - _step2; - try { - for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { - var _item = _step2.value; - _DiscountResourceFields["default"].validateJSON(_item); - } - } catch (err) { - _iterator2.e(err); - } finally { - _iterator2.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; - } - }]); -}(); -/** - * @member {Array.} customers - */ -InsertDiscountPlanFields.prototype['customers'] = undefined; - -/** - * @member {Array.} discount_resources - */ -InsertDiscountPlanFields.prototype['discount_resources'] = undefined; - -/** - * @member {String} discount_status - */ -InsertDiscountPlanFields.prototype['discount_status'] = undefined; - -/** - * @member {Date} end_date - */ -InsertDiscountPlanFields.prototype['end_date'] = undefined; - -/** - * @member {Date} start_date - */ -InsertDiscountPlanFields.prototype['start_date'] = undefined; -var _default = exports["default"] = InsertDiscountPlanFields; \ No newline at end of file diff --git a/dist/model/Instance.js b/dist/model/Instance.js index 728fa1d5..67c2ad27 100644 --- a/dist/model/Instance.js +++ b/dist/model/Instance.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The Instance model module. * @module model/Instance - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var Instance = /*#__PURE__*/function () { /** diff --git a/dist/model/InstanceEnvironmentFields.js b/dist/model/InstanceEnvironmentFields.js index b989284f..4e1d5811 100644 --- a/dist/model/InstanceEnvironmentFields.js +++ b/dist/model/InstanceEnvironmentFields.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The InstanceEnvironmentFields model module. * @module model/InstanceEnvironmentFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var InstanceEnvironmentFields = /*#__PURE__*/function () { /** diff --git a/dist/model/InstanceEvents.js b/dist/model/InstanceEvents.js index 81e27280..3741a458 100644 --- a/dist/model/InstanceEvents.js +++ b/dist/model/InstanceEvents.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The InstanceEvents model module. * @module model/InstanceEvents - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var InstanceEvents = /*#__PURE__*/function () { /** diff --git a/dist/model/InstanceEventsFields.js b/dist/model/InstanceEventsFields.js index d97cb7cb..07329b1e 100644 --- a/dist/model/InstanceEventsFields.js +++ b/dist/model/InstanceEventsFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The InstanceEventsFields model module. * @module model/InstanceEventsFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var InstanceEventsFields = /*#__PURE__*/function () { /** diff --git a/dist/model/InstanceFields.js b/dist/model/InstanceFields.js index ca9b9247..0750c511 100644 --- a/dist/model/InstanceFields.js +++ b/dist/model/InstanceFields.js @@ -9,7 +9,7 @@ var _InstanceEnvironmentFields = _interopRequireDefault(require("./InstanceEnvir var _InstanceFlavorFields = _interopRequireDefault(require("./InstanceFlavorFields")); var _InstanceImageFields = _interopRequireDefault(require("./InstanceImageFields")); var _InstanceKeypairFields = _interopRequireDefault(require("./InstanceKeypairFields")); -var _SecurityRulesFieldsforInstance = _interopRequireDefault(require("./SecurityRulesFieldsforInstance")); +var _SecurityRulesFieldsForInstance = _interopRequireDefault(require("./SecurityRulesFieldsForInstance")); var _VolumeAttachmentFields = _interopRequireDefault(require("./VolumeAttachmentFields")); 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); } @@ -35,7 +35,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The InstanceFields model module. * @module model/InstanceFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var InstanceFields = /*#__PURE__*/function () { /** @@ -80,6 +80,9 @@ var InstanceFields = /*#__PURE__*/function () { if (data.hasOwnProperty('environment')) { obj['environment'] = _InstanceEnvironmentFields["default"].constructFromObject(data['environment']); } + if (data.hasOwnProperty('features')) { + obj['features'] = _ApiClient["default"].convertToType(data['features'], Object); + } if (data.hasOwnProperty('fixed_ip')) { obj['fixed_ip'] = _ApiClient["default"].convertToType(data['fixed_ip'], 'String'); } @@ -122,8 +125,11 @@ var InstanceFields = /*#__PURE__*/function () { if (data.hasOwnProperty('power_state')) { obj['power_state'] = _ApiClient["default"].convertToType(data['power_state'], 'String'); } + if (data.hasOwnProperty('requires_public_ip')) { + obj['requires_public_ip'] = _ApiClient["default"].convertToType(data['requires_public_ip'], 'Boolean'); + } if (data.hasOwnProperty('security_rules')) { - obj['security_rules'] = _ApiClient["default"].convertToType(data['security_rules'], [_SecurityRulesFieldsforInstance["default"]]); + obj['security_rules'] = _ApiClient["default"].convertToType(data['security_rules'], [_SecurityRulesFieldsForInstance["default"]]); } if (data.hasOwnProperty('status')) { obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); @@ -214,7 +220,7 @@ var InstanceFields = /*#__PURE__*/function () { try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var item = _step.value; - _SecurityRulesFieldsforInstance["default"].validateJSON(item); + _SecurityRulesFieldsForInstance["default"].validateJSON(item); } } catch (err) { _iterator.e(err); @@ -276,6 +282,11 @@ InstanceFields.prototype['created_at'] = undefined; */ InstanceFields.prototype['environment'] = undefined; +/** + * @member {Object} features + */ +InstanceFields.prototype['features'] = undefined; + /** * @member {String} fixed_ip */ @@ -347,7 +358,12 @@ InstanceFields.prototype['port_randomization_status'] = undefined; InstanceFields.prototype['power_state'] = undefined; /** - * @member {Array.} security_rules + * @member {Boolean} requires_public_ip + */ +InstanceFields.prototype['requires_public_ip'] = undefined; + +/** + * @member {Array.} security_rules */ InstanceFields.prototype['security_rules'] = undefined; diff --git a/dist/model/InstanceFlavorFields.js b/dist/model/InstanceFlavorFields.js index 33e79869..cd06d873 100644 --- a/dist/model/InstanceFlavorFields.js +++ b/dist/model/InstanceFlavorFields.js @@ -5,8 +5,12 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _FlavorLabelFields = _interopRequireDefault(require("./FlavorLabelFields")); 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 InstanceFlavorFields model module. * @module model/InstanceFlavorFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var InstanceFlavorFields = /*#__PURE__*/function () { /** @@ -68,6 +72,9 @@ var InstanceFlavorFields = /*#__PURE__*/function () { 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'); } @@ -77,6 +84,9 @@ var InstanceFlavorFields = /*#__PURE__*/function () { if (data.hasOwnProperty('id')) { obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); } + if (data.hasOwnProperty('labels')) { + obj['labels'] = _ApiClient["default"].convertToType(data['labels'], [_FlavorLabelFields["default"]]); + } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } @@ -99,6 +109,27 @@ var InstanceFlavorFields = /*#__PURE__*/function () { 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; + _FlavorLabelFields["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']); @@ -122,6 +153,11 @@ InstanceFlavorFields.prototype['disk'] = undefined; */ InstanceFlavorFields.prototype['ephemeral'] = undefined; +/** + * @member {Object} features + */ +InstanceFlavorFields.prototype['features'] = undefined; + /** * @member {String} gpu */ @@ -137,6 +173,11 @@ InstanceFlavorFields.prototype['gpu_count'] = undefined; */ InstanceFlavorFields.prototype['id'] = undefined; +/** + * @member {Array.} labels + */ +InstanceFlavorFields.prototype['labels'] = undefined; + /** * @member {String} name */ diff --git a/dist/model/InstanceImageFields.js b/dist/model/InstanceImageFields.js index d701af54..98786c65 100644 --- a/dist/model/InstanceImageFields.js +++ b/dist/model/InstanceImageFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The InstanceImageFields model module. * @module model/InstanceImageFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var InstanceImageFields = /*#__PURE__*/function () { /** diff --git a/dist/model/InstanceKeypairFields.js b/dist/model/InstanceKeypairFields.js index 224bdfab..8cf39fcb 100644 --- a/dist/model/InstanceKeypairFields.js +++ b/dist/model/InstanceKeypairFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The InstanceKeypairFields model module. * @module model/InstanceKeypairFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var InstanceKeypairFields = /*#__PURE__*/function () { /** diff --git a/dist/model/InstanceOverviewFields.js b/dist/model/InstanceOverviewFields.js index c01e5c53..67f83716 100644 --- a/dist/model/InstanceOverviewFields.js +++ b/dist/model/InstanceOverviewFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The InstanceOverviewFields model module. * @module model/InstanceOverviewFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var InstanceOverviewFields = /*#__PURE__*/function () { /** diff --git a/dist/model/InstanceResizePayload.js b/dist/model/InstanceResizePayload.js index 84a2ef9f..53d87e47 100644 --- a/dist/model/InstanceResizePayload.js +++ b/dist/model/InstanceResizePayload.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The InstanceResizePayload model module. * @module model/InstanceResizePayload - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var InstanceResizePayload = /*#__PURE__*/function () { /** diff --git a/dist/model/Instances.js b/dist/model/Instances.js index 97ecb48a..e33076c5 100644 --- a/dist/model/Instances.js +++ b/dist/model/Instances.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The Instances model module. * @module model/Instances - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var Instances = /*#__PURE__*/function () { /** diff --git a/dist/model/InstancesSummaryFields.js b/dist/model/InstancesSummaryFields.js deleted file mode 100644 index 3810274d..00000000 --- a/dist/model/InstancesSummaryFields.js +++ /dev/null @@ -1,249 +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 InstancesSummaryFields model module. - * @module model/InstancesSummaryFields - * @version v1.25.0-alpha - */ -var InstancesSummaryFields = /*#__PURE__*/function () { - /** - * Constructs a new InstancesSummaryFields. - * @alias module:model/InstancesSummaryFields - */ - function InstancesSummaryFields() { - _classCallCheck(this, InstancesSummaryFields); - InstancesSummaryFields.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(InstancesSummaryFields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a InstancesSummaryFields 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/InstancesSummaryFields} obj Optional instance to populate. - * @return {module:model/InstancesSummaryFields} The populated InstancesSummaryFields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new InstancesSummaryFields(); - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('environment')) { - obj['environment'] = _ApiClient["default"].convertToType(data['environment'], 'String'); - } - if (data.hasOwnProperty('environment_id')) { - obj['environment_id'] = _ApiClient["default"].convertToType(data['environment_id'], 'Number'); - } - if (data.hasOwnProperty('fixed_ip')) { - obj['fixed_ip'] = _ApiClient["default"].convertToType(data['fixed_ip'], 'String'); - } - if (data.hasOwnProperty('flavor')) { - obj['flavor'] = _ApiClient["default"].convertToType(data['flavor'], 'String'); - } - if (data.hasOwnProperty('flavor_id')) { - obj['flavor_id'] = _ApiClient["default"].convertToType(data['flavor_id'], 'Number'); - } - 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')) { - obj['image'] = _ApiClient["default"].convertToType(data['image'], 'String'); - } - if (data.hasOwnProperty('image_id')) { - obj['image_id'] = _ApiClient["default"].convertToType(data['image_id'], 'Number'); - } - if (data.hasOwnProperty('keypair')) { - obj['keypair'] = _ApiClient["default"].convertToType(data['keypair'], 'String'); - } - if (data.hasOwnProperty('keypair_id')) { - obj['keypair_id'] = _ApiClient["default"].convertToType(data['keypair_id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number'); - } - 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 InstancesSummaryFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InstancesSummaryFields. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // ensure the json data is a string - if (data['environment'] && !(typeof data['environment'] === 'string' || data['environment'] instanceof String)) { - throw new Error("Expected the field `environment` to be a primitive type in the JSON string but got " + data['environment']); - } - // 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['flavor'] && !(typeof data['flavor'] === 'string' || data['flavor'] instanceof String)) { - throw new Error("Expected the field `flavor` to be a primitive type in the JSON string but got " + data['flavor']); - } - // 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['image'] && !(typeof data['image'] === 'string' || data['image'] instanceof String)) { - throw new Error("Expected the field `image` to be a primitive type in the JSON string but got " + data['image']); - } - // ensure the json data is a string - if (data['keypair'] && !(typeof data['keypair'] === 'string' || data['keypair'] instanceof String)) { - throw new Error("Expected the field `keypair` to be a primitive type in the JSON string but got " + data['keypair']); - } - // 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 {Date} created_at - */ -InstancesSummaryFields.prototype['created_at'] = undefined; - -/** - * @member {String} environment - */ -InstancesSummaryFields.prototype['environment'] = undefined; - -/** - * @member {Number} environment_id - */ -InstancesSummaryFields.prototype['environment_id'] = undefined; - -/** - * @member {String} fixed_ip - */ -InstancesSummaryFields.prototype['fixed_ip'] = undefined; - -/** - * @member {String} flavor - */ -InstancesSummaryFields.prototype['flavor'] = undefined; - -/** - * @member {Number} flavor_id - */ -InstancesSummaryFields.prototype['flavor_id'] = undefined; - -/** - * @member {String} floating_ip - */ -InstancesSummaryFields.prototype['floating_ip'] = undefined; - -/** - * @member {String} floating_ip_status - */ -InstancesSummaryFields.prototype['floating_ip_status'] = undefined; - -/** - * @member {Number} id - */ -InstancesSummaryFields.prototype['id'] = undefined; - -/** - * @member {String} image - */ -InstancesSummaryFields.prototype['image'] = undefined; - -/** - * @member {Number} image_id - */ -InstancesSummaryFields.prototype['image_id'] = undefined; - -/** - * @member {String} keypair - */ -InstancesSummaryFields.prototype['keypair'] = undefined; - -/** - * @member {Number} keypair_id - */ -InstancesSummaryFields.prototype['keypair_id'] = undefined; - -/** - * @member {String} name - */ -InstancesSummaryFields.prototype['name'] = undefined; - -/** - * @member {Number} org_id - */ -InstancesSummaryFields.prototype['org_id'] = undefined; - -/** - * @member {String} status - */ -InstancesSummaryFields.prototype['status'] = undefined; - -/** - * @member {Date} updated_at - */ -InstancesSummaryFields.prototype['updated_at'] = undefined; -var _default = exports["default"] = InstancesSummaryFields; \ No newline at end of file diff --git a/dist/model/InternalEnvironmentFields.js b/dist/model/InternalEnvironmentFields.js deleted file mode 100644 index 031ed3d7..00000000 --- a/dist/model/InternalEnvironmentFields.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 InternalEnvironmentFields model module. - * @module model/InternalEnvironmentFields - * @version v1.25.0-alpha - */ -var InternalEnvironmentFields = /*#__PURE__*/function () { - /** - * Constructs a new InternalEnvironmentFields. - * @alias module:model/InternalEnvironmentFields - */ - function InternalEnvironmentFields() { - _classCallCheck(this, InternalEnvironmentFields); - InternalEnvironmentFields.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(InternalEnvironmentFields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a InternalEnvironmentFields 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/InternalEnvironmentFields} obj Optional instance to populate. - * @return {module:model/InternalEnvironmentFields} The populated InternalEnvironmentFields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalEnvironmentFields(); - 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('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 InternalEnvironmentFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalEnvironmentFields. - */ - }, { - 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 {Date} created_at - */ -InternalEnvironmentFields.prototype['created_at'] = undefined; - -/** - * @member {Number} id - */ -InternalEnvironmentFields.prototype['id'] = undefined; - -/** - * @member {String} name - */ -InternalEnvironmentFields.prototype['name'] = undefined; - -/** - * @member {String} region - */ -InternalEnvironmentFields.prototype['region'] = undefined; -var _default = exports["default"] = InternalEnvironmentFields; \ No newline at end of file diff --git a/dist/model/InternalInstanceFields.js b/dist/model/InternalInstanceFields.js deleted file mode 100644 index 5b25b8c6..00000000 --- a/dist/model/InternalInstanceFields.js +++ /dev/null @@ -1,344 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _InternalEnvironmentFields = _interopRequireDefault(require("./InternalEnvironmentFields")); -var _InternalInstanceFlavorFields = _interopRequireDefault(require("./InternalInstanceFlavorFields")); -var _InternalInstanceImageFields = _interopRequireDefault(require("./InternalInstanceImageFields")); -var _InternalInstanceKeypairFields = _interopRequireDefault(require("./InternalInstanceKeypairFields")); -var _InternalSecurityRulesFieldsForInstance = _interopRequireDefault(require("./InternalSecurityRulesFieldsForInstance")); -var _InternalVolumeAttachmentFields = _interopRequireDefault(require("./InternalVolumeAttachmentFields")); -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 InternalInstanceFields model module. - * @module model/InternalInstanceFields - * @version v1.25.0-alpha - */ -var InternalInstanceFields = /*#__PURE__*/function () { - /** - * Constructs a new InternalInstanceFields. - * @alias module:model/InternalInstanceFields - */ - function InternalInstanceFields() { - _classCallCheck(this, InternalInstanceFields); - InternalInstanceFields.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(InternalInstanceFields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a InternalInstanceFields 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/InternalInstanceFields} obj Optional instance to populate. - * @return {module:model/InternalInstanceFields} The populated InternalInstanceFields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalInstanceFields(); - if (data.hasOwnProperty('boot_source')) { - obj['boot_source'] = _ApiClient["default"].convertToType(data['boot_source'], 'String'); - } - if (data.hasOwnProperty('callback_url')) { - obj['callback_url'] = _ApiClient["default"].convertToType(data['callback_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('environment')) { - obj['environment'] = _InternalEnvironmentFields["default"].constructFromObject(data['environment']); - } - if (data.hasOwnProperty('fixed_ip')) { - obj['fixed_ip'] = _ApiClient["default"].convertToType(data['fixed_ip'], 'String'); - } - if (data.hasOwnProperty('flavor')) { - obj['flavor'] = _InternalInstanceFlavorFields["default"].constructFromObject(data['flavor']); - } - 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')) { - obj['image'] = _InternalInstanceImageFields["default"].constructFromObject(data['image']); - } - if (data.hasOwnProperty('keypair')) { - obj['keypair'] = _InternalInstanceKeypairFields["default"].constructFromObject(data['keypair']); - } - 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('power_state')) { - obj['power_state'] = _ApiClient["default"].convertToType(data['power_state'], 'String'); - } - if (data.hasOwnProperty('security_rules')) { - obj['security_rules'] = _ApiClient["default"].convertToType(data['security_rules'], [_InternalSecurityRulesFieldsForInstance["default"]]); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('user_data')) { - obj['user_data'] = _ApiClient["default"].convertToType(data['user_data'], 'String'); - } - if (data.hasOwnProperty('vm_state')) { - obj['vm_state'] = _ApiClient["default"].convertToType(data['vm_state'], 'String'); - } - if (data.hasOwnProperty('volume_attachments')) { - obj['volume_attachments'] = _ApiClient["default"].convertToType(data['volume_attachments'], [_InternalVolumeAttachmentFields["default"]]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InternalInstanceFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalInstanceFields. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // ensure the json data is a string - if (data['boot_source'] && !(typeof data['boot_source'] === 'string' || data['boot_source'] instanceof String)) { - throw new Error("Expected the field `boot_source` to be a primitive type in the JSON string but got " + data['boot_source']); - } - // ensure the json data is a string - if (data['callback_url'] && !(typeof data['callback_url'] === 'string' || data['callback_url'] instanceof String)) { - throw new Error("Expected the field `callback_url` to be a primitive type in the JSON string but got " + data['callback_url']); - } - // validate the optional field `environment` - if (data['environment']) { - // data not null - _InternalEnvironmentFields["default"].validateJSON(data['environment']); - } - // 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']); - } - // validate the optional field `flavor` - if (data['flavor']) { - // data not null - _InternalInstanceFlavorFields["default"].validateJSON(data['flavor']); - } - // 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']); - } - // validate the optional field `image` - if (data['image']) { - // data not null - _InternalInstanceImageFields["default"].validateJSON(data['image']); - } - // validate the optional field `keypair` - if (data['keypair']) { - // data not null - _InternalInstanceKeypairFields["default"].validateJSON(data['keypair']); - } - // 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['power_state'] && !(typeof data['power_state'] === 'string' || data['power_state'] instanceof String)) { - throw new Error("Expected the field `power_state` to be a primitive type in the JSON string but got " + data['power_state']); - } - if (data['security_rules']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['security_rules'])) { - throw new Error("Expected the field `security_rules` to be an array in the JSON data but got " + data['security_rules']); - } - // validate the optional field `security_rules` (array) - var _iterator = _createForOfIteratorHelper(data['security_rules']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _InternalSecurityRulesFieldsForInstance["default"].validateJSON(item); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - ; - } - // 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['user_data'] && !(typeof data['user_data'] === 'string' || data['user_data'] instanceof String)) { - throw new Error("Expected the field `user_data` to be a primitive type in the JSON string but got " + data['user_data']); - } - // ensure the json data is a string - if (data['vm_state'] && !(typeof data['vm_state'] === 'string' || data['vm_state'] instanceof String)) { - throw new Error("Expected the field `vm_state` to be a primitive type in the JSON string but got " + data['vm_state']); - } - if (data['volume_attachments']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['volume_attachments'])) { - throw new Error("Expected the field `volume_attachments` to be an array in the JSON data but got " + data['volume_attachments']); - } - // validate the optional field `volume_attachments` (array) - var _iterator2 = _createForOfIteratorHelper(data['volume_attachments']), - _step2; - try { - for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { - var _item = _step2.value; - _InternalVolumeAttachmentFields["default"].validateJSON(_item); - } - } catch (err) { - _iterator2.e(err); - } finally { - _iterator2.f(); - } - ; - } - return true; - } - }]); -}(); -/** - * @member {String} boot_source - */ -InternalInstanceFields.prototype['boot_source'] = undefined; - -/** - * @member {String} callback_url - */ -InternalInstanceFields.prototype['callback_url'] = undefined; - -/** - * @member {Date} created_at - */ -InternalInstanceFields.prototype['created_at'] = undefined; - -/** - * @member {module:model/InternalEnvironmentFields} environment - */ -InternalInstanceFields.prototype['environment'] = undefined; - -/** - * @member {String} fixed_ip - */ -InternalInstanceFields.prototype['fixed_ip'] = undefined; - -/** - * @member {module:model/InternalInstanceFlavorFields} flavor - */ -InternalInstanceFields.prototype['flavor'] = undefined; - -/** - * @member {String} floating_ip - */ -InternalInstanceFields.prototype['floating_ip'] = undefined; - -/** - * @member {String} floating_ip_status - */ -InternalInstanceFields.prototype['floating_ip_status'] = undefined; - -/** - * @member {Number} id - */ -InternalInstanceFields.prototype['id'] = undefined; - -/** - * @member {module:model/InternalInstanceImageFields} image - */ -InternalInstanceFields.prototype['image'] = undefined; - -/** - * @member {module:model/InternalInstanceKeypairFields} keypair - */ -InternalInstanceFields.prototype['keypair'] = undefined; - -/** - * @member {String} name - */ -InternalInstanceFields.prototype['name'] = undefined; - -/** - * @member {String} openstack_id - */ -InternalInstanceFields.prototype['openstack_id'] = undefined; - -/** - * @member {String} power_state - */ -InternalInstanceFields.prototype['power_state'] = undefined; - -/** - * @member {Array.} security_rules - */ -InternalInstanceFields.prototype['security_rules'] = undefined; - -/** - * @member {String} status - */ -InternalInstanceFields.prototype['status'] = undefined; - -/** - * @member {String} user_data - */ -InternalInstanceFields.prototype['user_data'] = undefined; - -/** - * @member {String} vm_state - */ -InternalInstanceFields.prototype['vm_state'] = undefined; - -/** - * @member {Array.} volume_attachments - */ -InternalInstanceFields.prototype['volume_attachments'] = undefined; -var _default = exports["default"] = InternalInstanceFields; \ No newline at end of file diff --git a/dist/model/InternalInstanceFlavorFields.js b/dist/model/InternalInstanceFlavorFields.js deleted file mode 100644 index e07932c3..00000000 --- a/dist/model/InternalInstanceFlavorFields.js +++ /dev/null @@ -1,161 +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 InternalInstanceFlavorFields model module. - * @module model/InternalInstanceFlavorFields - * @version v1.25.0-alpha - */ -var InternalInstanceFlavorFields = /*#__PURE__*/function () { - /** - * Constructs a new InternalInstanceFlavorFields. - * @alias module:model/InternalInstanceFlavorFields - */ - function InternalInstanceFlavorFields() { - _classCallCheck(this, InternalInstanceFlavorFields); - InternalInstanceFlavorFields.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(InternalInstanceFlavorFields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a InternalInstanceFlavorFields 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/InternalInstanceFlavorFields} obj Optional instance to populate. - * @return {module:model/InternalInstanceFlavorFields} The populated InternalInstanceFlavorFields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalInstanceFlavorFields(); - if (data.hasOwnProperty('cpu')) { - obj['cpu'] = _ApiClient["default"].convertToType(data['cpu'], 'Number'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('disk')) { - obj['disk'] = _ApiClient["default"].convertToType(data['disk'], 'Number'); - } - 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('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('ram')) { - obj['ram'] = _ApiClient["default"].convertToType(data['ram'], 'Number'); - } - if (data.hasOwnProperty('region_name')) { - obj['region_name'] = _ApiClient["default"].convertToType(data['region_name'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InternalInstanceFlavorFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalInstanceFlavorFields. - */ - }, { - 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']); - } - // 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_name'] && !(typeof data['region_name'] === 'string' || data['region_name'] instanceof String)) { - throw new Error("Expected the field `region_name` to be a primitive type in the JSON string but got " + data['region_name']); - } - return true; - } - }]); -}(); -/** - * @member {Number} cpu - */ -InternalInstanceFlavorFields.prototype['cpu'] = undefined; - -/** - * @member {Date} created_at - */ -InternalInstanceFlavorFields.prototype['created_at'] = undefined; - -/** - * @member {Number} disk - */ -InternalInstanceFlavorFields.prototype['disk'] = undefined; - -/** - * @member {String} gpu - */ -InternalInstanceFlavorFields.prototype['gpu'] = undefined; - -/** - * @member {Number} gpu_count - */ -InternalInstanceFlavorFields.prototype['gpu_count'] = undefined; - -/** - * @member {Number} id - */ -InternalInstanceFlavorFields.prototype['id'] = undefined; - -/** - * @member {String} name - */ -InternalInstanceFlavorFields.prototype['name'] = undefined; - -/** - * @member {Number} ram - */ -InternalInstanceFlavorFields.prototype['ram'] = undefined; - -/** - * @member {String} region_name - */ -InternalInstanceFlavorFields.prototype['region_name'] = undefined; -var _default = exports["default"] = InternalInstanceFlavorFields; \ No newline at end of file diff --git a/dist/model/InternalInstanceImageFields.js b/dist/model/InternalInstanceImageFields.js deleted file mode 100644 index 4a60b12e..00000000 --- a/dist/model/InternalInstanceImageFields.js +++ /dev/null @@ -1,133 +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 InternalInstanceImageFields model module. - * @module model/InternalInstanceImageFields - * @version v1.25.0-alpha - */ -var InternalInstanceImageFields = /*#__PURE__*/function () { - /** - * Constructs a new InternalInstanceImageFields. - * @alias module:model/InternalInstanceImageFields - */ - function InternalInstanceImageFields() { - _classCallCheck(this, InternalInstanceImageFields); - InternalInstanceImageFields.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(InternalInstanceImageFields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a InternalInstanceImageFields 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/InternalInstanceImageFields} obj Optional instance to populate. - * @return {module:model/InternalInstanceImageFields} The populated InternalInstanceImageFields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalInstanceImageFields(); - 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('region_name')) { - obj['region_name'] = _ApiClient["default"].convertToType(data['region_name'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('version')) { - obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InternalInstanceImageFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalInstanceImageFields. - */ - }, { - 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_name'] && !(typeof data['region_name'] === 'string' || data['region_name'] instanceof String)) { - throw new Error("Expected the field `region_name` to be a primitive type in the JSON string but got " + data['region_name']); - } - // 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']); - } - // 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 {Number} id - */ -InternalInstanceImageFields.prototype['id'] = undefined; - -/** - * @member {String} name - */ -InternalInstanceImageFields.prototype['name'] = undefined; - -/** - * @member {String} region_name - */ -InternalInstanceImageFields.prototype['region_name'] = undefined; - -/** - * @member {String} type - */ -InternalInstanceImageFields.prototype['type'] = undefined; - -/** - * @member {String} version - */ -InternalInstanceImageFields.prototype['version'] = undefined; -var _default = exports["default"] = InternalInstanceImageFields; \ No newline at end of file diff --git a/dist/model/InternalInstanceKeypairFields.js b/dist/model/InternalInstanceKeypairFields.js deleted file mode 100644 index 2430f089..00000000 --- a/dist/model/InternalInstanceKeypairFields.js +++ /dev/null @@ -1,141 +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 InternalInstanceKeypairFields model module. - * @module model/InternalInstanceKeypairFields - * @version v1.25.0-alpha - */ -var InternalInstanceKeypairFields = /*#__PURE__*/function () { - /** - * Constructs a new InternalInstanceKeypairFields. - * @alias module:model/InternalInstanceKeypairFields - */ - function InternalInstanceKeypairFields() { - _classCallCheck(this, InternalInstanceKeypairFields); - InternalInstanceKeypairFields.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(InternalInstanceKeypairFields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a InternalInstanceKeypairFields 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/InternalInstanceKeypairFields} obj Optional instance to populate. - * @return {module:model/InternalInstanceKeypairFields} The populated InternalInstanceKeypairFields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalInstanceKeypairFields(); - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('environment')) { - obj['environment'] = _ApiClient["default"].convertToType(data['environment'], 'String'); - } - if (data.hasOwnProperty('fingerprint')) { - obj['fingerprint'] = _ApiClient["default"].convertToType(data['fingerprint'], '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('public_key')) { - obj['public_key'] = _ApiClient["default"].convertToType(data['public_key'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InternalInstanceKeypairFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalInstanceKeypairFields. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // ensure the json data is a string - if (data['environment'] && !(typeof data['environment'] === 'string' || data['environment'] instanceof String)) { - throw new Error("Expected the field `environment` to be a primitive type in the JSON string but got " + data['environment']); - } - // ensure the json data is a string - if (data['fingerprint'] && !(typeof data['fingerprint'] === 'string' || data['fingerprint'] instanceof String)) { - throw new Error("Expected the field `fingerprint` to be a primitive type in the JSON string but got " + data['fingerprint']); - } - // 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['public_key'] && !(typeof data['public_key'] === 'string' || data['public_key'] instanceof String)) { - throw new Error("Expected the field `public_key` to be a primitive type in the JSON string but got " + data['public_key']); - } - return true; - } - }]); -}(); -/** - * @member {Date} created_at - */ -InternalInstanceKeypairFields.prototype['created_at'] = undefined; - -/** - * @member {String} environment - */ -InternalInstanceKeypairFields.prototype['environment'] = undefined; - -/** - * @member {String} fingerprint - */ -InternalInstanceKeypairFields.prototype['fingerprint'] = undefined; - -/** - * @member {Number} id - */ -InternalInstanceKeypairFields.prototype['id'] = undefined; - -/** - * @member {String} name - */ -InternalInstanceKeypairFields.prototype['name'] = undefined; - -/** - * @member {String} public_key - */ -InternalInstanceKeypairFields.prototype['public_key'] = undefined; -var _default = exports["default"] = InternalInstanceKeypairFields; \ No newline at end of file diff --git a/dist/model/InternalInstancesResponse.js b/dist/model/InternalInstancesResponse.js deleted file mode 100644 index 53f51fe4..00000000 --- a/dist/model/InternalInstancesResponse.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 _InternalInstanceFields = _interopRequireDefault(require("./InternalInstanceFields")); -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 InternalInstancesResponse model module. - * @module model/InternalInstancesResponse - * @version v1.25.0-alpha - */ -var InternalInstancesResponse = /*#__PURE__*/function () { - /** - * Constructs a new InternalInstancesResponse. - * @alias module:model/InternalInstancesResponse - */ - function InternalInstancesResponse() { - _classCallCheck(this, InternalInstancesResponse); - InternalInstancesResponse.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(InternalInstancesResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a InternalInstancesResponse 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/InternalInstancesResponse} obj Optional instance to populate. - * @return {module:model/InternalInstancesResponse} The populated InternalInstancesResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalInstancesResponse(); - if (data.hasOwnProperty('instances')) { - obj['instances'] = _ApiClient["default"].convertToType(data['instances'], [_InternalInstanceFields["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 InternalInstancesResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalInstancesResponse. - */ - }, { - 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; - _InternalInstanceFields["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.} instances - */ -InternalInstancesResponse.prototype['instances'] = undefined; - -/** - * @member {String} message - */ -InternalInstancesResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -InternalInstancesResponse.prototype['status'] = undefined; -var _default = exports["default"] = InternalInstancesResponse; \ No newline at end of file diff --git a/dist/model/InternalSecurityRulesFieldsForInstance.js b/dist/model/InternalSecurityRulesFieldsForInstance.js deleted file mode 100644 index 7f61ee16..00000000 --- a/dist/model/InternalSecurityRulesFieldsForInstance.js +++ /dev/null @@ -1,169 +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 InternalSecurityRulesFieldsForInstance model module. - * @module model/InternalSecurityRulesFieldsForInstance - * @version v1.25.0-alpha - */ -var InternalSecurityRulesFieldsForInstance = /*#__PURE__*/function () { - /** - * Constructs a new InternalSecurityRulesFieldsForInstance. - * @alias module:model/InternalSecurityRulesFieldsForInstance - */ - function InternalSecurityRulesFieldsForInstance() { - _classCallCheck(this, InternalSecurityRulesFieldsForInstance); - InternalSecurityRulesFieldsForInstance.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(InternalSecurityRulesFieldsForInstance, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a InternalSecurityRulesFieldsForInstance 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/InternalSecurityRulesFieldsForInstance} obj Optional instance to populate. - * @return {module:model/InternalSecurityRulesFieldsForInstance} The populated InternalSecurityRulesFieldsForInstance instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalSecurityRulesFieldsForInstance(); - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('direction')) { - obj['direction'] = _ApiClient["default"].convertToType(data['direction'], 'String'); - } - if (data.hasOwnProperty('ethertype')) { - obj['ethertype'] = _ApiClient["default"].convertToType(data['ethertype'], 'String'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('port_range_max')) { - obj['port_range_max'] = _ApiClient["default"].convertToType(data['port_range_max'], 'Number'); - } - if (data.hasOwnProperty('port_range_min')) { - obj['port_range_min'] = _ApiClient["default"].convertToType(data['port_range_min'], 'Number'); - } - if (data.hasOwnProperty('protocol')) { - obj['protocol'] = _ApiClient["default"].convertToType(data['protocol'], 'String'); - } - if (data.hasOwnProperty('remote_ip_prefix')) { - obj['remote_ip_prefix'] = _ApiClient["default"].convertToType(data['remote_ip_prefix'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InternalSecurityRulesFieldsForInstance. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalSecurityRulesFieldsForInstance. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // ensure the json data is a string - if (data['direction'] && !(typeof data['direction'] === 'string' || data['direction'] instanceof String)) { - throw new Error("Expected the field `direction` to be a primitive type in the JSON string but got " + data['direction']); - } - // ensure the json data is a string - if (data['ethertype'] && !(typeof data['ethertype'] === 'string' || data['ethertype'] instanceof String)) { - throw new Error("Expected the field `ethertype` to be a primitive type in the JSON string but got " + data['ethertype']); - } - // ensure the json data is a string - if (data['protocol'] && !(typeof data['protocol'] === 'string' || data['protocol'] instanceof String)) { - throw new Error("Expected the field `protocol` to be a primitive type in the JSON string but got " + data['protocol']); - } - // ensure the json data is a string - if (data['remote_ip_prefix'] && !(typeof data['remote_ip_prefix'] === 'string' || data['remote_ip_prefix'] instanceof String)) { - throw new Error("Expected the field `remote_ip_prefix` to be a primitive type in the JSON string but got " + data['remote_ip_prefix']); - } - // 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 {Date} created_at - */ -InternalSecurityRulesFieldsForInstance.prototype['created_at'] = undefined; - -/** - * @member {String} direction - */ -InternalSecurityRulesFieldsForInstance.prototype['direction'] = undefined; - -/** - * @member {String} ethertype - */ -InternalSecurityRulesFieldsForInstance.prototype['ethertype'] = undefined; - -/** - * @member {Number} id - */ -InternalSecurityRulesFieldsForInstance.prototype['id'] = undefined; - -/** - * @member {Number} port_range_max - */ -InternalSecurityRulesFieldsForInstance.prototype['port_range_max'] = undefined; - -/** - * @member {Number} port_range_min - */ -InternalSecurityRulesFieldsForInstance.prototype['port_range_min'] = undefined; - -/** - * @member {String} protocol - */ -InternalSecurityRulesFieldsForInstance.prototype['protocol'] = undefined; - -/** - * @member {String} remote_ip_prefix - */ -InternalSecurityRulesFieldsForInstance.prototype['remote_ip_prefix'] = undefined; - -/** - * @member {String} status - */ -InternalSecurityRulesFieldsForInstance.prototype['status'] = undefined; -var _default = exports["default"] = InternalSecurityRulesFieldsForInstance; \ No newline at end of file diff --git a/dist/model/InternalVolumeAttachmentFields.js b/dist/model/InternalVolumeAttachmentFields.js deleted file mode 100644 index e3a30345..00000000 --- a/dist/model/InternalVolumeAttachmentFields.js +++ /dev/null @@ -1,123 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _InternalVolumeFields = _interopRequireDefault(require("./InternalVolumeFields")); -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 InternalVolumeAttachmentFields model module. - * @module model/InternalVolumeAttachmentFields - * @version v1.25.0-alpha - */ -var InternalVolumeAttachmentFields = /*#__PURE__*/function () { - /** - * Constructs a new InternalVolumeAttachmentFields. - * @alias module:model/InternalVolumeAttachmentFields - */ - function InternalVolumeAttachmentFields() { - _classCallCheck(this, InternalVolumeAttachmentFields); - InternalVolumeAttachmentFields.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(InternalVolumeAttachmentFields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a InternalVolumeAttachmentFields 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/InternalVolumeAttachmentFields} obj Optional instance to populate. - * @return {module:model/InternalVolumeAttachmentFields} The populated InternalVolumeAttachmentFields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalVolumeAttachmentFields(); - 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('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('volume')) { - obj['volume'] = _InternalVolumeFields["default"].constructFromObject(data['volume']); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InternalVolumeAttachmentFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalVolumeAttachmentFields. - */ - }, { - 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']); - } - // validate the optional field `volume` - if (data['volume']) { - // data not null - _InternalVolumeFields["default"].validateJSON(data['volume']); - } - return true; - } - }]); -}(); -/** - * @member {Date} created_at - */ -InternalVolumeAttachmentFields.prototype['created_at'] = undefined; - -/** - * @member {String} device - */ -InternalVolumeAttachmentFields.prototype['device'] = undefined; - -/** - * @member {String} status - */ -InternalVolumeAttachmentFields.prototype['status'] = undefined; - -/** - * @member {module:model/InternalVolumeFields} volume - */ -InternalVolumeAttachmentFields.prototype['volume'] = undefined; -var _default = exports["default"] = InternalVolumeAttachmentFields; \ No newline at end of file diff --git a/dist/model/InternalVolumeFields.js b/dist/model/InternalVolumeFields.js deleted file mode 100644 index 44ee495d..00000000 --- a/dist/model/InternalVolumeFields.js +++ /dev/null @@ -1,129 +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 InternalVolumeFields model module. - * @module model/InternalVolumeFields - * @version v1.25.0-alpha - */ -var InternalVolumeFields = /*#__PURE__*/function () { - /** - * Constructs a new InternalVolumeFields. - * @alias module:model/InternalVolumeFields - */ - function InternalVolumeFields() { - _classCallCheck(this, InternalVolumeFields); - InternalVolumeFields.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(InternalVolumeFields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a InternalVolumeFields 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/InternalVolumeFields} obj Optional instance to populate. - * @return {module:model/InternalVolumeFields} The populated InternalVolumeFields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalVolumeFields(); - 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('size')) { - obj['size'] = _ApiClient["default"].convertToType(data['size'], 'Number'); - } - if (data.hasOwnProperty('volume_type')) { - obj['volume_type'] = _ApiClient["default"].convertToType(data['volume_type'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InternalVolumeFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalVolumeFields. - */ - }, { - 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['volume_type'] && !(typeof data['volume_type'] === 'string' || data['volume_type'] instanceof String)) { - throw new Error("Expected the field `volume_type` to be a primitive type in the JSON string but got " + data['volume_type']); - } - return true; - } - }]); -}(); -/** - * @member {String} description - */ -InternalVolumeFields.prototype['description'] = undefined; - -/** - * @member {Number} id - */ -InternalVolumeFields.prototype['id'] = undefined; - -/** - * @member {String} name - */ -InternalVolumeFields.prototype['name'] = undefined; - -/** - * @member {Number} size - */ -InternalVolumeFields.prototype['size'] = undefined; - -/** - * @member {String} volume_type - */ -InternalVolumeFields.prototype['volume_type'] = undefined; -var _default = exports["default"] = InternalVolumeFields; \ No newline at end of file diff --git a/dist/model/InternalVolumesResponse.js b/dist/model/InternalVolumesResponse.js deleted file mode 100644 index 1df8bc47..00000000 --- a/dist/model/InternalVolumesResponse.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 _InternalVolumeFields = _interopRequireDefault(require("./InternalVolumeFields")); -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 InternalVolumesResponse model module. - * @module model/InternalVolumesResponse - * @version v1.25.0-alpha - */ -var InternalVolumesResponse = /*#__PURE__*/function () { - /** - * Constructs a new InternalVolumesResponse. - * @alias module:model/InternalVolumesResponse - */ - function InternalVolumesResponse() { - _classCallCheck(this, InternalVolumesResponse); - InternalVolumesResponse.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(InternalVolumesResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a InternalVolumesResponse 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/InternalVolumesResponse} obj Optional instance to populate. - * @return {module:model/InternalVolumesResponse} The populated InternalVolumesResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalVolumesResponse(); - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('volumes')) { - obj['volumes'] = _ApiClient["default"].convertToType(data['volumes'], [_InternalVolumeFields["default"]]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InternalVolumesResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalVolumesResponse. - */ - }, { - 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['volumes']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['volumes'])) { - throw new Error("Expected the field `volumes` to be an array in the JSON data but got " + data['volumes']); - } - // validate the optional field `volumes` (array) - var _iterator = _createForOfIteratorHelper(data['volumes']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _InternalVolumeFields["default"].validateJSON(item); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - ; - } - return true; - } - }]); -}(); -/** - * @member {String} message - */ -InternalVolumesResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -InternalVolumesResponse.prototype['status'] = undefined; - -/** - * @member {Array.} volumes - */ -InternalVolumesResponse.prototype['volumes'] = undefined; -var _default = exports["default"] = InternalVolumesResponse; \ No newline at end of file diff --git a/dist/model/InviteFields.js b/dist/model/InviteFields.js index 9f88a0db..fa422740 100644 --- a/dist/model/InviteFields.js +++ b/dist/model/InviteFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The InviteFields model module. * @module model/InviteFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var InviteFields = /*#__PURE__*/function () { /** diff --git a/dist/model/InviteUserPayload.js b/dist/model/InviteUserPayload.js index 2d6b7b9c..8628f327 100644 --- a/dist/model/InviteUserPayload.js +++ b/dist/model/InviteUserPayload.js @@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The InviteUserPayload model module. * @module model/InviteUserPayload - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var InviteUserPayload = /*#__PURE__*/function () { /** diff --git a/dist/model/InviteUserResponseModel.js b/dist/model/InviteUserResponseModel.js index 6c951d9b..5b73aca5 100644 --- a/dist/model/InviteUserResponseModel.js +++ b/dist/model/InviteUserResponseModel.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The InviteUserResponseModel model module. * @module model/InviteUserResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var InviteUserResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/KeypairEnvironmentFeatures.js b/dist/model/KeypairEnvironmentFeatures.js new file mode 100644 index 00000000..6120eb5d --- /dev/null +++ b/dist/model/KeypairEnvironmentFeatures.js @@ -0,0 +1,120 @@ +"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 KeypairEnvironmentFeatures model module. + * @module model/KeypairEnvironmentFeatures + * @version v1.51.1-alpha + */ +var KeypairEnvironmentFeatures = /*#__PURE__*/function () { + /** + * Constructs a new KeypairEnvironmentFeatures. + * @alias module:model/KeypairEnvironmentFeatures + */ + function KeypairEnvironmentFeatures() { + _classCallCheck(this, KeypairEnvironmentFeatures); + KeypairEnvironmentFeatures.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(KeypairEnvironmentFeatures, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a KeypairEnvironmentFeatures 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/KeypairEnvironmentFeatures} obj Optional instance to populate. + * @return {module:model/KeypairEnvironmentFeatures} The populated KeypairEnvironmentFeatures instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KeypairEnvironmentFeatures(); + 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'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to KeypairEnvironmentFeatures. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to KeypairEnvironmentFeatures. + */ + }, { + 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/KeypairEnvironmentFeatures.GreenStatusEnum} green_status + */ +KeypairEnvironmentFeatures.prototype['green_status'] = undefined; + +/** + * @member {Boolean} network_optimised + */ +KeypairEnvironmentFeatures.prototype['network_optimised'] = undefined; + +/** + * Allowed values for the green_status property. + * @enum {String} + * @readonly + */ +KeypairEnvironmentFeatures['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"] = KeypairEnvironmentFeatures; \ No newline at end of file diff --git a/dist/model/KeypairEnvironmentFields.js b/dist/model/KeypairEnvironmentFields.js new file mode 100644 index 00000000..0ea3825f --- /dev/null +++ b/dist/model/KeypairEnvironmentFields.js @@ -0,0 +1,131 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _KeypairEnvironmentFeatures = _interopRequireDefault(require("./KeypairEnvironmentFeatures")); +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 KeypairEnvironmentFields model module. + * @module model/KeypairEnvironmentFields + * @version v1.51.1-alpha + */ +var KeypairEnvironmentFields = /*#__PURE__*/function () { + /** + * Constructs a new KeypairEnvironmentFields. + * @alias module:model/KeypairEnvironmentFields + */ + function KeypairEnvironmentFields() { + _classCallCheck(this, KeypairEnvironmentFields); + KeypairEnvironmentFields.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(KeypairEnvironmentFields, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a KeypairEnvironmentFields 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/KeypairEnvironmentFields} obj Optional instance to populate. + * @return {module:model/KeypairEnvironmentFields} The populated KeypairEnvironmentFields instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new KeypairEnvironmentFields(); + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); + } + if (data.hasOwnProperty('features')) { + obj['features'] = _KeypairEnvironmentFeatures["default"].constructFromObject(data['features']); + } + 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('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to KeypairEnvironmentFields. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to KeypairEnvironmentFields. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // validate the optional field `features` + if (data['features']) { + // data not null + _KeypairEnvironmentFeatures["default"].validateJSON(data['features']); + } + // 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 {Date} created_at + */ +KeypairEnvironmentFields.prototype['created_at'] = undefined; + +/** + * @member {module:model/KeypairEnvironmentFeatures} features + */ +KeypairEnvironmentFields.prototype['features'] = undefined; + +/** + * @member {Number} id + */ +KeypairEnvironmentFields.prototype['id'] = undefined; + +/** + * @member {String} name + */ +KeypairEnvironmentFields.prototype['name'] = undefined; + +/** + * @member {String} region + */ +KeypairEnvironmentFields.prototype['region'] = undefined; +var _default = exports["default"] = KeypairEnvironmentFields; \ No newline at end of file diff --git a/dist/model/KeypairFields.js b/dist/model/KeypairFields.js index 9f0173df..1197659c 100644 --- a/dist/model/KeypairFields.js +++ b/dist/model/KeypairFields.js @@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _KeypairEnvironmentFields = _interopRequireDefault(require("./KeypairEnvironmentFields")); 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 KeypairFields model module. * @module model/KeypairFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var KeypairFields = /*#__PURE__*/function () { /** @@ -63,7 +64,7 @@ var KeypairFields = /*#__PURE__*/function () { obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('environment')) { - obj['environment'] = _ApiClient["default"].convertToType(data['environment'], 'String'); + obj['environment'] = _KeypairEnvironmentFields["default"].constructFromObject(data['environment']); } if (data.hasOwnProperty('fingerprint')) { obj['fingerprint'] = _ApiClient["default"].convertToType(data['fingerprint'], 'String'); @@ -89,9 +90,10 @@ var KeypairFields = /*#__PURE__*/function () { }, { key: "validateJSON", value: function validateJSON(data) { - // ensure the json data is a string - if (data['environment'] && !(typeof data['environment'] === 'string' || data['environment'] instanceof String)) { - throw new Error("Expected the field `environment` to be a primitive type in the JSON string but got " + data['environment']); + // validate the optional field `environment` + if (data['environment']) { + // data not null + _KeypairEnvironmentFields["default"].validateJSON(data['environment']); } // ensure the json data is a string if (data['fingerprint'] && !(typeof data['fingerprint'] === 'string' || data['fingerprint'] instanceof String)) { @@ -115,7 +117,7 @@ var KeypairFields = /*#__PURE__*/function () { KeypairFields.prototype['created_at'] = undefined; /** - * @member {String} environment + * @member {module:model/KeypairEnvironmentFields} environment */ KeypairFields.prototype['environment'] = undefined; diff --git a/dist/model/Keypairs.js b/dist/model/Keypairs.js index 6adc7a70..35ba74c6 100644 --- a/dist/model/Keypairs.js +++ b/dist/model/Keypairs.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The Keypairs model module. * @module model/Keypairs - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var Keypairs = /*#__PURE__*/function () { /** diff --git a/dist/model/LableResonse.js b/dist/model/LableResonse.js index 3dcba68b..fb9e8551 100644 --- a/dist/model/LableResonse.js +++ b/dist/model/LableResonse.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The LableResonse model module. * @module model/LableResonse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var LableResonse = /*#__PURE__*/function () { /** diff --git a/dist/model/LastDayCostFields.js b/dist/model/LastDayCostFields.js new file mode 100644 index 00000000..1fc55402 --- /dev/null +++ b/dist/model/LastDayCostFields.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 LastDayCostFields model module. + * @module model/LastDayCostFields + * @version v1.51.1-alpha + */ +var LastDayCostFields = /*#__PURE__*/function () { + /** + * Constructs a new LastDayCostFields. + * @alias module:model/LastDayCostFields + */ + function LastDayCostFields() { + _classCallCheck(this, LastDayCostFields); + LastDayCostFields.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(LastDayCostFields, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a LastDayCostFields 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/LastDayCostFields} obj Optional instance to populate. + * @return {module:model/LastDayCostFields} The populated LastDayCostFields instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LastDayCostFields(); + if (data.hasOwnProperty('clusters_cost')) { + obj['clusters_cost'] = _ApiClient["default"].convertToType(data['clusters_cost'], 'Number'); + } + if (data.hasOwnProperty('instances_cost')) { + obj['instances_cost'] = _ApiClient["default"].convertToType(data['instances_cost'], 'Number'); + } + if (data.hasOwnProperty('total_cost')) { + obj['total_cost'] = _ApiClient["default"].convertToType(data['total_cost'], 'Number'); + } + if (data.hasOwnProperty('volumes_cost')) { + obj['volumes_cost'] = _ApiClient["default"].convertToType(data['volumes_cost'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to LastDayCostFields. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to LastDayCostFields. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + return true; + } + }]); +}(); +/** + * @member {Number} clusters_cost + */ +LastDayCostFields.prototype['clusters_cost'] = undefined; + +/** + * @member {Number} instances_cost + */ +LastDayCostFields.prototype['instances_cost'] = undefined; + +/** + * @member {Number} total_cost + */ +LastDayCostFields.prototype['total_cost'] = undefined; + +/** + * @member {Number} volumes_cost + */ +LastDayCostFields.prototype['volumes_cost'] = undefined; +var _default = exports["default"] = LastDayCostFields; \ No newline at end of file diff --git a/dist/model/LastDayCostResponse.js b/dist/model/LastDayCostResponse.js new file mode 100644 index 00000000..2f553752 --- /dev/null +++ b/dist/model/LastDayCostResponse.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _LastDayCostFields = _interopRequireDefault(require("./LastDayCostFields")); +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 LastDayCostResponse model module. + * @module model/LastDayCostResponse + * @version v1.51.1-alpha + */ +var LastDayCostResponse = /*#__PURE__*/function () { + /** + * Constructs a new LastDayCostResponse. + * @alias module:model/LastDayCostResponse + */ + function LastDayCostResponse() { + _classCallCheck(this, LastDayCostResponse); + LastDayCostResponse.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(LastDayCostResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a LastDayCostResponse 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/LastDayCostResponse} obj Optional instance to populate. + * @return {module:model/LastDayCostResponse} The populated LastDayCostResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LastDayCostResponse(); + if (data.hasOwnProperty('data')) { + obj['data'] = _LastDayCostFields["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 LastDayCostResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to LastDayCostResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // validate the optional field `data` + if (data['data']) { + // data not null + _LastDayCostFields["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/LastDayCostFields} data + */ +LastDayCostResponse.prototype['data'] = undefined; + +/** + * @member {String} message + */ +LastDayCostResponse.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +LastDayCostResponse.prototype['status'] = undefined; +var _default = exports["default"] = LastDayCostResponse; \ No newline at end of file diff --git a/dist/model/Lastdaycostfields.js b/dist/model/Lastdaycostfields.js deleted file mode 100644 index b7a97f48..00000000 --- a/dist/model/Lastdaycostfields.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 Lastdaycostfields model module. - * @module model/Lastdaycostfields - * @version v1.25.0-alpha - */ -var Lastdaycostfields = /*#__PURE__*/function () { - /** - * Constructs a new Lastdaycostfields. - * @alias module:model/Lastdaycostfields - */ - function Lastdaycostfields() { - _classCallCheck(this, Lastdaycostfields); - Lastdaycostfields.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(Lastdaycostfields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a Lastdaycostfields 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/Lastdaycostfields} obj Optional instance to populate. - * @return {module:model/Lastdaycostfields} The populated Lastdaycostfields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Lastdaycostfields(); - if (data.hasOwnProperty('clusters_cost')) { - obj['clusters_cost'] = _ApiClient["default"].convertToType(data['clusters_cost'], 'Number'); - } - if (data.hasOwnProperty('instances_cost')) { - obj['instances_cost'] = _ApiClient["default"].convertToType(data['instances_cost'], 'Number'); - } - if (data.hasOwnProperty('total_cost')) { - obj['total_cost'] = _ApiClient["default"].convertToType(data['total_cost'], 'Number'); - } - if (data.hasOwnProperty('volumes_cost')) { - obj['volumes_cost'] = _ApiClient["default"].convertToType(data['volumes_cost'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to Lastdaycostfields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Lastdaycostfields. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - return true; - } - }]); -}(); -/** - * @member {Number} clusters_cost - */ -Lastdaycostfields.prototype['clusters_cost'] = undefined; - -/** - * @member {Number} instances_cost - */ -Lastdaycostfields.prototype['instances_cost'] = undefined; - -/** - * @member {Number} total_cost - */ -Lastdaycostfields.prototype['total_cost'] = undefined; - -/** - * @member {Number} volumes_cost - */ -Lastdaycostfields.prototype['volumes_cost'] = undefined; -var _default = exports["default"] = Lastdaycostfields; \ No newline at end of file diff --git a/dist/model/Lastdaycostresponse.js b/dist/model/Lastdaycostresponse.js deleted file mode 100644 index d0748482..00000000 --- a/dist/model/Lastdaycostresponse.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 _Lastdaycostfields = _interopRequireDefault(require("./Lastdaycostfields")); -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 Lastdaycostresponse model module. - * @module model/Lastdaycostresponse - * @version v1.25.0-alpha - */ -var Lastdaycostresponse = /*#__PURE__*/function () { - /** - * Constructs a new Lastdaycostresponse. - * @alias module:model/Lastdaycostresponse - */ - function Lastdaycostresponse() { - _classCallCheck(this, Lastdaycostresponse); - Lastdaycostresponse.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(Lastdaycostresponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a Lastdaycostresponse 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/Lastdaycostresponse} obj Optional instance to populate. - * @return {module:model/Lastdaycostresponse} The populated Lastdaycostresponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Lastdaycostresponse(); - if (data.hasOwnProperty('data')) { - obj['data'] = _Lastdaycostfields["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 Lastdaycostresponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Lastdaycostresponse. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // validate the optional field `data` - if (data['data']) { - // data not null - _Lastdaycostfields["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/Lastdaycostfields} data - */ -Lastdaycostresponse.prototype['data'] = undefined; - -/** - * @member {String} message - */ -Lastdaycostresponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -Lastdaycostresponse.prototype['status'] = undefined; -var _default = exports["default"] = Lastdaycostresponse; \ No newline at end of file diff --git a/dist/model/LogoGetResponse.js b/dist/model/LogoGetResponse.js deleted file mode 100644 index c143f15e..00000000 --- a/dist/model/LogoGetResponse.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 LogoGetResponse model module. - * @module model/LogoGetResponse - * @version v1.25.0-alpha - */ -var LogoGetResponse = /*#__PURE__*/function () { - /** - * Constructs a new LogoGetResponse. - * @alias module:model/LogoGetResponse - */ - function LogoGetResponse() { - _classCallCheck(this, LogoGetResponse); - LogoGetResponse.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(LogoGetResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a LogoGetResponse 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/LogoGetResponse} obj Optional instance to populate. - * @return {module:model/LogoGetResponse} The populated LogoGetResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LogoGetResponse(); - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to LogoGetResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to LogoGetResponse. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // 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']); - } - // ensure the json data is a string - if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) { - throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']); - } - return true; - } - }]); -}(); -/** - * @member {Number} id - */ -LogoGetResponse.prototype['id'] = undefined; - -/** - * @member {String} type - */ -LogoGetResponse.prototype['type'] = undefined; - -/** - * @member {String} url - */ -LogoGetResponse.prototype['url'] = undefined; -var _default = exports["default"] = LogoGetResponse; \ No newline at end of file diff --git a/dist/model/Logos.js b/dist/model/Logos.js new file mode 100644 index 00000000..3485fca9 --- /dev/null +++ b/dist/model/Logos.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 Logos model module. + * @module model/Logos + * @version v1.51.1-alpha + */ +var Logos = /*#__PURE__*/function () { + /** + * Constructs a new Logos. + * @alias module:model/Logos + */ + function Logos() { + _classCallCheck(this, Logos); + Logos.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(Logos, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a Logos 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/Logos} obj Optional instance to populate. + * @return {module:model/Logos} The populated Logos instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Logos(); + if (data.hasOwnProperty('dark')) { + obj['dark'] = _ApiClient["default"].convertToType(data['dark'], 'String'); + } + if (data.hasOwnProperty('email')) { + obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); + } + if (data.hasOwnProperty('favicon')) { + obj['favicon'] = _ApiClient["default"].convertToType(data['favicon'], 'String'); + } + if (data.hasOwnProperty('light')) { + obj['light'] = _ApiClient["default"].convertToType(data['light'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to Logos. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to Logos. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // ensure the json data is a string + if (data['dark'] && !(typeof data['dark'] === 'string' || data['dark'] instanceof String)) { + throw new Error("Expected the field `dark` to be a primitive type in the JSON string but got " + data['dark']); + } + // ensure the json data is a string + if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) { + throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']); + } + // ensure the json data is a string + if (data['favicon'] && !(typeof data['favicon'] === 'string' || data['favicon'] instanceof String)) { + throw new Error("Expected the field `favicon` to be a primitive type in the JSON string but got " + data['favicon']); + } + // ensure the json data is a string + if (data['light'] && !(typeof data['light'] === 'string' || data['light'] instanceof String)) { + throw new Error("Expected the field `light` to be a primitive type in the JSON string but got " + data['light']); + } + return true; + } + }]); +}(); +/** + * @member {String} dark + */ +Logos.prototype['dark'] = undefined; + +/** + * @member {String} email + */ +Logos.prototype['email'] = undefined; + +/** + * @member {String} favicon + */ +Logos.prototype['favicon'] = undefined; + +/** + * @member {String} light + */ +Logos.prototype['light'] = undefined; +var _default = exports["default"] = Logos; \ No newline at end of file diff --git a/dist/model/LogoutPayload.js b/dist/model/LogoutPayload.js deleted file mode 100644 index aa8dc2d1..00000000 --- a/dist/model/LogoutPayload.js +++ /dev/null @@ -1,112 +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 LogoutPayload model module. - * @module model/LogoutPayload - * @version v1.25.0-alpha - */ -var LogoutPayload = /*#__PURE__*/function () { - /** - * Constructs a new LogoutPayload. - * @alias module:model/LogoutPayload - * @param refreshToken {String} - */ - function LogoutPayload(refreshToken) { - _classCallCheck(this, LogoutPayload); - LogoutPayload.initialize(this, refreshToken); - } - - /** - * 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(LogoutPayload, null, [{ - key: "initialize", - value: function initialize(obj, refreshToken) { - obj['refresh_token'] = refreshToken; - } - - /** - * Constructs a LogoutPayload 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/LogoutPayload} obj Optional instance to populate. - * @return {module:model/LogoutPayload} The populated LogoutPayload instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LogoutPayload(); - if (data.hasOwnProperty('refresh_token')) { - obj['refresh_token'] = _ApiClient["default"].convertToType(data['refresh_token'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to LogoutPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to LogoutPayload. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(LogoutPayload.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['refresh_token'] && !(typeof data['refresh_token'] === 'string' || data['refresh_token'] instanceof String)) { - throw new Error("Expected the field `refresh_token` to be a primitive type in the JSON string but got " + data['refresh_token']); - } - return true; - } - }]); -}(); -LogoutPayload.RequiredProperties = ["refresh_token"]; - -/** - * @member {String} refresh_token - */ -LogoutPayload.prototype['refresh_token'] = undefined; -var _default = exports["default"] = LogoutPayload; \ No newline at end of file diff --git a/dist/model/MFAStatusFields.js b/dist/model/MFAStatusFields.js new file mode 100644 index 00000000..4227ee9b --- /dev/null +++ b/dist/model/MFAStatusFields.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 _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 MFAStatusFields model module. + * @module model/MFAStatusFields + * @version v1.51.1-alpha + */ +var MFAStatusFields = /*#__PURE__*/function () { + /** + * Constructs a new MFAStatusFields. + * @alias module:model/MFAStatusFields + * @param mfaEnabled {Boolean} Whether MFA is enabled for the user + */ + function MFAStatusFields(mfaEnabled) { + _classCallCheck(this, MFAStatusFields); + MFAStatusFields.initialize(this, mfaEnabled); + } + + /** + * 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(MFAStatusFields, null, [{ + key: "initialize", + value: function initialize(obj, mfaEnabled) { + obj['mfa_enabled'] = mfaEnabled; + } + + /** + * Constructs a MFAStatusFields 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/MFAStatusFields} obj Optional instance to populate. + * @return {module:model/MFAStatusFields} The populated MFAStatusFields instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MFAStatusFields(); + if (data.hasOwnProperty('mfa_enabled')) { + obj['mfa_enabled'] = _ApiClient["default"].convertToType(data['mfa_enabled'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to MFAStatusFields. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to MFAStatusFields. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(MFAStatusFields.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(); + } + return true; + } + }]); +}(); +MFAStatusFields.RequiredProperties = ["mfa_enabled"]; + +/** + * Whether MFA is enabled for the user + * @member {Boolean} mfa_enabled + */ +MFAStatusFields.prototype['mfa_enabled'] = undefined; +var _default = exports["default"] = MFAStatusFields; \ No newline at end of file diff --git a/dist/model/MFAStatusResponse.js b/dist/model/MFAStatusResponse.js new file mode 100644 index 00000000..54fe5080 --- /dev/null +++ b/dist/model/MFAStatusResponse.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _MFAStatusFields = _interopRequireDefault(require("./MFAStatusFields")); +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 MFAStatusResponse model module. + * @module model/MFAStatusResponse + * @version v1.51.1-alpha + */ +var MFAStatusResponse = /*#__PURE__*/function () { + /** + * Constructs a new MFAStatusResponse. + * @alias module:model/MFAStatusResponse + */ + function MFAStatusResponse() { + _classCallCheck(this, MFAStatusResponse); + MFAStatusResponse.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(MFAStatusResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a MFAStatusResponse 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/MFAStatusResponse} obj Optional instance to populate. + * @return {module:model/MFAStatusResponse} The populated MFAStatusResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MFAStatusResponse(); + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('mfa')) { + obj['mfa'] = _MFAStatusFields["default"].constructFromObject(data['mfa']); + } + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to MFAStatusResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to MFAStatusResponse. + */ + }, { + 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 `mfa` + if (data['mfa']) { + // data not null + _MFAStatusFields["default"].validateJSON(data['mfa']); + } + return true; + } + }]); +}(); +/** + * @member {String} message + */ +MFAStatusResponse.prototype['message'] = undefined; + +/** + * @member {module:model/MFAStatusFields} mfa + */ +MFAStatusResponse.prototype['mfa'] = undefined; + +/** + * @member {Boolean} status + */ +MFAStatusResponse.prototype['status'] = undefined; +var _default = exports["default"] = MFAStatusResponse; \ No newline at end of file diff --git a/dist/model/ManualReconciliationModel.js b/dist/model/ManualReconciliationModel.js new file mode 100644 index 00000000..838abeea --- /dev/null +++ b/dist/model/ManualReconciliationModel.js @@ -0,0 +1,115 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +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"); } +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 ManualReconciliationModel model module. + * @module model/ManualReconciliationModel + * @version v1.51.1-alpha + */ +var ManualReconciliationModel = /*#__PURE__*/function () { + /** + * Constructs a new ManualReconciliationModel. + * @alias module:model/ManualReconciliationModel + */ + function ManualReconciliationModel() { + _classCallCheck(this, ManualReconciliationModel); + ManualReconciliationModel.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(ManualReconciliationModel, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ManualReconciliationModel 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/ManualReconciliationModel} obj Optional instance to populate. + * @return {module:model/ManualReconciliationModel} The populated ManualReconciliationModel instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ManualReconciliationModel(); + if (data.hasOwnProperty('cluster')) { + obj['cluster'] = _ClusterFields["default"].constructFromObject(data['cluster']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ManualReconciliationModel. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ManualReconciliationModel. + */ + }, { + 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['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['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 {module:model/ClusterFields} cluster + */ +ManualReconciliationModel.prototype['cluster'] = undefined; + +/** + * @member {String} message + */ +ManualReconciliationModel.prototype['message'] = undefined; + +/** + * @member {String} status + */ +ManualReconciliationModel.prototype['status'] = undefined; +var _default = exports["default"] = ManualReconciliationModel; \ No newline at end of file diff --git a/dist/model/MasterFlavorsResponse.js b/dist/model/MasterFlavorsResponse.js new file mode 100644 index 00000000..9a483eb7 --- /dev/null +++ b/dist/model/MasterFlavorsResponse.js @@ -0,0 +1,130 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ClusterFlavorFields = _interopRequireDefault(require("./ClusterFlavorFields")); +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 MasterFlavorsResponse model module. + * @module model/MasterFlavorsResponse + * @version v1.51.1-alpha + */ +var MasterFlavorsResponse = /*#__PURE__*/function () { + /** + * Constructs a new MasterFlavorsResponse. + * @alias module:model/MasterFlavorsResponse + */ + function MasterFlavorsResponse() { + _classCallCheck(this, MasterFlavorsResponse); + MasterFlavorsResponse.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(MasterFlavorsResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a MasterFlavorsResponse 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/MasterFlavorsResponse} obj Optional instance to populate. + * @return {module:model/MasterFlavorsResponse} The populated MasterFlavorsResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MasterFlavorsResponse(); + if (data.hasOwnProperty('flavors')) { + obj['flavors'] = _ApiClient["default"].convertToType(data['flavors'], [_ClusterFlavorFields["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 MasterFlavorsResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to MasterFlavorsResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + if (data['flavors']) { + // data not null + // ensure the json data is an array + if (!Array.isArray(data['flavors'])) { + throw new Error("Expected the field `flavors` to be an array in the JSON data but got " + data['flavors']); + } + // validate the optional field `flavors` (array) + var _iterator = _createForOfIteratorHelper(data['flavors']), + _step; + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var item = _step.value; + _ClusterFlavorFields["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.} flavors + */ +MasterFlavorsResponse.prototype['flavors'] = undefined; + +/** + * @member {String} message + */ +MasterFlavorsResponse.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +MasterFlavorsResponse.prototype['status'] = undefined; +var _default = exports["default"] = MasterFlavorsResponse; \ No newline at end of file diff --git a/dist/model/MetricItemFields.js b/dist/model/MetricItemFields.js index 32c6151b..ffb70059 100644 --- a/dist/model/MetricItemFields.js +++ b/dist/model/MetricItemFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The MetricItemFields model module. * @module model/MetricItemFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var MetricItemFields = /*#__PURE__*/function () { /** diff --git a/dist/model/MetricsFields.js b/dist/model/MetricsFields.js index 5e266026..706e9757 100644 --- a/dist/model/MetricsFields.js +++ b/dist/model/MetricsFields.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The MetricsFields model module. * @module model/MetricsFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var MetricsFields = /*#__PURE__*/function () { /** diff --git a/dist/model/ModelEvaluationBillingHistoryDetailsResponseSchema.js b/dist/model/ModelEvaluationBillingHistoryDetailsResponseSchema.js new file mode 100644 index 00000000..4be9d876 --- /dev/null +++ b/dist/model/ModelEvaluationBillingHistoryDetailsResponseSchema.js @@ -0,0 +1,113 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _BillingHistoryModelEvalutationDetails = _interopRequireDefault(require("./BillingHistoryModelEvalutationDetails")); +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 ModelEvaluationBillingHistoryDetailsResponseSchema model module. + * @module model/ModelEvaluationBillingHistoryDetailsResponseSchema + * @version v1.51.1-alpha + */ +var ModelEvaluationBillingHistoryDetailsResponseSchema = /*#__PURE__*/function () { + /** + * Constructs a new ModelEvaluationBillingHistoryDetailsResponseSchema. + * @alias module:model/ModelEvaluationBillingHistoryDetailsResponseSchema + */ + function ModelEvaluationBillingHistoryDetailsResponseSchema() { + _classCallCheck(this, ModelEvaluationBillingHistoryDetailsResponseSchema); + ModelEvaluationBillingHistoryDetailsResponseSchema.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(ModelEvaluationBillingHistoryDetailsResponseSchema, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ModelEvaluationBillingHistoryDetailsResponseSchema 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/ModelEvaluationBillingHistoryDetailsResponseSchema} obj Optional instance to populate. + * @return {module:model/ModelEvaluationBillingHistoryDetailsResponseSchema} The populated ModelEvaluationBillingHistoryDetailsResponseSchema instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ModelEvaluationBillingHistoryDetailsResponseSchema(); + if (data.hasOwnProperty('billing_history_model_evalutation_details')) { + obj['billing_history_model_evalutation_details'] = _BillingHistoryModelEvalutationDetails["default"].constructFromObject(data['billing_history_model_evalutation_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 ModelEvaluationBillingHistoryDetailsResponseSchema. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ModelEvaluationBillingHistoryDetailsResponseSchema. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // validate the optional field `billing_history_model_evalutation_details` + if (data['billing_history_model_evalutation_details']) { + // data not null + _BillingHistoryModelEvalutationDetails["default"].validateJSON(data['billing_history_model_evalutation_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/BillingHistoryModelEvalutationDetails} billing_history_model_evalutation_details + */ +ModelEvaluationBillingHistoryDetailsResponseSchema.prototype['billing_history_model_evalutation_details'] = undefined; + +/** + * + * @member {String} message + */ +ModelEvaluationBillingHistoryDetailsResponseSchema.prototype['message'] = undefined; + +/** + * + * @member {Boolean} status + */ +ModelEvaluationBillingHistoryDetailsResponseSchema.prototype['status'] = undefined; +var _default = exports["default"] = ModelEvaluationBillingHistoryDetailsResponseSchema; \ No newline at end of file diff --git a/dist/model/NameAvailableModel.js b/dist/model/NameAvailableModel.js index be2cb1cd..9ab1ed30 100644 --- a/dist/model/NameAvailableModel.js +++ b/dist/model/NameAvailableModel.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The NameAvailableModel model module. * @module model/NameAvailableModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var NameAvailableModel = /*#__PURE__*/function () { /** diff --git a/dist/model/NewConfigurationsResponse.js b/dist/model/NewConfigurationsResponse.js index 305ec57b..3fd51deb 100644 --- a/dist/model/NewConfigurationsResponse.js +++ b/dist/model/NewConfigurationsResponse.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The NewConfigurationsResponse model module. * @module model/NewConfigurationsResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var NewConfigurationsResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/NewModelResponse.js b/dist/model/NewModelResponse.js index 2a7efcf0..760be501 100644 --- a/dist/model/NewModelResponse.js +++ b/dist/model/NewModelResponse.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The NewModelResponse model module. * @module model/NewModelResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var NewModelResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/NewStockResponse.js b/dist/model/NewStockResponse.js index 66ff493b..0949a5a7 100644 --- a/dist/model/NewStockResponse.js +++ b/dist/model/NewStockResponse.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The NewStockResponse model module. * @module model/NewStockResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var NewStockResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/NewStockRetriveResponse.js b/dist/model/NewStockRetriveResponse.js index d91c3fa9..cc4554f4 100644 --- a/dist/model/NewStockRetriveResponse.js +++ b/dist/model/NewStockRetriveResponse.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The NewStockRetriveResponse model module. * @module model/NewStockRetriveResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var NewStockRetriveResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/NewStockUpdateResponseModel.js b/dist/model/NewStockUpdateResponseModel.js deleted file mode 100644 index 7e34b1e1..00000000 --- a/dist/model/NewStockUpdateResponseModel.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 NewStockUpdateResponseModel model module. - * @module model/NewStockUpdateResponseModel - * @version v1.25.0-alpha - */ -var NewStockUpdateResponseModel = /*#__PURE__*/function () { - /** - * Constructs a new NewStockUpdateResponseModel. - * @alias module:model/NewStockUpdateResponseModel - */ - function NewStockUpdateResponseModel() { - _classCallCheck(this, NewStockUpdateResponseModel); - NewStockUpdateResponseModel.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(NewStockUpdateResponseModel, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a NewStockUpdateResponseModel 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/NewStockUpdateResponseModel} obj Optional instance to populate. - * @return {module:model/NewStockUpdateResponseModel} The populated NewStockUpdateResponseModel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new NewStockUpdateResponseModel(); - 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 NewStockUpdateResponseModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to NewStockUpdateResponseModel. - */ - }, { - 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']); - } - return true; - } - }]); -}(); -/** - * @member {String} message - */ -NewStockUpdateResponseModel.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -NewStockUpdateResponseModel.prototype['status'] = undefined; -var _default = exports["default"] = NewStockUpdateResponseModel; \ No newline at end of file diff --git a/dist/model/NodeModel.js b/dist/model/NodeModel.js deleted file mode 100644 index 6c9e3dd9..00000000 --- a/dist/model/NodeModel.js +++ /dev/null @@ -1,230 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _NodeStocksPayload = _interopRequireDefault(require("./NodeStocksPayload")); -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 NodeModel model module. - * @module model/NodeModel - * @version v1.25.0-alpha - */ -var NodeModel = /*#__PURE__*/function () { - /** - * Constructs a new NodeModel. - * @alias module:model/NodeModel - * @param openstackId {String} - */ - function NodeModel(openstackId) { - _classCallCheck(this, NodeModel); - NodeModel.initialize(this, openstackId); - } - - /** - * 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(NodeModel, null, [{ - key: "initialize", - value: function initialize(obj, openstackId) { - obj['openstack_id'] = openstackId; - } - - /** - * Constructs a NodeModel 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/NodeModel} obj Optional instance to populate. - * @return {module:model/NodeModel} The populated NodeModel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new NodeModel(); - if (data.hasOwnProperty('flavors')) { - obj['flavors'] = _ApiClient["default"].convertToType(data['flavors'], ['String']); - } - if (data.hasOwnProperty('nexgen_name')) { - obj['nexgen_name'] = _ApiClient["default"].convertToType(data['nexgen_name'], 'String'); - } - if (data.hasOwnProperty('openstack_id')) { - obj['openstack_id'] = _ApiClient["default"].convertToType(data['openstack_id'], 'String'); - } - if (data.hasOwnProperty('openstack_name')) { - obj['openstack_name'] = _ApiClient["default"].convertToType(data['openstack_name'], 'String'); - } - if (data.hasOwnProperty('organizations')) { - obj['organizations'] = _ApiClient["default"].convertToType(data['organizations'], ['Number']); - } - if (data.hasOwnProperty('projects')) { - obj['projects'] = _ApiClient["default"].convertToType(data['projects'], ['String']); - } - if (data.hasOwnProperty('provision_date')) { - obj['provision_date'] = _ApiClient["default"].convertToType(data['provision_date'], 'Date'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('stocks')) { - obj['stocks'] = _ApiClient["default"].convertToType(data['stocks'], [_NodeStocksPayload["default"]]); - } - if (data.hasOwnProperty('sunset_date')) { - obj['sunset_date'] = _ApiClient["default"].convertToType(data['sunset_date'], 'Date'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to NodeModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to NodeModel. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(NodeModel.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['flavors'])) { - throw new Error("Expected the field `flavors` to be an array in the JSON data but got " + data['flavors']); - } - // ensure the json data is a string - if (data['nexgen_name'] && !(typeof data['nexgen_name'] === 'string' || data['nexgen_name'] instanceof String)) { - throw new Error("Expected the field `nexgen_name` to be a primitive type in the JSON string but got " + data['nexgen_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['openstack_name'] && !(typeof data['openstack_name'] === 'string' || data['openstack_name'] instanceof String)) { - throw new Error("Expected the field `openstack_name` to be a primitive type in the JSON string but got " + data['openstack_name']); - } - // 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']); - } - // ensure the json data is an array - if (!Array.isArray(data['projects'])) { - throw new Error("Expected the field `projects` to be an array in the JSON data but got " + data['projects']); - } - // 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']); - } - if (data['stocks']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['stocks'])) { - throw new Error("Expected the field `stocks` to be an array in the JSON data but got " + data['stocks']); - } - // validate the optional field `stocks` (array) - var _iterator2 = _createForOfIteratorHelper(data['stocks']), - _step2; - try { - for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { - var item = _step2.value; - _NodeStocksPayload["default"].validateJSON(item); - } - } catch (err) { - _iterator2.e(err); - } finally { - _iterator2.f(); - } - ; - } - return true; - } - }]); -}(); -NodeModel.RequiredProperties = ["openstack_id"]; - -/** - * @member {Array.} flavors - */ -NodeModel.prototype['flavors'] = undefined; - -/** - * @member {String} nexgen_name - */ -NodeModel.prototype['nexgen_name'] = undefined; - -/** - * @member {String} openstack_id - */ -NodeModel.prototype['openstack_id'] = undefined; - -/** - * @member {String} openstack_name - */ -NodeModel.prototype['openstack_name'] = undefined; - -/** - * @member {Array.} organizations - */ -NodeModel.prototype['organizations'] = undefined; - -/** - * @member {Array.} projects - */ -NodeModel.prototype['projects'] = undefined; - -/** - * @member {Date} provision_date - */ -NodeModel.prototype['provision_date'] = undefined; - -/** - * @member {String} status - */ -NodeModel.prototype['status'] = undefined; - -/** - * @member {Array.} stocks - */ -NodeModel.prototype['stocks'] = undefined; - -/** - * @member {Date} sunset_date - */ -NodeModel.prototype['sunset_date'] = undefined; -var _default = exports["default"] = NodeModel; \ No newline at end of file diff --git a/dist/model/NodePayloadModel.js b/dist/model/NodePayloadModel.js deleted file mode 100644 index 3ee816f2..00000000 --- a/dist/model/NodePayloadModel.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 _NodePowerUsageModel = _interopRequireDefault(require("./NodePowerUsageModel")); -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 NodePayloadModel model module. - * @module model/NodePayloadModel - * @version v1.25.0-alpha - */ -var NodePayloadModel = /*#__PURE__*/function () { - /** - * Constructs a new NodePayloadModel. - * @alias module:model/NodePayloadModel - */ - function NodePayloadModel() { - _classCallCheck(this, NodePayloadModel); - NodePayloadModel.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(NodePayloadModel, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a NodePayloadModel 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/NodePayloadModel} obj Optional instance to populate. - * @return {module:model/NodePayloadModel} The populated NodePayloadModel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new NodePayloadModel(); - if (data.hasOwnProperty('nodes')) { - obj['nodes'] = _ApiClient["default"].convertToType(data['nodes'], [_NodePowerUsageModel["default"]]); - } - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to NodePayloadModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to NodePayloadModel. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - 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; - _NodePowerUsageModel["default"].validateJSON(item); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - ; - } - // 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 {Array.} nodes - */ -NodePayloadModel.prototype['nodes'] = undefined; - -/** - * @member {String} region - */ -NodePayloadModel.prototype['region'] = undefined; -var _default = exports["default"] = NodePayloadModel; \ No newline at end of file diff --git a/dist/model/NodePowerUsageModel.js b/dist/model/NodePowerUsageModel.js deleted file mode 100644 index 6666eeb0..00000000 --- a/dist/model/NodePowerUsageModel.js +++ /dev/null @@ -1,244 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _NodeStocksPayload = _interopRequireDefault(require("./NodeStocksPayload")); -var _PowerUsageModel = _interopRequireDefault(require("./PowerUsageModel")); -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 NodePowerUsageModel model module. - * @module model/NodePowerUsageModel - * @version v1.25.0-alpha - */ -var NodePowerUsageModel = /*#__PURE__*/function () { - /** - * Constructs a new NodePowerUsageModel. - * @alias module:model/NodePowerUsageModel - * @param openstackId {String} - */ - function NodePowerUsageModel(openstackId) { - _classCallCheck(this, NodePowerUsageModel); - NodePowerUsageModel.initialize(this, openstackId); - } - - /** - * 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(NodePowerUsageModel, null, [{ - key: "initialize", - value: function initialize(obj, openstackId) { - obj['openstack_id'] = openstackId; - } - - /** - * Constructs a NodePowerUsageModel 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/NodePowerUsageModel} obj Optional instance to populate. - * @return {module:model/NodePowerUsageModel} The populated NodePowerUsageModel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new NodePowerUsageModel(); - if (data.hasOwnProperty('flavors')) { - obj['flavors'] = _ApiClient["default"].convertToType(data['flavors'], ['String']); - } - if (data.hasOwnProperty('nexgen_name')) { - obj['nexgen_name'] = _ApiClient["default"].convertToType(data['nexgen_name'], 'String'); - } - if (data.hasOwnProperty('openstack_id')) { - obj['openstack_id'] = _ApiClient["default"].convertToType(data['openstack_id'], 'String'); - } - if (data.hasOwnProperty('openstack_name')) { - obj['openstack_name'] = _ApiClient["default"].convertToType(data['openstack_name'], 'String'); - } - if (data.hasOwnProperty('organizations')) { - obj['organizations'] = _ApiClient["default"].convertToType(data['organizations'], ['Number']); - } - if (data.hasOwnProperty('power_usages')) { - obj['power_usages'] = _PowerUsageModel["default"].constructFromObject(data['power_usages']); - } - if (data.hasOwnProperty('projects')) { - obj['projects'] = _ApiClient["default"].convertToType(data['projects'], ['String']); - } - if (data.hasOwnProperty('provision_date')) { - obj['provision_date'] = _ApiClient["default"].convertToType(data['provision_date'], 'Date'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('stocks')) { - obj['stocks'] = _ApiClient["default"].convertToType(data['stocks'], [_NodeStocksPayload["default"]]); - } - if (data.hasOwnProperty('sunset_date')) { - obj['sunset_date'] = _ApiClient["default"].convertToType(data['sunset_date'], 'Date'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to NodePowerUsageModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to NodePowerUsageModel. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(NodePowerUsageModel.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['flavors'])) { - throw new Error("Expected the field `flavors` to be an array in the JSON data but got " + data['flavors']); - } - // ensure the json data is a string - if (data['nexgen_name'] && !(typeof data['nexgen_name'] === 'string' || data['nexgen_name'] instanceof String)) { - throw new Error("Expected the field `nexgen_name` to be a primitive type in the JSON string but got " + data['nexgen_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['openstack_name'] && !(typeof data['openstack_name'] === 'string' || data['openstack_name'] instanceof String)) { - throw new Error("Expected the field `openstack_name` to be a primitive type in the JSON string but got " + data['openstack_name']); - } - // 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']); - } - // validate the optional field `power_usages` - if (data['power_usages']) { - // data not null - _PowerUsageModel["default"].validateJSON(data['power_usages']); - } - // ensure the json data is an array - if (!Array.isArray(data['projects'])) { - throw new Error("Expected the field `projects` to be an array in the JSON data but got " + data['projects']); - } - // 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']); - } - if (data['stocks']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['stocks'])) { - throw new Error("Expected the field `stocks` to be an array in the JSON data but got " + data['stocks']); - } - // validate the optional field `stocks` (array) - var _iterator2 = _createForOfIteratorHelper(data['stocks']), - _step2; - try { - for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { - var item = _step2.value; - _NodeStocksPayload["default"].validateJSON(item); - } - } catch (err) { - _iterator2.e(err); - } finally { - _iterator2.f(); - } - ; - } - return true; - } - }]); -}(); -NodePowerUsageModel.RequiredProperties = ["openstack_id"]; - -/** - * @member {Array.} flavors - */ -NodePowerUsageModel.prototype['flavors'] = undefined; - -/** - * @member {String} nexgen_name - */ -NodePowerUsageModel.prototype['nexgen_name'] = undefined; - -/** - * @member {String} openstack_id - */ -NodePowerUsageModel.prototype['openstack_id'] = undefined; - -/** - * @member {String} openstack_name - */ -NodePowerUsageModel.prototype['openstack_name'] = undefined; - -/** - * @member {Array.} organizations - */ -NodePowerUsageModel.prototype['organizations'] = undefined; - -/** - * @member {module:model/PowerUsageModel} power_usages - */ -NodePowerUsageModel.prototype['power_usages'] = undefined; - -/** - * @member {Array.} projects - */ -NodePowerUsageModel.prototype['projects'] = undefined; - -/** - * @member {Date} provision_date - */ -NodePowerUsageModel.prototype['provision_date'] = undefined; - -/** - * @member {String} status - */ -NodePowerUsageModel.prototype['status'] = undefined; - -/** - * @member {Array.} stocks - */ -NodePowerUsageModel.prototype['stocks'] = undefined; - -/** - * @member {Date} sunset_date - */ -NodePowerUsageModel.prototype['sunset_date'] = undefined; -var _default = exports["default"] = NodePowerUsageModel; \ No newline at end of file diff --git a/dist/model/NodeResponseModel.js b/dist/model/NodeResponseModel.js deleted file mode 100644 index acc2a6fd..00000000 --- a/dist/model/NodeResponseModel.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 _NodeModel = _interopRequireDefault(require("./NodeModel")); -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 NodeResponseModel model module. - * @module model/NodeResponseModel - * @version v1.25.0-alpha - */ -var NodeResponseModel = /*#__PURE__*/function () { - /** - * Constructs a new NodeResponseModel. - * @alias module:model/NodeResponseModel - */ - function NodeResponseModel() { - _classCallCheck(this, NodeResponseModel); - NodeResponseModel.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(NodeResponseModel, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a NodeResponseModel 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/NodeResponseModel} obj Optional instance to populate. - * @return {module:model/NodeResponseModel} The populated NodeResponseModel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new NodeResponseModel(); - if (data.hasOwnProperty('nodes')) { - obj['nodes'] = _ApiClient["default"].convertToType(data['nodes'], [_NodeModel["default"]]); - } - if (data.hasOwnProperty('region')) { - obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to NodeResponseModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to NodeResponseModel. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - 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; - _NodeModel["default"].validateJSON(item); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - ; - } - // 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 {Array.} nodes - */ -NodeResponseModel.prototype['nodes'] = undefined; - -/** - * @member {String} region - */ -NodeResponseModel.prototype['region'] = undefined; -var _default = exports["default"] = NodeResponseModel; \ No newline at end of file diff --git a/dist/model/NodeStockPayloadModel.js b/dist/model/NodeStockPayloadModel.js deleted file mode 100644 index 0e449ac8..00000000 --- a/dist/model/NodeStockPayloadModel.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _NodePayloadModel = _interopRequireDefault(require("./NodePayloadModel")); -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 NodeStockPayloadModel model module. - * @module model/NodeStockPayloadModel - * @version v1.25.0-alpha - */ -var NodeStockPayloadModel = /*#__PURE__*/function () { - /** - * Constructs a new NodeStockPayloadModel. - * @alias module:model/NodeStockPayloadModel - */ - function NodeStockPayloadModel() { - _classCallCheck(this, NodeStockPayloadModel); - NodeStockPayloadModel.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(NodeStockPayloadModel, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a NodeStockPayloadModel 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/NodeStockPayloadModel} obj Optional instance to populate. - * @return {module:model/NodeStockPayloadModel} The populated NodeStockPayloadModel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new NodeStockPayloadModel(); - if (data.hasOwnProperty('stocks')) { - obj['stocks'] = _ApiClient["default"].convertToType(data['stocks'], [_NodePayloadModel["default"]]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to NodeStockPayloadModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to NodeStockPayloadModel. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - if (data['stocks']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['stocks'])) { - throw new Error("Expected the field `stocks` to be an array in the JSON data but got " + data['stocks']); - } - // validate the optional field `stocks` (array) - var _iterator = _createForOfIteratorHelper(data['stocks']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _NodePayloadModel["default"].validateJSON(item); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - ; - } - return true; - } - }]); -}(); -/** - * @member {Array.} stocks - */ -NodeStockPayloadModel.prototype['stocks'] = undefined; -var _default = exports["default"] = NodeStockPayloadModel; \ No newline at end of file diff --git a/dist/model/NodeStockResponseModel.js b/dist/model/NodeStockResponseModel.js deleted file mode 100644 index e6c38702..00000000 --- a/dist/model/NodeStockResponseModel.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _NodeResponseModel = _interopRequireDefault(require("./NodeResponseModel")); -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 NodeStockResponseModel model module. - * @module model/NodeStockResponseModel - * @version v1.25.0-alpha - */ -var NodeStockResponseModel = /*#__PURE__*/function () { - /** - * Constructs a new NodeStockResponseModel. - * @alias module:model/NodeStockResponseModel - */ - function NodeStockResponseModel() { - _classCallCheck(this, NodeStockResponseModel); - NodeStockResponseModel.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(NodeStockResponseModel, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a NodeStockResponseModel 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/NodeStockResponseModel} obj Optional instance to populate. - * @return {module:model/NodeStockResponseModel} The populated NodeStockResponseModel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new NodeStockResponseModel(); - if (data.hasOwnProperty('stocks')) { - obj['stocks'] = _ApiClient["default"].convertToType(data['stocks'], [_NodeResponseModel["default"]]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to NodeStockResponseModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to NodeStockResponseModel. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - if (data['stocks']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['stocks'])) { - throw new Error("Expected the field `stocks` to be an array in the JSON data but got " + data['stocks']); - } - // validate the optional field `stocks` (array) - var _iterator = _createForOfIteratorHelper(data['stocks']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _NodeResponseModel["default"].validateJSON(item); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - ; - } - return true; - } - }]); -}(); -/** - * @member {Array.} stocks - */ -NodeStockResponseModel.prototype['stocks'] = undefined; -var _default = exports["default"] = NodeStockResponseModel; \ No newline at end of file diff --git a/dist/model/NodeStocksPayload.js b/dist/model/NodeStocksPayload.js deleted file mode 100644 index f2436679..00000000 --- a/dist/model/NodeStocksPayload.js +++ /dev/null @@ -1,144 +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 NodeStocksPayload model module. - * @module model/NodeStocksPayload - * @version v1.25.0-alpha - */ -var NodeStocksPayload = /*#__PURE__*/function () { - /** - * Constructs a new NodeStocksPayload. - * @alias module:model/NodeStocksPayload - * @param inUse {Number} - * @param total {Number} - * @param type {String} - */ - function NodeStocksPayload(inUse, total, type) { - _classCallCheck(this, NodeStocksPayload); - NodeStocksPayload.initialize(this, inUse, total, 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(NodeStocksPayload, null, [{ - key: "initialize", - value: function initialize(obj, inUse, total, type) { - obj['in_use'] = inUse; - obj['total'] = total; - obj['type'] = type; - } - - /** - * Constructs a NodeStocksPayload 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/NodeStocksPayload} obj Optional instance to populate. - * @return {module:model/NodeStocksPayload} The populated NodeStocksPayload instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new NodeStocksPayload(); - if (data.hasOwnProperty('in_use')) { - obj['in_use'] = _ApiClient["default"].convertToType(data['in_use'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('total')) { - obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to NodeStocksPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to NodeStocksPayload. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(NodeStocksPayload.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['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['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; - } - }]); -}(); -NodeStocksPayload.RequiredProperties = ["in_use", "total", "type"]; - -/** - * @member {Number} in_use - */ -NodeStocksPayload.prototype['in_use'] = undefined; - -/** - * @member {String} name - */ -NodeStocksPayload.prototype['name'] = undefined; - -/** - * @member {Number} total - */ -NodeStocksPayload.prototype['total'] = undefined; - -/** - * @member {String} type - */ -NodeStocksPayload.prototype['type'] = undefined; -var _default = exports["default"] = NodeStocksPayload; \ No newline at end of file diff --git a/dist/model/ObjectStorageAccessKeyCreateRequest.js b/dist/model/ObjectStorageAccessKeyCreateRequest.js new file mode 100644 index 00000000..92da9d63 --- /dev/null +++ b/dist/model/ObjectStorageAccessKeyCreateRequest.js @@ -0,0 +1,117 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ObjectStorageRegionsEnum = _interopRequireDefault(require("./ObjectStorageRegionsEnum")); +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 ObjectStorageAccessKeyCreateRequest model module. + * @module model/ObjectStorageAccessKeyCreateRequest + * @version v1.51.1-alpha + */ +var ObjectStorageAccessKeyCreateRequest = /*#__PURE__*/function () { + /** + * Constructs a new ObjectStorageAccessKeyCreateRequest. + * @alias module:model/ObjectStorageAccessKeyCreateRequest + * @param region {module:model/ObjectStorageRegionsEnum} + */ + function ObjectStorageAccessKeyCreateRequest(region) { + _classCallCheck(this, ObjectStorageAccessKeyCreateRequest); + ObjectStorageAccessKeyCreateRequest.initialize(this, region); + } + + /** + * 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(ObjectStorageAccessKeyCreateRequest, null, [{ + key: "initialize", + value: function initialize(obj, region) { + obj['region'] = region; + } + + /** + * Constructs a ObjectStorageAccessKeyCreateRequest 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/ObjectStorageAccessKeyCreateRequest} obj Optional instance to populate. + * @return {module:model/ObjectStorageAccessKeyCreateRequest} The populated ObjectStorageAccessKeyCreateRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageAccessKeyCreateRequest(); + if (data.hasOwnProperty('description')) { + obj['description'] = _ApiClient["default"].convertToType(data['description'], Object); + } + if (data.hasOwnProperty('region')) { + obj['region'] = _ObjectStorageRegionsEnum["default"].constructFromObject(data['region']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageAccessKeyCreateRequest. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageAccessKeyCreateRequest. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(ObjectStorageAccessKeyCreateRequest.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(); + } + return true; + } + }]); +}(); +ObjectStorageAccessKeyCreateRequest.RequiredProperties = ["region"]; + +/** + * @member {Object} description + */ +ObjectStorageAccessKeyCreateRequest.prototype['description'] = undefined; + +/** + * @member {module:model/ObjectStorageRegionsEnum} region + */ +ObjectStorageAccessKeyCreateRequest.prototype['region'] = undefined; +var _default = exports["default"] = ObjectStorageAccessKeyCreateRequest; \ No newline at end of file diff --git a/dist/model/ObjectStorageAccessKeyCreateResponse.js b/dist/model/ObjectStorageAccessKeyCreateResponse.js new file mode 100644 index 00000000..df4f81a3 --- /dev/null +++ b/dist/model/ObjectStorageAccessKeyCreateResponse.js @@ -0,0 +1,175 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ObjectStorageRegionsEnum = _interopRequireDefault(require("./ObjectStorageRegionsEnum")); +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 ObjectStorageAccessKeyCreateResponse model module. + * @module model/ObjectStorageAccessKeyCreateResponse + * @version v1.51.1-alpha + */ +var ObjectStorageAccessKeyCreateResponse = /*#__PURE__*/function () { + /** + * Constructs a new ObjectStorageAccessKeyCreateResponse. + * @alias module:model/ObjectStorageAccessKeyCreateResponse + * @param accessKey {String} + * @param createdAt {Date} + * @param id {Number} + * @param region {module:model/ObjectStorageRegionsEnum} + * @param secretKey {String} + * @param userId {Number} + */ + function ObjectStorageAccessKeyCreateResponse(accessKey, createdAt, id, region, secretKey, userId) { + _classCallCheck(this, ObjectStorageAccessKeyCreateResponse); + ObjectStorageAccessKeyCreateResponse.initialize(this, accessKey, createdAt, id, region, secretKey, userId); + } + + /** + * 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(ObjectStorageAccessKeyCreateResponse, null, [{ + key: "initialize", + value: function initialize(obj, accessKey, createdAt, id, region, secretKey, userId) { + obj['access_key'] = accessKey; + obj['created_at'] = createdAt; + obj['id'] = id; + obj['region'] = region; + obj['secret_key'] = secretKey; + obj['user_id'] = userId; + } + + /** + * Constructs a ObjectStorageAccessKeyCreateResponse 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/ObjectStorageAccessKeyCreateResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageAccessKeyCreateResponse} The populated ObjectStorageAccessKeyCreateResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageAccessKeyCreateResponse(); + if (data.hasOwnProperty('access_key')) { + obj['access_key'] = _ApiClient["default"].convertToType(data['access_key'], 'String'); + } + 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'], Object); + } + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('region')) { + obj['region'] = _ObjectStorageRegionsEnum["default"].constructFromObject(data['region']); + } + if (data.hasOwnProperty('secret_key')) { + obj['secret_key'] = _ApiClient["default"].convertToType(data['secret_key'], '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 ObjectStorageAccessKeyCreateResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageAccessKeyCreateResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(ObjectStorageAccessKeyCreateResponse.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['access_key'] && !(typeof data['access_key'] === 'string' || data['access_key'] instanceof String)) { + throw new Error("Expected the field `access_key` to be a primitive type in the JSON string but got " + data['access_key']); + } + // ensure the json data is a string + if (data['secret_key'] && !(typeof data['secret_key'] === 'string' || data['secret_key'] instanceof String)) { + throw new Error("Expected the field `secret_key` to be a primitive type in the JSON string but got " + data['secret_key']); + } + return true; + } + }]); +}(); +ObjectStorageAccessKeyCreateResponse.RequiredProperties = ["access_key", "created_at", "id", "region", "secret_key", "user_id"]; + +/** + * @member {String} access_key + */ +ObjectStorageAccessKeyCreateResponse.prototype['access_key'] = undefined; + +/** + * @member {Date} created_at + */ +ObjectStorageAccessKeyCreateResponse.prototype['created_at'] = undefined; + +/** + * @member {Object} description + */ +ObjectStorageAccessKeyCreateResponse.prototype['description'] = undefined; + +/** + * @member {Number} id + */ +ObjectStorageAccessKeyCreateResponse.prototype['id'] = undefined; + +/** + * @member {module:model/ObjectStorageRegionsEnum} region + */ +ObjectStorageAccessKeyCreateResponse.prototype['region'] = undefined; + +/** + * @member {String} secret_key + */ +ObjectStorageAccessKeyCreateResponse.prototype['secret_key'] = undefined; + +/** + * @member {Number} user_id + */ +ObjectStorageAccessKeyCreateResponse.prototype['user_id'] = undefined; +var _default = exports["default"] = ObjectStorageAccessKeyCreateResponse; \ No newline at end of file diff --git a/dist/model/ObjectStorageAccessKeyListResponse.js b/dist/model/ObjectStorageAccessKeyListResponse.js new file mode 100644 index 00000000..b01300aa --- /dev/null +++ b/dist/model/ObjectStorageAccessKeyListResponse.js @@ -0,0 +1,146 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ObjectStorageAccessKeyResponse = _interopRequireDefault(require("./ObjectStorageAccessKeyResponse")); +var _ObjectStoragePaginationMeta = _interopRequireDefault(require("./ObjectStoragePaginationMeta")); +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 ObjectStorageAccessKeyListResponse model module. + * @module model/ObjectStorageAccessKeyListResponse + * @version v1.51.1-alpha + */ +var ObjectStorageAccessKeyListResponse = /*#__PURE__*/function () { + /** + * Constructs a new ObjectStorageAccessKeyListResponse. + * @alias module:model/ObjectStorageAccessKeyListResponse + * @param accessKeys {Array.} + * @param meta {module:model/ObjectStoragePaginationMeta} + */ + function ObjectStorageAccessKeyListResponse(accessKeys, meta) { + _classCallCheck(this, ObjectStorageAccessKeyListResponse); + ObjectStorageAccessKeyListResponse.initialize(this, accessKeys, meta); + } + + /** + * 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(ObjectStorageAccessKeyListResponse, null, [{ + key: "initialize", + value: function initialize(obj, accessKeys, meta) { + obj['access_keys'] = accessKeys; + obj['meta'] = meta; + } + + /** + * Constructs a ObjectStorageAccessKeyListResponse 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/ObjectStorageAccessKeyListResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageAccessKeyListResponse} The populated ObjectStorageAccessKeyListResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageAccessKeyListResponse(); + if (data.hasOwnProperty('access_keys')) { + obj['access_keys'] = _ApiClient["default"].convertToType(data['access_keys'], [_ObjectStorageAccessKeyResponse["default"]]); + } + if (data.hasOwnProperty('meta')) { + obj['meta'] = _ObjectStoragePaginationMeta["default"].constructFromObject(data['meta']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageAccessKeyListResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageAccessKeyListResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(ObjectStorageAccessKeyListResponse.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['access_keys']) { + // data not null + // ensure the json data is an array + if (!Array.isArray(data['access_keys'])) { + throw new Error("Expected the field `access_keys` to be an array in the JSON data but got " + data['access_keys']); + } + // validate the optional field `access_keys` (array) + var _iterator2 = _createForOfIteratorHelper(data['access_keys']), + _step2; + try { + for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { + var item = _step2.value; + _ObjectStorageAccessKeyResponse["default"].validateJSON(item); + } + } catch (err) { + _iterator2.e(err); + } finally { + _iterator2.f(); + } + ; + } + // validate the optional field `meta` + if (data['meta']) { + // data not null + _ObjectStoragePaginationMeta["default"].validateJSON(data['meta']); + } + return true; + } + }]); +}(); +ObjectStorageAccessKeyListResponse.RequiredProperties = ["access_keys", "meta"]; + +/** + * @member {Array.} access_keys + */ +ObjectStorageAccessKeyListResponse.prototype['access_keys'] = undefined; + +/** + * @member {module:model/ObjectStoragePaginationMeta} meta + */ +ObjectStorageAccessKeyListResponse.prototype['meta'] = undefined; +var _default = exports["default"] = ObjectStorageAccessKeyListResponse; \ No newline at end of file diff --git a/dist/model/ObjectStorageAccessKeyResponse.js b/dist/model/ObjectStorageAccessKeyResponse.js new file mode 100644 index 00000000..de7f8b0a --- /dev/null +++ b/dist/model/ObjectStorageAccessKeyResponse.js @@ -0,0 +1,161 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ObjectStorageRegionsEnum = _interopRequireDefault(require("./ObjectStorageRegionsEnum")); +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 ObjectStorageAccessKeyResponse model module. + * @module model/ObjectStorageAccessKeyResponse + * @version v1.51.1-alpha + */ +var ObjectStorageAccessKeyResponse = /*#__PURE__*/function () { + /** + * Constructs a new ObjectStorageAccessKeyResponse. + * @alias module:model/ObjectStorageAccessKeyResponse + * @param accessKey {String} + * @param createdAt {Date} + * @param id {Number} + * @param region {module:model/ObjectStorageRegionsEnum} + * @param userId {Number} + */ + function ObjectStorageAccessKeyResponse(accessKey, createdAt, id, region, userId) { + _classCallCheck(this, ObjectStorageAccessKeyResponse); + ObjectStorageAccessKeyResponse.initialize(this, accessKey, createdAt, id, region, userId); + } + + /** + * 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(ObjectStorageAccessKeyResponse, null, [{ + key: "initialize", + value: function initialize(obj, accessKey, createdAt, id, region, userId) { + obj['access_key'] = accessKey; + obj['created_at'] = createdAt; + obj['id'] = id; + obj['region'] = region; + obj['user_id'] = userId; + } + + /** + * Constructs a ObjectStorageAccessKeyResponse 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/ObjectStorageAccessKeyResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageAccessKeyResponse} The populated ObjectStorageAccessKeyResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageAccessKeyResponse(); + if (data.hasOwnProperty('access_key')) { + obj['access_key'] = _ApiClient["default"].convertToType(data['access_key'], 'String'); + } + 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'], Object); + } + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('region')) { + obj['region'] = _ObjectStorageRegionsEnum["default"].constructFromObject(data['region']); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageAccessKeyResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageAccessKeyResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(ObjectStorageAccessKeyResponse.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['access_key'] && !(typeof data['access_key'] === 'string' || data['access_key'] instanceof String)) { + throw new Error("Expected the field `access_key` to be a primitive type in the JSON string but got " + data['access_key']); + } + return true; + } + }]); +}(); +ObjectStorageAccessKeyResponse.RequiredProperties = ["access_key", "created_at", "id", "region", "user_id"]; + +/** + * @member {String} access_key + */ +ObjectStorageAccessKeyResponse.prototype['access_key'] = undefined; + +/** + * @member {Date} created_at + */ +ObjectStorageAccessKeyResponse.prototype['created_at'] = undefined; + +/** + * @member {Object} description + */ +ObjectStorageAccessKeyResponse.prototype['description'] = undefined; + +/** + * @member {Number} id + */ +ObjectStorageAccessKeyResponse.prototype['id'] = undefined; + +/** + * @member {module:model/ObjectStorageRegionsEnum} region + */ +ObjectStorageAccessKeyResponse.prototype['region'] = undefined; + +/** + * @member {Number} user_id + */ +ObjectStorageAccessKeyResponse.prototype['user_id'] = undefined; +var _default = exports["default"] = ObjectStorageAccessKeyResponse; \ No newline at end of file diff --git a/dist/model/ObjectStorageBucketListResponse.js b/dist/model/ObjectStorageBucketListResponse.js new file mode 100644 index 00000000..d7710a4d --- /dev/null +++ b/dist/model/ObjectStorageBucketListResponse.js @@ -0,0 +1,142 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ObjectStorageBucketResponse = _interopRequireDefault(require("./ObjectStorageBucketResponse")); +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 ObjectStorageBucketListResponse model module. + * @module model/ObjectStorageBucketListResponse + * @version v1.51.1-alpha + */ +var ObjectStorageBucketListResponse = /*#__PURE__*/function () { + /** + * Constructs a new ObjectStorageBucketListResponse. + * @alias module:model/ObjectStorageBucketListResponse + * @param buckets {Array.} + */ + function ObjectStorageBucketListResponse(buckets) { + _classCallCheck(this, ObjectStorageBucketListResponse); + ObjectStorageBucketListResponse.initialize(this, buckets); + } + + /** + * 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(ObjectStorageBucketListResponse, null, [{ + key: "initialize", + value: function initialize(obj, buckets) { + obj['buckets'] = buckets; + } + + /** + * Constructs a ObjectStorageBucketListResponse 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/ObjectStorageBucketListResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageBucketListResponse} The populated ObjectStorageBucketListResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageBucketListResponse(); + if (data.hasOwnProperty('buckets')) { + obj['buckets'] = _ApiClient["default"].convertToType(data['buckets'], [_ObjectStorageBucketResponse["default"]]); + } + if (data.hasOwnProperty('failed_regions')) { + obj['failed_regions'] = _ApiClient["default"].convertToType(data['failed_regions'], ['String']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageBucketListResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageBucketListResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(ObjectStorageBucketListResponse.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['buckets']) { + // data not null + // ensure the json data is an array + if (!Array.isArray(data['buckets'])) { + throw new Error("Expected the field `buckets` to be an array in the JSON data but got " + data['buckets']); + } + // validate the optional field `buckets` (array) + var _iterator2 = _createForOfIteratorHelper(data['buckets']), + _step2; + try { + for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { + var item = _step2.value; + _ObjectStorageBucketResponse["default"].validateJSON(item); + } + } catch (err) { + _iterator2.e(err); + } finally { + _iterator2.f(); + } + ; + } + // ensure the json data is an array + if (!Array.isArray(data['failed_regions'])) { + throw new Error("Expected the field `failed_regions` to be an array in the JSON data but got " + data['failed_regions']); + } + return true; + } + }]); +}(); +ObjectStorageBucketListResponse.RequiredProperties = ["buckets"]; + +/** + * @member {Array.} buckets + */ +ObjectStorageBucketListResponse.prototype['buckets'] = undefined; + +/** + * @member {Array.} failed_regions + */ +ObjectStorageBucketListResponse.prototype['failed_regions'] = undefined; +var _default = exports["default"] = ObjectStorageBucketListResponse; \ No newline at end of file diff --git a/dist/model/ObjectStorageBucketResponse.js b/dist/model/ObjectStorageBucketResponse.js new file mode 100644 index 00000000..5de93354 --- /dev/null +++ b/dist/model/ObjectStorageBucketResponse.js @@ -0,0 +1,180 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ObjectStorageRegionsEnum = _interopRequireDefault(require("./ObjectStorageRegionsEnum")); +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 ObjectStorageBucketResponse model module. + * @module model/ObjectStorageBucketResponse + * @version v1.51.1-alpha + */ +var ObjectStorageBucketResponse = /*#__PURE__*/function () { + /** + * Constructs a new ObjectStorageBucketResponse. + * @alias module:model/ObjectStorageBucketResponse + * @param createdAt {Date} + * @param endpoint {String} + * @param name {String} + * @param numObjects {Number} Number of objects + * @param region {module:model/ObjectStorageRegionsEnum} + * @param sizeBytes {Number} Accumulated size in bytes + * @param sizeBytesActual {Number} Size utilized in bytes + */ + function ObjectStorageBucketResponse(createdAt, endpoint, name, numObjects, region, sizeBytes, sizeBytesActual) { + _classCallCheck(this, ObjectStorageBucketResponse); + ObjectStorageBucketResponse.initialize(this, createdAt, endpoint, name, numObjects, region, sizeBytes, sizeBytesActual); + } + + /** + * 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(ObjectStorageBucketResponse, null, [{ + key: "initialize", + value: function initialize(obj, createdAt, endpoint, name, numObjects, region, sizeBytes, sizeBytesActual) { + obj['created_at'] = createdAt; + obj['endpoint'] = endpoint; + obj['name'] = name; + obj['num_objects'] = numObjects; + obj['region'] = region; + obj['size_bytes'] = sizeBytes; + obj['size_bytes_actual'] = sizeBytesActual; + } + + /** + * Constructs a ObjectStorageBucketResponse 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/ObjectStorageBucketResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageBucketResponse} The populated ObjectStorageBucketResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageBucketResponse(); + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); + } + if (data.hasOwnProperty('endpoint')) { + obj['endpoint'] = _ApiClient["default"].convertToType(data['endpoint'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('num_objects')) { + obj['num_objects'] = _ApiClient["default"].convertToType(data['num_objects'], 'Number'); + } + if (data.hasOwnProperty('region')) { + obj['region'] = _ObjectStorageRegionsEnum["default"].constructFromObject(data['region']); + } + if (data.hasOwnProperty('size_bytes')) { + obj['size_bytes'] = _ApiClient["default"].convertToType(data['size_bytes'], 'Number'); + } + if (data.hasOwnProperty('size_bytes_actual')) { + obj['size_bytes_actual'] = _ApiClient["default"].convertToType(data['size_bytes_actual'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageBucketResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageBucketResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(ObjectStorageBucketResponse.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['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; + } + }]); +}(); +ObjectStorageBucketResponse.RequiredProperties = ["created_at", "endpoint", "name", "num_objects", "region", "size_bytes", "size_bytes_actual"]; + +/** + * @member {Date} created_at + */ +ObjectStorageBucketResponse.prototype['created_at'] = undefined; + +/** + * @member {String} endpoint + */ +ObjectStorageBucketResponse.prototype['endpoint'] = undefined; + +/** + * @member {String} name + */ +ObjectStorageBucketResponse.prototype['name'] = undefined; + +/** + * Number of objects + * @member {Number} num_objects + */ +ObjectStorageBucketResponse.prototype['num_objects'] = undefined; + +/** + * @member {module:model/ObjectStorageRegionsEnum} region + */ +ObjectStorageBucketResponse.prototype['region'] = undefined; + +/** + * Accumulated size in bytes + * @member {Number} size_bytes + */ +ObjectStorageBucketResponse.prototype['size_bytes'] = undefined; + +/** + * Size utilized in bytes + * @member {Number} size_bytes_actual + */ +ObjectStorageBucketResponse.prototype['size_bytes_actual'] = undefined; +var _default = exports["default"] = ObjectStorageBucketResponse; \ No newline at end of file diff --git a/dist/model/ObjectStorageDeleteResponse.js b/dist/model/ObjectStorageDeleteResponse.js new file mode 100644 index 00000000..ebd38244 --- /dev/null +++ b/dist/model/ObjectStorageDeleteResponse.js @@ -0,0 +1,112 @@ +"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 ObjectStorageDeleteResponse model module. + * @module model/ObjectStorageDeleteResponse + * @version v1.51.1-alpha + */ +var ObjectStorageDeleteResponse = /*#__PURE__*/function () { + /** + * Constructs a new ObjectStorageDeleteResponse. + * @alias module:model/ObjectStorageDeleteResponse + * @param message {String} + */ + function ObjectStorageDeleteResponse(message) { + _classCallCheck(this, ObjectStorageDeleteResponse); + ObjectStorageDeleteResponse.initialize(this, message); + } + + /** + * 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(ObjectStorageDeleteResponse, null, [{ + key: "initialize", + value: function initialize(obj, message) { + obj['message'] = message; + } + + /** + * Constructs a ObjectStorageDeleteResponse 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/ObjectStorageDeleteResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageDeleteResponse} The populated ObjectStorageDeleteResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageDeleteResponse(); + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageDeleteResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageDeleteResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(ObjectStorageDeleteResponse.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']); + } + return true; + } + }]); +}(); +ObjectStorageDeleteResponse.RequiredProperties = ["message"]; + +/** + * @member {String} message + */ +ObjectStorageDeleteResponse.prototype['message'] = undefined; +var _default = exports["default"] = ObjectStorageDeleteResponse; \ No newline at end of file diff --git a/dist/model/ObjectStorageErrorResponse.js b/dist/model/ObjectStorageErrorResponse.js new file mode 100644 index 00000000..f12a00d0 --- /dev/null +++ b/dist/model/ObjectStorageErrorResponse.js @@ -0,0 +1,136 @@ +"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 ObjectStorageErrorResponse model module. + * @module model/ObjectStorageErrorResponse + * @version v1.51.1-alpha + */ +var ObjectStorageErrorResponse = /*#__PURE__*/function () { + /** + * Constructs a new ObjectStorageErrorResponse. + * @alias module:model/ObjectStorageErrorResponse + * @param errorReason {String} + * @param message {String} + */ + function ObjectStorageErrorResponse(errorReason, message) { + _classCallCheck(this, ObjectStorageErrorResponse); + ObjectStorageErrorResponse.initialize(this, errorReason, message); + } + + /** + * 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(ObjectStorageErrorResponse, null, [{ + key: "initialize", + value: function initialize(obj, errorReason, message) { + obj['error_reason'] = errorReason; + obj['message'] = message; + obj['status'] = false; + } + + /** + * Constructs a ObjectStorageErrorResponse 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/ObjectStorageErrorResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageErrorResponse} The populated ObjectStorageErrorResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageErrorResponse(); + if (data.hasOwnProperty('error_reason')) { + obj['error_reason'] = _ApiClient["default"].convertToType(data['error_reason'], 'String'); + } + 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 ObjectStorageErrorResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageErrorResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(ObjectStorageErrorResponse.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['error_reason'] && !(typeof data['error_reason'] === 'string' || data['error_reason'] instanceof String)) { + throw new Error("Expected the field `error_reason` to be a primitive type in the JSON string but got " + data['error_reason']); + } + // 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; + } + }]); +}(); +ObjectStorageErrorResponse.RequiredProperties = ["error_reason", "message"]; + +/** + * @member {String} error_reason + */ +ObjectStorageErrorResponse.prototype['error_reason'] = undefined; + +/** + * @member {String} message + */ +ObjectStorageErrorResponse.prototype['message'] = undefined; + +/** + * @member {Boolean} status + * @default false + */ +ObjectStorageErrorResponse.prototype['status'] = false; +var _default = exports["default"] = ObjectStorageErrorResponse; \ No newline at end of file diff --git a/dist/model/ObjectStorageHealthResponse.js b/dist/model/ObjectStorageHealthResponse.js new file mode 100644 index 00000000..8f1a848e --- /dev/null +++ b/dist/model/ObjectStorageHealthResponse.js @@ -0,0 +1,112 @@ +"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 ObjectStorageHealthResponse model module. + * @module model/ObjectStorageHealthResponse + * @version v1.51.1-alpha + */ +var ObjectStorageHealthResponse = /*#__PURE__*/function () { + /** + * Constructs a new ObjectStorageHealthResponse. + * @alias module:model/ObjectStorageHealthResponse + * @param status {String} + */ + function ObjectStorageHealthResponse(status) { + _classCallCheck(this, ObjectStorageHealthResponse); + ObjectStorageHealthResponse.initialize(this, status); + } + + /** + * 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(ObjectStorageHealthResponse, null, [{ + key: "initialize", + value: function initialize(obj, status) { + obj['status'] = status; + } + + /** + * Constructs a ObjectStorageHealthResponse 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/ObjectStorageHealthResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageHealthResponse} The populated ObjectStorageHealthResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageHealthResponse(); + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageHealthResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageHealthResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(ObjectStorageHealthResponse.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['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; + } + }]); +}(); +ObjectStorageHealthResponse.RequiredProperties = ["status"]; + +/** + * @member {String} status + */ +ObjectStorageHealthResponse.prototype['status'] = undefined; +var _default = exports["default"] = ObjectStorageHealthResponse; \ No newline at end of file diff --git a/dist/model/ObjectStoragePaginationMeta.js b/dist/model/ObjectStoragePaginationMeta.js new file mode 100644 index 00000000..80bc20f7 --- /dev/null +++ b/dist/model/ObjectStoragePaginationMeta.js @@ -0,0 +1,128 @@ +"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 ObjectStoragePaginationMeta model module. + * @module model/ObjectStoragePaginationMeta + * @version v1.51.1-alpha + */ +var ObjectStoragePaginationMeta = /*#__PURE__*/function () { + /** + * Constructs a new ObjectStoragePaginationMeta. + * @alias module:model/ObjectStoragePaginationMeta + * @param count {Number} + * @param currentPage {Number} + * @param totalPages {Number} + */ + function ObjectStoragePaginationMeta(count, currentPage, totalPages) { + _classCallCheck(this, ObjectStoragePaginationMeta); + ObjectStoragePaginationMeta.initialize(this, count, currentPage, totalPages); + } + + /** + * 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(ObjectStoragePaginationMeta, null, [{ + key: "initialize", + value: function initialize(obj, count, currentPage, totalPages) { + obj['count'] = count; + obj['current_page'] = currentPage; + obj['total_pages'] = totalPages; + } + + /** + * Constructs a ObjectStoragePaginationMeta 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/ObjectStoragePaginationMeta} obj Optional instance to populate. + * @return {module:model/ObjectStoragePaginationMeta} The populated ObjectStoragePaginationMeta instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStoragePaginationMeta(); + if (data.hasOwnProperty('count')) { + obj['count'] = _ApiClient["default"].convertToType(data['count'], 'Number'); + } + if (data.hasOwnProperty('current_page')) { + obj['current_page'] = _ApiClient["default"].convertToType(data['current_page'], 'Number'); + } + if (data.hasOwnProperty('total_pages')) { + obj['total_pages'] = _ApiClient["default"].convertToType(data['total_pages'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStoragePaginationMeta. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStoragePaginationMeta. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(ObjectStoragePaginationMeta.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(); + } + return true; + } + }]); +}(); +ObjectStoragePaginationMeta.RequiredProperties = ["count", "current_page", "total_pages"]; + +/** + * @member {Number} count + */ +ObjectStoragePaginationMeta.prototype['count'] = undefined; + +/** + * @member {Number} current_page + */ +ObjectStoragePaginationMeta.prototype['current_page'] = undefined; + +/** + * @member {Number} total_pages + */ +ObjectStoragePaginationMeta.prototype['total_pages'] = undefined; +var _default = exports["default"] = ObjectStoragePaginationMeta; \ No newline at end of file diff --git a/dist/model/ObjectStorageRegionListResponse.js b/dist/model/ObjectStorageRegionListResponse.js new file mode 100644 index 00000000..94a55496 --- /dev/null +++ b/dist/model/ObjectStorageRegionListResponse.js @@ -0,0 +1,130 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ObjectStorageRegionResponse = _interopRequireDefault(require("./ObjectStorageRegionResponse")); +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 ObjectStorageRegionListResponse model module. + * @module model/ObjectStorageRegionListResponse + * @version v1.51.1-alpha + */ +var ObjectStorageRegionListResponse = /*#__PURE__*/function () { + /** + * Constructs a new ObjectStorageRegionListResponse. + * @alias module:model/ObjectStorageRegionListResponse + * @param regions {Array.} + */ + function ObjectStorageRegionListResponse(regions) { + _classCallCheck(this, ObjectStorageRegionListResponse); + ObjectStorageRegionListResponse.initialize(this, regions); + } + + /** + * 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(ObjectStorageRegionListResponse, null, [{ + key: "initialize", + value: function initialize(obj, regions) { + obj['regions'] = regions; + } + + /** + * Constructs a ObjectStorageRegionListResponse 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/ObjectStorageRegionListResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageRegionListResponse} The populated ObjectStorageRegionListResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageRegionListResponse(); + if (data.hasOwnProperty('regions')) { + obj['regions'] = _ApiClient["default"].convertToType(data['regions'], [_ObjectStorageRegionResponse["default"]]); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageRegionListResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageRegionListResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(ObjectStorageRegionListResponse.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['regions']) { + // data not null + // 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']); + } + // validate the optional field `regions` (array) + var _iterator2 = _createForOfIteratorHelper(data['regions']), + _step2; + try { + for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { + var item = _step2.value; + _ObjectStorageRegionResponse["default"].validateJSON(item); + } + } catch (err) { + _iterator2.e(err); + } finally { + _iterator2.f(); + } + ; + } + return true; + } + }]); +}(); +ObjectStorageRegionListResponse.RequiredProperties = ["regions"]; + +/** + * @member {Array.} regions + */ +ObjectStorageRegionListResponse.prototype['regions'] = undefined; +var _default = exports["default"] = ObjectStorageRegionListResponse; \ No newline at end of file diff --git a/dist/model/ObjectStorageRegionResponse.js b/dist/model/ObjectStorageRegionResponse.js new file mode 100644 index 00000000..856a2434 --- /dev/null +++ b/dist/model/ObjectStorageRegionResponse.js @@ -0,0 +1,112 @@ +"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 ObjectStorageRegionResponse model module. + * @module model/ObjectStorageRegionResponse + * @version v1.51.1-alpha + */ +var ObjectStorageRegionResponse = /*#__PURE__*/function () { + /** + * Constructs a new ObjectStorageRegionResponse. + * @alias module:model/ObjectStorageRegionResponse + * @param name {String} + */ + function ObjectStorageRegionResponse(name) { + _classCallCheck(this, ObjectStorageRegionResponse); + ObjectStorageRegionResponse.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(ObjectStorageRegionResponse, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + + /** + * Constructs a ObjectStorageRegionResponse 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/ObjectStorageRegionResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageRegionResponse} The populated ObjectStorageRegionResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageRegionResponse(); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageRegionResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageRegionResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(ObjectStorageRegionResponse.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['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; + } + }]); +}(); +ObjectStorageRegionResponse.RequiredProperties = ["name"]; + +/** + * @member {String} name + */ +ObjectStorageRegionResponse.prototype['name'] = undefined; +var _default = exports["default"] = ObjectStorageRegionResponse; \ No newline at end of file diff --git a/dist/model/ObjectStorageRegionsEnum.js b/dist/model/ObjectStorageRegionsEnum.js new file mode 100644 index 00000000..b66fb4d2 --- /dev/null +++ b/dist/model/ObjectStorageRegionsEnum.js @@ -0,0 +1,53 @@ +"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 _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, 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. + * + */ +/** +* Enum class ObjectStorageRegionsEnum. +* @enum {} +* @readonly +*/ +var ObjectStorageRegionsEnum = exports["default"] = /*#__PURE__*/function () { + function ObjectStorageRegionsEnum() { + _classCallCheck(this, ObjectStorageRegionsEnum); + /** + * value: "CANADA-1" + * @const + */ + _defineProperty(this, "CANADA-1", "CANADA-1"); + } + return _createClass(ObjectStorageRegionsEnum, null, [{ + key: "constructFromObject", + value: + /** + * Returns a ObjectStorageRegionsEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ObjectStorageRegionsEnum} The enum ObjectStorageRegionsEnum value. + */ + function constructFromObject(object) { + return object; + } + }]); +}(); \ No newline at end of file diff --git a/dist/model/OrganizationFields.js b/dist/model/OrganizationFields.js index e131e04d..90b036e9 100644 --- a/dist/model/OrganizationFields.js +++ b/dist/model/OrganizationFields.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The OrganizationFields model module. * @module model/OrganizationFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var OrganizationFields = /*#__PURE__*/function () { /** diff --git a/dist/model/OrganizationLevelBillingHistory.js b/dist/model/OrganizationLevelBillingHistory.js index b1708dc6..6b5c1e58 100644 --- a/dist/model/OrganizationLevelBillingHistory.js +++ b/dist/model/OrganizationLevelBillingHistory.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The OrganizationLevelBillingHistory model module. * @module model/OrganizationLevelBillingHistory - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var OrganizationLevelBillingHistory = /*#__PURE__*/function () { /** diff --git a/dist/model/OrganizationLevelBillingHistoryResources.js b/dist/model/OrganizationLevelBillingHistoryResources.js index e9a424cf..aececd61 100644 --- a/dist/model/OrganizationLevelBillingHistoryResources.js +++ b/dist/model/OrganizationLevelBillingHistoryResources.js @@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The OrganizationLevelBillingHistoryResources model module. * @module model/OrganizationLevelBillingHistoryResources - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var OrganizationLevelBillingHistoryResources = /*#__PURE__*/function () { /** diff --git a/dist/model/OrganizationLevelBillingHistoryResponseAttributes.js b/dist/model/OrganizationLevelBillingHistoryResponseAttributes.js index 0797b4e9..72532b59 100644 --- a/dist/model/OrganizationLevelBillingHistoryResponseAttributes.js +++ b/dist/model/OrganizationLevelBillingHistoryResponseAttributes.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The OrganizationLevelBillingHistoryResponseAttributes model module. * @module model/OrganizationLevelBillingHistoryResponseAttributes - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var OrganizationLevelBillingHistoryResponseAttributes = /*#__PURE__*/function () { /** diff --git a/dist/model/OrganizationLevelBillingHistoryResponseMetrics.js b/dist/model/OrganizationLevelBillingHistoryResponseMetrics.js index c2537211..bf8a21dd 100644 --- a/dist/model/OrganizationLevelBillingHistoryResponseMetrics.js +++ b/dist/model/OrganizationLevelBillingHistoryResponseMetrics.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The OrganizationLevelBillingHistoryResponseMetrics model module. * @module model/OrganizationLevelBillingHistoryResponseMetrics - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var OrganizationLevelBillingHistoryResponseMetrics = /*#__PURE__*/function () { /** diff --git a/dist/model/OrganizationLevelBillingHistoryResponseModel.js b/dist/model/OrganizationLevelBillingHistoryResponseModel.js index d4081f36..f075d92b 100644 --- a/dist/model/OrganizationLevelBillingHistoryResponseModel.js +++ b/dist/model/OrganizationLevelBillingHistoryResponseModel.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The OrganizationLevelBillingHistoryResponseModel model module. * @module model/OrganizationLevelBillingHistoryResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var OrganizationLevelBillingHistoryResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/OrganizationObjectResponse.js b/dist/model/OrganizationObjectResponse.js deleted file mode 100644 index 5a8e7e01..00000000 --- a/dist/model/OrganizationObjectResponse.js +++ /dev/null @@ -1,118 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _InfrahubResourceObjectResponse = _interopRequireDefault(require("./InfrahubResourceObjectResponse")); -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 OrganizationObjectResponse model module. - * @module model/OrganizationObjectResponse - * @version v1.25.0-alpha - */ -var OrganizationObjectResponse = /*#__PURE__*/function () { - /** - * Constructs a new OrganizationObjectResponse. - * @alias module:model/OrganizationObjectResponse - */ - function OrganizationObjectResponse() { - _classCallCheck(this, OrganizationObjectResponse); - OrganizationObjectResponse.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(OrganizationObjectResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a OrganizationObjectResponse 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/OrganizationObjectResponse} obj Optional instance to populate. - * @return {module:model/OrganizationObjectResponse} The populated OrganizationObjectResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationObjectResponse(); - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number'); - } - if (data.hasOwnProperty('resources')) { - obj['resources'] = _ApiClient["default"].convertToType(data['resources'], [_InfrahubResourceObjectResponse["default"]]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to OrganizationObjectResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to OrganizationObjectResponse. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - if (data['resources']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['resources'])) { - throw new Error("Expected the field `resources` to be an array in the JSON data but got " + data['resources']); - } - // validate the optional field `resources` (array) - var _iterator = _createForOfIteratorHelper(data['resources']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _InfrahubResourceObjectResponse["default"].validateJSON(item); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - ; - } - return true; - } - }]); -}(); -/** - * @member {Number} org_id - */ -OrganizationObjectResponse.prototype['org_id'] = undefined; - -/** - * @member {Array.} resources - */ -OrganizationObjectResponse.prototype['resources'] = undefined; -var _default = exports["default"] = OrganizationObjectResponse; \ No newline at end of file diff --git a/dist/model/OrganizationThresholdFields.js b/dist/model/OrganizationThresholdFields.js new file mode 100644 index 00000000..52fff9cf --- /dev/null +++ b/dist/model/OrganizationThresholdFields.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 OrganizationThresholdFields model module. + * @module model/OrganizationThresholdFields + * @version v1.51.1-alpha + */ +var OrganizationThresholdFields = /*#__PURE__*/function () { + /** + * Constructs a new OrganizationThresholdFields. + * @alias module:model/OrganizationThresholdFields + */ + function OrganizationThresholdFields() { + _classCallCheck(this, OrganizationThresholdFields); + OrganizationThresholdFields.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(OrganizationThresholdFields, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a OrganizationThresholdFields 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/OrganizationThresholdFields} obj Optional instance to populate. + * @return {module:model/OrganizationThresholdFields} The populated OrganizationThresholdFields instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new OrganizationThresholdFields(); + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('interface_title')) { + obj['interface_title'] = _ApiClient["default"].convertToType(data['interface_title'], 'String'); + } + if (data.hasOwnProperty('interface_tooltip')) { + obj['interface_tooltip'] = _ApiClient["default"].convertToType(data['interface_tooltip'], 'String'); + } + if (data.hasOwnProperty('subscribed')) { + obj['subscribed'] = _ApiClient["default"].convertToType(data['subscribed'], 'Boolean'); + } + if (data.hasOwnProperty('threshold')) { + obj['threshold'] = _ApiClient["default"].convertToType(data['threshold'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to OrganizationThresholdFields. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to OrganizationThresholdFields. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // ensure the json data is a string + if (data['interface_title'] && !(typeof data['interface_title'] === 'string' || data['interface_title'] instanceof String)) { + throw new Error("Expected the field `interface_title` to be a primitive type in the JSON string but got " + data['interface_title']); + } + // ensure the json data is a string + if (data['interface_tooltip'] && !(typeof data['interface_tooltip'] === 'string' || data['interface_tooltip'] instanceof String)) { + throw new Error("Expected the field `interface_tooltip` to be a primitive type in the JSON string but got " + data['interface_tooltip']); + } + return true; + } + }]); +}(); +/** + * @member {Number} id + */ +OrganizationThresholdFields.prototype['id'] = undefined; + +/** + * @member {String} interface_title + */ +OrganizationThresholdFields.prototype['interface_title'] = undefined; + +/** + * @member {String} interface_tooltip + */ +OrganizationThresholdFields.prototype['interface_tooltip'] = undefined; + +/** + * @member {Boolean} subscribed + */ +OrganizationThresholdFields.prototype['subscribed'] = undefined; + +/** + * @member {Number} threshold + */ +OrganizationThresholdFields.prototype['threshold'] = undefined; +var _default = exports["default"] = OrganizationThresholdFields; \ No newline at end of file diff --git a/dist/model/OrganizationThresholdUpdateResponse.js b/dist/model/OrganizationThresholdUpdateResponse.js new file mode 100644 index 00000000..54beaaf2 --- /dev/null +++ b/dist/model/OrganizationThresholdUpdateResponse.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _OrganizationThresholdFields = _interopRequireDefault(require("./OrganizationThresholdFields")); +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 OrganizationThresholdUpdateResponse model module. + * @module model/OrganizationThresholdUpdateResponse + * @version v1.51.1-alpha + */ +var OrganizationThresholdUpdateResponse = /*#__PURE__*/function () { + /** + * Constructs a new OrganizationThresholdUpdateResponse. + * @alias module:model/OrganizationThresholdUpdateResponse + */ + function OrganizationThresholdUpdateResponse() { + _classCallCheck(this, OrganizationThresholdUpdateResponse); + OrganizationThresholdUpdateResponse.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(OrganizationThresholdUpdateResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a OrganizationThresholdUpdateResponse 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/OrganizationThresholdUpdateResponse} obj Optional instance to populate. + * @return {module:model/OrganizationThresholdUpdateResponse} The populated OrganizationThresholdUpdateResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new OrganizationThresholdUpdateResponse(); + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); + } + if (data.hasOwnProperty('threshold')) { + obj['threshold'] = _OrganizationThresholdFields["default"].constructFromObject(data['threshold']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to OrganizationThresholdUpdateResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to OrganizationThresholdUpdateResponse. + */ + }, { + 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 `threshold` + if (data['threshold']) { + // data not null + _OrganizationThresholdFields["default"].validateJSON(data['threshold']); + } + return true; + } + }]); +}(); +/** + * @member {String} message + */ +OrganizationThresholdUpdateResponse.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +OrganizationThresholdUpdateResponse.prototype['status'] = undefined; + +/** + * @member {module:model/OrganizationThresholdFields} threshold + */ +OrganizationThresholdUpdateResponse.prototype['threshold'] = undefined; +var _default = exports["default"] = OrganizationThresholdUpdateResponse; \ No newline at end of file diff --git a/dist/model/OrganizationThresholdfields.js b/dist/model/OrganizationThresholdfields.js deleted file mode 100644 index 08f485d6..00000000 --- a/dist/model/OrganizationThresholdfields.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 OrganizationThresholdfields model module. - * @module model/OrganizationThresholdfields - * @version v1.25.0-alpha - */ -var OrganizationThresholdfields = /*#__PURE__*/function () { - /** - * Constructs a new OrganizationThresholdfields. - * @alias module:model/OrganizationThresholdfields - */ - function OrganizationThresholdfields() { - _classCallCheck(this, OrganizationThresholdfields); - OrganizationThresholdfields.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(OrganizationThresholdfields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a OrganizationThresholdfields 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/OrganizationThresholdfields} obj Optional instance to populate. - * @return {module:model/OrganizationThresholdfields} The populated OrganizationThresholdfields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationThresholdfields(); - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('interface_title')) { - obj['interface_title'] = _ApiClient["default"].convertToType(data['interface_title'], 'String'); - } - if (data.hasOwnProperty('interface_tooltip')) { - obj['interface_tooltip'] = _ApiClient["default"].convertToType(data['interface_tooltip'], 'String'); - } - if (data.hasOwnProperty('subscribed')) { - obj['subscribed'] = _ApiClient["default"].convertToType(data['subscribed'], 'Boolean'); - } - if (data.hasOwnProperty('threshold')) { - obj['threshold'] = _ApiClient["default"].convertToType(data['threshold'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to OrganizationThresholdfields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to OrganizationThresholdfields. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // ensure the json data is a string - if (data['interface_title'] && !(typeof data['interface_title'] === 'string' || data['interface_title'] instanceof String)) { - throw new Error("Expected the field `interface_title` to be a primitive type in the JSON string but got " + data['interface_title']); - } - // ensure the json data is a string - if (data['interface_tooltip'] && !(typeof data['interface_tooltip'] === 'string' || data['interface_tooltip'] instanceof String)) { - throw new Error("Expected the field `interface_tooltip` to be a primitive type in the JSON string but got " + data['interface_tooltip']); - } - return true; - } - }]); -}(); -/** - * @member {Number} id - */ -OrganizationThresholdfields.prototype['id'] = undefined; - -/** - * @member {String} interface_title - */ -OrganizationThresholdfields.prototype['interface_title'] = undefined; - -/** - * @member {String} interface_tooltip - */ -OrganizationThresholdfields.prototype['interface_tooltip'] = undefined; - -/** - * @member {Boolean} subscribed - */ -OrganizationThresholdfields.prototype['subscribed'] = undefined; - -/** - * @member {Number} threshold - */ -OrganizationThresholdfields.prototype['threshold'] = undefined; -var _default = exports["default"] = OrganizationThresholdfields; \ No newline at end of file diff --git a/dist/model/OrganizationThresholdsResponse.js b/dist/model/OrganizationThresholdsResponse.js new file mode 100644 index 00000000..4d753c42 --- /dev/null +++ b/dist/model/OrganizationThresholdsResponse.js @@ -0,0 +1,130 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _OrganizationThresholdFields = _interopRequireDefault(require("./OrganizationThresholdFields")); +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 OrganizationThresholdsResponse model module. + * @module model/OrganizationThresholdsResponse + * @version v1.51.1-alpha + */ +var OrganizationThresholdsResponse = /*#__PURE__*/function () { + /** + * Constructs a new OrganizationThresholdsResponse. + * @alias module:model/OrganizationThresholdsResponse + */ + function OrganizationThresholdsResponse() { + _classCallCheck(this, OrganizationThresholdsResponse); + OrganizationThresholdsResponse.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(OrganizationThresholdsResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a OrganizationThresholdsResponse 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/OrganizationThresholdsResponse} obj Optional instance to populate. + * @return {module:model/OrganizationThresholdsResponse} The populated OrganizationThresholdsResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new OrganizationThresholdsResponse(); + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); + } + if (data.hasOwnProperty('thresholds')) { + obj['thresholds'] = _ApiClient["default"].convertToType(data['thresholds'], [_OrganizationThresholdFields["default"]]); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to OrganizationThresholdsResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to OrganizationThresholdsResponse. + */ + }, { + 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['thresholds']) { + // data not null + // ensure the json data is an array + if (!Array.isArray(data['thresholds'])) { + throw new Error("Expected the field `thresholds` to be an array in the JSON data but got " + data['thresholds']); + } + // validate the optional field `thresholds` (array) + var _iterator = _createForOfIteratorHelper(data['thresholds']), + _step; + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var item = _step.value; + _OrganizationThresholdFields["default"].validateJSON(item); + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + ; + } + return true; + } + }]); +}(); +/** + * @member {String} message + */ +OrganizationThresholdsResponse.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +OrganizationThresholdsResponse.prototype['status'] = undefined; + +/** + * @member {Array.} thresholds + */ +OrganizationThresholdsResponse.prototype['thresholds'] = undefined; +var _default = exports["default"] = OrganizationThresholdsResponse; \ No newline at end of file diff --git a/dist/model/OrganizationUserResponseModel.js b/dist/model/OrganizationUserResponseModel.js index 1e18b1e8..00e78377 100644 --- a/dist/model/OrganizationUserResponseModel.js +++ b/dist/model/OrganizationUserResponseModel.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The OrganizationUserResponseModel model module. * @module model/OrganizationUserResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var OrganizationUserResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/Organizationcreditrechargelimitresponse.js b/dist/model/Organizationcreditrechargelimitresponse.js deleted file mode 100644 index f7f8325d..00000000 --- a/dist/model/Organizationcreditrechargelimitresponse.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 _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 _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 Organizationcreditrechargelimitresponse model module. - * @module model/Organizationcreditrechargelimitresponse - * @version v1.25.0-alpha - */ -var Organizationcreditrechargelimitresponse = /*#__PURE__*/function () { - /** - * Constructs a new Organizationcreditrechargelimitresponse. - * @alias module:model/Organizationcreditrechargelimitresponse - */ - function Organizationcreditrechargelimitresponse() { - _classCallCheck(this, Organizationcreditrechargelimitresponse); - Organizationcreditrechargelimitresponse.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(Organizationcreditrechargelimitresponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a Organizationcreditrechargelimitresponse 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/Organizationcreditrechargelimitresponse} obj Optional instance to populate. - * @return {module:model/Organizationcreditrechargelimitresponse} The populated Organizationcreditrechargelimitresponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Organizationcreditrechargelimitresponse(); - if (data.hasOwnProperty('data')) { - obj['data'] = _Creditrechargelimitfield["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 Organizationcreditrechargelimitresponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Organizationcreditrechargelimitresponse. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // validate the optional field `data` - if (data['data']) { - // data not null - _Creditrechargelimitfield["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/Creditrechargelimitfield} data - */ -Organizationcreditrechargelimitresponse.prototype['data'] = undefined; - -/** - * @member {String} message - */ -Organizationcreditrechargelimitresponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -Organizationcreditrechargelimitresponse.prototype['status'] = undefined; -var _default = exports["default"] = Organizationcreditrechargelimitresponse; \ No newline at end of file diff --git a/dist/model/Organizationthresholdsresponse.js b/dist/model/Organizationthresholdsresponse.js deleted file mode 100644 index 92aa188e..00000000 --- a/dist/model/Organizationthresholdsresponse.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 _OrganizationThresholdfields = _interopRequireDefault(require("./OrganizationThresholdfields")); -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 Organizationthresholdsresponse model module. - * @module model/Organizationthresholdsresponse - * @version v1.25.0-alpha - */ -var Organizationthresholdsresponse = /*#__PURE__*/function () { - /** - * Constructs a new Organizationthresholdsresponse. - * @alias module:model/Organizationthresholdsresponse - */ - function Organizationthresholdsresponse() { - _classCallCheck(this, Organizationthresholdsresponse); - Organizationthresholdsresponse.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(Organizationthresholdsresponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a Organizationthresholdsresponse 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/Organizationthresholdsresponse} obj Optional instance to populate. - * @return {module:model/Organizationthresholdsresponse} The populated Organizationthresholdsresponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Organizationthresholdsresponse(); - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('thresholds')) { - obj['thresholds'] = _ApiClient["default"].convertToType(data['thresholds'], [_OrganizationThresholdfields["default"]]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to Organizationthresholdsresponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Organizationthresholdsresponse. - */ - }, { - 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['thresholds']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['thresholds'])) { - throw new Error("Expected the field `thresholds` to be an array in the JSON data but got " + data['thresholds']); - } - // validate the optional field `thresholds` (array) - var _iterator = _createForOfIteratorHelper(data['thresholds']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _OrganizationThresholdfields["default"].validateJSON(item); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - ; - } - return true; - } - }]); -}(); -/** - * @member {String} message - */ -Organizationthresholdsresponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -Organizationthresholdsresponse.prototype['status'] = undefined; - -/** - * @member {Array.} thresholds - */ -Organizationthresholdsresponse.prototype['thresholds'] = undefined; -var _default = exports["default"] = Organizationthresholdsresponse; \ No newline at end of file diff --git a/dist/model/Organizationthresholdupdateresponse.js b/dist/model/Organizationthresholdupdateresponse.js deleted file mode 100644 index ce576824..00000000 --- a/dist/model/Organizationthresholdupdateresponse.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 _OrganizationThresholdfields = _interopRequireDefault(require("./OrganizationThresholdfields")); -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 Organizationthresholdupdateresponse model module. - * @module model/Organizationthresholdupdateresponse - * @version v1.25.0-alpha - */ -var Organizationthresholdupdateresponse = /*#__PURE__*/function () { - /** - * Constructs a new Organizationthresholdupdateresponse. - * @alias module:model/Organizationthresholdupdateresponse - */ - function Organizationthresholdupdateresponse() { - _classCallCheck(this, Organizationthresholdupdateresponse); - Organizationthresholdupdateresponse.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(Organizationthresholdupdateresponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a Organizationthresholdupdateresponse 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/Organizationthresholdupdateresponse} obj Optional instance to populate. - * @return {module:model/Organizationthresholdupdateresponse} The populated Organizationthresholdupdateresponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Organizationthresholdupdateresponse(); - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('threshold')) { - obj['threshold'] = _OrganizationThresholdfields["default"].constructFromObject(data['threshold']); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to Organizationthresholdupdateresponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Organizationthresholdupdateresponse. - */ - }, { - 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 `threshold` - if (data['threshold']) { - // data not null - _OrganizationThresholdfields["default"].validateJSON(data['threshold']); - } - return true; - } - }]); -}(); -/** - * @member {String} message - */ -Organizationthresholdupdateresponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -Organizationthresholdupdateresponse.prototype['status'] = undefined; - -/** - * @member {module:model/OrganizationThresholdfields} threshold - */ -Organizationthresholdupdateresponse.prototype['threshold'] = undefined; -var _default = exports["default"] = Organizationthresholdupdateresponse; \ No newline at end of file diff --git a/dist/model/OverviewInfo.js b/dist/model/OverviewInfo.js index 1280dfb7..8ce1b485 100644 --- a/dist/model/OverviewInfo.js +++ b/dist/model/OverviewInfo.js @@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The OverviewInfo model module. * @module model/OverviewInfo - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var OverviewInfo = /*#__PURE__*/function () { /** diff --git a/dist/model/Pagination.js b/dist/model/Pagination.js new file mode 100644 index 00000000..51828c6a --- /dev/null +++ b/dist/model/Pagination.js @@ -0,0 +1,104 @@ +"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 Pagination model module. + * @module model/Pagination + * @version v1.51.1-alpha + */ +var Pagination = /*#__PURE__*/function () { + /** + * Constructs a new Pagination. + * @alias module:model/Pagination + */ + function Pagination() { + _classCallCheck(this, Pagination); + Pagination.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(Pagination, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a Pagination 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/Pagination} obj Optional instance to populate. + * @return {module:model/Pagination} The populated Pagination instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Pagination(); + if (data.hasOwnProperty('page')) { + obj['page'] = _ApiClient["default"].convertToType(data['page'], 'Number'); + } + if (data.hasOwnProperty('pages')) { + obj['pages'] = _ApiClient["default"].convertToType(data['pages'], 'Number'); + } + if (data.hasOwnProperty('per_page')) { + obj['per_page'] = _ApiClient["default"].convertToType(data['per_page'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to Pagination. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to Pagination. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + return true; + } + }]); +}(); +/** + * + * @member {Number} page + */ +Pagination.prototype['page'] = undefined; + +/** + * + * @member {Number} pages + */ +Pagination.prototype['pages'] = undefined; + +/** + * + * @member {Number} per_page + */ +Pagination.prototype['per_page'] = undefined; +var _default = exports["default"] = Pagination; \ No newline at end of file diff --git a/dist/model/PaginationData.js b/dist/model/PaginationData.js index 4bf16511..a28cf88d 100644 --- a/dist/model/PaginationData.js +++ b/dist/model/PaginationData.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The PaginationData model module. * @module model/PaginationData - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var PaginationData = /*#__PURE__*/function () { /** diff --git a/dist/model/PartnerConfig.js b/dist/model/PartnerConfig.js new file mode 100644 index 00000000..39fda9db --- /dev/null +++ b/dist/model/PartnerConfig.js @@ -0,0 +1,192 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _Colors = _interopRequireDefault(require("./Colors")); +var _Logos = _interopRequireDefault(require("./Logos")); +var _URIs = _interopRequireDefault(require("./URIs")); +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 PartnerConfig model module. + * @module model/PartnerConfig + * @version v1.51.1-alpha + */ +var PartnerConfig = /*#__PURE__*/function () { + /** + * Constructs a new PartnerConfig. + * @alias module:model/PartnerConfig + * @param name {String} + * @param userType {String} + */ + function PartnerConfig(name, userType) { + _classCallCheck(this, PartnerConfig); + PartnerConfig.initialize(this, name, userType); + } + + /** + * 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(PartnerConfig, null, [{ + key: "initialize", + value: function initialize(obj, name, userType) { + obj['name'] = name; + obj['user_type'] = userType; + } + + /** + * Constructs a PartnerConfig 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/PartnerConfig} obj Optional instance to populate. + * @return {module:model/PartnerConfig} The populated PartnerConfig instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PartnerConfig(); + if (data.hasOwnProperty('background_image_url')) { + obj['background_image_url'] = _ApiClient["default"].convertToType(data['background_image_url'], 'String'); + } + if (data.hasOwnProperty('colors')) { + obj['colors'] = _Colors["default"].constructFromObject(data['colors']); + } + if (data.hasOwnProperty('logos')) { + obj['logos'] = _Logos["default"].constructFromObject(data['logos']); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('support_email')) { + obj['support_email'] = _ApiClient["default"].convertToType(data['support_email'], 'String'); + } + if (data.hasOwnProperty('uris')) { + obj['uris'] = _URIs["default"].constructFromObject(data['uris']); + } + if (data.hasOwnProperty('user_type')) { + obj['user_type'] = _ApiClient["default"].convertToType(data['user_type'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to PartnerConfig. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to PartnerConfig. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(PartnerConfig.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['background_image_url'] && !(typeof data['background_image_url'] === 'string' || data['background_image_url'] instanceof String)) { + throw new Error("Expected the field `background_image_url` to be a primitive type in the JSON string but got " + data['background_image_url']); + } + // validate the optional field `colors` + if (data['colors']) { + // data not null + _Colors["default"].validateJSON(data['colors']); + } + // validate the optional field `logos` + if (data['logos']) { + // data not null + _Logos["default"].validateJSON(data['logos']); + } + // 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['support_email'] && !(typeof data['support_email'] === 'string' || data['support_email'] instanceof String)) { + throw new Error("Expected the field `support_email` to be a primitive type in the JSON string but got " + data['support_email']); + } + // validate the optional field `uris` + if (data['uris']) { + // data not null + _URIs["default"].validateJSON(data['uris']); + } + // ensure the json data is a string + if (data['user_type'] && !(typeof data['user_type'] === 'string' || data['user_type'] instanceof String)) { + throw new Error("Expected the field `user_type` to be a primitive type in the JSON string but got " + data['user_type']); + } + return true; + } + }]); +}(); +PartnerConfig.RequiredProperties = ["name", "user_type"]; + +/** + * @member {String} background_image_url + */ +PartnerConfig.prototype['background_image_url'] = undefined; + +/** + * @member {module:model/Colors} colors + */ +PartnerConfig.prototype['colors'] = undefined; + +/** + * @member {module:model/Logos} logos + */ +PartnerConfig.prototype['logos'] = undefined; + +/** + * @member {String} name + */ +PartnerConfig.prototype['name'] = undefined; + +/** + * @member {String} support_email + */ +PartnerConfig.prototype['support_email'] = undefined; + +/** + * @member {module:model/URIs} uris + */ +PartnerConfig.prototype['uris'] = undefined; + +/** + * @member {String} user_type + */ +PartnerConfig.prototype['user_type'] = undefined; +var _default = exports["default"] = PartnerConfig; \ No newline at end of file diff --git a/dist/model/PaymentDetailsFields.js b/dist/model/PaymentDetailsFields.js index 15d55e23..eef8f354 100644 --- a/dist/model/PaymentDetailsFields.js +++ b/dist/model/PaymentDetailsFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The PaymentDetailsFields model module. * @module model/PaymentDetailsFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var PaymentDetailsFields = /*#__PURE__*/function () { /** @@ -74,6 +74,9 @@ var PaymentDetailsFields = /*#__PURE__*/function () { if (data.hasOwnProperty('gateway_response')) { obj['gateway_response'] = _ApiClient["default"].convertToType(data['gateway_response'], 'String'); } + if (data.hasOwnProperty('invoice')) { + obj['invoice'] = _ApiClient["default"].convertToType(data['invoice'], 'String'); + } if (data.hasOwnProperty('paid_from')) { obj['paid_from'] = _ApiClient["default"].convertToType(data['paid_from'], 'String'); } @@ -83,6 +86,9 @@ var PaymentDetailsFields = /*#__PURE__*/function () { if (data.hasOwnProperty('status')) { obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); } + if (data.hasOwnProperty('tax_amount')) { + obj['tax_amount'] = _ApiClient["default"].convertToType(data['tax_amount'], 'Number'); + } if (data.hasOwnProperty('transaction_id')) { obj['transaction_id'] = _ApiClient["default"].convertToType(data['transaction_id'], 'String'); } @@ -114,6 +120,10 @@ var PaymentDetailsFields = /*#__PURE__*/function () { throw new Error("Expected the field `gateway_response` to be a primitive type in the JSON string but got " + data['gateway_response']); } // ensure the json data is a string + if (data['invoice'] && !(typeof data['invoice'] === 'string' || data['invoice'] instanceof String)) { + throw new Error("Expected the field `invoice` to be a primitive type in the JSON string but got " + data['invoice']); + } + // ensure the json data is a string if (data['paid_from'] && !(typeof data['paid_from'] === 'string' || data['paid_from'] instanceof String)) { throw new Error("Expected the field `paid_from` to be a primitive type in the JSON string but got " + data['paid_from']); } @@ -158,6 +168,11 @@ PaymentDetailsFields.prototype['description'] = undefined; */ PaymentDetailsFields.prototype['gateway_response'] = undefined; +/** + * @member {String} invoice + */ +PaymentDetailsFields.prototype['invoice'] = undefined; + /** * @member {String} paid_from */ @@ -173,6 +188,11 @@ PaymentDetailsFields.prototype['payment_id'] = undefined; */ PaymentDetailsFields.prototype['status'] = undefined; +/** + * @member {Number} tax_amount + */ +PaymentDetailsFields.prototype['tax_amount'] = undefined; + /** * @member {String} transaction_id */ diff --git a/dist/model/PaymentDetailsResponse.js b/dist/model/PaymentDetailsResponse.js index 68de1c92..d922e06b 100644 --- a/dist/model/PaymentDetailsResponse.js +++ b/dist/model/PaymentDetailsResponse.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The PaymentDetailsResponse model module. * @module model/PaymentDetailsResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var PaymentDetailsResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/PaymentInitiateFields.js b/dist/model/PaymentInitiateFields.js index 1c995b98..32fb064b 100644 --- a/dist/model/PaymentInitiateFields.js +++ b/dist/model/PaymentInitiateFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The PaymentInitiateFields model module. * @module model/PaymentInitiateFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var PaymentInitiateFields = /*#__PURE__*/function () { /** diff --git a/dist/model/PaymentInitiatePayload.js b/dist/model/PaymentInitiatePayload.js index 12b6000c..ec140b20 100644 --- a/dist/model/PaymentInitiatePayload.js +++ b/dist/model/PaymentInitiatePayload.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The PaymentInitiatePayload model module. * @module model/PaymentInitiatePayload - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var PaymentInitiatePayload = /*#__PURE__*/function () { /** diff --git a/dist/model/PaymentInitiateResponse.js b/dist/model/PaymentInitiateResponse.js index 84271fc9..89933c9e 100644 --- a/dist/model/PaymentInitiateResponse.js +++ b/dist/model/PaymentInitiateResponse.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The PaymentInitiateResponse model module. * @module model/PaymentInitiateResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var PaymentInitiateResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/PermissionFields.js b/dist/model/PermissionFields.js index 0510f43f..d019bbcb 100644 --- a/dist/model/PermissionFields.js +++ b/dist/model/PermissionFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The PermissionFields model module. * @module model/PermissionFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var PermissionFields = /*#__PURE__*/function () { /** diff --git a/dist/model/PolicyFields.js b/dist/model/PolicyFields.js index 82d65d78..fc381bcb 100644 --- a/dist/model/PolicyFields.js +++ b/dist/model/PolicyFields.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The PolicyFields model module. * @module model/PolicyFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var PolicyFields = /*#__PURE__*/function () { /** diff --git a/dist/model/PolicyPermissionFields.js b/dist/model/PolicyPermissionFields.js index 48fb9ff9..41228b6a 100644 --- a/dist/model/PolicyPermissionFields.js +++ b/dist/model/PolicyPermissionFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The PolicyPermissionFields model module. * @module model/PolicyPermissionFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var PolicyPermissionFields = /*#__PURE__*/function () { /** diff --git a/dist/model/PowerUsageModel.js b/dist/model/PowerUsageModel.js deleted file mode 100644 index 4594f8c4..00000000 --- a/dist/model/PowerUsageModel.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 PowerUsageModel model module. - * @module model/PowerUsageModel - * @version v1.25.0-alpha - */ -var PowerUsageModel = /*#__PURE__*/function () { - /** - * Constructs a new PowerUsageModel. - * @alias module:model/PowerUsageModel - * @param unit {String} - * @param value {Number} - */ - function PowerUsageModel(unit, value) { - _classCallCheck(this, PowerUsageModel); - PowerUsageModel.initialize(this, unit, value); - } - - /** - * 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(PowerUsageModel, null, [{ - key: "initialize", - value: function initialize(obj, unit, value) { - obj['unit'] = unit; - obj['value'] = value; - } - - /** - * Constructs a PowerUsageModel 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/PowerUsageModel} obj Optional instance to populate. - * @return {module:model/PowerUsageModel} The populated PowerUsageModel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new PowerUsageModel(); - if (data.hasOwnProperty('unit')) { - obj['unit'] = _ApiClient["default"].convertToType(data['unit'], 'String'); - } - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PowerUsageModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PowerUsageModel. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(PowerUsageModel.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['unit'] && !(typeof data['unit'] === 'string' || data['unit'] instanceof String)) { - throw new Error("Expected the field `unit` to be a primitive type in the JSON string but got " + data['unit']); - } - return true; - } - }]); -}(); -PowerUsageModel.RequiredProperties = ["unit", "value"]; - -/** - * @member {String} unit - */ -PowerUsageModel.prototype['unit'] = undefined; - -/** - * @member {Number} value - */ -PowerUsageModel.prototype['value'] = undefined; -var _default = exports["default"] = PowerUsageModel; \ No newline at end of file diff --git a/dist/model/PricebookModel.js b/dist/model/PricebookModel.js index 8a111ccd..13a20416 100644 --- a/dist/model/PricebookModel.js +++ b/dist/model/PricebookModel.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The PricebookModel model module. * @module model/PricebookModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var PricebookModel = /*#__PURE__*/function () { /** diff --git a/dist/model/PricebookResourceObjectResponse.js b/dist/model/PricebookResourceObjectResponse.js deleted file mode 100644 index 5f5041b0..00000000 --- a/dist/model/PricebookResourceObjectResponse.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 PricebookResourceObjectResponse model module. - * @module model/PricebookResourceObjectResponse - * @version v1.25.0-alpha - */ -var PricebookResourceObjectResponse = /*#__PURE__*/function () { - /** - * Constructs a new PricebookResourceObjectResponse. - * @alias module:model/PricebookResourceObjectResponse - */ - function PricebookResourceObjectResponse() { - _classCallCheck(this, PricebookResourceObjectResponse); - PricebookResourceObjectResponse.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(PricebookResourceObjectResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a PricebookResourceObjectResponse 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/PricebookResourceObjectResponse} obj Optional instance to populate. - * @return {module:model/PricebookResourceObjectResponse} The populated PricebookResourceObjectResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new PricebookResourceObjectResponse(); - if (data.hasOwnProperty('actual_price')) { - obj['actual_price'] = _ApiClient["default"].convertToType(data['actual_price'], 'Number'); - } - if (data.hasOwnProperty('amount')) { - obj['amount'] = _ApiClient["default"].convertToType(data['amount'], 'Number'); - } - if (data.hasOwnProperty('discounted_rate')) { - obj['discounted_rate'] = _ApiClient["default"].convertToType(data['discounted_rate'], 'Number'); - } - if (data.hasOwnProperty('host_original_price')) { - obj['host_original_price'] = _ApiClient["default"].convertToType(data['host_original_price'], 'Number'); - } - if (data.hasOwnProperty('host_price')) { - obj['host_price'] = _ApiClient["default"].convertToType(data['host_price'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('nexgen_original_price')) { - obj['nexgen_original_price'] = _ApiClient["default"].convertToType(data['nexgen_original_price'], 'Number'); - } - if (data.hasOwnProperty('nexgen_price')) { - obj['nexgen_price'] = _ApiClient["default"].convertToType(data['nexgen_price'], 'Number'); - } - if (data.hasOwnProperty('price')) { - obj['price'] = _ApiClient["default"].convertToType(data['price'], 'Number'); - } - if (data.hasOwnProperty('rate')) { - obj['rate'] = _ApiClient["default"].convertToType(data['rate'], 'Number'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PricebookResourceObjectResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PricebookResourceObjectResponse. - */ - }, { - 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['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 {Number} actual_price - */ -PricebookResourceObjectResponse.prototype['actual_price'] = undefined; - -/** - * @member {Number} amount - */ -PricebookResourceObjectResponse.prototype['amount'] = undefined; - -/** - * @member {Number} discounted_rate - */ -PricebookResourceObjectResponse.prototype['discounted_rate'] = undefined; - -/** - * @member {Number} host_original_price - */ -PricebookResourceObjectResponse.prototype['host_original_price'] = undefined; - -/** - * @member {Number} host_price - */ -PricebookResourceObjectResponse.prototype['host_price'] = undefined; - -/** - * @member {String} name - */ -PricebookResourceObjectResponse.prototype['name'] = undefined; - -/** - * @member {Number} nexgen_original_price - */ -PricebookResourceObjectResponse.prototype['nexgen_original_price'] = undefined; - -/** - * @member {Number} nexgen_price - */ -PricebookResourceObjectResponse.prototype['nexgen_price'] = undefined; - -/** - * @member {Number} price - */ -PricebookResourceObjectResponse.prototype['price'] = undefined; - -/** - * @member {Number} rate - */ -PricebookResourceObjectResponse.prototype['rate'] = undefined; - -/** - * @member {String} type - */ -PricebookResourceObjectResponse.prototype['type'] = undefined; -var _default = exports["default"] = PricebookResourceObjectResponse; \ No newline at end of file diff --git a/dist/model/PricebookResourceObjectResponseForCustomer.js b/dist/model/PricebookResourceObjectResponseForCustomer.js index fcc4f80f..716647f0 100644 --- a/dist/model/PricebookResourceObjectResponseForCustomer.js +++ b/dist/model/PricebookResourceObjectResponseForCustomer.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The PricebookResourceObjectResponseForCustomer model module. * @module model/PricebookResourceObjectResponseForCustomer - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var PricebookResourceObjectResponseForCustomer = /*#__PURE__*/function () { /** diff --git a/dist/model/PrimaryColor.js b/dist/model/PrimaryColor.js new file mode 100644 index 00000000..817be94c --- /dev/null +++ b/dist/model/PrimaryColor.js @@ -0,0 +1,101 @@ +"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 PrimaryColor model module. + * @module model/PrimaryColor + * @version v1.51.1-alpha + */ +var PrimaryColor = /*#__PURE__*/function () { + /** + * Constructs a new PrimaryColor. + * @alias module:model/PrimaryColor + */ + function PrimaryColor() { + _classCallCheck(this, PrimaryColor); + PrimaryColor.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(PrimaryColor, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a PrimaryColor 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/PrimaryColor} obj Optional instance to populate. + * @return {module:model/PrimaryColor} The populated PrimaryColor instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new PrimaryColor(); + if (data.hasOwnProperty('dark')) { + obj['dark'] = _ApiClient["default"].convertToType(data['dark'], 'String'); + } + if (data.hasOwnProperty('light')) { + obj['light'] = _ApiClient["default"].convertToType(data['light'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to PrimaryColor. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to PrimaryColor. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // ensure the json data is a string + if (data['dark'] && !(typeof data['dark'] === 'string' || data['dark'] instanceof String)) { + throw new Error("Expected the field `dark` to be a primitive type in the JSON string but got " + data['dark']); + } + // ensure the json data is a string + if (data['light'] && !(typeof data['light'] === 'string' || data['light'] instanceof String)) { + throw new Error("Expected the field `light` to be a primitive type in the JSON string but got " + data['light']); + } + return true; + } + }]); +}(); +/** + * @member {String} dark + */ +PrimaryColor.prototype['dark'] = undefined; + +/** + * @member {String} light + */ +PrimaryColor.prototype['light'] = undefined; +var _default = exports["default"] = PrimaryColor; \ No newline at end of file diff --git a/dist/model/ProfileFields.js b/dist/model/ProfileFields.js index f59b9a27..cfeb87aa 100644 --- a/dist/model/ProfileFields.js +++ b/dist/model/ProfileFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ProfileFields model module. * @module model/ProfileFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ProfileFields = /*#__PURE__*/function () { /** diff --git a/dist/model/ProfileListResponse.js b/dist/model/ProfileListResponse.js index 89be7375..60322bac 100644 --- a/dist/model/ProfileListResponse.js +++ b/dist/model/ProfileListResponse.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ProfileListResponse model module. * @module model/ProfileListResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ProfileListResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/ProfileObjectFields.js b/dist/model/ProfileObjectFields.js index 5849893b..fd6ecf20 100644 --- a/dist/model/ProfileObjectFields.js +++ b/dist/model/ProfileObjectFields.js @@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ProfileObjectFields model module. * @module model/ProfileObjectFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ProfileObjectFields = /*#__PURE__*/function () { /** diff --git a/dist/model/RbacRoleDetailResponseModel.js b/dist/model/RbacRoleDetailResponseModel.js index ac2c92a8..a1136ce7 100644 --- a/dist/model/RbacRoleDetailResponseModel.js +++ b/dist/model/RbacRoleDetailResponseModel.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The RbacRoleDetailResponseModel model module. * @module model/RbacRoleDetailResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var RbacRoleDetailResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/RbacRoleDetailResponseModelFixed.js b/dist/model/RbacRoleDetailResponseModelFixed.js index 66bfc529..50104b6b 100644 --- a/dist/model/RbacRoleDetailResponseModelFixed.js +++ b/dist/model/RbacRoleDetailResponseModelFixed.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The RbacRoleDetailResponseModelFixed model module. * @module model/RbacRoleDetailResponseModelFixed - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var RbacRoleDetailResponseModelFixed = /*#__PURE__*/function () { /** diff --git a/dist/model/RbacRoleField.js b/dist/model/RbacRoleField.js index 8144363c..aa93c893 100644 --- a/dist/model/RbacRoleField.js +++ b/dist/model/RbacRoleField.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The RbacRoleField model module. * @module model/RbacRoleField - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var RbacRoleField = /*#__PURE__*/function () { /** diff --git a/dist/model/RbacRoleFields.js b/dist/model/RbacRoleFields.js index 68ebb64d..9aa8659a 100644 --- a/dist/model/RbacRoleFields.js +++ b/dist/model/RbacRoleFields.js @@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The RbacRoleFields model module. * @module model/RbacRoleFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var RbacRoleFields = /*#__PURE__*/function () { /** diff --git a/dist/model/RedeemVoucherPayload.js b/dist/model/RedeemVoucherPayload.js new file mode 100644 index 00000000..0644f24b --- /dev/null +++ b/dist/model/RedeemVoucherPayload.js @@ -0,0 +1,113 @@ +"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 RedeemVoucherPayload model module. + * @module model/RedeemVoucherPayload + * @version v1.51.1-alpha + */ +var RedeemVoucherPayload = /*#__PURE__*/function () { + /** + * Constructs a new RedeemVoucherPayload. + * @alias module:model/RedeemVoucherPayload + * @param voucherCode {String} The code of the voucher you want to redeem. + */ + function RedeemVoucherPayload(voucherCode) { + _classCallCheck(this, RedeemVoucherPayload); + RedeemVoucherPayload.initialize(this, voucherCode); + } + + /** + * 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(RedeemVoucherPayload, null, [{ + key: "initialize", + value: function initialize(obj, voucherCode) { + obj['voucher_code'] = voucherCode; + } + + /** + * Constructs a RedeemVoucherPayload 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/RedeemVoucherPayload} obj Optional instance to populate. + * @return {module:model/RedeemVoucherPayload} The populated RedeemVoucherPayload instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RedeemVoucherPayload(); + if (data.hasOwnProperty('voucher_code')) { + obj['voucher_code'] = _ApiClient["default"].convertToType(data['voucher_code'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to RedeemVoucherPayload. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to RedeemVoucherPayload. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(RedeemVoucherPayload.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['voucher_code'] && !(typeof data['voucher_code'] === 'string' || data['voucher_code'] instanceof String)) { + throw new Error("Expected the field `voucher_code` to be a primitive type in the JSON string but got " + data['voucher_code']); + } + return true; + } + }]); +}(); +RedeemVoucherPayload.RequiredProperties = ["voucher_code"]; + +/** + * The code of the voucher you want to redeem. + * @member {String} voucher_code + */ +RedeemVoucherPayload.prototype['voucher_code'] = undefined; +var _default = exports["default"] = RedeemVoucherPayload; \ No newline at end of file diff --git a/dist/model/RefreshTokenPayload.js b/dist/model/RefreshTokenPayload.js deleted file mode 100644 index abec88ab..00000000 --- a/dist/model/RefreshTokenPayload.js +++ /dev/null @@ -1,126 +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 RefreshTokenPayload model module. - * @module model/RefreshTokenPayload - * @version v1.25.0-alpha - */ -var RefreshTokenPayload = /*#__PURE__*/function () { - /** - * Constructs a new RefreshTokenPayload. - * @alias module:model/RefreshTokenPayload - * @param idToken {String} - * @param refreshToken {String} - */ - function RefreshTokenPayload(idToken, refreshToken) { - _classCallCheck(this, RefreshTokenPayload); - RefreshTokenPayload.initialize(this, idToken, refreshToken); - } - - /** - * 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(RefreshTokenPayload, null, [{ - key: "initialize", - value: function initialize(obj, idToken, refreshToken) { - obj['id_token'] = idToken; - obj['refresh_token'] = refreshToken; - } - - /** - * Constructs a RefreshTokenPayload 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/RefreshTokenPayload} obj Optional instance to populate. - * @return {module:model/RefreshTokenPayload} The populated RefreshTokenPayload instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RefreshTokenPayload(); - if (data.hasOwnProperty('id_token')) { - obj['id_token'] = _ApiClient["default"].convertToType(data['id_token'], 'String'); - } - if (data.hasOwnProperty('refresh_token')) { - obj['refresh_token'] = _ApiClient["default"].convertToType(data['refresh_token'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to RefreshTokenPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to RefreshTokenPayload. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(RefreshTokenPayload.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['id_token'] && !(typeof data['id_token'] === 'string' || data['id_token'] instanceof String)) { - throw new Error("Expected the field `id_token` to be a primitive type in the JSON string but got " + data['id_token']); - } - // ensure the json data is a string - if (data['refresh_token'] && !(typeof data['refresh_token'] === 'string' || data['refresh_token'] instanceof String)) { - throw new Error("Expected the field `refresh_token` to be a primitive type in the JSON string but got " + data['refresh_token']); - } - return true; - } - }]); -}(); -RefreshTokenPayload.RequiredProperties = ["id_token", "refresh_token"]; - -/** - * @member {String} id_token - */ -RefreshTokenPayload.prototype['id_token'] = undefined; - -/** - * @member {String} refresh_token - */ -RefreshTokenPayload.prototype['refresh_token'] = undefined; -var _default = exports["default"] = RefreshTokenPayload; \ No newline at end of file diff --git a/dist/model/RegionFields.js b/dist/model/RegionFields.js index 5badca4f..a8bd5e61 100644 --- a/dist/model/RegionFields.js +++ b/dist/model/RegionFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The RegionFields model module. * @module model/RegionFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var RegionFields = /*#__PURE__*/function () { /** @@ -59,9 +59,18 @@ var RegionFields = /*#__PURE__*/function () { value: function constructFromObject(data, obj) { if (data) { obj = obj || new RegionFields(); + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); + } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } + if (data.hasOwnProperty('features')) { + obj['features'] = _ApiClient["default"].convertToType(data['features'], Object); + } + if (data.hasOwnProperty('green_status')) { + obj['green_status'] = _ApiClient["default"].convertToType(data['green_status'], 'String'); + } if (data.hasOwnProperty('id')) { obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); } @@ -80,11 +89,19 @@ var RegionFields = /*#__PURE__*/function () { }, { key: "validateJSON", value: function validateJSON(data) { + // ensure the json data is a string + if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) { + throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']); + } // 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['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']); + } + // 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']); } @@ -92,11 +109,27 @@ var RegionFields = /*#__PURE__*/function () { } }]); }(); +/** + * @member {String} country + */ +RegionFields.prototype['country'] = undefined; + /** * @member {String} description */ RegionFields.prototype['description'] = undefined; +/** + * @member {Object} features + */ +RegionFields.prototype['features'] = undefined; + +/** + * Green status + * @member {module:model/RegionFields.GreenStatusEnum} green_status + */ +RegionFields.prototype['green_status'] = undefined; + /** * @member {Number} id */ @@ -106,4 +139,27 @@ RegionFields.prototype['id'] = undefined; * @member {String} name */ RegionFields.prototype['name'] = undefined; + +/** + * Allowed values for the green_status property. + * @enum {String} + * @readonly + */ +RegionFields['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"] = RegionFields; \ No newline at end of file diff --git a/dist/model/RegionPayload.js b/dist/model/RegionPayload.js deleted file mode 100644 index 63809235..00000000 --- a/dist/model/RegionPayload.js +++ /dev/null @@ -1,124 +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 RegionPayload model module. - * @module model/RegionPayload - * @version v1.25.0-alpha - */ -var RegionPayload = /*#__PURE__*/function () { - /** - * Constructs a new RegionPayload. - * @alias module:model/RegionPayload - * @param name {String} - */ - function RegionPayload(name) { - _classCallCheck(this, RegionPayload); - RegionPayload.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(RegionPayload, null, [{ - key: "initialize", - value: function initialize(obj, name) { - obj['name'] = name; - } - - /** - * Constructs a RegionPayload 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/RegionPayload} obj Optional instance to populate. - * @return {module:model/RegionPayload} The populated RegionPayload instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RegionPayload(); - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to RegionPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to RegionPayload. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(RegionPayload.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']); - } - return true; - } - }]); -}(); -RegionPayload.RequiredProperties = ["name"]; - -/** - * @member {String} description - */ -RegionPayload.prototype['description'] = undefined; - -/** - * @member {String} name - */ -RegionPayload.prototype['name'] = undefined; -var _default = exports["default"] = RegionPayload; \ No newline at end of file diff --git a/dist/model/RegionResponse.js b/dist/model/RegionResponse.js deleted file mode 100644 index 098be72e..00000000 --- a/dist/model/RegionResponse.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 _RegionFields = _interopRequireDefault(require("./RegionFields")); -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 RegionResponse model module. - * @module model/RegionResponse - * @version v1.25.0-alpha - */ -var RegionResponse = /*#__PURE__*/function () { - /** - * Constructs a new RegionResponse. - * @alias module:model/RegionResponse - */ - function RegionResponse() { - _classCallCheck(this, RegionResponse); - RegionResponse.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(RegionResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a RegionResponse 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/RegionResponse} obj Optional instance to populate. - * @return {module:model/RegionResponse} The populated RegionResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RegionResponse(); - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('region')) { - obj['region'] = _RegionFields["default"].constructFromObject(data['region']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to RegionResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to RegionResponse. - */ - }, { - 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 `region` - if (data['region']) { - // data not null - _RegionFields["default"].validateJSON(data['region']); - } - return true; - } - }]); -}(); -/** - * @member {String} message - */ -RegionResponse.prototype['message'] = undefined; - -/** - * @member {module:model/RegionFields} region - */ -RegionResponse.prototype['region'] = undefined; - -/** - * @member {Boolean} status - */ -RegionResponse.prototype['status'] = undefined; -var _default = exports["default"] = RegionResponse; \ No newline at end of file diff --git a/dist/model/Regions.js b/dist/model/Regions.js index 3314530e..019676c0 100644 --- a/dist/model/Regions.js +++ b/dist/model/Regions.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The Regions model module. * @module model/Regions - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var Regions = /*#__PURE__*/function () { /** diff --git a/dist/model/RemoveMemberFromOrganizationResponseModel.js b/dist/model/RemoveMemberFromOrganizationResponseModel.js index 08fc84f7..f6de6408 100644 --- a/dist/model/RemoveMemberFromOrganizationResponseModel.js +++ b/dist/model/RemoveMemberFromOrganizationResponseModel.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The RemoveMemberFromOrganizationResponseModel model module. * @module model/RemoveMemberFromOrganizationResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var RemoveMemberFromOrganizationResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/RemoveMemberPayload.js b/dist/model/RemoveMemberPayload.js index e4406400..90b82d35 100644 --- a/dist/model/RemoveMemberPayload.js +++ b/dist/model/RemoveMemberPayload.js @@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The RemoveMemberPayload model module. * @module model/RemoveMemberPayload - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var RemoveMemberPayload = /*#__PURE__*/function () { /** diff --git a/dist/model/RequestConsole.js b/dist/model/RequestConsole.js index 0c8b4371..bc2c3557 100644 --- a/dist/model/RequestConsole.js +++ b/dist/model/RequestConsole.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The RequestConsole model module. * @module model/RequestConsole - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var RequestConsole = /*#__PURE__*/function () { /** diff --git a/dist/model/RequestInstanceLogsPayload.js b/dist/model/RequestInstanceLogsPayload.js new file mode 100644 index 00000000..a695adfe --- /dev/null +++ b/dist/model/RequestInstanceLogsPayload.js @@ -0,0 +1,86 @@ +"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 RequestInstanceLogsPayload model module. + * @module model/RequestInstanceLogsPayload + * @version v1.51.1-alpha + */ +var RequestInstanceLogsPayload = /*#__PURE__*/function () { + /** + * Constructs a new RequestInstanceLogsPayload. + * @alias module:model/RequestInstanceLogsPayload + */ + function RequestInstanceLogsPayload() { + _classCallCheck(this, RequestInstanceLogsPayload); + RequestInstanceLogsPayload.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(RequestInstanceLogsPayload, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a RequestInstanceLogsPayload 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/RequestInstanceLogsPayload} obj Optional instance to populate. + * @return {module:model/RequestInstanceLogsPayload} The populated RequestInstanceLogsPayload instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RequestInstanceLogsPayload(); + if (data.hasOwnProperty('length')) { + obj['length'] = _ApiClient["default"].convertToType(data['length'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to RequestInstanceLogsPayload. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to RequestInstanceLogsPayload. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + return true; + } + }]); +}(); +/** + * The amount of lines to fetch + * @member {Number} length + */ +RequestInstanceLogsPayload.prototype['length'] = undefined; +var _default = exports["default"] = RequestInstanceLogsPayload; \ No newline at end of file diff --git a/dist/model/RequestInstanceLogsResponse.js b/dist/model/RequestInstanceLogsResponse.js new file mode 100644 index 00000000..ee713463 --- /dev/null +++ b/dist/model/RequestInstanceLogsResponse.js @@ -0,0 +1,85 @@ +"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 RequestInstanceLogsResponse model module. + * @module model/RequestInstanceLogsResponse + * @version v1.51.1-alpha + */ +var RequestInstanceLogsResponse = /*#__PURE__*/function () { + /** + * Constructs a new RequestInstanceLogsResponse. + * @alias module:model/RequestInstanceLogsResponse + */ + function RequestInstanceLogsResponse() { + _classCallCheck(this, RequestInstanceLogsResponse); + RequestInstanceLogsResponse.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(RequestInstanceLogsResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a RequestInstanceLogsResponse 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/RequestInstanceLogsResponse} obj Optional instance to populate. + * @return {module:model/RequestInstanceLogsResponse} The populated RequestInstanceLogsResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RequestInstanceLogsResponse(); + if (data.hasOwnProperty('request_id')) { + obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to RequestInstanceLogsResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to RequestInstanceLogsResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + return true; + } + }]); +}(); +/** + * @member {Number} request_id + */ +RequestInstanceLogsResponse.prototype['request_id'] = undefined; +var _default = exports["default"] = RequestInstanceLogsResponse; \ No newline at end of file diff --git a/dist/model/ResourceBillingEventsHistoryMetrics.js b/dist/model/ResourceBillingEventsHistoryMetrics.js index 823f0c32..5cf08621 100644 --- a/dist/model/ResourceBillingEventsHistoryMetrics.js +++ b/dist/model/ResourceBillingEventsHistoryMetrics.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceBillingEventsHistoryMetrics model module. * @module model/ResourceBillingEventsHistoryMetrics - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceBillingEventsHistoryMetrics = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceBillingEventsHistoryResponse.js b/dist/model/ResourceBillingEventsHistoryResponse.js index d08a7b2c..2067441e 100644 --- a/dist/model/ResourceBillingEventsHistoryResponse.js +++ b/dist/model/ResourceBillingEventsHistoryResponse.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceBillingEventsHistoryResponse model module. * @module model/ResourceBillingEventsHistoryResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceBillingEventsHistoryResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceBillingResponseForCustomer.js b/dist/model/ResourceBillingResponseForCustomer.js index 325bf2eb..36273ec6 100644 --- a/dist/model/ResourceBillingResponseForCustomer.js +++ b/dist/model/ResourceBillingResponseForCustomer.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceBillingResponseForCustomer model module. * @module model/ResourceBillingResponseForCustomer - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceBillingResponseForCustomer = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelBillingBucketDetailsResources.js b/dist/model/ResourceLevelBillingBucketDetailsResources.js new file mode 100644 index 00000000..5edf868c --- /dev/null +++ b/dist/model/ResourceLevelBillingBucketDetailsResources.js @@ -0,0 +1,105 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ResourceLevelBillingDetailsAttributes = _interopRequireDefault(require("./ResourceLevelBillingDetailsAttributes")); +var _ResourceLevelBillingDetailsMetrics = _interopRequireDefault(require("./ResourceLevelBillingDetailsMetrics")); +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 ResourceLevelBillingBucketDetailsResources model module. + * @module model/ResourceLevelBillingBucketDetailsResources + * @version v1.51.1-alpha + */ +var ResourceLevelBillingBucketDetailsResources = /*#__PURE__*/function () { + /** + * Constructs a new ResourceLevelBillingBucketDetailsResources. + * @alias module:model/ResourceLevelBillingBucketDetailsResources + */ + function ResourceLevelBillingBucketDetailsResources() { + _classCallCheck(this, ResourceLevelBillingBucketDetailsResources); + ResourceLevelBillingBucketDetailsResources.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(ResourceLevelBillingBucketDetailsResources, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ResourceLevelBillingBucketDetailsResources 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/ResourceLevelBillingBucketDetailsResources} obj Optional instance to populate. + * @return {module:model/ResourceLevelBillingBucketDetailsResources} The populated ResourceLevelBillingBucketDetailsResources instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ResourceLevelBillingBucketDetailsResources(); + if (data.hasOwnProperty('attributes')) { + obj['attributes'] = _ResourceLevelBillingDetailsAttributes["default"].constructFromObject(data['attributes']); + } + if (data.hasOwnProperty('metrics')) { + obj['metrics'] = _ResourceLevelBillingDetailsMetrics["default"].constructFromObject(data['metrics']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ResourceLevelBillingBucketDetailsResources. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResourceLevelBillingBucketDetailsResources. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // validate the optional field `attributes` + if (data['attributes']) { + // data not null + _ResourceLevelBillingDetailsAttributes["default"].validateJSON(data['attributes']); + } + // validate the optional field `metrics` + if (data['metrics']) { + // data not null + _ResourceLevelBillingDetailsMetrics["default"].validateJSON(data['metrics']); + } + return true; + } + }]); +}(); +/** + * @member {module:model/ResourceLevelBillingDetailsAttributes} attributes + */ +ResourceLevelBillingBucketDetailsResources.prototype['attributes'] = undefined; + +/** + * @member {module:model/ResourceLevelBillingDetailsMetrics} metrics + */ +ResourceLevelBillingBucketDetailsResources.prototype['metrics'] = undefined; +var _default = exports["default"] = ResourceLevelBillingBucketDetailsResources; \ No newline at end of file diff --git a/dist/model/ResourceLevelBillingDetailsAttributes.js b/dist/model/ResourceLevelBillingDetailsAttributes.js index a3b167a2..df82974e 100644 --- a/dist/model/ResourceLevelBillingDetailsAttributes.js +++ b/dist/model/ResourceLevelBillingDetailsAttributes.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelBillingDetailsAttributes model module. * @module model/ResourceLevelBillingDetailsAttributes - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelBillingDetailsAttributes = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelBillingDetailsMetrics.js b/dist/model/ResourceLevelBillingDetailsMetrics.js index 7d1e8e9b..3bb2feb4 100644 --- a/dist/model/ResourceLevelBillingDetailsMetrics.js +++ b/dist/model/ResourceLevelBillingDetailsMetrics.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelBillingDetailsMetrics model module. * @module model/ResourceLevelBillingDetailsMetrics - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelBillingDetailsMetrics = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelBillingDetailsVM.js b/dist/model/ResourceLevelBillingDetailsVM.js index 6c826d1a..f0417b14 100644 --- a/dist/model/ResourceLevelBillingDetailsVM.js +++ b/dist/model/ResourceLevelBillingDetailsVM.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelBillingDetailsVM model module. * @module model/ResourceLevelBillingDetailsVM - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelBillingDetailsVM = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelBillingDetailsVolume.js b/dist/model/ResourceLevelBillingDetailsVolume.js index 20b28b33..25f2fe90 100644 --- a/dist/model/ResourceLevelBillingDetailsVolume.js +++ b/dist/model/ResourceLevelBillingDetailsVolume.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelBillingDetailsVolume model module. * @module model/ResourceLevelBillingDetailsVolume - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelBillingDetailsVolume = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelBillingDetailsVolumeAttributes.js b/dist/model/ResourceLevelBillingDetailsVolumeAttributes.js index cb83532e..9519f2db 100644 --- a/dist/model/ResourceLevelBillingDetailsVolumeAttributes.js +++ b/dist/model/ResourceLevelBillingDetailsVolumeAttributes.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelBillingDetailsVolumeAttributes model module. * @module model/ResourceLevelBillingDetailsVolumeAttributes - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelBillingDetailsVolumeAttributes = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelBillingDetailsVolumeMetrics.js b/dist/model/ResourceLevelBillingDetailsVolumeMetrics.js index abfbb02e..3ce70f1d 100644 --- a/dist/model/ResourceLevelBillingDetailsVolumeMetrics.js +++ b/dist/model/ResourceLevelBillingDetailsVolumeMetrics.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelBillingDetailsVolumeMetrics model module. * @module model/ResourceLevelBillingDetailsVolumeMetrics - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelBillingDetailsVolumeMetrics = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelBillingHistory.js b/dist/model/ResourceLevelBillingHistory.js index 61cb31b9..130fea3a 100644 --- a/dist/model/ResourceLevelBillingHistory.js +++ b/dist/model/ResourceLevelBillingHistory.js @@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelBillingHistory model module. * @module model/ResourceLevelBillingHistory - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelBillingHistory = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelBillingHistoryResources.js b/dist/model/ResourceLevelBillingHistoryResources.js index 6b652fe5..5b236df1 100644 --- a/dist/model/ResourceLevelBillingHistoryResources.js +++ b/dist/model/ResourceLevelBillingHistoryResources.js @@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelBillingHistoryResources model module. * @module model/ResourceLevelBillingHistoryResources - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelBillingHistoryResources = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelBillingHistoryResourcesCluster.js b/dist/model/ResourceLevelBillingHistoryResourcesCluster.js new file mode 100644 index 00000000..2f1d0b08 --- /dev/null +++ b/dist/model/ResourceLevelBillingHistoryResourcesCluster.js @@ -0,0 +1,138 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ResourceLevelBillingHistoryResources = _interopRequireDefault(require("./ResourceLevelBillingHistoryResources")); +var _ResourceLevelBillingHistoryResponseAttributes = _interopRequireDefault(require("./ResourceLevelBillingHistoryResponseAttributes")); +var _ResourceLevelBillingHistoryResponseMetrics = _interopRequireDefault(require("./ResourceLevelBillingHistoryResponseMetrics")); +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 ResourceLevelBillingHistoryResourcesCluster model module. + * @module model/ResourceLevelBillingHistoryResourcesCluster + * @version v1.51.1-alpha + */ +var ResourceLevelBillingHistoryResourcesCluster = /*#__PURE__*/function () { + /** + * Constructs a new ResourceLevelBillingHistoryResourcesCluster. + * @alias module:model/ResourceLevelBillingHistoryResourcesCluster + */ + function ResourceLevelBillingHistoryResourcesCluster() { + _classCallCheck(this, ResourceLevelBillingHistoryResourcesCluster); + ResourceLevelBillingHistoryResourcesCluster.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(ResourceLevelBillingHistoryResourcesCluster, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ResourceLevelBillingHistoryResourcesCluster 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/ResourceLevelBillingHistoryResourcesCluster} obj Optional instance to populate. + * @return {module:model/ResourceLevelBillingHistoryResourcesCluster} The populated ResourceLevelBillingHistoryResourcesCluster instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ResourceLevelBillingHistoryResourcesCluster(); + if (data.hasOwnProperty('attributes')) { + obj['attributes'] = _ResourceLevelBillingHistoryResponseAttributes["default"].constructFromObject(data['attributes']); + } + if (data.hasOwnProperty('metrics')) { + obj['metrics'] = _ResourceLevelBillingHistoryResponseMetrics["default"].constructFromObject(data['metrics']); + } + if (data.hasOwnProperty('nodes')) { + obj['nodes'] = _ApiClient["default"].convertToType(data['nodes'], [_ResourceLevelBillingHistoryResources["default"]]); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ResourceLevelBillingHistoryResourcesCluster. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResourceLevelBillingHistoryResourcesCluster. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // validate the optional field `attributes` + if (data['attributes']) { + // data not null + _ResourceLevelBillingHistoryResponseAttributes["default"].validateJSON(data['attributes']); + } + // validate the optional field `metrics` + if (data['metrics']) { + // data not null + _ResourceLevelBillingHistoryResponseMetrics["default"].validateJSON(data['metrics']); + } + 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; + _ResourceLevelBillingHistoryResources["default"].validateJSON(item); + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + ; + } + return true; + } + }]); +}(); +/** + * @member {module:model/ResourceLevelBillingHistoryResponseAttributes} attributes + */ +ResourceLevelBillingHistoryResourcesCluster.prototype['attributes'] = undefined; + +/** + * @member {module:model/ResourceLevelBillingHistoryResponseMetrics} metrics + */ +ResourceLevelBillingHistoryResourcesCluster.prototype['metrics'] = undefined; + +/** + * @member {Array.} nodes + */ +ResourceLevelBillingHistoryResourcesCluster.prototype['nodes'] = undefined; +var _default = exports["default"] = ResourceLevelBillingHistoryResourcesCluster; \ No newline at end of file diff --git a/dist/model/ResourceLevelBillingHistoryResponseAttributes.js b/dist/model/ResourceLevelBillingHistoryResponseAttributes.js index 0f95226c..b67f7d8d 100644 --- a/dist/model/ResourceLevelBillingHistoryResponseAttributes.js +++ b/dist/model/ResourceLevelBillingHistoryResponseAttributes.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelBillingHistoryResponseAttributes model module. * @module model/ResourceLevelBillingHistoryResponseAttributes - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelBillingHistoryResponseAttributes = /*#__PURE__*/function () { /** @@ -59,6 +59,9 @@ var ResourceLevelBillingHistoryResponseAttributes = /*#__PURE__*/function () { value: function constructFromObject(data, obj) { if (data) { obj = obj || new ResourceLevelBillingHistoryResponseAttributes(); + if (data.hasOwnProperty('contract_id')) { + obj['contract_id'] = _ApiClient["default"].convertToType(data['contract_id'], 'Number'); + } if (data.hasOwnProperty('id')) { obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); } @@ -99,6 +102,11 @@ var ResourceLevelBillingHistoryResponseAttributes = /*#__PURE__*/function () { } }]); }(); +/** + * @member {Number} contract_id + */ +ResourceLevelBillingHistoryResponseAttributes.prototype['contract_id'] = undefined; + /** * @member {String} id */ diff --git a/dist/model/ResourceLevelBillingHistoryResponseMetrics.js b/dist/model/ResourceLevelBillingHistoryResponseMetrics.js index 950e64ba..0e58c72f 100644 --- a/dist/model/ResourceLevelBillingHistoryResponseMetrics.js +++ b/dist/model/ResourceLevelBillingHistoryResponseMetrics.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelBillingHistoryResponseMetrics model module. * @module model/ResourceLevelBillingHistoryResponseMetrics - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelBillingHistoryResponseMetrics = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelBillingVMDetailsResources.js b/dist/model/ResourceLevelBillingVMDetailsResources.js index ca7b094c..912a86ba 100644 --- a/dist/model/ResourceLevelBillingVMDetailsResources.js +++ b/dist/model/ResourceLevelBillingVMDetailsResources.js @@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelBillingVMDetailsResources model module. * @module model/ResourceLevelBillingVMDetailsResources - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelBillingVMDetailsResources = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelBillingVolumeDetailsResources.js b/dist/model/ResourceLevelBillingVolumeDetailsResources.js index 7c9fcc78..b3a66417 100644 --- a/dist/model/ResourceLevelBillingVolumeDetailsResources.js +++ b/dist/model/ResourceLevelBillingVolumeDetailsResources.js @@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelBillingVolumeDetailsResources model module. * @module model/ResourceLevelBillingVolumeDetailsResources - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelBillingVolumeDetailsResources = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelBucketBillingDetailsResponseModel.js b/dist/model/ResourceLevelBucketBillingDetailsResponseModel.js new file mode 100644 index 00000000..c3b00ded --- /dev/null +++ b/dist/model/ResourceLevelBucketBillingDetailsResponseModel.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ResourceLevelBillingBucketDetailsResources = _interopRequireDefault(require("./ResourceLevelBillingBucketDetailsResources")); +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 ResourceLevelBucketBillingDetailsResponseModel model module. + * @module model/ResourceLevelBucketBillingDetailsResponseModel + * @version v1.51.1-alpha + */ +var ResourceLevelBucketBillingDetailsResponseModel = /*#__PURE__*/function () { + /** + * Constructs a new ResourceLevelBucketBillingDetailsResponseModel. + * @alias module:model/ResourceLevelBucketBillingDetailsResponseModel + */ + function ResourceLevelBucketBillingDetailsResponseModel() { + _classCallCheck(this, ResourceLevelBucketBillingDetailsResponseModel); + ResourceLevelBucketBillingDetailsResponseModel.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(ResourceLevelBucketBillingDetailsResponseModel, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ResourceLevelBucketBillingDetailsResponseModel 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/ResourceLevelBucketBillingDetailsResponseModel} obj Optional instance to populate. + * @return {module:model/ResourceLevelBucketBillingDetailsResponseModel} The populated ResourceLevelBucketBillingDetailsResponseModel instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ResourceLevelBucketBillingDetailsResponseModel(); + if (data.hasOwnProperty('billing_history_bucket_details')) { + obj['billing_history_bucket_details'] = _ResourceLevelBillingBucketDetailsResources["default"].constructFromObject(data['billing_history_bucket_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 ResourceLevelBucketBillingDetailsResponseModel. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResourceLevelBucketBillingDetailsResponseModel. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // validate the optional field `billing_history_bucket_details` + if (data['billing_history_bucket_details']) { + // data not null + _ResourceLevelBillingBucketDetailsResources["default"].validateJSON(data['billing_history_bucket_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/ResourceLevelBillingBucketDetailsResources} billing_history_bucket_details + */ +ResourceLevelBucketBillingDetailsResponseModel.prototype['billing_history_bucket_details'] = undefined; + +/** + * @member {String} message + */ +ResourceLevelBucketBillingDetailsResponseModel.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +ResourceLevelBucketBillingDetailsResponseModel.prototype['status'] = undefined; +var _default = exports["default"] = ResourceLevelBucketBillingDetailsResponseModel; \ No newline at end of file diff --git a/dist/model/ResourceLevelBucketBillingHistoryResponseModel.js b/dist/model/ResourceLevelBucketBillingHistoryResponseModel.js new file mode 100644 index 00000000..00a8e580 --- /dev/null +++ b/dist/model/ResourceLevelBucketBillingHistoryResponseModel.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ResourceLevelBillingHistory = _interopRequireDefault(require("./ResourceLevelBillingHistory")); +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 ResourceLevelBucketBillingHistoryResponseModel model module. + * @module model/ResourceLevelBucketBillingHistoryResponseModel + * @version v1.51.1-alpha + */ +var ResourceLevelBucketBillingHistoryResponseModel = /*#__PURE__*/function () { + /** + * Constructs a new ResourceLevelBucketBillingHistoryResponseModel. + * @alias module:model/ResourceLevelBucketBillingHistoryResponseModel + */ + function ResourceLevelBucketBillingHistoryResponseModel() { + _classCallCheck(this, ResourceLevelBucketBillingHistoryResponseModel); + ResourceLevelBucketBillingHistoryResponseModel.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(ResourceLevelBucketBillingHistoryResponseModel, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ResourceLevelBucketBillingHistoryResponseModel 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/ResourceLevelBucketBillingHistoryResponseModel} obj Optional instance to populate. + * @return {module:model/ResourceLevelBucketBillingHistoryResponseModel} The populated ResourceLevelBucketBillingHistoryResponseModel instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ResourceLevelBucketBillingHistoryResponseModel(); + if (data.hasOwnProperty('billing_history_bucket')) { + obj['billing_history_bucket'] = _ResourceLevelBillingHistory["default"].constructFromObject(data['billing_history_bucket']); + } + 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 ResourceLevelBucketBillingHistoryResponseModel. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResourceLevelBucketBillingHistoryResponseModel. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // validate the optional field `billing_history_bucket` + if (data['billing_history_bucket']) { + // data not null + _ResourceLevelBillingHistory["default"].validateJSON(data['billing_history_bucket']); + } + // 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/ResourceLevelBillingHistory} billing_history_bucket + */ +ResourceLevelBucketBillingHistoryResponseModel.prototype['billing_history_bucket'] = undefined; + +/** + * @member {String} message + */ +ResourceLevelBucketBillingHistoryResponseModel.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +ResourceLevelBucketBillingHistoryResponseModel.prototype['status'] = undefined; +var _default = exports["default"] = ResourceLevelBucketBillingHistoryResponseModel; \ No newline at end of file diff --git a/dist/model/ResourceLevelClusterBillingDetailsResponseModel.js b/dist/model/ResourceLevelClusterBillingDetailsResponseModel.js new file mode 100644 index 00000000..9c997c4a --- /dev/null +++ b/dist/model/ResourceLevelClusterBillingDetailsResponseModel.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ResourceLevelBillingHistoryResourcesCluster = _interopRequireDefault(require("./ResourceLevelBillingHistoryResourcesCluster")); +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 ResourceLevelClusterBillingDetailsResponseModel model module. + * @module model/ResourceLevelClusterBillingDetailsResponseModel + * @version v1.51.1-alpha + */ +var ResourceLevelClusterBillingDetailsResponseModel = /*#__PURE__*/function () { + /** + * Constructs a new ResourceLevelClusterBillingDetailsResponseModel. + * @alias module:model/ResourceLevelClusterBillingDetailsResponseModel + */ + function ResourceLevelClusterBillingDetailsResponseModel() { + _classCallCheck(this, ResourceLevelClusterBillingDetailsResponseModel); + ResourceLevelClusterBillingDetailsResponseModel.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(ResourceLevelClusterBillingDetailsResponseModel, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ResourceLevelClusterBillingDetailsResponseModel 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/ResourceLevelClusterBillingDetailsResponseModel} obj Optional instance to populate. + * @return {module:model/ResourceLevelClusterBillingDetailsResponseModel} The populated ResourceLevelClusterBillingDetailsResponseModel instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ResourceLevelClusterBillingDetailsResponseModel(); + if (data.hasOwnProperty('billing_history_cluster_details')) { + obj['billing_history_cluster_details'] = _ResourceLevelBillingHistoryResourcesCluster["default"].constructFromObject(data['billing_history_cluster_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 ResourceLevelClusterBillingDetailsResponseModel. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResourceLevelClusterBillingDetailsResponseModel. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // validate the optional field `billing_history_cluster_details` + if (data['billing_history_cluster_details']) { + // data not null + _ResourceLevelBillingHistoryResourcesCluster["default"].validateJSON(data['billing_history_cluster_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/ResourceLevelBillingHistoryResourcesCluster} billing_history_cluster_details + */ +ResourceLevelClusterBillingDetailsResponseModel.prototype['billing_history_cluster_details'] = undefined; + +/** + * @member {String} message + */ +ResourceLevelClusterBillingDetailsResponseModel.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +ResourceLevelClusterBillingDetailsResponseModel.prototype['status'] = undefined; +var _default = exports["default"] = ResourceLevelClusterBillingDetailsResponseModel; \ No newline at end of file diff --git a/dist/model/ResourceLevelClusterBillingHistoryResponseModel.js b/dist/model/ResourceLevelClusterBillingHistoryResponseModel.js new file mode 100644 index 00000000..212c152c --- /dev/null +++ b/dist/model/ResourceLevelClusterBillingHistoryResponseModel.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ResourceLevelBillingHistory = _interopRequireDefault(require("./ResourceLevelBillingHistory")); +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 ResourceLevelClusterBillingHistoryResponseModel model module. + * @module model/ResourceLevelClusterBillingHistoryResponseModel + * @version v1.51.1-alpha + */ +var ResourceLevelClusterBillingHistoryResponseModel = /*#__PURE__*/function () { + /** + * Constructs a new ResourceLevelClusterBillingHistoryResponseModel. + * @alias module:model/ResourceLevelClusterBillingHistoryResponseModel + */ + function ResourceLevelClusterBillingHistoryResponseModel() { + _classCallCheck(this, ResourceLevelClusterBillingHistoryResponseModel); + ResourceLevelClusterBillingHistoryResponseModel.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(ResourceLevelClusterBillingHistoryResponseModel, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ResourceLevelClusterBillingHistoryResponseModel 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/ResourceLevelClusterBillingHistoryResponseModel} obj Optional instance to populate. + * @return {module:model/ResourceLevelClusterBillingHistoryResponseModel} The populated ResourceLevelClusterBillingHistoryResponseModel instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ResourceLevelClusterBillingHistoryResponseModel(); + if (data.hasOwnProperty('billing_history_cluster')) { + obj['billing_history_cluster'] = _ResourceLevelBillingHistory["default"].constructFromObject(data['billing_history_cluster']); + } + 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 ResourceLevelClusterBillingHistoryResponseModel. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResourceLevelClusterBillingHistoryResponseModel. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // validate the optional field `billing_history_cluster` + if (data['billing_history_cluster']) { + // data not null + _ResourceLevelBillingHistory["default"].validateJSON(data['billing_history_cluster']); + } + // 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/ResourceLevelBillingHistory} billing_history_cluster + */ +ResourceLevelClusterBillingHistoryResponseModel.prototype['billing_history_cluster'] = undefined; + +/** + * @member {String} message + */ +ResourceLevelClusterBillingHistoryResponseModel.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +ResourceLevelClusterBillingHistoryResponseModel.prototype['status'] = undefined; +var _default = exports["default"] = ResourceLevelClusterBillingHistoryResponseModel; \ No newline at end of file diff --git a/dist/model/ResourceLevelClusterGraphBillingDetailsResponseModel.js b/dist/model/ResourceLevelClusterGraphBillingDetailsResponseModel.js new file mode 100644 index 00000000..955c4791 --- /dev/null +++ b/dist/model/ResourceLevelClusterGraphBillingDetailsResponseModel.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ResourceLevelGraphBillingDetailVolume = _interopRequireDefault(require("./ResourceLevelGraphBillingDetailVolume")); +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 ResourceLevelClusterGraphBillingDetailsResponseModel model module. + * @module model/ResourceLevelClusterGraphBillingDetailsResponseModel + * @version v1.51.1-alpha + */ +var ResourceLevelClusterGraphBillingDetailsResponseModel = /*#__PURE__*/function () { + /** + * Constructs a new ResourceLevelClusterGraphBillingDetailsResponseModel. + * @alias module:model/ResourceLevelClusterGraphBillingDetailsResponseModel + */ + function ResourceLevelClusterGraphBillingDetailsResponseModel() { + _classCallCheck(this, ResourceLevelClusterGraphBillingDetailsResponseModel); + ResourceLevelClusterGraphBillingDetailsResponseModel.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(ResourceLevelClusterGraphBillingDetailsResponseModel, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ResourceLevelClusterGraphBillingDetailsResponseModel 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/ResourceLevelClusterGraphBillingDetailsResponseModel} obj Optional instance to populate. + * @return {module:model/ResourceLevelClusterGraphBillingDetailsResponseModel} The populated ResourceLevelClusterGraphBillingDetailsResponseModel instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ResourceLevelClusterGraphBillingDetailsResponseModel(); + if (data.hasOwnProperty('billing_history_cluster_details')) { + obj['billing_history_cluster_details'] = _ResourceLevelGraphBillingDetailVolume["default"].constructFromObject(data['billing_history_cluster_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 ResourceLevelClusterGraphBillingDetailsResponseModel. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResourceLevelClusterGraphBillingDetailsResponseModel. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // validate the optional field `billing_history_cluster_details` + if (data['billing_history_cluster_details']) { + // data not null + _ResourceLevelGraphBillingDetailVolume["default"].validateJSON(data['billing_history_cluster_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/ResourceLevelGraphBillingDetailVolume} billing_history_cluster_details + */ +ResourceLevelClusterGraphBillingDetailsResponseModel.prototype['billing_history_cluster_details'] = undefined; + +/** + * @member {String} message + */ +ResourceLevelClusterGraphBillingDetailsResponseModel.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +ResourceLevelClusterGraphBillingDetailsResponseModel.prototype['status'] = undefined; +var _default = exports["default"] = ResourceLevelClusterGraphBillingDetailsResponseModel; \ No newline at end of file diff --git a/dist/model/ResourceLevelGraphBillingDetailVolume.js b/dist/model/ResourceLevelGraphBillingDetailVolume.js index a8345b84..ed947daf 100644 --- a/dist/model/ResourceLevelGraphBillingDetailVolume.js +++ b/dist/model/ResourceLevelGraphBillingDetailVolume.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelGraphBillingDetailVolume model module. * @module model/ResourceLevelGraphBillingDetailVolume - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelGraphBillingDetailVolume = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelGraphBillingDetailsAttributes.js b/dist/model/ResourceLevelGraphBillingDetailsAttributes.js index 06cd621f..f96d1ed5 100644 --- a/dist/model/ResourceLevelGraphBillingDetailsAttributes.js +++ b/dist/model/ResourceLevelGraphBillingDetailsAttributes.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelGraphBillingDetailsAttributes model module. * @module model/ResourceLevelGraphBillingDetailsAttributes - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelGraphBillingDetailsAttributes = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelGraphBillingDetailsBucket.js b/dist/model/ResourceLevelGraphBillingDetailsBucket.js new file mode 100644 index 00000000..c6c30a78 --- /dev/null +++ b/dist/model/ResourceLevelGraphBillingDetailsBucket.js @@ -0,0 +1,134 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ResourceLevelBillingBucketDetailsResources = _interopRequireDefault(require("./ResourceLevelBillingBucketDetailsResources")); +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 ResourceLevelGraphBillingDetailsBucket model module. + * @module model/ResourceLevelGraphBillingDetailsBucket + * @version v1.51.1-alpha + */ +var ResourceLevelGraphBillingDetailsBucket = /*#__PURE__*/function () { + /** + * Constructs a new ResourceLevelGraphBillingDetailsBucket. + * @alias module:model/ResourceLevelGraphBillingDetailsBucket + */ + function ResourceLevelGraphBillingDetailsBucket() { + _classCallCheck(this, ResourceLevelGraphBillingDetailsBucket); + ResourceLevelGraphBillingDetailsBucket.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(ResourceLevelGraphBillingDetailsBucket, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ResourceLevelGraphBillingDetailsBucket 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/ResourceLevelGraphBillingDetailsBucket} obj Optional instance to populate. + * @return {module:model/ResourceLevelGraphBillingDetailsBucket} The populated ResourceLevelGraphBillingDetailsBucket instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ResourceLevelGraphBillingDetailsBucket(); + if (data.hasOwnProperty('billing_history')) { + obj['billing_history'] = _ApiClient["default"].convertToType(data['billing_history'], [_ResourceLevelBillingBucketDetailsResources["default"]]); + } + if (data.hasOwnProperty('granularity')) { + obj['granularity'] = _ApiClient["default"].convertToType(data['granularity'], 'Number'); + } + if (data.hasOwnProperty('org_id')) { + obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number'); + } + if (data.hasOwnProperty('total_count')) { + obj['total_count'] = _ApiClient["default"].convertToType(data['total_count'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ResourceLevelGraphBillingDetailsBucket. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResourceLevelGraphBillingDetailsBucket. + */ + }, { + 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; + _ResourceLevelBillingBucketDetailsResources["default"].validateJSON(item); + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + ; + } + return true; + } + }]); +}(); +/** + * @member {Array.} billing_history + */ +ResourceLevelGraphBillingDetailsBucket.prototype['billing_history'] = undefined; + +/** + * @member {Number} granularity + */ +ResourceLevelGraphBillingDetailsBucket.prototype['granularity'] = undefined; + +/** + * @member {Number} org_id + */ +ResourceLevelGraphBillingDetailsBucket.prototype['org_id'] = undefined; + +/** + * @member {Number} total_count + */ +ResourceLevelGraphBillingDetailsBucket.prototype['total_count'] = undefined; +var _default = exports["default"] = ResourceLevelGraphBillingDetailsBucket; \ No newline at end of file diff --git a/dist/model/ResourceLevelGraphBillingDetailsMetrics.js b/dist/model/ResourceLevelGraphBillingDetailsMetrics.js index d31dfb26..9953cac5 100644 --- a/dist/model/ResourceLevelGraphBillingDetailsMetrics.js +++ b/dist/model/ResourceLevelGraphBillingDetailsMetrics.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelGraphBillingDetailsMetrics model module. * @module model/ResourceLevelGraphBillingDetailsMetrics - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelGraphBillingDetailsMetrics = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelGraphBillingDetailsVM.js b/dist/model/ResourceLevelGraphBillingDetailsVM.js index 8d371048..a0388801 100644 --- a/dist/model/ResourceLevelGraphBillingDetailsVM.js +++ b/dist/model/ResourceLevelGraphBillingDetailsVM.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelGraphBillingDetailsVM model module. * @module model/ResourceLevelGraphBillingDetailsVM - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelGraphBillingDetailsVM = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelGraphBillingVMDetailsResources.js b/dist/model/ResourceLevelGraphBillingVMDetailsResources.js index dfb6285b..1c4b844a 100644 --- a/dist/model/ResourceLevelGraphBillingVMDetailsResources.js +++ b/dist/model/ResourceLevelGraphBillingVMDetailsResources.js @@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelGraphBillingVMDetailsResources model module. * @module model/ResourceLevelGraphBillingVMDetailsResources - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelGraphBillingVMDetailsResources = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelGraphBillingVolumeDetailsResources.js b/dist/model/ResourceLevelGraphBillingVolumeDetailsResources.js index 75a545f3..db8c5922 100644 --- a/dist/model/ResourceLevelGraphBillingVolumeDetailsResources.js +++ b/dist/model/ResourceLevelGraphBillingVolumeDetailsResources.js @@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelGraphBillingVolumeDetailsResources model module. * @module model/ResourceLevelGraphBillingVolumeDetailsResources - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelGraphBillingVolumeDetailsResources = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelVMBillingDetailsResponseModel.js b/dist/model/ResourceLevelVMBillingDetailsResponseModel.js index 78f38c2e..d2295326 100644 --- a/dist/model/ResourceLevelVMBillingDetailsResponseModel.js +++ b/dist/model/ResourceLevelVMBillingDetailsResponseModel.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelVMBillingDetailsResponseModel model module. * @module model/ResourceLevelVMBillingDetailsResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelVMBillingDetailsResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelVmBillingHistoryResponseModel.js b/dist/model/ResourceLevelVmBillingHistoryResponseModel.js index 66998e3e..8655fc64 100644 --- a/dist/model/ResourceLevelVmBillingHistoryResponseModel.js +++ b/dist/model/ResourceLevelVmBillingHistoryResponseModel.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelVmBillingHistoryResponseModel model module. * @module model/ResourceLevelVmBillingHistoryResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelVmBillingHistoryResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelVmGraphBillingDetailsResponseModel.js b/dist/model/ResourceLevelVmGraphBillingDetailsResponseModel.js index 344e3e62..a73d819a 100644 --- a/dist/model/ResourceLevelVmGraphBillingDetailsResponseModel.js +++ b/dist/model/ResourceLevelVmGraphBillingDetailsResponseModel.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelVmGraphBillingDetailsResponseModel model module. * @module model/ResourceLevelVmGraphBillingDetailsResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelVmGraphBillingDetailsResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelVolumeBillingDetailsResponseModel.js b/dist/model/ResourceLevelVolumeBillingDetailsResponseModel.js index dadac86b..132337cb 100644 --- a/dist/model/ResourceLevelVolumeBillingDetailsResponseModel.js +++ b/dist/model/ResourceLevelVolumeBillingDetailsResponseModel.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelVolumeBillingDetailsResponseModel model module. * @module model/ResourceLevelVolumeBillingDetailsResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelVolumeBillingDetailsResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelVolumeBillingHistoryResponseModel.js b/dist/model/ResourceLevelVolumeBillingHistoryResponseModel.js index 2b976244..48065a1e 100644 --- a/dist/model/ResourceLevelVolumeBillingHistoryResponseModel.js +++ b/dist/model/ResourceLevelVolumeBillingHistoryResponseModel.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelVolumeBillingHistoryResponseModel model module. * @module model/ResourceLevelVolumeBillingHistoryResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelVolumeBillingHistoryResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceLevelVolumeGraphBillingDetailsResponseModel.js b/dist/model/ResourceLevelVolumeGraphBillingDetailsResponseModel.js index 3dac6c67..d0ebc306 100644 --- a/dist/model/ResourceLevelVolumeGraphBillingDetailsResponseModel.js +++ b/dist/model/ResourceLevelVolumeGraphBillingDetailsResponseModel.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceLevelVolumeGraphBillingDetailsResponseModel model module. * @module model/ResourceLevelVolumeGraphBillingDetailsResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceLevelVolumeGraphBillingDetailsResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/ResourceObjectResponseForCustomer.js b/dist/model/ResourceObjectResponseForCustomer.js index b599a14a..425d6820 100644 --- a/dist/model/ResourceObjectResponseForCustomer.js +++ b/dist/model/ResourceObjectResponseForCustomer.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResourceObjectResponseForCustomer model module. * @module model/ResourceObjectResponseForCustomer - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResourceObjectResponseForCustomer = /*#__PURE__*/function () { /** diff --git a/dist/model/ResponseModel.js b/dist/model/ResponseModel.js index 6461f777..cbbae994 100644 --- a/dist/model/ResponseModel.js +++ b/dist/model/ResponseModel.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The ResponseModel model module. * @module model/ResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var ResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/RolePermissionFields.js b/dist/model/RolePermissionFields.js index adc24936..a8fb4e0b 100644 --- a/dist/model/RolePermissionFields.js +++ b/dist/model/RolePermissionFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The RolePermissionFields model module. * @module model/RolePermissionFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var RolePermissionFields = /*#__PURE__*/function () { /** diff --git a/dist/model/RolePolicyFields.js b/dist/model/RolePolicyFields.js index 5447521b..1f41692d 100644 --- a/dist/model/RolePolicyFields.js +++ b/dist/model/RolePolicyFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The RolePolicyFields model module. * @module model/RolePolicyFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var RolePolicyFields = /*#__PURE__*/function () { /** diff --git a/dist/model/SecondaryColor.js b/dist/model/SecondaryColor.js new file mode 100644 index 00000000..a4a3e9ec --- /dev/null +++ b/dist/model/SecondaryColor.js @@ -0,0 +1,101 @@ +"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 SecondaryColor model module. + * @module model/SecondaryColor + * @version v1.51.1-alpha + */ +var SecondaryColor = /*#__PURE__*/function () { + /** + * Constructs a new SecondaryColor. + * @alias module:model/SecondaryColor + */ + function SecondaryColor() { + _classCallCheck(this, SecondaryColor); + SecondaryColor.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(SecondaryColor, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a SecondaryColor 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/SecondaryColor} obj Optional instance to populate. + * @return {module:model/SecondaryColor} The populated SecondaryColor instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SecondaryColor(); + if (data.hasOwnProperty('dark')) { + obj['dark'] = _ApiClient["default"].convertToType(data['dark'], 'String'); + } + if (data.hasOwnProperty('light')) { + obj['light'] = _ApiClient["default"].convertToType(data['light'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to SecondaryColor. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to SecondaryColor. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // ensure the json data is a string + if (data['dark'] && !(typeof data['dark'] === 'string' || data['dark'] instanceof String)) { + throw new Error("Expected the field `dark` to be a primitive type in the JSON string but got " + data['dark']); + } + // ensure the json data is a string + if (data['light'] && !(typeof data['light'] === 'string' || data['light'] instanceof String)) { + throw new Error("Expected the field `light` to be a primitive type in the JSON string but got " + data['light']); + } + return true; + } + }]); +}(); +/** + * @member {String} dark + */ +SecondaryColor.prototype['dark'] = undefined; + +/** + * @member {String} light + */ +SecondaryColor.prototype['light'] = undefined; +var _default = exports["default"] = SecondaryColor; \ No newline at end of file diff --git a/dist/model/SecurityGroupRule.js b/dist/model/SecurityGroupRule.js index e4e15484..301be94b 100644 --- a/dist/model/SecurityGroupRule.js +++ b/dist/model/SecurityGroupRule.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The SecurityGroupRule model module. * @module model/SecurityGroupRule - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var SecurityGroupRule = /*#__PURE__*/function () { /** diff --git a/dist/model/SecurityGroupRuleFields.js b/dist/model/SecurityGroupRuleFields.js index 91df1bd9..b0845314 100644 --- a/dist/model/SecurityGroupRuleFields.js +++ b/dist/model/SecurityGroupRuleFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The SecurityGroupRuleFields model module. * @module model/SecurityGroupRuleFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var SecurityGroupRuleFields = /*#__PURE__*/function () { /** diff --git a/dist/model/SecurityRulesFieldsForInstance.js b/dist/model/SecurityRulesFieldsForInstance.js new file mode 100644 index 00000000..082da22a --- /dev/null +++ b/dist/model/SecurityRulesFieldsForInstance.js @@ -0,0 +1,169 @@ +"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 SecurityRulesFieldsForInstance model module. + * @module model/SecurityRulesFieldsForInstance + * @version v1.51.1-alpha + */ +var SecurityRulesFieldsForInstance = /*#__PURE__*/function () { + /** + * Constructs a new SecurityRulesFieldsForInstance. + * @alias module:model/SecurityRulesFieldsForInstance + */ + function SecurityRulesFieldsForInstance() { + _classCallCheck(this, SecurityRulesFieldsForInstance); + SecurityRulesFieldsForInstance.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(SecurityRulesFieldsForInstance, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a SecurityRulesFieldsForInstance 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/SecurityRulesFieldsForInstance} obj Optional instance to populate. + * @return {module:model/SecurityRulesFieldsForInstance} The populated SecurityRulesFieldsForInstance instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SecurityRulesFieldsForInstance(); + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); + } + if (data.hasOwnProperty('direction')) { + obj['direction'] = _ApiClient["default"].convertToType(data['direction'], 'String'); + } + if (data.hasOwnProperty('ethertype')) { + obj['ethertype'] = _ApiClient["default"].convertToType(data['ethertype'], 'String'); + } + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('port_range_max')) { + obj['port_range_max'] = _ApiClient["default"].convertToType(data['port_range_max'], 'Number'); + } + if (data.hasOwnProperty('port_range_min')) { + obj['port_range_min'] = _ApiClient["default"].convertToType(data['port_range_min'], 'Number'); + } + if (data.hasOwnProperty('protocol')) { + obj['protocol'] = _ApiClient["default"].convertToType(data['protocol'], 'String'); + } + if (data.hasOwnProperty('remote_ip_prefix')) { + obj['remote_ip_prefix'] = _ApiClient["default"].convertToType(data['remote_ip_prefix'], 'String'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to SecurityRulesFieldsForInstance. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to SecurityRulesFieldsForInstance. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // ensure the json data is a string + if (data['direction'] && !(typeof data['direction'] === 'string' || data['direction'] instanceof String)) { + throw new Error("Expected the field `direction` to be a primitive type in the JSON string but got " + data['direction']); + } + // ensure the json data is a string + if (data['ethertype'] && !(typeof data['ethertype'] === 'string' || data['ethertype'] instanceof String)) { + throw new Error("Expected the field `ethertype` to be a primitive type in the JSON string but got " + data['ethertype']); + } + // ensure the json data is a string + if (data['protocol'] && !(typeof data['protocol'] === 'string' || data['protocol'] instanceof String)) { + throw new Error("Expected the field `protocol` to be a primitive type in the JSON string but got " + data['protocol']); + } + // ensure the json data is a string + if (data['remote_ip_prefix'] && !(typeof data['remote_ip_prefix'] === 'string' || data['remote_ip_prefix'] instanceof String)) { + throw new Error("Expected the field `remote_ip_prefix` to be a primitive type in the JSON string but got " + data['remote_ip_prefix']); + } + // 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 {Date} created_at + */ +SecurityRulesFieldsForInstance.prototype['created_at'] = undefined; + +/** + * @member {String} direction + */ +SecurityRulesFieldsForInstance.prototype['direction'] = undefined; + +/** + * @member {String} ethertype + */ +SecurityRulesFieldsForInstance.prototype['ethertype'] = undefined; + +/** + * @member {Number} id + */ +SecurityRulesFieldsForInstance.prototype['id'] = undefined; + +/** + * @member {Number} port_range_max + */ +SecurityRulesFieldsForInstance.prototype['port_range_max'] = undefined; + +/** + * @member {Number} port_range_min + */ +SecurityRulesFieldsForInstance.prototype['port_range_min'] = undefined; + +/** + * @member {String} protocol + */ +SecurityRulesFieldsForInstance.prototype['protocol'] = undefined; + +/** + * @member {String} remote_ip_prefix + */ +SecurityRulesFieldsForInstance.prototype['remote_ip_prefix'] = undefined; + +/** + * @member {String} status + */ +SecurityRulesFieldsForInstance.prototype['status'] = undefined; +var _default = exports["default"] = SecurityRulesFieldsForInstance; \ No newline at end of file diff --git a/dist/model/SecurityRulesFieldsforInstance.js b/dist/model/SecurityRulesFieldsforInstance.js deleted file mode 100644 index 67a805eb..00000000 --- a/dist/model/SecurityRulesFieldsforInstance.js +++ /dev/null @@ -1,169 +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 SecurityRulesFieldsforInstance model module. - * @module model/SecurityRulesFieldsforInstance - * @version v1.25.0-alpha - */ -var SecurityRulesFieldsforInstance = /*#__PURE__*/function () { - /** - * Constructs a new SecurityRulesFieldsforInstance. - * @alias module:model/SecurityRulesFieldsforInstance - */ - function SecurityRulesFieldsforInstance() { - _classCallCheck(this, SecurityRulesFieldsforInstance); - SecurityRulesFieldsforInstance.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(SecurityRulesFieldsforInstance, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SecurityRulesFieldsforInstance 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/SecurityRulesFieldsforInstance} obj Optional instance to populate. - * @return {module:model/SecurityRulesFieldsforInstance} The populated SecurityRulesFieldsforInstance instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SecurityRulesFieldsforInstance(); - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('direction')) { - obj['direction'] = _ApiClient["default"].convertToType(data['direction'], 'String'); - } - if (data.hasOwnProperty('ethertype')) { - obj['ethertype'] = _ApiClient["default"].convertToType(data['ethertype'], 'String'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('port_range_max')) { - obj['port_range_max'] = _ApiClient["default"].convertToType(data['port_range_max'], 'Number'); - } - if (data.hasOwnProperty('port_range_min')) { - obj['port_range_min'] = _ApiClient["default"].convertToType(data['port_range_min'], 'Number'); - } - if (data.hasOwnProperty('protocol')) { - obj['protocol'] = _ApiClient["default"].convertToType(data['protocol'], 'String'); - } - if (data.hasOwnProperty('remote_ip_prefix')) { - obj['remote_ip_prefix'] = _ApiClient["default"].convertToType(data['remote_ip_prefix'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to SecurityRulesFieldsforInstance. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to SecurityRulesFieldsforInstance. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // ensure the json data is a string - if (data['direction'] && !(typeof data['direction'] === 'string' || data['direction'] instanceof String)) { - throw new Error("Expected the field `direction` to be a primitive type in the JSON string but got " + data['direction']); - } - // ensure the json data is a string - if (data['ethertype'] && !(typeof data['ethertype'] === 'string' || data['ethertype'] instanceof String)) { - throw new Error("Expected the field `ethertype` to be a primitive type in the JSON string but got " + data['ethertype']); - } - // ensure the json data is a string - if (data['protocol'] && !(typeof data['protocol'] === 'string' || data['protocol'] instanceof String)) { - throw new Error("Expected the field `protocol` to be a primitive type in the JSON string but got " + data['protocol']); - } - // ensure the json data is a string - if (data['remote_ip_prefix'] && !(typeof data['remote_ip_prefix'] === 'string' || data['remote_ip_prefix'] instanceof String)) { - throw new Error("Expected the field `remote_ip_prefix` to be a primitive type in the JSON string but got " + data['remote_ip_prefix']); - } - // 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 {Date} created_at - */ -SecurityRulesFieldsforInstance.prototype['created_at'] = undefined; - -/** - * @member {String} direction - */ -SecurityRulesFieldsforInstance.prototype['direction'] = undefined; - -/** - * @member {String} ethertype - */ -SecurityRulesFieldsforInstance.prototype['ethertype'] = undefined; - -/** - * @member {Number} id - */ -SecurityRulesFieldsforInstance.prototype['id'] = undefined; - -/** - * @member {Number} port_range_max - */ -SecurityRulesFieldsforInstance.prototype['port_range_max'] = undefined; - -/** - * @member {Number} port_range_min - */ -SecurityRulesFieldsforInstance.prototype['port_range_min'] = undefined; - -/** - * @member {String} protocol - */ -SecurityRulesFieldsforInstance.prototype['protocol'] = undefined; - -/** - * @member {String} remote_ip_prefix - */ -SecurityRulesFieldsforInstance.prototype['remote_ip_prefix'] = undefined; - -/** - * @member {String} status - */ -SecurityRulesFieldsforInstance.prototype['status'] = undefined; -var _default = exports["default"] = SecurityRulesFieldsforInstance; \ No newline at end of file diff --git a/dist/model/SecurityRulesProtocolFields.js b/dist/model/SecurityRulesProtocolFields.js index 742f94f2..76c8f0c0 100644 --- a/dist/model/SecurityRulesProtocolFields.js +++ b/dist/model/SecurityRulesProtocolFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The SecurityRulesProtocolFields model module. * @module model/SecurityRulesProtocolFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var SecurityRulesProtocolFields = /*#__PURE__*/function () { /** diff --git a/dist/model/ServerlessInferencedBillingHistoryDetailsResponseSchema.js b/dist/model/ServerlessInferencedBillingHistoryDetailsResponseSchema.js new file mode 100644 index 00000000..d7322b02 --- /dev/null +++ b/dist/model/ServerlessInferencedBillingHistoryDetailsResponseSchema.js @@ -0,0 +1,113 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _BillingHistoryServerlessInferenceDetails = _interopRequireDefault(require("./BillingHistoryServerlessInferenceDetails")); +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 ServerlessInferencedBillingHistoryDetailsResponseSchema model module. + * @module model/ServerlessInferencedBillingHistoryDetailsResponseSchema + * @version v1.51.1-alpha + */ +var ServerlessInferencedBillingHistoryDetailsResponseSchema = /*#__PURE__*/function () { + /** + * Constructs a new ServerlessInferencedBillingHistoryDetailsResponseSchema. + * @alias module:model/ServerlessInferencedBillingHistoryDetailsResponseSchema + */ + function ServerlessInferencedBillingHistoryDetailsResponseSchema() { + _classCallCheck(this, ServerlessInferencedBillingHistoryDetailsResponseSchema); + ServerlessInferencedBillingHistoryDetailsResponseSchema.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(ServerlessInferencedBillingHistoryDetailsResponseSchema, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ServerlessInferencedBillingHistoryDetailsResponseSchema 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/ServerlessInferencedBillingHistoryDetailsResponseSchema} obj Optional instance to populate. + * @return {module:model/ServerlessInferencedBillingHistoryDetailsResponseSchema} The populated ServerlessInferencedBillingHistoryDetailsResponseSchema instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ServerlessInferencedBillingHistoryDetailsResponseSchema(); + if (data.hasOwnProperty('billing_history_serverless_inference_details')) { + obj['billing_history_serverless_inference_details'] = _BillingHistoryServerlessInferenceDetails["default"].constructFromObject(data['billing_history_serverless_inference_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 ServerlessInferencedBillingHistoryDetailsResponseSchema. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ServerlessInferencedBillingHistoryDetailsResponseSchema. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // validate the optional field `billing_history_serverless_inference_details` + if (data['billing_history_serverless_inference_details']) { + // data not null + _BillingHistoryServerlessInferenceDetails["default"].validateJSON(data['billing_history_serverless_inference_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/BillingHistoryServerlessInferenceDetails} billing_history_serverless_inference_details + */ +ServerlessInferencedBillingHistoryDetailsResponseSchema.prototype['billing_history_serverless_inference_details'] = undefined; + +/** + * + * @member {String} message + */ +ServerlessInferencedBillingHistoryDetailsResponseSchema.prototype['message'] = undefined; + +/** + * + * @member {Boolean} status + */ +ServerlessInferencedBillingHistoryDetailsResponseSchema.prototype['status'] = undefined; +var _default = exports["default"] = ServerlessInferencedBillingHistoryDetailsResponseSchema; \ No newline at end of file diff --git a/dist/model/SetDefaultsPayload.js b/dist/model/SetDefaultsPayload.js deleted file mode 100644 index 38651e48..00000000 --- a/dist/model/SetDefaultsPayload.js +++ /dev/null @@ -1,126 +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 SetDefaultsPayload model module. - * @module model/SetDefaultsPayload - * @version v1.25.0-alpha - */ -var SetDefaultsPayload = /*#__PURE__*/function () { - /** - * Constructs a new SetDefaultsPayload. - * @alias module:model/SetDefaultsPayload - * @param flavors {Array.} - * @param images {Array.} - */ - function SetDefaultsPayload(flavors, images) { - _classCallCheck(this, SetDefaultsPayload); - SetDefaultsPayload.initialize(this, flavors, images); - } - - /** - * 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(SetDefaultsPayload, null, [{ - key: "initialize", - value: function initialize(obj, flavors, images) { - obj['flavors'] = flavors; - obj['images'] = images; - } - - /** - * Constructs a SetDefaultsPayload 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/SetDefaultsPayload} obj Optional instance to populate. - * @return {module:model/SetDefaultsPayload} The populated SetDefaultsPayload instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SetDefaultsPayload(); - if (data.hasOwnProperty('flavors')) { - obj['flavors'] = _ApiClient["default"].convertToType(data['flavors'], ['Number']); - } - if (data.hasOwnProperty('images')) { - obj['images'] = _ApiClient["default"].convertToType(data['images'], ['Number']); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to SetDefaultsPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to SetDefaultsPayload. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(SetDefaultsPayload.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['flavors'])) { - throw new Error("Expected the field `flavors` to be an array in the JSON data but got " + data['flavors']); - } - // ensure the json data is an array - if (!Array.isArray(data['images'])) { - throw new Error("Expected the field `images` to be an array in the JSON data but got " + data['images']); - } - return true; - } - }]); -}(); -SetDefaultsPayload.RequiredProperties = ["flavors", "images"]; - -/** - * @member {Array.} flavors - */ -SetDefaultsPayload.prototype['flavors'] = undefined; - -/** - * @member {Array.} images - */ -SetDefaultsPayload.prototype['images'] = undefined; -var _default = exports["default"] = SetDefaultsPayload; \ No newline at end of file diff --git a/dist/model/SingleVisibilityUserResponse.js b/dist/model/SingleVisibilityUserResponse.js deleted file mode 100644 index 090cc1b0..00000000 --- a/dist/model/SingleVisibilityUserResponse.js +++ /dev/null @@ -1,128 +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 SingleVisibilityUserResponse model module. - * @module model/SingleVisibilityUserResponse - * @version v1.25.0-alpha - */ -var SingleVisibilityUserResponse = /*#__PURE__*/function () { - /** - * Constructs a new SingleVisibilityUserResponse. - * @alias module:model/SingleVisibilityUserResponse - * @param id {Number} - * @param stockVisible {Boolean} - * @param userId {Number} - */ - function SingleVisibilityUserResponse(id, stockVisible, userId) { - _classCallCheck(this, SingleVisibilityUserResponse); - SingleVisibilityUserResponse.initialize(this, id, stockVisible, userId); - } - - /** - * 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(SingleVisibilityUserResponse, null, [{ - key: "initialize", - value: function initialize(obj, id, stockVisible, userId) { - obj['id'] = id; - obj['stock_visible'] = stockVisible; - obj['user_id'] = userId; - } - - /** - * Constructs a SingleVisibilityUserResponse 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/SingleVisibilityUserResponse} obj Optional instance to populate. - * @return {module:model/SingleVisibilityUserResponse} The populated SingleVisibilityUserResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SingleVisibilityUserResponse(); - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('stock_visible')) { - obj['stock_visible'] = _ApiClient["default"].convertToType(data['stock_visible'], 'Boolean'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to SingleVisibilityUserResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to SingleVisibilityUserResponse. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(SingleVisibilityUserResponse.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(); - } - return true; - } - }]); -}(); -SingleVisibilityUserResponse.RequiredProperties = ["id", "stock_visible", "user_id"]; - -/** - * @member {Number} id - */ -SingleVisibilityUserResponse.prototype['id'] = undefined; - -/** - * @member {Boolean} stock_visible - */ -SingleVisibilityUserResponse.prototype['stock_visible'] = undefined; - -/** - * @member {Number} user_id - */ -SingleVisibilityUserResponse.prototype['user_id'] = undefined; -var _default = exports["default"] = SingleVisibilityUserResponse; \ No newline at end of file diff --git a/dist/model/SnapshotFields.js b/dist/model/SnapshotFields.js index d2ed9b5e..02cb39ca 100644 --- a/dist/model/SnapshotFields.js +++ b/dist/model/SnapshotFields.js @@ -29,12 +29,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The SnapshotFields model module. * @module model/SnapshotFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var SnapshotFields = /*#__PURE__*/function () { /** * Constructs a new SnapshotFields. * @alias module:model/SnapshotFields + * @param createdAt {Date} Creation timestamp * @param description {String} Description of the snapshot * @param id {Number} Snapshot ID * @param isImage {Boolean} Indicates if the snapshot is an image @@ -42,11 +43,12 @@ var SnapshotFields = /*#__PURE__*/function () { * @param regionId {Number} Region where the snapshot will be available * @param size {Number} Size in GB of the snapshot * @param status {String} Status of the snapshot + * @param updatedAt {Date} Last update timestamp * @param vmId {Number} ID of the VM from which the snapshot is created */ - function SnapshotFields(description, id, isImage, name, regionId, size, status, vmId) { + function SnapshotFields(createdAt, description, id, isImage, name, regionId, size, status, updatedAt, vmId) { _classCallCheck(this, SnapshotFields); - SnapshotFields.initialize(this, description, id, isImage, name, regionId, size, status, vmId); + SnapshotFields.initialize(this, createdAt, description, id, isImage, name, regionId, size, status, updatedAt, vmId); } /** @@ -56,7 +58,8 @@ var SnapshotFields = /*#__PURE__*/function () { */ return _createClass(SnapshotFields, null, [{ key: "initialize", - value: function initialize(obj, description, id, isImage, name, regionId, size, status, vmId) { + value: function initialize(obj, createdAt, description, id, isImage, name, regionId, size, status, updatedAt, vmId) { + obj['created_at'] = createdAt; obj['description'] = description; obj['id'] = id; obj['is_image'] = isImage; @@ -64,6 +67,7 @@ var SnapshotFields = /*#__PURE__*/function () { obj['region_id'] = regionId; obj['size'] = size; obj['status'] = status; + obj['updated_at'] = updatedAt; obj['vm_id'] = vmId; } @@ -79,6 +83,9 @@ var SnapshotFields = /*#__PURE__*/function () { value: function constructFromObject(data, obj) { if (data) { obj = obj || new SnapshotFields(); + 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'); } @@ -106,6 +113,9 @@ var SnapshotFields = /*#__PURE__*/function () { 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'); + } if (data.hasOwnProperty('vm_id')) { obj['vm_id'] = _ApiClient["default"].convertToType(data['vm_id'], 'Number'); } @@ -156,7 +166,13 @@ var SnapshotFields = /*#__PURE__*/function () { } }]); }(); -SnapshotFields.RequiredProperties = ["description", "id", "is_image", "name", "region_id", "size", "status", "vm_id"]; +SnapshotFields.RequiredProperties = ["created_at", "description", "id", "is_image", "name", "region_id", "size", "status", "updated_at", "vm_id"]; + +/** + * Creation timestamp + * @member {Date} created_at + */ +SnapshotFields.prototype['created_at'] = undefined; /** * Description of the snapshot @@ -212,6 +228,12 @@ SnapshotFields.prototype['size'] = undefined; */ SnapshotFields.prototype['status'] = undefined; +/** + * Last update timestamp + * @member {Date} updated_at + */ +SnapshotFields.prototype['updated_at'] = undefined; + /** * ID of the VM from which the snapshot is created * @member {Number} vm_id diff --git a/dist/model/SnapshotRestoreRequest.js b/dist/model/SnapshotRestoreRequest.js index 0e71c10f..11674f67 100644 --- a/dist/model/SnapshotRestoreRequest.js +++ b/dist/model/SnapshotRestoreRequest.js @@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The SnapshotRestoreRequest model module. * @module model/SnapshotRestoreRequest - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var SnapshotRestoreRequest = /*#__PURE__*/function () { /** diff --git a/dist/model/SnapshotRetrieve.js b/dist/model/SnapshotRetrieve.js index e7beec9e..a789b5b5 100644 --- a/dist/model/SnapshotRetrieve.js +++ b/dist/model/SnapshotRetrieve.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The SnapshotRetrieve model module. * @module model/SnapshotRetrieve - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var SnapshotRetrieve = /*#__PURE__*/function () { /** diff --git a/dist/model/SnapshotRetrieveFields.js b/dist/model/SnapshotRetrieveFields.js index 084d5e04..ec42e23d 100644 --- a/dist/model/SnapshotRetrieveFields.js +++ b/dist/model/SnapshotRetrieveFields.js @@ -29,12 +29,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The SnapshotRetrieveFields model module. * @module model/SnapshotRetrieveFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var SnapshotRetrieveFields = /*#__PURE__*/function () { /** * Constructs a new SnapshotRetrieveFields. * @alias module:model/SnapshotRetrieveFields + * @param createdAt {Date} Creation timestamp * @param description {String} Description of the snapshot * @param id {Number} Snapshot ID * @param isImage {Boolean} Indicates if the snapshot is an image @@ -42,11 +43,12 @@ var SnapshotRetrieveFields = /*#__PURE__*/function () { * @param regionId {Number} Region where the snapshot will be available * @param size {Number} Size in GB of the snapshot * @param status {String} Status of the snapshot + * @param updatedAt {Date} Last update timestamp * @param vmId {Number} ID of the VM from which the snapshot is created */ - function SnapshotRetrieveFields(description, id, isImage, name, regionId, size, status, vmId) { + function SnapshotRetrieveFields(createdAt, description, id, isImage, name, regionId, size, status, updatedAt, vmId) { _classCallCheck(this, SnapshotRetrieveFields); - SnapshotRetrieveFields.initialize(this, description, id, isImage, name, regionId, size, status, vmId); + SnapshotRetrieveFields.initialize(this, createdAt, description, id, isImage, name, regionId, size, status, updatedAt, vmId); } /** @@ -56,7 +58,8 @@ var SnapshotRetrieveFields = /*#__PURE__*/function () { */ return _createClass(SnapshotRetrieveFields, null, [{ key: "initialize", - value: function initialize(obj, description, id, isImage, name, regionId, size, status, vmId) { + value: function initialize(obj, createdAt, description, id, isImage, name, regionId, size, status, updatedAt, vmId) { + obj['created_at'] = createdAt; obj['description'] = description; obj['id'] = id; obj['is_image'] = isImage; @@ -64,6 +67,7 @@ var SnapshotRetrieveFields = /*#__PURE__*/function () { obj['region_id'] = regionId; obj['size'] = size; obj['status'] = status; + obj['updated_at'] = updatedAt; obj['vm_id'] = vmId; } @@ -79,6 +83,12 @@ var SnapshotRetrieveFields = /*#__PURE__*/function () { value: function constructFromObject(data, obj) { if (data) { obj = obj || new SnapshotRetrieveFields(); + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); + } + if (data.hasOwnProperty('custom_image')) { + obj['custom_image'] = _ApiClient["default"].convertToType(data['custom_image'], 'String'); + } if (data.hasOwnProperty('description')) { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } @@ -91,9 +101,15 @@ var SnapshotRetrieveFields = /*#__PURE__*/function () { 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'); + } if (data.hasOwnProperty('name')) { obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('region')) { + obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String'); + } if (data.hasOwnProperty('region_id')) { obj['region_id'] = _ApiClient["default"].convertToType(data['region_id'], 'Number'); } @@ -103,9 +119,36 @@ var SnapshotRetrieveFields = /*#__PURE__*/function () { 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'); + } + if (data.hasOwnProperty('vm_environment')) { + obj['vm_environment'] = _ApiClient["default"].convertToType(data['vm_environment'], 'String'); + } + if (data.hasOwnProperty('vm_flavor')) { + obj['vm_flavor'] = _ApiClient["default"].convertToType(data['vm_flavor'], 'String'); + } if (data.hasOwnProperty('vm_id')) { obj['vm_id'] = _ApiClient["default"].convertToType(data['vm_id'], 'Number'); } + if (data.hasOwnProperty('vm_image')) { + obj['vm_image'] = _ApiClient["default"].convertToType(data['vm_image'], 'String'); + } + if (data.hasOwnProperty('vm_keypair')) { + obj['vm_keypair'] = _ApiClient["default"].convertToType(data['vm_keypair'], 'String'); + } + if (data.hasOwnProperty('vm_name')) { + obj['vm_name'] = _ApiClient["default"].convertToType(data['vm_name'], 'String'); + } + if (data.hasOwnProperty('vm_status')) { + obj['vm_status'] = _ApiClient["default"].convertToType(data['vm_status'], 'String'); + } + if (data.hasOwnProperty('volume_id')) { + obj['volume_id'] = _ApiClient["default"].convertToType(data['volume_id'], 'String'); + } + if (data.hasOwnProperty('volume_name')) { + obj['volume_name'] = _ApiClient["default"].convertToType(data['volume_name'], 'String'); + } } return obj; } @@ -134,22 +177,78 @@ var SnapshotRetrieveFields = /*#__PURE__*/function () { } finally { _iterator.f(); } + if (data['custom_image'] && !(typeof data['custom_image'] === 'string' || data['custom_image'] instanceof String)) { + throw new Error("Expected the field `custom_image` to be a primitive type in the JSON string but got " + data['custom_image']); + } + // 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['labels'] && !(typeof data['labels'] === 'string' || data['labels'] instanceof String)) { + throw new Error("Expected the field `labels` to be a primitive type in the JSON string 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['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']); + } + // 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['vm_environment'] && !(typeof data['vm_environment'] === 'string' || data['vm_environment'] instanceof String)) { + throw new Error("Expected the field `vm_environment` to be a primitive type in the JSON string but got " + data['vm_environment']); + } + // ensure the json data is a string + if (data['vm_flavor'] && !(typeof data['vm_flavor'] === 'string' || data['vm_flavor'] instanceof String)) { + throw new Error("Expected the field `vm_flavor` to be a primitive type in the JSON string but got " + data['vm_flavor']); + } + // ensure the json data is a string + if (data['vm_image'] && !(typeof data['vm_image'] === 'string' || data['vm_image'] instanceof String)) { + throw new Error("Expected the field `vm_image` to be a primitive type in the JSON string but got " + data['vm_image']); + } + // ensure the json data is a string + if (data['vm_keypair'] && !(typeof data['vm_keypair'] === 'string' || data['vm_keypair'] instanceof String)) { + throw new Error("Expected the field `vm_keypair` to be a primitive type in the JSON string but got " + data['vm_keypair']); + } + // 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']); + } + // ensure the json data is a string + if (data['vm_status'] && !(typeof data['vm_status'] === 'string' || data['vm_status'] instanceof String)) { + throw new Error("Expected the field `vm_status` to be a primitive type in the JSON string but got " + data['vm_status']); + } + // ensure the json data is a string + if (data['volume_id'] && !(typeof data['volume_id'] === 'string' || data['volume_id'] instanceof String)) { + throw new Error("Expected the field `volume_id` to be a primitive type in the JSON string but got " + data['volume_id']); + } + // ensure the json data is a string + if (data['volume_name'] && !(typeof data['volume_name'] === 'string' || data['volume_name'] instanceof String)) { + throw new Error("Expected the field `volume_name` to be a primitive type in the JSON string but got " + data['volume_name']); + } return true; } }]); }(); -SnapshotRetrieveFields.RequiredProperties = ["description", "id", "is_image", "name", "region_id", "size", "status", "vm_id"]; +SnapshotRetrieveFields.RequiredProperties = ["created_at", "description", "id", "is_image", "name", "region_id", "size", "status", "updated_at", "vm_id"]; + +/** + * Creation timestamp + * @member {Date} created_at + */ +SnapshotRetrieveFields.prototype['created_at'] = undefined; + +/** + * + * @member {String} custom_image + */ +SnapshotRetrieveFields.prototype['custom_image'] = undefined; /** * Description of the snapshot @@ -175,12 +274,24 @@ SnapshotRetrieveFields.prototype['id'] = undefined; */ SnapshotRetrieveFields.prototype['is_image'] = undefined; +/** + * + * @member {String} labels + */ +SnapshotRetrieveFields.prototype['labels'] = undefined; + /** * Snapshot name * @member {String} name */ SnapshotRetrieveFields.prototype['name'] = undefined; +/** + * + * @member {String} region + */ +SnapshotRetrieveFields.prototype['region'] = undefined; + /** * Region where the snapshot will be available * @member {Number} region_id @@ -199,9 +310,63 @@ SnapshotRetrieveFields.prototype['size'] = undefined; */ SnapshotRetrieveFields.prototype['status'] = undefined; +/** + * Last update timestamp + * @member {Date} updated_at + */ +SnapshotRetrieveFields.prototype['updated_at'] = undefined; + +/** + * + * @member {String} vm_environment + */ +SnapshotRetrieveFields.prototype['vm_environment'] = undefined; + +/** + * + * @member {String} vm_flavor + */ +SnapshotRetrieveFields.prototype['vm_flavor'] = undefined; + /** * ID of the VM from which the snapshot is created * @member {Number} vm_id */ SnapshotRetrieveFields.prototype['vm_id'] = undefined; + +/** + * + * @member {String} vm_image + */ +SnapshotRetrieveFields.prototype['vm_image'] = undefined; + +/** + * + * @member {String} vm_keypair + */ +SnapshotRetrieveFields.prototype['vm_keypair'] = undefined; + +/** + * + * @member {String} vm_name + */ +SnapshotRetrieveFields.prototype['vm_name'] = undefined; + +/** + * + * @member {String} vm_status + */ +SnapshotRetrieveFields.prototype['vm_status'] = undefined; + +/** + * + * @member {String} volume_id + */ +SnapshotRetrieveFields.prototype['volume_id'] = undefined; + +/** + * + * @member {String} volume_name + */ +SnapshotRetrieveFields.prototype['volume_name'] = undefined; var _default = exports["default"] = SnapshotRetrieveFields; \ No newline at end of file diff --git a/dist/model/Snapshots.js b/dist/model/Snapshots.js index 38072062..694a2949 100644 --- a/dist/model/Snapshots.js +++ b/dist/model/Snapshots.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The Snapshots model module. * @module model/Snapshots - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var Snapshots = /*#__PURE__*/function () { /** diff --git a/dist/model/StartDeployment.js b/dist/model/StartDeployment.js index cebfde05..789977b8 100644 --- a/dist/model/StartDeployment.js +++ b/dist/model/StartDeployment.js @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _DeploymentFieldsforstartdeployments = _interopRequireDefault(require("./DeploymentFieldsforstartdeployments")); +var _DeploymentFieldsForStartDeployments = _interopRequireDefault(require("./DeploymentFieldsForStartDeployments")); 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 StartDeployment model module. * @module model/StartDeployment - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var StartDeployment = /*#__PURE__*/function () { /** @@ -61,7 +61,7 @@ var StartDeployment = /*#__PURE__*/function () { if (data) { obj = obj || new StartDeployment(); if (data.hasOwnProperty('deployment')) { - obj['deployment'] = _DeploymentFieldsforstartdeployments["default"].constructFromObject(data['deployment']); + obj['deployment'] = _DeploymentFieldsForStartDeployments["default"].constructFromObject(data['deployment']); } if (data.hasOwnProperty('message')) { obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); @@ -84,7 +84,7 @@ var StartDeployment = /*#__PURE__*/function () { // validate the optional field `deployment` if (data['deployment']) { // data not null - _DeploymentFieldsforstartdeployments["default"].validateJSON(data['deployment']); + _DeploymentFieldsForStartDeployments["default"].validateJSON(data['deployment']); } // ensure the json data is a string if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) { @@ -95,7 +95,7 @@ var StartDeployment = /*#__PURE__*/function () { }]); }(); /** - * @member {module:model/DeploymentFieldsforstartdeployments} deployment + * @member {module:model/DeploymentFieldsForStartDeployments} deployment */ StartDeployment.prototype['deployment'] = undefined; diff --git a/dist/model/StartDeploymentPayload.js b/dist/model/StartDeploymentPayload.js index e95bba70..a333ad27 100644 --- a/dist/model/StartDeploymentPayload.js +++ b/dist/model/StartDeploymentPayload.js @@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The StartDeploymentPayload model module. * @module model/StartDeploymentPayload - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var StartDeploymentPayload = /*#__PURE__*/function () { /** diff --git a/dist/model/StockVisibilityUserListResponse.js b/dist/model/StockVisibilityUserListResponse.js deleted file mode 100644 index a354a744..00000000 --- a/dist/model/StockVisibilityUserListResponse.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 _SingleVisibilityUserResponse = _interopRequireDefault(require("./SingleVisibilityUserResponse")); -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 StockVisibilityUserListResponse model module. - * @module model/StockVisibilityUserListResponse - * @version v1.25.0-alpha - */ -var StockVisibilityUserListResponse = /*#__PURE__*/function () { - /** - * Constructs a new StockVisibilityUserListResponse. - * @alias module:model/StockVisibilityUserListResponse - */ - function StockVisibilityUserListResponse() { - _classCallCheck(this, StockVisibilityUserListResponse); - StockVisibilityUserListResponse.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(StockVisibilityUserListResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a StockVisibilityUserListResponse 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/StockVisibilityUserListResponse} obj Optional instance to populate. - * @return {module:model/StockVisibilityUserListResponse} The populated StockVisibilityUserListResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new StockVisibilityUserListResponse(); - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('users')) { - obj['users'] = _ApiClient["default"].convertToType(data['users'], [_SingleVisibilityUserResponse["default"]]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to StockVisibilityUserListResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to StockVisibilityUserListResponse. - */ - }, { - 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['users']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['users'])) { - throw new Error("Expected the field `users` to be an array in the JSON data but got " + data['users']); - } - // validate the optional field `users` (array) - var _iterator = _createForOfIteratorHelper(data['users']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _SingleVisibilityUserResponse["default"].validateJSON(item); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - ; - } - return true; - } - }]); -}(); -/** - * @member {String} message - */ -StockVisibilityUserListResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -StockVisibilityUserListResponse.prototype['status'] = undefined; - -/** - * @member {Array.} users - */ -StockVisibilityUserListResponse.prototype['users'] = undefined; -var _default = exports["default"] = StockVisibilityUserListResponse; \ No newline at end of file diff --git a/dist/model/StockVisibilityUserPayload.js b/dist/model/StockVisibilityUserPayload.js deleted file mode 100644 index e0107921..00000000 --- a/dist/model/StockVisibilityUserPayload.js +++ /dev/null @@ -1,112 +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 StockVisibilityUserPayload model module. - * @module model/StockVisibilityUserPayload - * @version v1.25.0-alpha - */ -var StockVisibilityUserPayload = /*#__PURE__*/function () { - /** - * Constructs a new StockVisibilityUserPayload. - * @alias module:model/StockVisibilityUserPayload - * @param userIds {Array.} - */ - function StockVisibilityUserPayload(userIds) { - _classCallCheck(this, StockVisibilityUserPayload); - StockVisibilityUserPayload.initialize(this, userIds); - } - - /** - * 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(StockVisibilityUserPayload, null, [{ - key: "initialize", - value: function initialize(obj, userIds) { - obj['user_ids'] = userIds; - } - - /** - * Constructs a StockVisibilityUserPayload 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/StockVisibilityUserPayload} obj Optional instance to populate. - * @return {module:model/StockVisibilityUserPayload} The populated StockVisibilityUserPayload instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new StockVisibilityUserPayload(); - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['Number']); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to StockVisibilityUserPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to StockVisibilityUserPayload. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(StockVisibilityUserPayload.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['user_ids'])) { - throw new Error("Expected the field `user_ids` to be an array in the JSON data but got " + data['user_ids']); - } - return true; - } - }]); -}(); -StockVisibilityUserPayload.RequiredProperties = ["user_ids"]; - -/** - * @member {Array.} user_ids - */ -StockVisibilityUserPayload.prototype['user_ids'] = undefined; -var _default = exports["default"] = StockVisibilityUserPayload; \ No newline at end of file diff --git a/dist/model/SubResourceGraphBillingDetailsMetrics.js b/dist/model/SubResourceGraphBillingDetailsMetrics.js index 23e48f71..ac4f5e47 100644 --- a/dist/model/SubResourceGraphBillingDetailsMetrics.js +++ b/dist/model/SubResourceGraphBillingDetailsMetrics.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The SubResourceGraphBillingDetailsMetrics model module. * @module model/SubResourceGraphBillingDetailsMetrics - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var SubResourceGraphBillingDetailsMetrics = /*#__PURE__*/function () { /** diff --git a/dist/model/SubResourcesCostsResponseModel.js b/dist/model/SubResourcesCostsResponseModel.js index ba70f5da..58d7f74b 100644 --- a/dist/model/SubResourcesCostsResponseModel.js +++ b/dist/model/SubResourcesCostsResponseModel.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The SubResourcesCostsResponseModel model module. * @module model/SubResourcesCostsResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var SubResourcesCostsResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/SubResourcesGraphBillingHistoryFields.js b/dist/model/SubResourcesGraphBillingHistoryFields.js index e635c382..3e4d3625 100644 --- a/dist/model/SubResourcesGraphBillingHistoryFields.js +++ b/dist/model/SubResourcesGraphBillingHistoryFields.js @@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The SubResourcesGraphBillingHistoryFields model module. * @module model/SubResourcesGraphBillingHistoryFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var SubResourcesGraphBillingHistoryFields = /*#__PURE__*/function () { /** diff --git a/dist/model/SubResourcesGraphResponseModel.js b/dist/model/SubResourcesGraphResponseModel.js index 0f41a536..5bdb63c2 100644 --- a/dist/model/SubResourcesGraphResponseModel.js +++ b/dist/model/SubResourcesGraphResponseModel.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The SubResourcesGraphResponseModel model module. * @module model/SubResourcesGraphResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var SubResourcesGraphResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/SubscribeOrUnsubscribeUpdatePayload.js b/dist/model/SubscribeOrUnsubscribeUpdatePayload.js new file mode 100644 index 00000000..7b3d38c0 --- /dev/null +++ b/dist/model/SubscribeOrUnsubscribeUpdatePayload.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 _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 SubscribeOrUnsubscribeUpdatePayload model module. + * @module model/SubscribeOrUnsubscribeUpdatePayload + * @version v1.51.1-alpha + */ +var SubscribeOrUnsubscribeUpdatePayload = /*#__PURE__*/function () { + /** + * Constructs a new SubscribeOrUnsubscribeUpdatePayload. + * @alias module:model/SubscribeOrUnsubscribeUpdatePayload + * @param subscribe {Boolean} `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails. + */ + function SubscribeOrUnsubscribeUpdatePayload(subscribe) { + _classCallCheck(this, SubscribeOrUnsubscribeUpdatePayload); + SubscribeOrUnsubscribeUpdatePayload.initialize(this, subscribe); + } + + /** + * 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(SubscribeOrUnsubscribeUpdatePayload, null, [{ + key: "initialize", + value: function initialize(obj, subscribe) { + obj['subscribe'] = subscribe; + } + + /** + * Constructs a SubscribeOrUnsubscribeUpdatePayload 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/SubscribeOrUnsubscribeUpdatePayload} obj Optional instance to populate. + * @return {module:model/SubscribeOrUnsubscribeUpdatePayload} The populated SubscribeOrUnsubscribeUpdatePayload instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SubscribeOrUnsubscribeUpdatePayload(); + if (data.hasOwnProperty('subscribe')) { + obj['subscribe'] = _ApiClient["default"].convertToType(data['subscribe'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to SubscribeOrUnsubscribeUpdatePayload. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to SubscribeOrUnsubscribeUpdatePayload. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(SubscribeOrUnsubscribeUpdatePayload.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(); + } + return true; + } + }]); +}(); +SubscribeOrUnsubscribeUpdatePayload.RequiredProperties = ["subscribe"]; + +/** + * `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails. + * @member {Boolean} subscribe + */ +SubscribeOrUnsubscribeUpdatePayload.prototype['subscribe'] = undefined; +var _default = exports["default"] = SubscribeOrUnsubscribeUpdatePayload; \ No newline at end of file diff --git a/dist/model/Subscribeorunsubscribeupdatepayload.js b/dist/model/Subscribeorunsubscribeupdatepayload.js deleted file mode 100644 index 4379af59..00000000 --- a/dist/model/Subscribeorunsubscribeupdatepayload.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 _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 Subscribeorunsubscribeupdatepayload model module. - * @module model/Subscribeorunsubscribeupdatepayload - * @version v1.25.0-alpha - */ -var Subscribeorunsubscribeupdatepayload = /*#__PURE__*/function () { - /** - * Constructs a new Subscribeorunsubscribeupdatepayload. - * @alias module:model/Subscribeorunsubscribeupdatepayload - * @param subscribe {Boolean} `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails. - */ - function Subscribeorunsubscribeupdatepayload(subscribe) { - _classCallCheck(this, Subscribeorunsubscribeupdatepayload); - Subscribeorunsubscribeupdatepayload.initialize(this, subscribe); - } - - /** - * 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(Subscribeorunsubscribeupdatepayload, null, [{ - key: "initialize", - value: function initialize(obj, subscribe) { - obj['subscribe'] = subscribe; - } - - /** - * Constructs a Subscribeorunsubscribeupdatepayload 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/Subscribeorunsubscribeupdatepayload} obj Optional instance to populate. - * @return {module:model/Subscribeorunsubscribeupdatepayload} The populated Subscribeorunsubscribeupdatepayload instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Subscribeorunsubscribeupdatepayload(); - if (data.hasOwnProperty('subscribe')) { - obj['subscribe'] = _ApiClient["default"].convertToType(data['subscribe'], 'Boolean'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to Subscribeorunsubscribeupdatepayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Subscribeorunsubscribeupdatepayload. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(Subscribeorunsubscribeupdatepayload.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(); - } - return true; - } - }]); -}(); -Subscribeorunsubscribeupdatepayload.RequiredProperties = ["subscribe"]; - -/** - * `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails. - * @member {Boolean} subscribe - */ -Subscribeorunsubscribeupdatepayload.prototype['subscribe'] = undefined; -var _default = exports["default"] = Subscribeorunsubscribeupdatepayload; \ No newline at end of file diff --git a/dist/model/SuccessResponseModel.js b/dist/model/SuccessResponseModel.js deleted file mode 100644 index 49f4bff3..00000000 --- a/dist/model/SuccessResponseModel.js +++ /dev/null @@ -1,100 +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 SuccessResponseModel model module. - * @module model/SuccessResponseModel - * @version v1.25.0-alpha - */ -var SuccessResponseModel = /*#__PURE__*/function () { - /** - * Constructs a new SuccessResponseModel. - * @alias module:model/SuccessResponseModel - */ - function SuccessResponseModel() { - _classCallCheck(this, SuccessResponseModel); - SuccessResponseModel.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(SuccessResponseModel, null, [{ - key: "initialize", - value: function initialize(obj) { - obj['status'] = false; - } - - /** - * Constructs a SuccessResponseModel 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/SuccessResponseModel} obj Optional instance to populate. - * @return {module:model/SuccessResponseModel} The populated SuccessResponseModel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SuccessResponseModel(); - 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 SuccessResponseModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to SuccessResponseModel. - */ - }, { - 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']); - } - return true; - } - }]); -}(); -/** - * @member {String} message - */ -SuccessResponseModel.prototype['message'] = undefined; - -/** - * @member {Boolean} status - * @default false - */ -SuccessResponseModel.prototype['status'] = false; -var _default = exports["default"] = SuccessResponseModel; \ No newline at end of file diff --git a/dist/model/Template.js b/dist/model/Template.js index 85ecc960..5f87ed02 100644 --- a/dist/model/Template.js +++ b/dist/model/Template.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The Template model module. * @module model/Template - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var Template = /*#__PURE__*/function () { /** diff --git a/dist/model/TemplateFields.js b/dist/model/TemplateFields.js index cedc7789..71c2a8e6 100644 --- a/dist/model/TemplateFields.js +++ b/dist/model/TemplateFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The TemplateFields model module. * @module model/TemplateFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var TemplateFields = /*#__PURE__*/function () { /** diff --git a/dist/model/Templates.js b/dist/model/Templates.js index a98a4dc8..98c480b3 100644 --- a/dist/model/Templates.js +++ b/dist/model/Templates.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The Templates model module. * @module model/Templates - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var Templates = /*#__PURE__*/function () { /** diff --git a/dist/model/TokenBasedBillingHistoryResponse.js b/dist/model/TokenBasedBillingHistoryResponse.js new file mode 100644 index 00000000..dd5f6eec --- /dev/null +++ b/dist/model/TokenBasedBillingHistoryResponse.js @@ -0,0 +1,113 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _BillingHistoryServerlessInference = _interopRequireDefault(require("./BillingHistoryServerlessInference")); +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 TokenBasedBillingHistoryResponse model module. + * @module model/TokenBasedBillingHistoryResponse + * @version v1.51.1-alpha + */ +var TokenBasedBillingHistoryResponse = /*#__PURE__*/function () { + /** + * Constructs a new TokenBasedBillingHistoryResponse. + * @alias module:model/TokenBasedBillingHistoryResponse + */ + function TokenBasedBillingHistoryResponse() { + _classCallCheck(this, TokenBasedBillingHistoryResponse); + TokenBasedBillingHistoryResponse.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(TokenBasedBillingHistoryResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a TokenBasedBillingHistoryResponse 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/TokenBasedBillingHistoryResponse} obj Optional instance to populate. + * @return {module:model/TokenBasedBillingHistoryResponse} The populated TokenBasedBillingHistoryResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new TokenBasedBillingHistoryResponse(); + if (data.hasOwnProperty('billing_history_serverless_inference')) { + obj['billing_history_serverless_inference'] = _BillingHistoryServerlessInference["default"].constructFromObject(data['billing_history_serverless_inference']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('success')) { + obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to TokenBasedBillingHistoryResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to TokenBasedBillingHistoryResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // validate the optional field `billing_history_serverless_inference` + if (data['billing_history_serverless_inference']) { + // data not null + _BillingHistoryServerlessInference["default"].validateJSON(data['billing_history_serverless_inference']); + } + // 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/BillingHistoryServerlessInference} billing_history_serverless_inference + */ +TokenBasedBillingHistoryResponse.prototype['billing_history_serverless_inference'] = undefined; + +/** + * + * @member {String} message + */ +TokenBasedBillingHistoryResponse.prototype['message'] = undefined; + +/** + * + * @member {Boolean} success + */ +TokenBasedBillingHistoryResponse.prototype['success'] = undefined; +var _default = exports["default"] = TokenBasedBillingHistoryResponse; \ No newline at end of file diff --git a/dist/model/TokenFields.js b/dist/model/TokenFields.js deleted file mode 100644 index 4d9836e0..00000000 --- a/dist/model/TokenFields.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 TokenFields model module. - * @module model/TokenFields - * @version v1.25.0-alpha - */ -var TokenFields = /*#__PURE__*/function () { - /** - * Constructs a new TokenFields. - * @alias module:model/TokenFields - */ - function TokenFields() { - _classCallCheck(this, TokenFields); - TokenFields.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(TokenFields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a TokenFields 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/TokenFields} obj Optional instance to populate. - * @return {module:model/TokenFields} The populated TokenFields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new TokenFields(); - if (data.hasOwnProperty('access_token')) { - obj['access_token'] = _ApiClient["default"].convertToType(data['access_token'], 'String'); - } - if (data.hasOwnProperty('id_token')) { - obj['id_token'] = _ApiClient["default"].convertToType(data['id_token'], 'String'); - } - if (data.hasOwnProperty('refresh_token')) { - obj['refresh_token'] = _ApiClient["default"].convertToType(data['refresh_token'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to TokenFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to TokenFields. - */ - }, { - 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']); - } - // ensure the json data is a string - if (data['id_token'] && !(typeof data['id_token'] === 'string' || data['id_token'] instanceof String)) { - throw new Error("Expected the field `id_token` to be a primitive type in the JSON string but got " + data['id_token']); - } - // ensure the json data is a string - if (data['refresh_token'] && !(typeof data['refresh_token'] === 'string' || data['refresh_token'] instanceof String)) { - throw new Error("Expected the field `refresh_token` to be a primitive type in the JSON string but got " + data['refresh_token']); - } - return true; - } - }]); -}(); -/** - * @member {String} access_token - */ -TokenFields.prototype['access_token'] = undefined; - -/** - * @member {String} id_token - */ -TokenFields.prototype['id_token'] = undefined; - -/** - * @member {String} refresh_token - */ -TokenFields.prototype['refresh_token'] = undefined; -var _default = exports["default"] = TokenFields; \ No newline at end of file diff --git a/dist/model/URIs.js b/dist/model/URIs.js new file mode 100644 index 00000000..7eb5d0d2 --- /dev/null +++ b/dist/model/URIs.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 URIs model module. + * @module model/URIs + * @version v1.51.1-alpha + */ +var URIs = /*#__PURE__*/function () { + /** + * Constructs a new URIs. + * @alias module:model/URIs + */ + function URIs() { + _classCallCheck(this, URIs); + URIs.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(URIs, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a URIs 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/URIs} obj Optional instance to populate. + * @return {module:model/URIs} The populated URIs instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new URIs(); + if (data.hasOwnProperty('api_doc')) { + obj['api_doc'] = _ApiClient["default"].convertToType(data['api_doc'], 'String'); + } + if (data.hasOwnProperty('api_uri')) { + obj['api_uri'] = _ApiClient["default"].convertToType(data['api_uri'], 'String'); + } + if (data.hasOwnProperty('auth')) { + obj['auth'] = _ApiClient["default"].convertToType(data['auth'], 'String'); + } + if (data.hasOwnProperty('console')) { + obj['console'] = _ApiClient["default"].convertToType(data['console'], 'String'); + } + if (data.hasOwnProperty('contact_us')) { + obj['contact_us'] = _ApiClient["default"].convertToType(data['contact_us'], 'String'); + } + if (data.hasOwnProperty('doc')) { + obj['doc'] = _ApiClient["default"].convertToType(data['doc'], 'String'); + } + if (data.hasOwnProperty('landing_page')) { + obj['landing_page'] = _ApiClient["default"].convertToType(data['landing_page'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to URIs. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to URIs. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // ensure the json data is a string + if (data['api_doc'] && !(typeof data['api_doc'] === 'string' || data['api_doc'] instanceof String)) { + throw new Error("Expected the field `api_doc` to be a primitive type in the JSON string but got " + data['api_doc']); + } + // ensure the json data is a string + if (data['api_uri'] && !(typeof data['api_uri'] === 'string' || data['api_uri'] instanceof String)) { + throw new Error("Expected the field `api_uri` to be a primitive type in the JSON string but got " + data['api_uri']); + } + // ensure the json data is a string + if (data['auth'] && !(typeof data['auth'] === 'string' || data['auth'] instanceof String)) { + throw new Error("Expected the field `auth` to be a primitive type in the JSON string but got " + data['auth']); + } + // ensure the json data is a string + if (data['console'] && !(typeof data['console'] === 'string' || data['console'] instanceof String)) { + throw new Error("Expected the field `console` to be a primitive type in the JSON string but got " + data['console']); + } + // ensure the json data is a string + if (data['contact_us'] && !(typeof data['contact_us'] === 'string' || data['contact_us'] instanceof String)) { + throw new Error("Expected the field `contact_us` to be a primitive type in the JSON string but got " + data['contact_us']); + } + // ensure the json data is a string + if (data['doc'] && !(typeof data['doc'] === 'string' || data['doc'] instanceof String)) { + throw new Error("Expected the field `doc` to be a primitive type in the JSON string but got " + data['doc']); + } + // ensure the json data is a string + if (data['landing_page'] && !(typeof data['landing_page'] === 'string' || data['landing_page'] instanceof String)) { + throw new Error("Expected the field `landing_page` to be a primitive type in the JSON string but got " + data['landing_page']); + } + return true; + } + }]); +}(); +/** + * @member {String} api_doc + */ +URIs.prototype['api_doc'] = undefined; + +/** + * @member {String} api_uri + */ +URIs.prototype['api_uri'] = undefined; + +/** + * @member {String} auth + */ +URIs.prototype['auth'] = undefined; + +/** + * @member {String} console + */ +URIs.prototype['console'] = undefined; + +/** + * @member {String} contact_us + */ +URIs.prototype['contact_us'] = undefined; + +/** + * @member {String} doc + */ +URIs.prototype['doc'] = undefined; + +/** + * @member {String} landing_page + */ +URIs.prototype['landing_page'] = undefined; +var _default = exports["default"] = URIs; \ No newline at end of file diff --git a/dist/model/UpdateClusterNodeGroupPayload.js b/dist/model/UpdateClusterNodeGroupPayload.js new file mode 100644 index 00000000..1d971d72 --- /dev/null +++ b/dist/model/UpdateClusterNodeGroupPayload.js @@ -0,0 +1,106 @@ +"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 UpdateClusterNodeGroupPayload model module. + * @module model/UpdateClusterNodeGroupPayload + * @version v1.51.1-alpha + */ +var UpdateClusterNodeGroupPayload = /*#__PURE__*/function () { + /** + * Constructs a new UpdateClusterNodeGroupPayload. + * @alias module:model/UpdateClusterNodeGroupPayload + */ + function UpdateClusterNodeGroupPayload() { + _classCallCheck(this, UpdateClusterNodeGroupPayload); + UpdateClusterNodeGroupPayload.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(UpdateClusterNodeGroupPayload, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a UpdateClusterNodeGroupPayload 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/UpdateClusterNodeGroupPayload} obj Optional instance to populate. + * @return {module:model/UpdateClusterNodeGroupPayload} The populated UpdateClusterNodeGroupPayload instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateClusterNodeGroupPayload(); + if (data.hasOwnProperty('firewall_ids')) { + obj['firewall_ids'] = _ApiClient["default"].convertToType(data['firewall_ids'], ['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'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UpdateClusterNodeGroupPayload. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateClusterNodeGroupPayload. + */ + }, { + 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']); + } + return true; + } + }]); +}(); +/** + * IDs of the firewalls to apply to all nodes in this node group + * @member {Array.} firewall_ids + */ +UpdateClusterNodeGroupPayload.prototype['firewall_ids'] = undefined; + +/** + * @member {Number} max_count + */ +UpdateClusterNodeGroupPayload.prototype['max_count'] = undefined; + +/** + * @member {Number} min_count + */ +UpdateClusterNodeGroupPayload.prototype['min_count'] = undefined; +var _default = exports["default"] = UpdateClusterNodeGroupPayload; \ No newline at end of file diff --git a/dist/model/UpdateContractPayload.js b/dist/model/UpdateContractPayload.js deleted file mode 100644 index 64b88e3f..00000000 --- a/dist/model/UpdateContractPayload.js +++ /dev/null @@ -1,168 +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 UpdateContractPayload model module. - * @module model/UpdateContractPayload - * @version v1.25.0-alpha - */ -var UpdateContractPayload = /*#__PURE__*/function () { - /** - * Constructs a new UpdateContractPayload. - * @alias module:model/UpdateContractPayload - * @param discountResources {Array.} - * @param expirationPolicy {Number} - */ - function UpdateContractPayload(discountResources, expirationPolicy) { - _classCallCheck(this, UpdateContractPayload); - UpdateContractPayload.initialize(this, discountResources, expirationPolicy); - } - - /** - * 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(UpdateContractPayload, null, [{ - key: "initialize", - value: function initialize(obj, discountResources, expirationPolicy) { - obj['discount_resources'] = discountResources; - obj['expiration_policy'] = expirationPolicy; - } - - /** - * Constructs a UpdateContractPayload 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/UpdateContractPayload} obj Optional instance to populate. - * @return {module:model/UpdateContractPayload} The populated UpdateContractPayload instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateContractPayload(); - 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('start_date')) { - obj['start_date'] = _ApiClient["default"].convertToType(data['start_date'], 'Date'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to UpdateContractPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateContractPayload. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(UpdateContractPayload.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; - } - }]); -}(); -UpdateContractPayload.RequiredProperties = ["discount_resources", "expiration_policy"]; - -/** - * @member {String} description - */ -UpdateContractPayload.prototype['description'] = undefined; - -/** - * @member {Array.} discount_resources - */ -UpdateContractPayload.prototype['discount_resources'] = undefined; - -/** - * @member {Date} end_date - */ -UpdateContractPayload.prototype['end_date'] = undefined; - -/** - * @member {Number} expiration_policy - */ -UpdateContractPayload.prototype['expiration_policy'] = undefined; - -/** - * @member {Date} start_date - */ -UpdateContractPayload.prototype['start_date'] = undefined; -var _default = exports["default"] = UpdateContractPayload; \ No newline at end of file diff --git a/dist/model/UpdateDiscountsPayload.js b/dist/model/UpdateDiscountsPayload.js deleted file mode 100644 index ade90dcc..00000000 --- a/dist/model/UpdateDiscountsPayload.js +++ /dev/null @@ -1,160 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -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 UpdateDiscountsPayload model module. - * @module model/UpdateDiscountsPayload - * @version v1.25.0-alpha - */ -var UpdateDiscountsPayload = /*#__PURE__*/function () { - /** - * Constructs a new UpdateDiscountsPayload. - * @alias module:model/UpdateDiscountsPayload - * @param discountResources {Array.} - * @param discountStatus {String} - */ - function UpdateDiscountsPayload(discountResources, discountStatus) { - _classCallCheck(this, UpdateDiscountsPayload); - UpdateDiscountsPayload.initialize(this, 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(UpdateDiscountsPayload, null, [{ - key: "initialize", - value: function initialize(obj, discountResources, discountStatus) { - obj['discount_resources'] = discountResources; - obj['discount_status'] = discountStatus; - } - - /** - * Constructs a UpdateDiscountsPayload 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/UpdateDiscountsPayload} obj Optional instance to populate. - * @return {module:model/UpdateDiscountsPayload} The populated UpdateDiscountsPayload instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateDiscountsPayload(); - 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 UpdateDiscountsPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateDiscountsPayload. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(UpdateDiscountsPayload.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['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; - _DiscountResourcePayload["default"].validateJSON(item); - } - } catch (err) { - _iterator2.e(err); - } finally { - _iterator2.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; - } - }]); -}(); -UpdateDiscountsPayload.RequiredProperties = ["discount_resources", "discount_status"]; - -/** - * @member {Array.} discount_resources - */ -UpdateDiscountsPayload.prototype['discount_resources'] = undefined; - -/** - * @member {String} discount_status - */ -UpdateDiscountsPayload.prototype['discount_status'] = undefined; - -/** - * @member {Date} end_date - */ -UpdateDiscountsPayload.prototype['end_date'] = undefined; - -/** - * @member {Date} start_date - */ -UpdateDiscountsPayload.prototype['start_date'] = undefined; -var _default = exports["default"] = UpdateDiscountsPayload; \ No newline at end of file diff --git a/dist/model/UpdateDiscountsStatusPayload.js b/dist/model/UpdateDiscountsStatusPayload.js deleted file mode 100644 index 33789a3a..00000000 --- a/dist/model/UpdateDiscountsStatusPayload.js +++ /dev/null @@ -1,112 +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 UpdateDiscountsStatusPayload model module. - * @module model/UpdateDiscountsStatusPayload - * @version v1.25.0-alpha - */ -var UpdateDiscountsStatusPayload = /*#__PURE__*/function () { - /** - * Constructs a new UpdateDiscountsStatusPayload. - * @alias module:model/UpdateDiscountsStatusPayload - * @param discountStatus {String} - */ - function UpdateDiscountsStatusPayload(discountStatus) { - _classCallCheck(this, UpdateDiscountsStatusPayload); - UpdateDiscountsStatusPayload.initialize(this, 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(UpdateDiscountsStatusPayload, null, [{ - key: "initialize", - value: function initialize(obj, discountStatus) { - obj['discount_status'] = discountStatus; - } - - /** - * Constructs a UpdateDiscountsStatusPayload 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/UpdateDiscountsStatusPayload} obj Optional instance to populate. - * @return {module:model/UpdateDiscountsStatusPayload} The populated UpdateDiscountsStatusPayload instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateDiscountsStatusPayload(); - if (data.hasOwnProperty('discount_status')) { - obj['discount_status'] = _ApiClient["default"].convertToType(data['discount_status'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to UpdateDiscountsStatusPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateDiscountsStatusPayload. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(UpdateDiscountsStatusPayload.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_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; - } - }]); -}(); -UpdateDiscountsStatusPayload.RequiredProperties = ["discount_status"]; - -/** - * @member {String} discount_status - */ -UpdateDiscountsStatusPayload.prototype['discount_status'] = undefined; -var _default = exports["default"] = UpdateDiscountsStatusPayload; \ No newline at end of file diff --git a/dist/model/UpdateEnvironment.js b/dist/model/UpdateEnvironment.js index 58e1fd6c..953e5137 100644 --- a/dist/model/UpdateEnvironment.js +++ b/dist/model/UpdateEnvironment.js @@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The UpdateEnvironment model module. * @module model/UpdateEnvironment - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var UpdateEnvironment = /*#__PURE__*/function () { /** diff --git a/dist/model/UpdateGPU.js b/dist/model/UpdateGPU.js deleted file mode 100644 index d8e83e79..00000000 --- a/dist/model/UpdateGPU.js +++ /dev/null @@ -1,114 +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 UpdateGPU model module. - * @module model/UpdateGPU - * @version v1.25.0-alpha - */ -var UpdateGPU = /*#__PURE__*/function () { - /** - * Constructs a new UpdateGPU. - * @alias module:model/UpdateGPU - */ - function UpdateGPU() { - _classCallCheck(this, UpdateGPU); - UpdateGPU.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(UpdateGPU, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a UpdateGPU 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/UpdateGPU} obj Optional instance to populate. - * @return {module:model/UpdateGPU} The populated UpdateGPU instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateGPU(); - 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 UpdateGPU. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateGPU. - */ - }, { - key: "validateJSON", - value: function validateJSON(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; - } - }]); -}(); -/** - * A valid JSON string. - * @member {String} example_metadata - */ -UpdateGPU.prototype['example_metadata'] = undefined; - -/** - * @member {String} name - */ -UpdateGPU.prototype['name'] = undefined; - -/** - * @member {Array.} regions - */ -UpdateGPU.prototype['regions'] = undefined; -var _default = exports["default"] = UpdateGPU; \ No newline at end of file diff --git a/dist/model/UpdateKeypairName.js b/dist/model/UpdateKeypairName.js index fdf15c16..589e794f 100644 --- a/dist/model/UpdateKeypairName.js +++ b/dist/model/UpdateKeypairName.js @@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The UpdateKeypairName model module. * @module model/UpdateKeypairName - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var UpdateKeypairName = /*#__PURE__*/function () { /** diff --git a/dist/model/UpdateKeypairNameResponse.js b/dist/model/UpdateKeypairNameResponse.js new file mode 100644 index 00000000..707ddcbe --- /dev/null +++ b/dist/model/UpdateKeypairNameResponse.js @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _KeypairFields = _interopRequireDefault(require("./KeypairFields")); +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 UpdateKeypairNameResponse model module. + * @module model/UpdateKeypairNameResponse + * @version v1.51.1-alpha + */ +var UpdateKeypairNameResponse = /*#__PURE__*/function () { + /** + * Constructs a new UpdateKeypairNameResponse. + * @alias module:model/UpdateKeypairNameResponse + */ + function UpdateKeypairNameResponse() { + _classCallCheck(this, UpdateKeypairNameResponse); + UpdateKeypairNameResponse.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(UpdateKeypairNameResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a UpdateKeypairNameResponse 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/UpdateKeypairNameResponse} obj Optional instance to populate. + * @return {module:model/UpdateKeypairNameResponse} The populated UpdateKeypairNameResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateKeypairNameResponse(); + if (data.hasOwnProperty('keypair')) { + obj['keypair'] = _KeypairFields["default"].constructFromObject(data['keypair']); + } + 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 UpdateKeypairNameResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateKeypairNameResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // validate the optional field `keypair` + if (data['keypair']) { + // data not null + _KeypairFields["default"].validateJSON(data['keypair']); + } + // 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/KeypairFields} keypair + */ +UpdateKeypairNameResponse.prototype['keypair'] = undefined; + +/** + * @member {String} message + */ +UpdateKeypairNameResponse.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +UpdateKeypairNameResponse.prototype['status'] = undefined; +var _default = exports["default"] = UpdateKeypairNameResponse; \ No newline at end of file diff --git a/dist/model/UpdateKeypairnameresponse.js b/dist/model/UpdateKeypairnameresponse.js deleted file mode 100644 index a8b0fe4d..00000000 --- a/dist/model/UpdateKeypairnameresponse.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 _KeypairFields = _interopRequireDefault(require("./KeypairFields")); -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 UpdateKeypairnameresponse model module. - * @module model/UpdateKeypairnameresponse - * @version v1.25.0-alpha - */ -var UpdateKeypairnameresponse = /*#__PURE__*/function () { - /** - * Constructs a new UpdateKeypairnameresponse. - * @alias module:model/UpdateKeypairnameresponse - */ - function UpdateKeypairnameresponse() { - _classCallCheck(this, UpdateKeypairnameresponse); - UpdateKeypairnameresponse.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(UpdateKeypairnameresponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a UpdateKeypairnameresponse 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/UpdateKeypairnameresponse} obj Optional instance to populate. - * @return {module:model/UpdateKeypairnameresponse} The populated UpdateKeypairnameresponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateKeypairnameresponse(); - if (data.hasOwnProperty('keypair')) { - obj['keypair'] = _KeypairFields["default"].constructFromObject(data['keypair']); - } - 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 UpdateKeypairnameresponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateKeypairnameresponse. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // validate the optional field `keypair` - if (data['keypair']) { - // data not null - _KeypairFields["default"].validateJSON(data['keypair']); - } - // 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/KeypairFields} keypair - */ -UpdateKeypairnameresponse.prototype['keypair'] = undefined; - -/** - * @member {String} message - */ -UpdateKeypairnameresponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -UpdateKeypairnameresponse.prototype['status'] = undefined; -var _default = exports["default"] = UpdateKeypairnameresponse; \ No newline at end of file diff --git a/dist/model/UpdateOrganizationPayload.js b/dist/model/UpdateOrganizationPayload.js index 7bf89323..7b83d8d9 100644 --- a/dist/model/UpdateOrganizationPayload.js +++ b/dist/model/UpdateOrganizationPayload.js @@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The UpdateOrganizationPayload model module. * @module model/UpdateOrganizationPayload - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var UpdateOrganizationPayload = /*#__PURE__*/function () { /** diff --git a/dist/model/UpdateOrganizationResponseModel.js b/dist/model/UpdateOrganizationResponseModel.js index 5994829b..388bed1b 100644 --- a/dist/model/UpdateOrganizationResponseModel.js +++ b/dist/model/UpdateOrganizationResponseModel.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The UpdateOrganizationResponseModel model module. * @module model/UpdateOrganizationResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var UpdateOrganizationResponseModel = /*#__PURE__*/function () { /** diff --git a/dist/model/UpdateTemplate.js b/dist/model/UpdateTemplate.js index 61c380a7..759cb8e2 100644 --- a/dist/model/UpdateTemplate.js +++ b/dist/model/UpdateTemplate.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The UpdateTemplate model module. * @module model/UpdateTemplate - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var UpdateTemplate = /*#__PURE__*/function () { /** diff --git a/dist/model/UpdateVolumeAttachmentPayload.js b/dist/model/UpdateVolumeAttachmentPayload.js new file mode 100644 index 00000000..587d0efd --- /dev/null +++ b/dist/model/UpdateVolumeAttachmentPayload.js @@ -0,0 +1,85 @@ +"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 UpdateVolumeAttachmentPayload model module. + * @module model/UpdateVolumeAttachmentPayload + * @version v1.51.1-alpha + */ +var UpdateVolumeAttachmentPayload = /*#__PURE__*/function () { + /** + * Constructs a new UpdateVolumeAttachmentPayload. + * @alias module:model/UpdateVolumeAttachmentPayload + */ + function UpdateVolumeAttachmentPayload() { + _classCallCheck(this, UpdateVolumeAttachmentPayload); + UpdateVolumeAttachmentPayload.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(UpdateVolumeAttachmentPayload, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a UpdateVolumeAttachmentPayload 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/UpdateVolumeAttachmentPayload} obj Optional instance to populate. + * @return {module:model/UpdateVolumeAttachmentPayload} The populated UpdateVolumeAttachmentPayload instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateVolumeAttachmentPayload(); + if (data.hasOwnProperty('protected')) { + obj['protected'] = _ApiClient["default"].convertToType(data['protected'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UpdateVolumeAttachmentPayload. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateVolumeAttachmentPayload. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + return true; + } + }]); +}(); +/** + * @member {Boolean} protected + */ +UpdateVolumeAttachmentPayload.prototype['protected'] = undefined; +var _default = exports["default"] = UpdateVolumeAttachmentPayload; \ No newline at end of file diff --git a/dist/model/UpdateVolumePayload.js b/dist/model/UpdateVolumePayload.js new file mode 100644 index 00000000..74d4d045 --- /dev/null +++ b/dist/model/UpdateVolumePayload.js @@ -0,0 +1,113 @@ +"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 UpdateVolumePayload model module. + * @module model/UpdateVolumePayload + * @version v1.51.1-alpha + */ +var UpdateVolumePayload = /*#__PURE__*/function () { + /** + * Constructs a new UpdateVolumePayload. + * @alias module:model/UpdateVolumePayload + * @param environmentName {String} The name of the target environment to move the volume to. The target environment must be in the same region as the current environment. + */ + function UpdateVolumePayload(environmentName) { + _classCallCheck(this, UpdateVolumePayload); + UpdateVolumePayload.initialize(this, environmentName); + } + + /** + * 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(UpdateVolumePayload, null, [{ + key: "initialize", + value: function initialize(obj, environmentName) { + obj['environment_name'] = environmentName; + } + + /** + * Constructs a UpdateVolumePayload 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/UpdateVolumePayload} obj Optional instance to populate. + * @return {module:model/UpdateVolumePayload} The populated UpdateVolumePayload instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateVolumePayload(); + if (data.hasOwnProperty('environment_name')) { + obj['environment_name'] = _ApiClient["default"].convertToType(data['environment_name'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UpdateVolumePayload. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateVolumePayload. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(UpdateVolumePayload.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['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']); + } + return true; + } + }]); +}(); +UpdateVolumePayload.RequiredProperties = ["environment_name"]; + +/** + * The name of the target environment to move the volume to. The target environment must be in the same region as the current environment. + * @member {String} environment_name + */ +UpdateVolumePayload.prototype['environment_name'] = undefined; +var _default = exports["default"] = UpdateVolumePayload; \ No newline at end of file diff --git a/dist/model/UpdateVolumeResponse.js b/dist/model/UpdateVolumeResponse.js new file mode 100644 index 00000000..84cdb984 --- /dev/null +++ b/dist/model/UpdateVolumeResponse.js @@ -0,0 +1,120 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _VolumeFields = _interopRequireDefault(require("./VolumeFields")); +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 UpdateVolumeResponse model module. + * @module model/UpdateVolumeResponse + * @version v1.51.1-alpha + */ +var UpdateVolumeResponse = /*#__PURE__*/function () { + /** + * Constructs a new UpdateVolumeResponse. + * @alias module:model/UpdateVolumeResponse + */ + function UpdateVolumeResponse() { + _classCallCheck(this, UpdateVolumeResponse); + UpdateVolumeResponse.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(UpdateVolumeResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a UpdateVolumeResponse 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/UpdateVolumeResponse} obj Optional instance to populate. + * @return {module:model/UpdateVolumeResponse} The populated UpdateVolumeResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateVolumeResponse(); + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); + } + if (data.hasOwnProperty('updates')) { + obj['updates'] = _ApiClient["default"].convertToType(data['updates'], Object); + } + if (data.hasOwnProperty('volume')) { + obj['volume'] = _VolumeFields["default"].constructFromObject(data['volume']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UpdateVolumeResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateVolumeResponse. + */ + }, { + 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 `volume` + if (data['volume']) { + // data not null + _VolumeFields["default"].validateJSON(data['volume']); + } + return true; + } + }]); +}(); +/** + * @member {String} message + */ +UpdateVolumeResponse.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +UpdateVolumeResponse.prototype['status'] = undefined; + +/** + * Summary of fields that were updated + * @member {Object} updates + */ +UpdateVolumeResponse.prototype['updates'] = undefined; + +/** + * @member {module:model/VolumeFields} volume + */ +UpdateVolumeResponse.prototype['volume'] = undefined; +var _default = exports["default"] = UpdateVolumeResponse; \ No newline at end of file diff --git a/dist/model/UserDefaultChoiceForUserFields.js b/dist/model/UserDefaultChoiceForUserFields.js index 56d09809..7a57cb75 100644 --- a/dist/model/UserDefaultChoiceForUserFields.js +++ b/dist/model/UserDefaultChoiceForUserFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The UserDefaultChoiceForUserFields model module. * @module model/UserDefaultChoiceForUserFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var UserDefaultChoiceForUserFields = /*#__PURE__*/function () { /** diff --git a/dist/model/UserDefaultChoicesForUserResponse.js b/dist/model/UserDefaultChoicesForUserResponse.js index cae789b4..4c9dfbf6 100644 --- a/dist/model/UserDefaultChoicesForUserResponse.js +++ b/dist/model/UserDefaultChoicesForUserResponse.js @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The UserDefaultChoicesForUserResponse model module. * @module model/UserDefaultChoicesForUserResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var UserDefaultChoicesForUserResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/UserInfoPostPayload.js b/dist/model/UserInfoPostPayload.js new file mode 100644 index 00000000..79c45521 --- /dev/null +++ b/dist/model/UserInfoPostPayload.js @@ -0,0 +1,232 @@ +"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 UserInfoPostPayload model module. + * @module model/UserInfoPostPayload + * @version v1.51.1-alpha + */ +var UserInfoPostPayload = /*#__PURE__*/function () { + /** + * Constructs a new UserInfoPostPayload. + * @alias module:model/UserInfoPostPayload + * @param business {Boolean} + * @param country {String} + * @param zipCode {String} + */ + function UserInfoPostPayload(business, country, zipCode) { + _classCallCheck(this, UserInfoPostPayload); + UserInfoPostPayload.initialize(this, business, country, zipCode); + } + + /** + * 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(UserInfoPostPayload, null, [{ + key: "initialize", + value: function initialize(obj, business, country, zipCode) { + obj['business'] = business; + obj['country'] = country; + obj['zip_code'] = zipCode; + } + + /** + * Constructs a UserInfoPostPayload 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/UserInfoPostPayload} obj Optional instance to populate. + * @return {module:model/UserInfoPostPayload} The populated UserInfoPostPayload instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UserInfoPostPayload(); + if (data.hasOwnProperty('billing_address1')) { + obj['billing_address1'] = _ApiClient["default"].convertToType(data['billing_address1'], 'String'); + } + if (data.hasOwnProperty('billing_address2')) { + obj['billing_address2'] = _ApiClient["default"].convertToType(data['billing_address2'], 'String'); + } + if (data.hasOwnProperty('business')) { + obj['business'] = _ApiClient["default"].convertToType(data['business'], 'Boolean'); + } + if (data.hasOwnProperty('company_name')) { + obj['company_name'] = _ApiClient["default"].convertToType(data['company_name'], 'String'); + } + if (data.hasOwnProperty('country')) { + obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); + } + if (data.hasOwnProperty('email')) { + obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('phone')) { + obj['phone'] = _ApiClient["default"].convertToType(data['phone'], 'String'); + } + if (data.hasOwnProperty('state')) { + obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); + } + if (data.hasOwnProperty('vat_number')) { + obj['vat_number'] = _ApiClient["default"].convertToType(data['vat_number'], 'String'); + } + if (data.hasOwnProperty('zip_code')) { + obj['zip_code'] = _ApiClient["default"].convertToType(data['zip_code'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UserInfoPostPayload. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UserInfoPostPayload. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(UserInfoPostPayload.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['billing_address1'] && !(typeof data['billing_address1'] === 'string' || data['billing_address1'] instanceof String)) { + throw new Error("Expected the field `billing_address1` to be a primitive type in the JSON string but got " + data['billing_address1']); + } + // ensure the json data is a string + if (data['billing_address2'] && !(typeof data['billing_address2'] === 'string' || data['billing_address2'] instanceof String)) { + throw new Error("Expected the field `billing_address2` to be a primitive type in the JSON string but got " + data['billing_address2']); + } + // ensure the json data is a string + if (data['company_name'] && !(typeof data['company_name'] === 'string' || data['company_name'] instanceof String)) { + throw new Error("Expected the field `company_name` to be a primitive type in the JSON string but got " + data['company_name']); + } + // ensure the json data is a string + if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) { + throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']); + } + // ensure the json data is a string + if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) { + throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']); + } + // 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['phone'] && !(typeof data['phone'] === 'string' || data['phone'] instanceof String)) { + throw new Error("Expected the field `phone` to be a primitive type in the JSON string but got " + data['phone']); + } + // ensure the json data is a string + if (data['state'] && !(typeof data['state'] === 'string' || data['state'] instanceof String)) { + throw new Error("Expected the field `state` to be a primitive type in the JSON string but got " + data['state']); + } + // ensure the json data is a string + if (data['vat_number'] && !(typeof data['vat_number'] === 'string' || data['vat_number'] instanceof String)) { + throw new Error("Expected the field `vat_number` to be a primitive type in the JSON string but got " + data['vat_number']); + } + // ensure the json data is a string + if (data['zip_code'] && !(typeof data['zip_code'] === 'string' || data['zip_code'] instanceof String)) { + throw new Error("Expected the field `zip_code` to be a primitive type in the JSON string but got " + data['zip_code']); + } + return true; + } + }]); +}(); +UserInfoPostPayload.RequiredProperties = ["business", "country", "zip_code"]; + +/** + * @member {String} billing_address1 + */ +UserInfoPostPayload.prototype['billing_address1'] = undefined; + +/** + * @member {String} billing_address2 + */ +UserInfoPostPayload.prototype['billing_address2'] = undefined; + +/** + * @member {Boolean} business + */ +UserInfoPostPayload.prototype['business'] = undefined; + +/** + * @member {String} company_name + */ +UserInfoPostPayload.prototype['company_name'] = undefined; + +/** + * @member {String} country + */ +UserInfoPostPayload.prototype['country'] = undefined; + +/** + * @member {String} email + */ +UserInfoPostPayload.prototype['email'] = undefined; + +/** + * @member {String} name + */ +UserInfoPostPayload.prototype['name'] = undefined; + +/** + * @member {String} phone + */ +UserInfoPostPayload.prototype['phone'] = undefined; + +/** + * @member {String} state + */ +UserInfoPostPayload.prototype['state'] = undefined; + +/** + * @member {String} vat_number + */ +UserInfoPostPayload.prototype['vat_number'] = undefined; + +/** + * @member {String} zip_code + */ +UserInfoPostPayload.prototype['zip_code'] = undefined; +var _default = exports["default"] = UserInfoPostPayload; \ No newline at end of file diff --git a/dist/model/UserOrganizationsResponse.js b/dist/model/UserOrganizationsResponse.js new file mode 100644 index 00000000..d5bc9fbb --- /dev/null +++ b/dist/model/UserOrganizationsResponse.js @@ -0,0 +1,110 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _OrganizationFields = _interopRequireDefault(require("./OrganizationFields")); +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 UserOrganizationsResponse model module. + * @module model/UserOrganizationsResponse + * @version v1.51.1-alpha + */ +var UserOrganizationsResponse = /*#__PURE__*/function () { + /** + * Constructs a new UserOrganizationsResponse. + * @alias module:model/UserOrganizationsResponse + */ + function UserOrganizationsResponse() { + _classCallCheck(this, UserOrganizationsResponse); + UserOrganizationsResponse.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(UserOrganizationsResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a UserOrganizationsResponse 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/UserOrganizationsResponse} obj Optional instance to populate. + * @return {module:model/UserOrganizationsResponse} The populated UserOrganizationsResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UserOrganizationsResponse(); + if (data.hasOwnProperty('organizations')) { + obj['organizations'] = _ApiClient["default"].convertToType(data['organizations'], [_OrganizationFields["default"]]); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UserOrganizationsResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UserOrganizationsResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + if (data['organizations']) { + // data not null + // 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']); + } + // validate the optional field `organizations` (array) + var _iterator = _createForOfIteratorHelper(data['organizations']), + _step; + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var item = _step.value; + _OrganizationFields["default"].validateJSON(item); + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + ; + } + return true; + } + }]); +}(); +/** + * @member {Array.} organizations + */ +UserOrganizationsResponse.prototype['organizations'] = undefined; +var _default = exports["default"] = UserOrganizationsResponse; \ No newline at end of file diff --git a/dist/model/UserPermissionFields.js b/dist/model/UserPermissionFields.js index 9cd456ba..8ec8eaba 100644 --- a/dist/model/UserPermissionFields.js +++ b/dist/model/UserPermissionFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The UserPermissionFields model module. * @module model/UserPermissionFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var UserPermissionFields = /*#__PURE__*/function () { /** diff --git a/dist/model/UserTransferPayload.js b/dist/model/UserTransferPayload.js deleted file mode 100644 index 48253cef..00000000 --- a/dist/model/UserTransferPayload.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 UserTransferPayload model module. - * @module model/UserTransferPayload - * @version v1.25.0-alpha - */ -var UserTransferPayload = /*#__PURE__*/function () { - /** - * Constructs a new UserTransferPayload. - * @alias module:model/UserTransferPayload - * @param orgId {Number} - * @param role {String} - */ - function UserTransferPayload(orgId, role) { - _classCallCheck(this, UserTransferPayload); - UserTransferPayload.initialize(this, orgId, 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(UserTransferPayload, null, [{ - key: "initialize", - value: function initialize(obj, orgId, role) { - obj['org_id'] = orgId; - obj['role'] = role; - } - - /** - * Constructs a UserTransferPayload 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/UserTransferPayload} obj Optional instance to populate. - * @return {module:model/UserTransferPayload} The populated UserTransferPayload instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UserTransferPayload(); - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number'); - } - if (data.hasOwnProperty('role')) { - obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to UserTransferPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to UserTransferPayload. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(UserTransferPayload.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['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; - } - }]); -}(); -UserTransferPayload.RequiredProperties = ["org_id", "role"]; - -/** - * @member {Number} org_id - */ -UserTransferPayload.prototype['org_id'] = undefined; - -/** - * @member {String} role - */ -UserTransferPayload.prototype['role'] = undefined; -var _default = exports["default"] = UserTransferPayload; \ No newline at end of file diff --git a/dist/model/Userinfopostpayload.js b/dist/model/Userinfopostpayload.js deleted file mode 100644 index a36e9048..00000000 --- a/dist/model/Userinfopostpayload.js +++ /dev/null @@ -1,232 +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 Userinfopostpayload model module. - * @module model/Userinfopostpayload - * @version v1.25.0-alpha - */ -var Userinfopostpayload = /*#__PURE__*/function () { - /** - * Constructs a new Userinfopostpayload. - * @alias module:model/Userinfopostpayload - * @param business {Boolean} - * @param country {String} - * @param zipCode {String} - */ - function Userinfopostpayload(business, country, zipCode) { - _classCallCheck(this, Userinfopostpayload); - Userinfopostpayload.initialize(this, business, country, zipCode); - } - - /** - * 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(Userinfopostpayload, null, [{ - key: "initialize", - value: function initialize(obj, business, country, zipCode) { - obj['business'] = business; - obj['country'] = country; - obj['zip_code'] = zipCode; - } - - /** - * Constructs a Userinfopostpayload 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/Userinfopostpayload} obj Optional instance to populate. - * @return {module:model/Userinfopostpayload} The populated Userinfopostpayload instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Userinfopostpayload(); - if (data.hasOwnProperty('billing_address1')) { - obj['billing_address1'] = _ApiClient["default"].convertToType(data['billing_address1'], 'String'); - } - if (data.hasOwnProperty('billing_address2')) { - obj['billing_address2'] = _ApiClient["default"].convertToType(data['billing_address2'], 'String'); - } - if (data.hasOwnProperty('business')) { - obj['business'] = _ApiClient["default"].convertToType(data['business'], 'Boolean'); - } - if (data.hasOwnProperty('company_name')) { - obj['company_name'] = _ApiClient["default"].convertToType(data['company_name'], 'String'); - } - if (data.hasOwnProperty('country')) { - obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String'); - } - if (data.hasOwnProperty('email')) { - obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = _ApiClient["default"].convertToType(data['phone'], 'String'); - } - if (data.hasOwnProperty('state')) { - obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); - } - if (data.hasOwnProperty('vat_number')) { - obj['vat_number'] = _ApiClient["default"].convertToType(data['vat_number'], 'String'); - } - if (data.hasOwnProperty('zip_code')) { - obj['zip_code'] = _ApiClient["default"].convertToType(data['zip_code'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to Userinfopostpayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Userinfopostpayload. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(Userinfopostpayload.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['billing_address1'] && !(typeof data['billing_address1'] === 'string' || data['billing_address1'] instanceof String)) { - throw new Error("Expected the field `billing_address1` to be a primitive type in the JSON string but got " + data['billing_address1']); - } - // ensure the json data is a string - if (data['billing_address2'] && !(typeof data['billing_address2'] === 'string' || data['billing_address2'] instanceof String)) { - throw new Error("Expected the field `billing_address2` to be a primitive type in the JSON string but got " + data['billing_address2']); - } - // ensure the json data is a string - if (data['company_name'] && !(typeof data['company_name'] === 'string' || data['company_name'] instanceof String)) { - throw new Error("Expected the field `company_name` to be a primitive type in the JSON string but got " + data['company_name']); - } - // ensure the json data is a string - if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) { - throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']); - } - // ensure the json data is a string - if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) { - throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']); - } - // 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['phone'] && !(typeof data['phone'] === 'string' || data['phone'] instanceof String)) { - throw new Error("Expected the field `phone` to be a primitive type in the JSON string but got " + data['phone']); - } - // ensure the json data is a string - if (data['state'] && !(typeof data['state'] === 'string' || data['state'] instanceof String)) { - throw new Error("Expected the field `state` to be a primitive type in the JSON string but got " + data['state']); - } - // ensure the json data is a string - if (data['vat_number'] && !(typeof data['vat_number'] === 'string' || data['vat_number'] instanceof String)) { - throw new Error("Expected the field `vat_number` to be a primitive type in the JSON string but got " + data['vat_number']); - } - // ensure the json data is a string - if (data['zip_code'] && !(typeof data['zip_code'] === 'string' || data['zip_code'] instanceof String)) { - throw new Error("Expected the field `zip_code` to be a primitive type in the JSON string but got " + data['zip_code']); - } - return true; - } - }]); -}(); -Userinfopostpayload.RequiredProperties = ["business", "country", "zip_code"]; - -/** - * @member {String} billing_address1 - */ -Userinfopostpayload.prototype['billing_address1'] = undefined; - -/** - * @member {String} billing_address2 - */ -Userinfopostpayload.prototype['billing_address2'] = undefined; - -/** - * @member {Boolean} business - */ -Userinfopostpayload.prototype['business'] = undefined; - -/** - * @member {String} company_name - */ -Userinfopostpayload.prototype['company_name'] = undefined; - -/** - * @member {String} country - */ -Userinfopostpayload.prototype['country'] = undefined; - -/** - * @member {String} email - */ -Userinfopostpayload.prototype['email'] = undefined; - -/** - * @member {String} name - */ -Userinfopostpayload.prototype['name'] = undefined; - -/** - * @member {String} phone - */ -Userinfopostpayload.prototype['phone'] = undefined; - -/** - * @member {String} state - */ -Userinfopostpayload.prototype['state'] = undefined; - -/** - * @member {String} vat_number - */ -Userinfopostpayload.prototype['vat_number'] = undefined; - -/** - * @member {String} zip_code - */ -Userinfopostpayload.prototype['zip_code'] = undefined; -var _default = exports["default"] = Userinfopostpayload; \ No newline at end of file diff --git a/dist/model/UsersInfoFields.js b/dist/model/UsersInfoFields.js index 6becee8f..0901bb21 100644 --- a/dist/model/UsersInfoFields.js +++ b/dist/model/UsersInfoFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The UsersInfoFields model module. * @module model/UsersInfoFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var UsersInfoFields = /*#__PURE__*/function () { /** @@ -95,6 +95,9 @@ var UsersInfoFields = /*#__PURE__*/function () { if (data.hasOwnProperty('state')) { obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); } + if (data.hasOwnProperty('stripe_user_id')) { + obj['stripe_user_id'] = _ApiClient["default"].convertToType(data['stripe_user_id'], 'String'); + } if (data.hasOwnProperty('vat_number')) { obj['vat_number'] = _ApiClient["default"].convertToType(data['vat_number'], 'String'); } @@ -146,6 +149,10 @@ var UsersInfoFields = /*#__PURE__*/function () { throw new Error("Expected the field `state` to be a primitive type in the JSON string but got " + data['state']); } // ensure the json data is a string + if (data['stripe_user_id'] && !(typeof data['stripe_user_id'] === 'string' || data['stripe_user_id'] instanceof String)) { + throw new Error("Expected the field `stripe_user_id` to be a primitive type in the JSON string but got " + data['stripe_user_id']); + } + // ensure the json data is a string if (data['vat_number'] && !(typeof data['vat_number'] === 'string' || data['vat_number'] instanceof String)) { throw new Error("Expected the field `vat_number` to be a primitive type in the JSON string but got " + data['vat_number']); } @@ -217,6 +224,11 @@ UsersInfoFields.prototype['phone'] = undefined; */ UsersInfoFields.prototype['state'] = undefined; +/** + * @member {String} stripe_user_id + */ +UsersInfoFields.prototype['stripe_user_id'] = undefined; + /** * @member {String} vat_number */ diff --git a/dist/model/UsersInfoListResponse.js b/dist/model/UsersInfoListResponse.js index 1bafec79..4802996e 100644 --- a/dist/model/UsersInfoListResponse.js +++ b/dist/model/UsersInfoListResponse.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The UsersInfoListResponse model module. * @module model/UsersInfoListResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var UsersInfoListResponse = /*#__PURE__*/function () { /** diff --git a/dist/model/VMQuota.js b/dist/model/VMQuota.js new file mode 100644 index 00000000..972cca84 --- /dev/null +++ b/dist/model/VMQuota.js @@ -0,0 +1,141 @@ +"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 VMQuota model module. + * @module model/VMQuota + * @version v1.51.1-alpha + */ +var VMQuota = /*#__PURE__*/function () { + /** + * Constructs a new VMQuota. + * @alias module:model/VMQuota + */ + function VMQuota() { + _classCallCheck(this, VMQuota); + VMQuota.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(VMQuota, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a VMQuota 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/VMQuota} obj Optional instance to populate. + * @return {module:model/VMQuota} The populated VMQuota instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new VMQuota(); + if (data.hasOwnProperty('available_vms')) { + obj['available_vms'] = _ApiClient["default"].convertToType(data['available_vms'], 'Number'); + } + if (data.hasOwnProperty('cidr')) { + obj['cidr'] = _ApiClient["default"].convertToType(data['cidr'], 'String'); + } + if (data.hasOwnProperty('current_vms')) { + obj['current_vms'] = _ApiClient["default"].convertToType(data['current_vms'], 'Number'); + } + if (data.hasOwnProperty('max_vms')) { + obj['max_vms'] = _ApiClient["default"].convertToType(data['max_vms'], 'Number'); + } + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('percentage_used')) { + obj['percentage_used'] = _ApiClient["default"].convertToType(data['percentage_used'], 'Number'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to VMQuota. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to VMQuota. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // ensure the json data is a string + if (data['cidr'] && !(typeof data['cidr'] === 'string' || data['cidr'] instanceof String)) { + throw new Error("Expected the field `cidr` to be a primitive type in the JSON string but got " + data['cidr']); + } + // 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} available_vms + */ +VMQuota.prototype['available_vms'] = undefined; + +/** + * @member {String} cidr + */ +VMQuota.prototype['cidr'] = undefined; + +/** + * @member {Number} current_vms + */ +VMQuota.prototype['current_vms'] = undefined; + +/** + * @member {Number} max_vms + */ +VMQuota.prototype['max_vms'] = undefined; + +/** + * @member {String} message + */ +VMQuota.prototype['message'] = undefined; + +/** + * @member {Number} percentage_used + */ +VMQuota.prototype['percentage_used'] = undefined; + +/** + * @member {Boolean} status + */ +VMQuota.prototype['status'] = undefined; +var _default = exports["default"] = VMQuota; \ No newline at end of file diff --git a/dist/model/VMUsageRequestPayload.js b/dist/model/VMUsageRequestPayload.js deleted file mode 100644 index bd50022b..00000000 --- a/dist/model/VMUsageRequestPayload.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 _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 VMUsageRequestPayload model module. - * @module model/VMUsageRequestPayload - * @version v1.25.0-alpha - */ -var VMUsageRequestPayload = /*#__PURE__*/function () { - /** - * Constructs a new VMUsageRequestPayload. - * @alias module:model/VMUsageRequestPayload - * @param vmIds {Array.} List of virtual machine IDs - */ - function VMUsageRequestPayload(vmIds) { - _classCallCheck(this, VMUsageRequestPayload); - VMUsageRequestPayload.initialize(this, vmIds); - } - - /** - * 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(VMUsageRequestPayload, null, [{ - key: "initialize", - value: function initialize(obj, vmIds) { - obj['vm_ids'] = vmIds; - } - - /** - * Constructs a VMUsageRequestPayload 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/VMUsageRequestPayload} obj Optional instance to populate. - * @return {module:model/VMUsageRequestPayload} The populated VMUsageRequestPayload instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VMUsageRequestPayload(); - if (data.hasOwnProperty('vm_ids')) { - obj['vm_ids'] = _ApiClient["default"].convertToType(data['vm_ids'], ['Number']); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to VMUsageRequestPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to VMUsageRequestPayload. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(VMUsageRequestPayload.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['vm_ids'])) { - throw new Error("Expected the field `vm_ids` to be an array in the JSON data but got " + data['vm_ids']); - } - return true; - } - }]); -}(); -VMUsageRequestPayload.RequiredProperties = ["vm_ids"]; - -/** - * List of virtual machine IDs - * @member {Array.} vm_ids - */ -VMUsageRequestPayload.prototype['vm_ids'] = undefined; -var _default = exports["default"] = VMUsageRequestPayload; \ No newline at end of file diff --git a/dist/model/VMUsageResponse.js b/dist/model/VMUsageResponse.js deleted file mode 100644 index b3ebb566..00000000 --- a/dist/model/VMUsageResponse.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 _VirtualMachineUsage = _interopRequireDefault(require("./VirtualMachineUsage")); -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 VMUsageResponse model module. - * @module model/VMUsageResponse - * @version v1.25.0-alpha - */ -var VMUsageResponse = /*#__PURE__*/function () { - /** - * Constructs a new VMUsageResponse. - * @alias module:model/VMUsageResponse - */ - function VMUsageResponse() { - _classCallCheck(this, VMUsageResponse); - VMUsageResponse.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(VMUsageResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a VMUsageResponse 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/VMUsageResponse} obj Optional instance to populate. - * @return {module:model/VMUsageResponse} The populated VMUsageResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VMUsageResponse(); - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = _ApiClient["default"].convertToType(data['org_id'], 'Number'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('virtual_machines')) { - obj['virtual_machines'] = _ApiClient["default"].convertToType(data['virtual_machines'], [_VirtualMachineUsage["default"]]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to VMUsageResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to VMUsageResponse. - */ - }, { - 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['virtual_machines']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['virtual_machines'])) { - throw new Error("Expected the field `virtual_machines` to be an array in the JSON data but got " + data['virtual_machines']); - } - // validate the optional field `virtual_machines` (array) - var _iterator = _createForOfIteratorHelper(data['virtual_machines']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _VirtualMachineUsage["default"].validateJSON(item); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - ; - } - return true; - } - }]); -}(); -/** - * @member {String} message - */ -VMUsageResponse.prototype['message'] = undefined; - -/** - * @member {Number} org_id - */ -VMUsageResponse.prototype['org_id'] = undefined; - -/** - * @member {Boolean} status - */ -VMUsageResponse.prototype['status'] = undefined; - -/** - * @member {Array.} virtual_machines - */ -VMUsageResponse.prototype['virtual_machines'] = undefined; -var _default = exports["default"] = VMUsageResponse; \ No newline at end of file diff --git a/dist/model/VNCURL.js b/dist/model/VNCURL.js index 637af232..54f8900b 100644 --- a/dist/model/VNCURL.js +++ b/dist/model/VNCURL.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The VNCURL model module. * @module model/VNCURL - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var VNCURL = /*#__PURE__*/function () { /** diff --git a/dist/model/VNCURLFields.js b/dist/model/VNCURLFields.js index d597ce85..c6cab25b 100644 --- a/dist/model/VNCURLFields.js +++ b/dist/model/VNCURLFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The VNCURLFields model module. * @module model/VNCURLFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var VNCURLFields = /*#__PURE__*/function () { /** diff --git a/dist/model/VerifyApiKeyPayload.js b/dist/model/VerifyApiKeyPayload.js deleted file mode 100644 index 9972218d..00000000 --- a/dist/model/VerifyApiKeyPayload.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 _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 VerifyApiKeyPayload model module. - * @module model/VerifyApiKeyPayload - * @version v1.25.0-alpha - */ -var VerifyApiKeyPayload = /*#__PURE__*/function () { - /** - * Constructs a new VerifyApiKeyPayload. - * @alias module:model/VerifyApiKeyPayload - * @param apiKey {String} The direction of traffic that the firewall rule applies to. - */ - function VerifyApiKeyPayload(apiKey) { - _classCallCheck(this, VerifyApiKeyPayload); - VerifyApiKeyPayload.initialize(this, apiKey); - } - - /** - * 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(VerifyApiKeyPayload, null, [{ - key: "initialize", - value: function initialize(obj, apiKey) { - obj['api_key'] = apiKey; - } - - /** - * Constructs a VerifyApiKeyPayload 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/VerifyApiKeyPayload} obj Optional instance to populate. - * @return {module:model/VerifyApiKeyPayload} The populated VerifyApiKeyPayload instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VerifyApiKeyPayload(); - if (data.hasOwnProperty('api_key')) { - obj['api_key'] = _ApiClient["default"].convertToType(data['api_key'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to VerifyApiKeyPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to VerifyApiKeyPayload. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // check to make sure all required properties are present in the JSON string - var _iterator = _createForOfIteratorHelper(VerifyApiKeyPayload.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['api_key'] && !(typeof data['api_key'] === 'string' || data['api_key'] instanceof String)) { - throw new Error("Expected the field `api_key` to be a primitive type in the JSON string but got " + data['api_key']); - } - return true; - } - }]); -}(); -VerifyApiKeyPayload.RequiredProperties = ["api_key"]; - -/** - * The direction of traffic that the firewall rule applies to. - * @member {String} api_key - */ -VerifyApiKeyPayload.prototype['api_key'] = undefined; -var _default = exports["default"] = VerifyApiKeyPayload; \ No newline at end of file diff --git a/dist/model/VerifyApiKeyResponseModel.js b/dist/model/VerifyApiKeyResponseModel.js deleted file mode 100644 index 2f6af662..00000000 --- a/dist/model/VerifyApiKeyResponseModel.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 _ApiKeyVerifyFields = _interopRequireDefault(require("./ApiKeyVerifyFields")); -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 VerifyApiKeyResponseModel model module. - * @module model/VerifyApiKeyResponseModel - * @version v1.25.0-alpha - */ -var VerifyApiKeyResponseModel = /*#__PURE__*/function () { - /** - * Constructs a new VerifyApiKeyResponseModel. - * @alias module:model/VerifyApiKeyResponseModel - */ - function VerifyApiKeyResponseModel() { - _classCallCheck(this, VerifyApiKeyResponseModel); - VerifyApiKeyResponseModel.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(VerifyApiKeyResponseModel, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a VerifyApiKeyResponseModel 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/VerifyApiKeyResponseModel} obj Optional instance to populate. - * @return {module:model/VerifyApiKeyResponseModel} The populated VerifyApiKeyResponseModel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VerifyApiKeyResponseModel(); - if (data.hasOwnProperty('api_key')) { - obj['api_key'] = _ApiKeyVerifyFields["default"].constructFromObject(data['api_key']); - } - 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 VerifyApiKeyResponseModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to VerifyApiKeyResponseModel. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // validate the optional field `api_key` - if (data['api_key']) { - // data not null - _ApiKeyVerifyFields["default"].validateJSON(data['api_key']); - } - // 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/ApiKeyVerifyFields} api_key - */ -VerifyApiKeyResponseModel.prototype['api_key'] = undefined; - -/** - * @member {String} message - */ -VerifyApiKeyResponseModel.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -VerifyApiKeyResponseModel.prototype['status'] = undefined; -var _default = exports["default"] = VerifyApiKeyResponseModel; \ No newline at end of file diff --git a/dist/model/VirtualMachineUsage.js b/dist/model/VirtualMachineUsage.js deleted file mode 100644 index 8ff35684..00000000 --- a/dist/model/VirtualMachineUsage.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 VirtualMachineUsage model module. - * @module model/VirtualMachineUsage - * @version v1.25.0-alpha - */ -var VirtualMachineUsage = /*#__PURE__*/function () { - /** - * Constructs a new VirtualMachineUsage. - * @alias module:model/VirtualMachineUsage - */ - function VirtualMachineUsage() { - _classCallCheck(this, VirtualMachineUsage); - VirtualMachineUsage.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(VirtualMachineUsage, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a VirtualMachineUsage 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/VirtualMachineUsage} obj Optional instance to populate. - * @return {module:model/VirtualMachineUsage} The populated VirtualMachineUsage instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VirtualMachineUsage(); - 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('total_usage_time')) { - obj['total_usage_time'] = _ApiClient["default"].convertToType(data['total_usage_time'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to VirtualMachineUsage. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to VirtualMachineUsage. - */ - }, { - 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 - */ -VirtualMachineUsage.prototype['id'] = undefined; - -/** - * @member {String} name - */ -VirtualMachineUsage.prototype['name'] = undefined; - -/** - * @member {String} status - */ -VirtualMachineUsage.prototype['status'] = undefined; - -/** - * @member {Number} total_usage_time - */ -VirtualMachineUsage.prototype['total_usage_time'] = undefined; -var _default = exports["default"] = VirtualMachineUsage; \ No newline at end of file diff --git a/dist/model/Volume.js b/dist/model/Volume.js index bcd65dd9..5f821445 100644 --- a/dist/model/Volume.js +++ b/dist/model/Volume.js @@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The Volume model module. * @module model/Volume - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var Volume = /*#__PURE__*/function () { /** diff --git a/dist/model/VolumeAttachmentFields.js b/dist/model/VolumeAttachmentFields.js index 5d5bf4ba..5c6ee90e 100644 --- a/dist/model/VolumeAttachmentFields.js +++ b/dist/model/VolumeAttachmentFields.js @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _VolumeFieldsforInstance = _interopRequireDefault(require("./VolumeFieldsforInstance")); +var _VolumeFieldsForInstance = _interopRequireDefault(require("./VolumeFieldsForInstance")); 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 VolumeAttachmentFields model module. * @module model/VolumeAttachmentFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var VolumeAttachmentFields = /*#__PURE__*/function () { /** @@ -66,11 +66,17 @@ var VolumeAttachmentFields = /*#__PURE__*/function () { 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('protected')) { + obj['protected'] = _ApiClient["default"].convertToType(data['protected'], 'Boolean'); + } if (data.hasOwnProperty('status')) { obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); } if (data.hasOwnProperty('volume')) { - obj['volume'] = _VolumeFieldsforInstance["default"].constructFromObject(data['volume']); + obj['volume'] = _VolumeFieldsForInstance["default"].constructFromObject(data['volume']); } } return obj; @@ -95,7 +101,7 @@ var VolumeAttachmentFields = /*#__PURE__*/function () { // validate the optional field `volume` if (data['volume']) { // data not null - _VolumeFieldsforInstance["default"].validateJSON(data['volume']); + _VolumeFieldsForInstance["default"].validateJSON(data['volume']); } return true; } @@ -111,13 +117,23 @@ VolumeAttachmentFields.prototype['created_at'] = undefined; */ VolumeAttachmentFields.prototype['device'] = undefined; +/** + * @member {Number} id + */ +VolumeAttachmentFields.prototype['id'] = undefined; + +/** + * @member {Boolean} protected + */ +VolumeAttachmentFields.prototype['protected'] = undefined; + /** * @member {String} status */ VolumeAttachmentFields.prototype['status'] = undefined; /** - * @member {module:model/VolumeFieldsforInstance} volume + * @member {module:model/VolumeFieldsForInstance} volume */ VolumeAttachmentFields.prototype['volume'] = undefined; var _default = exports["default"] = VolumeAttachmentFields; \ No newline at end of file diff --git a/dist/model/VolumeFields.js b/dist/model/VolumeFields.js index 9d6fd3fe..4ab79f88 100644 --- a/dist/model/VolumeFields.js +++ b/dist/model/VolumeFields.js @@ -5,9 +5,13 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _EnvironmentFieldsforVolume = _interopRequireDefault(require("./EnvironmentFieldsforVolume")); +var _AttachmentsFieldsForVolume = _interopRequireDefault(require("./AttachmentsFieldsForVolume")); +var _EnvironmentFieldsForVolume = _interopRequireDefault(require("./EnvironmentFieldsForVolume")); 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 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The VolumeFields model module. * @module model/VolumeFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var VolumeFields = /*#__PURE__*/function () { /** @@ -60,6 +64,9 @@ var VolumeFields = /*#__PURE__*/function () { value: function constructFromObject(data, obj) { if (data) { obj = obj || new VolumeFields(); + if (data.hasOwnProperty('attachments')) { + obj['attachments'] = _ApiClient["default"].convertToType(data['attachments'], [_AttachmentsFieldsForVolume["default"]]); + } if (data.hasOwnProperty('bootable')) { obj['bootable'] = _ApiClient["default"].convertToType(data['bootable'], 'Boolean'); } @@ -73,7 +80,7 @@ var VolumeFields = /*#__PURE__*/function () { obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); } if (data.hasOwnProperty('environment')) { - obj['environment'] = _EnvironmentFieldsforVolume["default"].constructFromObject(data['environment']); + obj['environment'] = _EnvironmentFieldsForVolume["default"].constructFromObject(data['environment']); } if (data.hasOwnProperty('id')) { obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); @@ -111,6 +118,27 @@ var VolumeFields = /*#__PURE__*/function () { }, { key: "validateJSON", value: function validateJSON(data) { + if (data['attachments']) { + // data not null + // ensure the json data is an array + if (!Array.isArray(data['attachments'])) { + throw new Error("Expected the field `attachments` to be an array in the JSON data but got " + data['attachments']); + } + // validate the optional field `attachments` (array) + var _iterator = _createForOfIteratorHelper(data['attachments']), + _step; + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var item = _step.value; + _AttachmentsFieldsForVolume["default"].validateJSON(item); + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + ; + } // ensure the json data is a string if (data['callback_url'] && !(typeof data['callback_url'] === 'string' || data['callback_url'] instanceof String)) { throw new Error("Expected the field `callback_url` to be a primitive type in the JSON string but got " + data['callback_url']); @@ -122,7 +150,7 @@ var VolumeFields = /*#__PURE__*/function () { // validate the optional field `environment` if (data['environment']) { // data not null - _EnvironmentFieldsforVolume["default"].validateJSON(data['environment']); + _EnvironmentFieldsForVolume["default"].validateJSON(data['environment']); } // ensure the json data is a string if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { @@ -144,6 +172,11 @@ var VolumeFields = /*#__PURE__*/function () { } }]); }(); +/** + * @member {Array.} attachments + */ +VolumeFields.prototype['attachments'] = undefined; + /** * @member {Boolean} bootable */ @@ -165,7 +198,7 @@ VolumeFields.prototype['created_at'] = undefined; VolumeFields.prototype['description'] = undefined; /** - * @member {module:model/EnvironmentFieldsforVolume} environment + * @member {module:model/EnvironmentFieldsForVolume} environment */ VolumeFields.prototype['environment'] = undefined; diff --git a/dist/model/VolumeFieldsForInstance.js b/dist/model/VolumeFieldsForInstance.js new file mode 100644 index 00000000..dcbbd1b4 --- /dev/null +++ b/dist/model/VolumeFieldsForInstance.js @@ -0,0 +1,137 @@ +"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 VolumeFieldsForInstance model module. + * @module model/VolumeFieldsForInstance + * @version v1.51.1-alpha + */ +var VolumeFieldsForInstance = /*#__PURE__*/function () { + /** + * Constructs a new VolumeFieldsForInstance. + * @alias module:model/VolumeFieldsForInstance + */ + function VolumeFieldsForInstance() { + _classCallCheck(this, VolumeFieldsForInstance); + VolumeFieldsForInstance.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(VolumeFieldsForInstance, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a VolumeFieldsForInstance 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/VolumeFieldsForInstance} obj Optional instance to populate. + * @return {module:model/VolumeFieldsForInstance} The populated VolumeFieldsForInstance instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new VolumeFieldsForInstance(); + if (data.hasOwnProperty('bootable')) { + obj['bootable'] = _ApiClient["default"].convertToType(data['bootable'], 'Boolean'); + } + 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('size')) { + obj['size'] = _ApiClient["default"].convertToType(data['size'], 'Number'); + } + if (data.hasOwnProperty('volume_type')) { + obj['volume_type'] = _ApiClient["default"].convertToType(data['volume_type'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to VolumeFieldsForInstance. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to VolumeFieldsForInstance. + */ + }, { + 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['volume_type'] && !(typeof data['volume_type'] === 'string' || data['volume_type'] instanceof String)) { + throw new Error("Expected the field `volume_type` to be a primitive type in the JSON string but got " + data['volume_type']); + } + return true; + } + }]); +}(); +/** + * @member {Boolean} bootable + */ +VolumeFieldsForInstance.prototype['bootable'] = undefined; + +/** + * @member {String} description + */ +VolumeFieldsForInstance.prototype['description'] = undefined; + +/** + * @member {Number} id + */ +VolumeFieldsForInstance.prototype['id'] = undefined; + +/** + * @member {String} name + */ +VolumeFieldsForInstance.prototype['name'] = undefined; + +/** + * @member {Number} size + */ +VolumeFieldsForInstance.prototype['size'] = undefined; + +/** + * @member {String} volume_type + */ +VolumeFieldsForInstance.prototype['volume_type'] = undefined; +var _default = exports["default"] = VolumeFieldsForInstance; \ No newline at end of file diff --git a/dist/model/VolumeFieldsforInstance.js b/dist/model/VolumeFieldsforInstance.js deleted file mode 100644 index a029fcb4..00000000 --- a/dist/model/VolumeFieldsforInstance.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 _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 VolumeFieldsforInstance model module. - * @module model/VolumeFieldsforInstance - * @version v1.25.0-alpha - */ -var VolumeFieldsforInstance = /*#__PURE__*/function () { - /** - * Constructs a new VolumeFieldsforInstance. - * @alias module:model/VolumeFieldsforInstance - */ - function VolumeFieldsforInstance() { - _classCallCheck(this, VolumeFieldsforInstance); - VolumeFieldsforInstance.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(VolumeFieldsforInstance, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a VolumeFieldsforInstance 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/VolumeFieldsforInstance} obj Optional instance to populate. - * @return {module:model/VolumeFieldsforInstance} The populated VolumeFieldsforInstance instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VolumeFieldsforInstance(); - if (data.hasOwnProperty('bootable')) { - obj['bootable'] = _ApiClient["default"].convertToType(data['bootable'], 'Boolean'); - } - 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('size')) { - obj['size'] = _ApiClient["default"].convertToType(data['size'], 'Number'); - } - if (data.hasOwnProperty('volume_type')) { - obj['volume_type'] = _ApiClient["default"].convertToType(data['volume_type'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to VolumeFieldsforInstance. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to VolumeFieldsforInstance. - */ - }, { - 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['volume_type'] && !(typeof data['volume_type'] === 'string' || data['volume_type'] instanceof String)) { - throw new Error("Expected the field `volume_type` to be a primitive type in the JSON string but got " + data['volume_type']); - } - return true; - } - }]); -}(); -/** - * @member {Boolean} bootable - */ -VolumeFieldsforInstance.prototype['bootable'] = undefined; - -/** - * @member {String} description - */ -VolumeFieldsforInstance.prototype['description'] = undefined; - -/** - * @member {Number} id - */ -VolumeFieldsforInstance.prototype['id'] = undefined; - -/** - * @member {String} name - */ -VolumeFieldsforInstance.prototype['name'] = undefined; - -/** - * @member {Number} size - */ -VolumeFieldsforInstance.prototype['size'] = undefined; - -/** - * @member {String} volume_type - */ -VolumeFieldsforInstance.prototype['volume_type'] = undefined; -var _default = exports["default"] = VolumeFieldsforInstance; \ No newline at end of file diff --git a/dist/model/VolumeOverviewFields.js b/dist/model/VolumeOverviewFields.js index d8f73bc1..d2b22f13 100644 --- a/dist/model/VolumeOverviewFields.js +++ b/dist/model/VolumeOverviewFields.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The VolumeOverviewFields model module. * @module model/VolumeOverviewFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var VolumeOverviewFields = /*#__PURE__*/function () { /** diff --git a/dist/model/VolumeStatusChangeFields.js b/dist/model/VolumeStatusChangeFields.js deleted file mode 100644 index c1dd2cd5..00000000 --- a/dist/model/VolumeStatusChangeFields.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 VolumeStatusChangeFields model module. - * @module model/VolumeStatusChangeFields - * @version v1.25.0-alpha - */ -var VolumeStatusChangeFields = /*#__PURE__*/function () { - /** - * Constructs a new VolumeStatusChangeFields. - * @alias module:model/VolumeStatusChangeFields - */ - function VolumeStatusChangeFields() { - _classCallCheck(this, VolumeStatusChangeFields); - VolumeStatusChangeFields.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(VolumeStatusChangeFields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a VolumeStatusChangeFields 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/VolumeStatusChangeFields} obj Optional instance to populate. - * @return {module:model/VolumeStatusChangeFields} The populated VolumeStatusChangeFields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VolumeStatusChangeFields(); - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('current_status')) { - obj['current_status'] = _ApiClient["default"].convertToType(data['current_status'], 'String'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('previous_status')) { - obj['previous_status'] = _ApiClient["default"].convertToType(data['previous_status'], 'String'); - } - if (data.hasOwnProperty('volume_id')) { - obj['volume_id'] = _ApiClient["default"].convertToType(data['volume_id'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to VolumeStatusChangeFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to VolumeStatusChangeFields. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // ensure the json data is a string - if (data['current_status'] && !(typeof data['current_status'] === 'string' || data['current_status'] instanceof String)) { - throw new Error("Expected the field `current_status` to be a primitive type in the JSON string but got " + data['current_status']); - } - // ensure the json data is a string - if (data['previous_status'] && !(typeof data['previous_status'] === 'string' || data['previous_status'] instanceof String)) { - throw new Error("Expected the field `previous_status` to be a primitive type in the JSON string but got " + data['previous_status']); - } - return true; - } - }]); -}(); -/** - * @member {Date} created_at - */ -VolumeStatusChangeFields.prototype['created_at'] = undefined; - -/** - * @member {String} current_status - */ -VolumeStatusChangeFields.prototype['current_status'] = undefined; - -/** - * @member {Number} id - */ -VolumeStatusChangeFields.prototype['id'] = undefined; - -/** - * @member {String} previous_status - */ -VolumeStatusChangeFields.prototype['previous_status'] = undefined; - -/** - * @member {Number} volume_id - */ -VolumeStatusChangeFields.prototype['volume_id'] = undefined; -var _default = exports["default"] = VolumeStatusChangeFields; \ No newline at end of file diff --git a/dist/model/VolumeTypes.js b/dist/model/VolumeTypes.js index decbad03..caf94363 100644 --- a/dist/model/VolumeTypes.js +++ b/dist/model/VolumeTypes.js @@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The VolumeTypes model module. * @module model/VolumeTypes - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var VolumeTypes = /*#__PURE__*/function () { /** diff --git a/dist/model/Volumes.js b/dist/model/Volumes.js index 0b95b8d6..4d5061ad 100644 --- a/dist/model/Volumes.js +++ b/dist/model/Volumes.js @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _VolumeFields = _interopRequireDefault(require("./VolumeFields")); +var _VolumesFields = _interopRequireDefault(require("./VolumesFields")); 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; } } }; } @@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e /** * The Volumes model module. * @module model/Volumes - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ var Volumes = /*#__PURE__*/function () { /** @@ -63,14 +63,23 @@ var Volumes = /*#__PURE__*/function () { value: function constructFromObject(data, obj) { if (data) { obj = obj || new Volumes(); + if (data.hasOwnProperty('count')) { + obj['count'] = _ApiClient["default"].convertToType(data['count'], 'Number'); + } if (data.hasOwnProperty('message')) { obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); } + if (data.hasOwnProperty('page')) { + obj['page'] = _ApiClient["default"].convertToType(data['page'], 'Number'); + } + if (data.hasOwnProperty('page_size')) { + obj['page_size'] = _ApiClient["default"].convertToType(data['page_size'], 'Number'); + } if (data.hasOwnProperty('status')) { obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); } - if (data.hasOwnProperty('volume')) { - obj['volume'] = _ApiClient["default"].convertToType(data['volume'], [_VolumeFields["default"]]); + if (data.hasOwnProperty('volumes')) { + obj['volumes'] = _ApiClient["default"].convertToType(data['volumes'], [_VolumesFields["default"]]); } } return obj; @@ -88,19 +97,19 @@ var Volumes = /*#__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']); } - if (data['volume']) { + if (data['volumes']) { // data not null // ensure the json data is an array - if (!Array.isArray(data['volume'])) { - throw new Error("Expected the field `volume` to be an array in the JSON data but got " + data['volume']); + if (!Array.isArray(data['volumes'])) { + throw new Error("Expected the field `volumes` to be an array in the JSON data but got " + data['volumes']); } - // validate the optional field `volume` (array) - var _iterator = _createForOfIteratorHelper(data['volume']), + // validate the optional field `volumes` (array) + var _iterator = _createForOfIteratorHelper(data['volumes']), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var item = _step.value; - _VolumeFields["default"].validateJSON(item); + _VolumesFields["default"].validateJSON(item); } } catch (err) { _iterator.e(err); @@ -113,18 +122,33 @@ var Volumes = /*#__PURE__*/function () { } }]); }(); +/** + * @member {Number} count + */ +Volumes.prototype['count'] = undefined; + /** * @member {String} message */ Volumes.prototype['message'] = undefined; +/** + * @member {Number} page + */ +Volumes.prototype['page'] = undefined; + +/** + * @member {Number} page_size + */ +Volumes.prototype['page_size'] = undefined; + /** * @member {Boolean} status */ Volumes.prototype['status'] = undefined; /** - * @member {Array.} volume + * @member {Array.} volumes */ -Volumes.prototype['volume'] = undefined; +Volumes.prototype['volumes'] = undefined; var _default = exports["default"] = Volumes; \ No newline at end of file diff --git a/dist/model/VolumesFields.js b/dist/model/VolumesFields.js new file mode 100644 index 00000000..9fc1eaea --- /dev/null +++ b/dist/model/VolumesFields.js @@ -0,0 +1,232 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _AttachmentsFieldsForVolume = _interopRequireDefault(require("./AttachmentsFieldsForVolume")); +var _EnvironmentFieldsForVolume = _interopRequireDefault(require("./EnvironmentFieldsForVolume")); +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 VolumesFields model module. + * @module model/VolumesFields + * @version v1.51.1-alpha + */ +var VolumesFields = /*#__PURE__*/function () { + /** + * Constructs a new VolumesFields. + * @alias module:model/VolumesFields + */ + function VolumesFields() { + _classCallCheck(this, VolumesFields); + VolumesFields.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(VolumesFields, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a VolumesFields 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/VolumesFields} obj Optional instance to populate. + * @return {module:model/VolumesFields} The populated VolumesFields instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new VolumesFields(); + if (data.hasOwnProperty('attachments')) { + obj['attachments'] = _ApiClient["default"].convertToType(data['attachments'], [_AttachmentsFieldsForVolume["default"]]); + } + if (data.hasOwnProperty('bootable')) { + obj['bootable'] = _ApiClient["default"].convertToType(data['bootable'], 'Boolean'); + } + if (data.hasOwnProperty('callback_url')) { + obj['callback_url'] = _ApiClient["default"].convertToType(data['callback_url'], 'String'); + } + 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('environment')) { + obj['environment'] = _EnvironmentFieldsForVolume["default"].constructFromObject(data['environment']); + } + 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('size')) { + obj['size'] = _ApiClient["default"].convertToType(data['size'], 'Number'); + } + 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'); + } + if (data.hasOwnProperty('volume_type')) { + obj['volume_type'] = _ApiClient["default"].convertToType(data['volume_type'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to VolumesFields. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to VolumesFields. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + if (data['attachments']) { + // data not null + // ensure the json data is an array + if (!Array.isArray(data['attachments'])) { + throw new Error("Expected the field `attachments` to be an array in the JSON data but got " + data['attachments']); + } + // validate the optional field `attachments` (array) + var _iterator = _createForOfIteratorHelper(data['attachments']), + _step; + try { + for (_iterator.s(); !(_step = _iterator.n()).done;) { + var item = _step.value; + _AttachmentsFieldsForVolume["default"].validateJSON(item); + } + } catch (err) { + _iterator.e(err); + } finally { + _iterator.f(); + } + ; + } + // ensure the json data is a string + if (data['callback_url'] && !(typeof data['callback_url'] === 'string' || data['callback_url'] instanceof String)) { + throw new Error("Expected the field `callback_url` to be a primitive type in the JSON string but got " + data['callback_url']); + } + // 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']); + } + // validate the optional field `environment` + if (data['environment']) { + // data not null + _EnvironmentFieldsForVolume["default"].validateJSON(data['environment']); + } + // 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['volume_type'] && !(typeof data['volume_type'] === 'string' || data['volume_type'] instanceof String)) { + throw new Error("Expected the field `volume_type` to be a primitive type in the JSON string but got " + data['volume_type']); + } + return true; + } + }]); +}(); +/** + * @member {Array.} attachments + */ +VolumesFields.prototype['attachments'] = undefined; + +/** + * @member {Boolean} bootable + */ +VolumesFields.prototype['bootable'] = undefined; + +/** + * @member {String} callback_url + */ +VolumesFields.prototype['callback_url'] = undefined; + +/** + * @member {Date} created_at + */ +VolumesFields.prototype['created_at'] = undefined; + +/** + * @member {String} description + */ +VolumesFields.prototype['description'] = undefined; + +/** + * @member {module:model/EnvironmentFieldsForVolume} environment + */ +VolumesFields.prototype['environment'] = undefined; + +/** + * @member {Number} id + */ +VolumesFields.prototype['id'] = undefined; + +/** + * @member {Number} image_id + */ +VolumesFields.prototype['image_id'] = undefined; + +/** + * @member {String} name + */ +VolumesFields.prototype['name'] = undefined; + +/** + * @member {Number} size + */ +VolumesFields.prototype['size'] = undefined; + +/** + * @member {String} status + */ +VolumesFields.prototype['status'] = undefined; + +/** + * @member {Date} updated_at + */ +VolumesFields.prototype['updated_at'] = undefined; + +/** + * @member {String} volume_type + */ +VolumesFields.prototype['volume_type'] = undefined; +var _default = exports["default"] = VolumesFields; \ No newline at end of file diff --git a/dist/model/VolumesLastStatusChangeResponse.js b/dist/model/VolumesLastStatusChangeResponse.js deleted file mode 100644 index fc20d6b6..00000000 --- a/dist/model/VolumesLastStatusChangeResponse.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 _VolumeStatusChangeFields = _interopRequireDefault(require("./VolumeStatusChangeFields")); -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 VolumesLastStatusChangeResponse model module. - * @module model/VolumesLastStatusChangeResponse - * @version v1.25.0-alpha - */ -var VolumesLastStatusChangeResponse = /*#__PURE__*/function () { - /** - * Constructs a new VolumesLastStatusChangeResponse. - * @alias module:model/VolumesLastStatusChangeResponse - */ - function VolumesLastStatusChangeResponse() { - _classCallCheck(this, VolumesLastStatusChangeResponse); - VolumesLastStatusChangeResponse.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(VolumesLastStatusChangeResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a VolumesLastStatusChangeResponse 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/VolumesLastStatusChangeResponse} obj Optional instance to populate. - * @return {module:model/VolumesLastStatusChangeResponse} The populated VolumesLastStatusChangeResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new VolumesLastStatusChangeResponse(); - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('volume_status_list')) { - obj['volume_status_list'] = _ApiClient["default"].convertToType(data['volume_status_list'], [_VolumeStatusChangeFields["default"]]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to VolumesLastStatusChangeResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to VolumesLastStatusChangeResponse. - */ - }, { - 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['volume_status_list']) { - // data not null - // ensure the json data is an array - if (!Array.isArray(data['volume_status_list'])) { - throw new Error("Expected the field `volume_status_list` to be an array in the JSON data but got " + data['volume_status_list']); - } - // validate the optional field `volume_status_list` (array) - var _iterator = _createForOfIteratorHelper(data['volume_status_list']), - _step; - try { - for (_iterator.s(); !(_step = _iterator.n()).done;) { - var item = _step.value; - _VolumeStatusChangeFields["default"].validateJSON(item); - } - } catch (err) { - _iterator.e(err); - } finally { - _iterator.f(); - } - ; - } - return true; - } - }]); -}(); -/** - * @member {String} message - */ -VolumesLastStatusChangeResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -VolumesLastStatusChangeResponse.prototype['status'] = undefined; - -/** - * @member {Array.} volume_status_list - */ -VolumesLastStatusChangeResponse.prototype['volume_status_list'] = undefined; -var _default = exports["default"] = VolumesLastStatusChangeResponse; \ No newline at end of file diff --git a/dist/model/Voucher.js b/dist/model/Voucher.js new file mode 100644 index 00000000..6e5b6bc1 --- /dev/null +++ b/dist/model/Voucher.js @@ -0,0 +1,166 @@ +"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 Voucher model module. + * @module model/Voucher + * @version v1.51.1-alpha + */ +var Voucher = /*#__PURE__*/function () { + /** + * Constructs a new Voucher. + * @alias module:model/Voucher + * @param code {String} Voucher code + * @param id {Number} Voucher ID + * @param status {String} Voucher status + */ + function Voucher(code, id, status) { + _classCallCheck(this, Voucher); + Voucher.initialize(this, code, id, status); + } + + /** + * 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(Voucher, null, [{ + key: "initialize", + value: function initialize(obj, code, id, status) { + obj['code'] = code; + obj['id'] = id; + obj['status'] = status; + } + + /** + * Constructs a Voucher 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/Voucher} obj Optional instance to populate. + * @return {module:model/Voucher} The populated Voucher instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new Voucher(); + if (data.hasOwnProperty('code')) { + obj['code'] = _ApiClient["default"].convertToType(data['code'], 'String'); + } + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('max_redemption_count')) { + obj['max_redemption_count'] = _ApiClient["default"].convertToType(data['max_redemption_count'], 'Number'); + } + if (data.hasOwnProperty('redemption_count')) { + obj['redemption_count'] = _ApiClient["default"].convertToType(data['redemption_count'], 'Number'); + } + if (data.hasOwnProperty('remaining_redemptions')) { + obj['remaining_redemptions'] = _ApiClient["default"].convertToType(data['remaining_redemptions'], 'Number'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to Voucher. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to Voucher. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(Voucher.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['code'] && !(typeof data['code'] === 'string' || data['code'] instanceof String)) { + throw new Error("Expected the field `code` to be a primitive type in the JSON string but got " + data['code']); + } + // 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; + } + }]); +}(); +Voucher.RequiredProperties = ["code", "id", "status"]; + +/** + * Voucher code + * @member {String} code + */ +Voucher.prototype['code'] = undefined; + +/** + * Voucher ID + * @member {Number} id + */ +Voucher.prototype['id'] = undefined; + +/** + * Max redemption count for a General Voucher + * @member {Number} max_redemption_count + */ +Voucher.prototype['max_redemption_count'] = undefined; + +/** + * Current redemption count for a General Voucher + * @member {Number} redemption_count + */ +Voucher.prototype['redemption_count'] = undefined; + +/** + * Remaining redemptions + * @member {Number} remaining_redemptions + */ +Voucher.prototype['remaining_redemptions'] = undefined; + +/** + * Voucher status + * @member {String} status + */ +Voucher.prototype['status'] = undefined; +var _default = exports["default"] = Voucher; \ No newline at end of file diff --git a/dist/model/VoucherRedeemResponseSchema.js b/dist/model/VoucherRedeemResponseSchema.js new file mode 100644 index 00000000..e65fc7b8 --- /dev/null +++ b/dist/model/VoucherRedeemResponseSchema.js @@ -0,0 +1,139 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _Voucher = _interopRequireDefault(require("./Voucher")); +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 VoucherRedeemResponseSchema model module. + * @module model/VoucherRedeemResponseSchema + * @version v1.51.1-alpha + */ +var VoucherRedeemResponseSchema = /*#__PURE__*/function () { + /** + * Constructs a new VoucherRedeemResponseSchema. + * @alias module:model/VoucherRedeemResponseSchema + * @param message {String} Response message + * @param status {Boolean} Success status of the operation + */ + function VoucherRedeemResponseSchema(message, status) { + _classCallCheck(this, VoucherRedeemResponseSchema); + VoucherRedeemResponseSchema.initialize(this, message, status); + } + + /** + * 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(VoucherRedeemResponseSchema, null, [{ + key: "initialize", + value: function initialize(obj, message, status) { + obj['message'] = message; + obj['status'] = status; + } + + /** + * Constructs a VoucherRedeemResponseSchema 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/VoucherRedeemResponseSchema} obj Optional instance to populate. + * @return {module:model/VoucherRedeemResponseSchema} The populated VoucherRedeemResponseSchema instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new VoucherRedeemResponseSchema(); + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Boolean'); + } + if (data.hasOwnProperty('voucher')) { + obj['voucher'] = _ApiClient["default"].convertToType(data['voucher'], _Voucher["default"]); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to VoucherRedeemResponseSchema. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to VoucherRedeemResponseSchema. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // check to make sure all required properties are present in the JSON string + var _iterator = _createForOfIteratorHelper(VoucherRedeemResponseSchema.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']); + } + // validate the optional field `voucher` + if (data['voucher']) { + // data not null + _Voucher["default"].validateJSON(data['voucher']); + } + return true; + } + }]); +}(); +VoucherRedeemResponseSchema.RequiredProperties = ["message", "status"]; + +/** + * Response message + * @member {String} message + */ +VoucherRedeemResponseSchema.prototype['message'] = undefined; + +/** + * Success status of the operation + * @member {Boolean} status + */ +VoucherRedeemResponseSchema.prototype['status'] = undefined; + +/** + * Redeemed voucher details + * @member {module:model/Voucher} voucher + */ +VoucherRedeemResponseSchema.prototype['voucher'] = undefined; +var _default = exports["default"] = VoucherRedeemResponseSchema; \ No newline at end of file diff --git a/dist/model/WarningMailLogFields.js b/dist/model/WarningMailLogFields.js deleted file mode 100644 index 23c88361..00000000 --- a/dist/model/WarningMailLogFields.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 WarningMailLogFields model module. - * @module model/WarningMailLogFields - * @version v1.25.0-alpha - */ -var WarningMailLogFields = /*#__PURE__*/function () { - /** - * Constructs a new WarningMailLogFields. - * @alias module:model/WarningMailLogFields - */ - function WarningMailLogFields() { - _classCallCheck(this, WarningMailLogFields); - WarningMailLogFields.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(WarningMailLogFields, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a WarningMailLogFields 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/WarningMailLogFields} obj Optional instance to populate. - * @return {module:model/WarningMailLogFields} The populated WarningMailLogFields instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new WarningMailLogFields(); - if (data.hasOwnProperty('content')) { - obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'String'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('organization_id')) { - obj['organization_id'] = _ApiClient["default"].convertToType(data['organization_id'], 'Number'); - } - if (data.hasOwnProperty('threshold')) { - obj['threshold'] = _ApiClient["default"].convertToType(data['threshold'], 'Number'); - } - if (data.hasOwnProperty('topic')) { - obj['topic'] = _ApiClient["default"].convertToType(data['topic'], 'String'); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to WarningMailLogFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to WarningMailLogFields. - */ - }, { - key: "validateJSON", - value: function validateJSON(data) { - // ensure the json data is a string - if (data['content'] && !(typeof data['content'] === 'string' || data['content'] instanceof String)) { - throw new Error("Expected the field `content` to be a primitive type in the JSON string but got " + data['content']); - } - // ensure the json data is a string - if (data['created_at'] && !(typeof data['created_at'] === 'string' || data['created_at'] instanceof String)) { - throw new Error("Expected the field `created_at` to be a primitive type in the JSON string but got " + data['created_at']); - } - // ensure the json data is a string - if (data['topic'] && !(typeof data['topic'] === 'string' || data['topic'] instanceof String)) { - throw new Error("Expected the field `topic` to be a primitive type in the JSON string but got " + data['topic']); - } - // ensure the json data is a string - if (data['updated_at'] && !(typeof data['updated_at'] === 'string' || data['updated_at'] instanceof String)) { - throw new Error("Expected the field `updated_at` to be a primitive type in the JSON string but got " + data['updated_at']); - } - return true; - } - }]); -}(); -/** - * @member {String} content - */ -WarningMailLogFields.prototype['content'] = undefined; - -/** - * @member {String} created_at - */ -WarningMailLogFields.prototype['created_at'] = undefined; - -/** - * @member {Number} id - */ -WarningMailLogFields.prototype['id'] = undefined; - -/** - * @member {Number} organization_id - */ -WarningMailLogFields.prototype['organization_id'] = undefined; - -/** - * @member {Number} threshold - */ -WarningMailLogFields.prototype['threshold'] = undefined; - -/** - * @member {String} topic - */ -WarningMailLogFields.prototype['topic'] = undefined; - -/** - * @member {String} updated_at - */ -WarningMailLogFields.prototype['updated_at'] = undefined; -var _default = exports["default"] = WarningMailLogFields; \ No newline at end of file diff --git a/dist/model/WarningMailLogResponse.js b/dist/model/WarningMailLogResponse.js deleted file mode 100644 index 39fe359a..00000000 --- a/dist/model/WarningMailLogResponse.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 _WarningMailLogFields = _interopRequireDefault(require("./WarningMailLogFields")); -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 WarningMailLogResponse model module. - * @module model/WarningMailLogResponse - * @version v1.25.0-alpha - */ -var WarningMailLogResponse = /*#__PURE__*/function () { - /** - * Constructs a new WarningMailLogResponse. - * @alias module:model/WarningMailLogResponse - */ - function WarningMailLogResponse() { - _classCallCheck(this, WarningMailLogResponse); - WarningMailLogResponse.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(WarningMailLogResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a WarningMailLogResponse 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/WarningMailLogResponse} obj Optional instance to populate. - * @return {module:model/WarningMailLogResponse} The populated WarningMailLogResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new WarningMailLogResponse(); - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], [_WarningMailLogFields["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'); - } - if (data.hasOwnProperty('total')) { - obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to WarningMailLogResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to WarningMailLogResponse. - */ - }, { - 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; - _WarningMailLogFields["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 - */ -WarningMailLogResponse.prototype['data'] = undefined; - -/** - * @member {String} message - */ -WarningMailLogResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -WarningMailLogResponse.prototype['status'] = undefined; - -/** - * @member {Number} total - */ -WarningMailLogResponse.prototype['total'] = undefined; -var _default = exports["default"] = WarningMailLogResponse; \ No newline at end of file diff --git a/dist/model/WorkloadBillingHistoryResponse.js b/dist/model/WorkloadBillingHistoryResponse.js new file mode 100644 index 00000000..115bf96e --- /dev/null +++ b/dist/model/WorkloadBillingHistoryResponse.js @@ -0,0 +1,113 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _BillingHistoryFineTuning = _interopRequireDefault(require("./BillingHistoryFineTuning")); +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 WorkloadBillingHistoryResponse model module. + * @module model/WorkloadBillingHistoryResponse + * @version v1.51.1-alpha + */ +var WorkloadBillingHistoryResponse = /*#__PURE__*/function () { + /** + * Constructs a new WorkloadBillingHistoryResponse. + * @alias module:model/WorkloadBillingHistoryResponse + */ + function WorkloadBillingHistoryResponse() { + _classCallCheck(this, WorkloadBillingHistoryResponse); + WorkloadBillingHistoryResponse.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(WorkloadBillingHistoryResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a WorkloadBillingHistoryResponse 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/WorkloadBillingHistoryResponse} obj Optional instance to populate. + * @return {module:model/WorkloadBillingHistoryResponse} The populated WorkloadBillingHistoryResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new WorkloadBillingHistoryResponse(); + if (data.hasOwnProperty('billing_history_fine_tuning')) { + obj['billing_history_fine_tuning'] = _BillingHistoryFineTuning["default"].constructFromObject(data['billing_history_fine_tuning']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('success')) { + obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to WorkloadBillingHistoryResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to WorkloadBillingHistoryResponse. + */ + }, { + key: "validateJSON", + value: function validateJSON(data) { + // validate the optional field `billing_history_fine_tuning` + if (data['billing_history_fine_tuning']) { + // data not null + _BillingHistoryFineTuning["default"].validateJSON(data['billing_history_fine_tuning']); + } + // 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/BillingHistoryFineTuning} billing_history_fine_tuning + */ +WorkloadBillingHistoryResponse.prototype['billing_history_fine_tuning'] = undefined; + +/** + * + * @member {String} message + */ +WorkloadBillingHistoryResponse.prototype['message'] = undefined; + +/** + * + * @member {Boolean} success + */ +WorkloadBillingHistoryResponse.prototype['success'] = undefined; +var _default = exports["default"] = WorkloadBillingHistoryResponse; \ No newline at end of file diff --git a/docs/AccessKeysApi.md b/docs/AccessKeysApi.md new file mode 100644 index 00000000..63535475 --- /dev/null +++ b/docs/AccessKeysApi.md @@ -0,0 +1,163 @@ +# HyperstackApi.AccessKeysApi + +All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createAccessKeyEndpoint**](AccessKeysApi.md#createAccessKeyEndpoint) | **POST** /object-storage/access-keys | Generate a new access key +[**deleteAccessKeyEndpoint**](AccessKeysApi.md#deleteAccessKeyEndpoint) | **DELETE** /object-storage/access-keys/{access_key_id} | Remove an existing access key +[**listAccessKeysEndpoint**](AccessKeysApi.md#listAccessKeysEndpoint) | **GET** /object-storage/access-keys | List access keys + + + +## createAccessKeyEndpoint + +> ObjectStorageAccessKeyCreateResponse createAccessKeyEndpoint(opts) + +Generate a new access key + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.AccessKeysApi(); +let opts = { + 'body': new HyperstackApi.ObjectStorageAccessKeyCreateRequest() // ObjectStorageAccessKeyCreateRequest | +}; +apiInstance.createAccessKeyEndpoint(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**ObjectStorageAccessKeyCreateRequest**](ObjectStorageAccessKeyCreateRequest.md)| | [optional] + +### Return type + +[**ObjectStorageAccessKeyCreateResponse**](ObjectStorageAccessKeyCreateResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## deleteAccessKeyEndpoint + +> ObjectStorageDeleteResponse deleteAccessKeyEndpoint(accessKeyId) + +Remove an existing access key + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.AccessKeysApi(); +let accessKeyId = "accessKeyId_example"; // String | +apiInstance.deleteAccessKeyEndpoint(accessKeyId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **accessKeyId** | **String**| | + +### Return type + +[**ObjectStorageDeleteResponse**](ObjectStorageDeleteResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## listAccessKeysEndpoint + +> ObjectStorageAccessKeyListResponse listAccessKeysEndpoint(opts) + +List access keys + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.AccessKeysApi(); +let opts = { + 'search': "search_example", // String | + 'page': "page_example", // String | + 'pageSize': "pageSize_example" // String | +}; +apiInstance.listAccessKeysEndpoint(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **search** | **String**| | [optional] + **page** | **String**| | [optional] + **pageSize** | **String**| | [optional] + +### Return type + +[**ObjectStorageAccessKeyListResponse**](ObjectStorageAccessKeyListResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + diff --git a/docs/AccessTokenField.md b/docs/AccessTokenField.md new file mode 100644 index 00000000..8ebaada8 --- /dev/null +++ b/docs/AccessTokenField.md @@ -0,0 +1,9 @@ +# HyperstackApi.AccessTokenField + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accessToken** | **String** | | [optional] + + diff --git a/docs/AddUpdateFlavorOrganizationPayload.md b/docs/AddUpdateFlavorOrganizationPayload.md deleted file mode 100644 index 3efd0a6e..00000000 --- a/docs/AddUpdateFlavorOrganizationPayload.md +++ /dev/null @@ -1,21 +0,0 @@ -# HyperstackApi.AddUpdateFlavorOrganizationPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cpu** | **Number** | | -**description** | **String** | | [optional] -**disk** | **Number** | | -**ephemeral** | **Number** | | [optional] -**gpuCount** | **Number** | | -**gpuId** | **Number** | | -**isPublic** | **Boolean** | | -**labels** | **[String]** | | [optional] -**name** | **String** | | -**openstackId** | **String** | | -**organizations** | **[Number]** | | -**ram** | **Number** | | -**regionId** | **Number** | | - - diff --git a/docs/AliveApi.md b/docs/AliveApi.md index 347eb047..5c79e175 100644 --- a/docs/AliveApi.md +++ b/docs/AliveApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**getAlive**](AliveApi.md#getAlive) | **GET** /billing/alive | GET: Alive +[**getAliveDoc**](AliveApi.md#getAliveDoc) | **GET** /billing/alive/doc | @@ -14,10 +15,18 @@ Method | HTTP request | Description 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/). + ### Example ```javascript import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; let apiInstance = new HyperstackApi.AliveApi(); apiInstance.getAlive().then(() => { @@ -38,7 +47,51 @@ null (empty response body) ### Authorization -No authorization required +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + + +## getAliveDoc + +> getAliveDoc() + + + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.AliveApi(); +apiInstance.getAliveDoc().then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +null (empty response body) + +### Authorization + +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/ApiKeyApi.md b/docs/ApiKeyApi.md index 2daf0193..91d6874c 100644 --- a/docs/ApiKeyApi.md +++ b/docs/ApiKeyApi.md @@ -4,16 +4,16 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**deleteApiKey**](ApiKeyApi.md#deleteApiKey) | **DELETE** /api-key/{api_key_id} | Delete API Key -[**generateApiKey**](ApiKeyApi.md#generateApiKey) | **POST** /api-key/generate | Generate API Key -[**retrieveApiKeys**](ApiKeyApi.md#retrieveApiKeys) | **GET** /api-key | Retrieve API Keys -[**updateApiKey**](ApiKeyApi.md#updateApiKey) | **PUT** /api-key/{api_key_id} | Update API Key +[**deleteAPIKey**](ApiKeyApi.md#deleteAPIKey) | **DELETE** /api-key/{api_key_id} | Delete API Key +[**generateAPIKey**](ApiKeyApi.md#generateAPIKey) | **POST** /api-key/generate | Generate API Key +[**getAPIKey**](ApiKeyApi.md#getAPIKey) | **GET** /api-key | Retrieve API Keys +[**updateAPIKey**](ApiKeyApi.md#updateAPIKey) | **PUT** /api-key/{api_key_id} | Update API Key -## deleteApiKey +## deleteAPIKey -> CommonResponseModel deleteApiKey(apiKeyId) +> CommonResponseModel deleteAPIKey(apiKeyId) Delete API Key @@ -29,15 +29,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ApiKeyApi(); let apiKeyId = 56; // Number | -apiInstance.deleteApiKey(apiKeyId).then((data) => { +apiInstance.deleteAPIKey(apiKeyId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -58,7 +53,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -66,28 +61,28 @@ Name | Type | Description | Notes - **Accept**: application/json -## generateApiKey +## generateAPIKey -> GenerateUpdateApiKeyResponseModel generateApiKey(payload) +> GenerateUpdateApiKeyResponseModel generateAPIKey(payload) 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). ### Example ```javascript import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; let defaultClient = HyperstackApi.ApiClient.instance; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; +// Configure API key authorization: apiKey +let 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) -//accessToken.apiKeyPrefix = 'Token'; +//apiKey.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ApiKeyApi(); let payload = new HyperstackApi.GenerateUpdateApiKeyPayload(); // GenerateUpdateApiKeyPayload | -apiInstance.generateApiKey(payload).then((data) => { +apiInstance.generateAPIKey(payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -108,7 +103,7 @@ Name | Type | Description | Notes ### Authorization -[accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -116,13 +111,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveApiKeys +## getAPIKey -> GetApiKeysResponseModel retrieveApiKeys() +> GetApiKeysResponseModel getAPIKey() 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). ### Example @@ -134,14 +129,9 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ApiKeyApi(); -apiInstance.retrieveApiKeys().then((data) => { +apiInstance.getAPIKey().then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -159,7 +149,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -167,9 +157,9 @@ This endpoint does not need any parameter. - **Accept**: application/json -## updateApiKey +## updateAPIKey -> GenerateUpdateApiKeyResponseModel updateApiKey(apiKeyId, payload) +> GenerateUpdateApiKeyResponseModel updateAPIKey(apiKeyId, payload) Update API Key @@ -185,16 +175,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ApiKeyApi(); let apiKeyId = 56; // Number | let payload = new HyperstackApi.GenerateUpdateApiKeyPayload(); // GenerateUpdateApiKeyPayload | -apiInstance.updateApiKey(apiKeyId, payload).then((data) => { +apiInstance.updateAPIKey(apiKeyId, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -216,7 +201,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/ApiKeyVerifyFields.md b/docs/ApiKeyVerifyFields.md deleted file mode 100644 index e0fa87c5..00000000 --- a/docs/ApiKeyVerifyFields.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.ApiKeyVerifyFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**orgId** | **Number** | | [optional] -**sub** | **String** | | [optional] -**userId** | **Number** | | [optional] -**userRole** | **String** | | [optional] - - diff --git a/docs/AssigningMemberRoleApi.md b/docs/AssigningMemberRoleApi.md index 1c0aef7f..f043e2a9 100644 --- a/docs/AssigningMemberRoleApi.md +++ b/docs/AssigningMemberRoleApi.md @@ -4,18 +4,18 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**assignRbacRole**](AssigningMemberRoleApi.md#assignRbacRole) | **PUT** /auth/users/{user_id}/assign-roles | Assign RBAC Role -[**removeRbacRoleFromUser**](AssigningMemberRoleApi.md#removeRbacRoleFromUser) | **DELETE** /auth/users/{user_id}/roles | Remove RBAC Role From User +[**assignRBACRoleToUser**](AssigningMemberRoleApi.md#assignRBACRoleToUser) | **PUT** /auth/users/{user_id}/assign-roles | Assign RBAC Role +[**removeRBACRoleFromUser**](AssigningMemberRoleApi.md#removeRBACRoleFromUser) | **DELETE** /auth/users/{user_id}/roles | Remove RBAC Role From User -## assignRbacRole +## assignRBACRoleToUser -> RbacRoleDetailResponseModel assignRbacRole(userId, payload) +> RbacRoleDetailResponseModel assignRBACRoleToUser(userId, payload) 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). ### Example @@ -27,16 +27,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.AssigningMemberRoleApi(); let userId = 56; // Number | let payload = new HyperstackApi.AssignRbacRolePayload(); // AssignRbacRolePayload | -apiInstance.assignRbacRole(userId, payload).then((data) => { +apiInstance.assignRBACRoleToUser(userId, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -58,7 +53,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -66,13 +61,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## removeRbacRoleFromUser +## removeRBACRoleFromUser -> CommonResponseModel removeRbacRoleFromUser(userId) +> CommonResponseModel removeRBACRoleFromUser(userId) 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). ### Example @@ -84,15 +79,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.AssigningMemberRoleApi(); let userId = 56; // Number | -apiInstance.removeRbacRoleFromUser(userId).then((data) => { +apiInstance.removeRBACRoleFromUser(userId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -113,7 +103,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/AttachVolumeFields.md b/docs/AttachVolumeFields.md index 7c1a5f85..4d07b639 100644 --- a/docs/AttachVolumeFields.md +++ b/docs/AttachVolumeFields.md @@ -5,8 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createdAt** | **Date** | | [optional] +**device** | **String** | | [optional] **id** | **Number** | | [optional] **instanceId** | **Number** | | [optional] +**_protected** | **Boolean** | | [optional] **status** | **String** | | [optional] **volumeId** | **Number** | | [optional] diff --git a/docs/AttachVolumesPayload.md b/docs/AttachVolumesPayload.md index d9815b00..31b5828b 100644 --- a/docs/AttachVolumesPayload.md +++ b/docs/AttachVolumesPayload.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**_protected** | **Boolean** | | [optional] [default to false] **volumeIds** | **[Number]** | | [optional] diff --git a/docs/AttachmentsFieldsForVolume.md b/docs/AttachmentsFieldsForVolume.md new file mode 100644 index 00000000..e330d4c2 --- /dev/null +++ b/docs/AttachmentsFieldsForVolume.md @@ -0,0 +1,13 @@ +# HyperstackApi.AttachmentsFieldsForVolume + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device** | **String** | | [optional] +**id** | **Number** | | [optional] +**instanceId** | **Number** | | [optional] +**_protected** | **Boolean** | | [optional] +**status** | **String** | | [optional] + + diff --git a/docs/Attributes.md b/docs/Attributes.md new file mode 100644 index 00000000..6675c8dc --- /dev/null +++ b/docs/Attributes.md @@ -0,0 +1,14 @@ +# HyperstackApi.Attributes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**baseModel** | **String** | | [optional] +**baseModelDisplayName** | **String** | | [optional] +**infrahubId** | **Number** | | [optional] +**loraAdapter** | **String** | | [optional] +**resourceName** | **String** | | [optional] +**status** | **String** | | [optional] + + diff --git a/docs/AuthApi.md b/docs/AuthApi.md index 5b8c589f..ef9159d5 100644 --- a/docs/AuthApi.md +++ b/docs/AuthApi.md @@ -4,17 +4,209 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- +[**changeOrganizationForToken**](AuthApi.md#changeOrganizationForToken) | **GET** /auth/token/change-org/{org_id} | +[**disableMFA**](AuthApi.md#disableMFA) | **POST** /auth/me/mfa/disable | +[**getUserMFAStatus**](AuthApi.md#getUserMFAStatus) | **GET** /auth/me/mfa | Get MFA status for authenticated user +[**getUserOrganizations**](AuthApi.md#getUserOrganizations) | **GET** /auth/me/organizations | Get User Organizations [**retrieveAuthenticatedUserDetails**](AuthApi.md#retrieveAuthenticatedUserDetails) | **GET** /auth/me | Retrieve Authenticated User Details +## changeOrganizationForToken + +> AuthGetTokenResponseModel changeOrganizationForToken(orgId) + + + +Change the organization associated with the current token. This is useful for users who have access to multiple organizations. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.AuthApi(); +let orgId = 56; // Number | +apiInstance.changeOrganizationForToken(orgId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orgId** | **Number**| | + +### Return type + +[**AuthGetTokenResponseModel**](AuthGetTokenResponseModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## disableMFA + +> CommonResponseModel disableMFA() + + + +Disable Multi-Factor Authentication (MFA) for the currently authenticated user. This endpoint is used to turn off MFA. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.AuthApi(); +apiInstance.disableMFA().then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**CommonResponseModel**](CommonResponseModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getUserMFAStatus + +> MFAStatusResponse getUserMFAStatus() + +Get MFA status for authenticated user + +Retrieve the Multi-Factor Authentication (MFA) status for the currentlyauthenticated user. Includes whether MFA is enabled. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.AuthApi(); +apiInstance.getUserMFAStatus().then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**MFAStatusResponse**](MFAStatusResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getUserOrganizations + +> UserOrganizationsResponse getUserOrganizations() + +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. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.AuthApi(); +apiInstance.getUserOrganizations().then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**UserOrganizationsResponse**](UserOrganizationsResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## retrieveAuthenticatedUserDetails > AuthUserInfoResponseModel retrieveAuthenticatedUserDetails() 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). ### Example @@ -26,11 +218,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.AuthApi(); apiInstance.retrieveAuthenticatedUserDetails().then((data) => { @@ -51,7 +238,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/AuthGetTokenResponseModel.md b/docs/AuthGetTokenResponseModel.md index 43524b73..059095ed 100644 --- a/docs/AuthGetTokenResponseModel.md +++ b/docs/AuthGetTokenResponseModel.md @@ -4,9 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**firstLogin** | **Boolean** | | [optional] **message** | **String** | | [optional] **status** | **Boolean** | | [optional] -**token** | [**TokenFields**](TokenFields.md) | | [optional] +**token** | [**AccessTokenField**](AccessTokenField.md) | | [optional] diff --git a/docs/AuthRequestLoginFields.md b/docs/AuthRequestLoginFields.md deleted file mode 100644 index 0e516f67..00000000 --- a/docs/AuthRequestLoginFields.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.AuthRequestLoginFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**authorizationUrl** | **String** | | [optional] -**sessionId** | **String** | | [optional] - - diff --git a/docs/AuthRequestLoginResponseModel.md b/docs/AuthRequestLoginResponseModel.md deleted file mode 100644 index 3f4d2a05..00000000 --- a/docs/AuthRequestLoginResponseModel.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.AuthRequestLoginResponseModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**AuthRequestLoginFields**](AuthRequestLoginFields.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/BetaAccessApi.md b/docs/BetaAccessApi.md new file mode 100644 index 00000000..482ad2e1 --- /dev/null +++ b/docs/BetaAccessApi.md @@ -0,0 +1,157 @@ +# HyperstackApi.BetaAccessApi + +All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createBetaAccessRequest**](BetaAccessApi.md#createBetaAccessRequest) | **POST** /auth/beta-access/requests | Create a new beta access request +[**getBetaAccessRequests**](BetaAccessApi.md#getBetaAccessRequests) | **GET** /auth/beta-access/requests/{program} | Check the status of beta access requests +[**getBetaAccessStatus**](BetaAccessApi.md#getBetaAccessStatus) | **GET** /auth/beta-access/requests | Check the status of all beta access requests + + + +## createBetaAccessRequest + +> BetaAccessRequestResponseModel createBetaAccessRequest(payload) + +Create a new beta access request + +Creates a new beta access request for the current user + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BetaAccessApi(); +let payload = new HyperstackApi.BetaAccessRequestPayload(); // BetaAccessRequestPayload | +apiInstance.createBetaAccessRequest(payload).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **payload** | [**BetaAccessRequestPayload**](BetaAccessRequestPayload.md)| | + +### Return type + +[**BetaAccessRequestResponseModel**](BetaAccessRequestResponseModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## getBetaAccessRequests + +> BetaAccessStatusResponseModel getBetaAccessRequests(program) + +Check the status of beta access requests + +Check the status of a particular beta access requests. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BetaAccessApi(); +let program = "program_example"; // String | +apiInstance.getBetaAccessRequests(program).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **program** | **String**| | + +### Return type + +[**BetaAccessStatusResponseModel**](BetaAccessStatusResponseModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getBetaAccessStatus + +> BetaAccessStatusResponseModel getBetaAccessStatus() + +Check the status of all beta access requests + +Check the status of all beta access requests. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BetaAccessApi(); +apiInstance.getBetaAccessStatus().then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**BetaAccessStatusResponseModel**](BetaAccessStatusResponseModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + diff --git a/docs/BetaAccessRequestFields.md b/docs/BetaAccessRequestFields.md new file mode 100644 index 00000000..bd25da2c --- /dev/null +++ b/docs/BetaAccessRequestFields.md @@ -0,0 +1,29 @@ +# HyperstackApi.BetaAccessRequestFields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | **Date** | When the request was made | [optional] +**id** | **Number** | Unique identifier for the request | [optional] +**programId** | **Number** | ID of the beta program | [optional] +**programName** | **String** | Name of the beta program | [optional] +**status** | **String** | Status of the request | [optional] +**userId** | **Number** | ID of the user who made the request | [optional] + + + +## Enum: StatusEnum + + +* `requested` (value: `"requested"`) + +* `approved` (value: `"approved"`) + +* `denied` (value: `"denied"`) + +* `revoked` (value: `"revoked"`) + + + + diff --git a/docs/BetaAccessRequestPayload.md b/docs/BetaAccessRequestPayload.md new file mode 100644 index 00000000..c791d31d --- /dev/null +++ b/docs/BetaAccessRequestPayload.md @@ -0,0 +1,10 @@ +# HyperstackApi.BetaAccessRequestPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | **Object** | Optional metadata for the request | [optional] +**program** | **String** | Name of the beta program | + + diff --git a/docs/BetaAccessRequestResponseModel.md b/docs/BetaAccessRequestResponseModel.md new file mode 100644 index 00000000..5ec31d4e --- /dev/null +++ b/docs/BetaAccessRequestResponseModel.md @@ -0,0 +1,11 @@ +# HyperstackApi.BetaAccessRequestResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**betaAccessRequest** | [**BetaAccessRequestFields**](BetaAccessRequestFields.md) | | [optional] +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/BetaAccessStatusItem.md b/docs/BetaAccessStatusItem.md new file mode 100644 index 00000000..564287db --- /dev/null +++ b/docs/BetaAccessStatusItem.md @@ -0,0 +1,26 @@ +# HyperstackApi.BetaAccessStatusItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**programName** | **String** | Name of the beta program | [optional] +**requestDate** | **Date** | When the request was made | [optional] +**status** | **String** | Status of the request (requested, approved, denied, revoked) | [optional] + + + +## Enum: StatusEnum + + +* `requested` (value: `"requested"`) + +* `approved` (value: `"approved"`) + +* `denied` (value: `"denied"`) + +* `revoked` (value: `"revoked"`) + + + + diff --git a/docs/BetaAccessStatusResponseModel.md b/docs/BetaAccessStatusResponseModel.md new file mode 100644 index 00000000..67afc14c --- /dev/null +++ b/docs/BetaAccessStatusResponseModel.md @@ -0,0 +1,11 @@ +# HyperstackApi.BetaAccessStatusResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**betaAccessRequests** | [**[BetaAccessStatusItem]**](BetaAccessStatusItem.md) | List of beta access requests | [optional] +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/BillingApi.md b/docs/BillingApi.md index 77c358dd..561c515e 100644 --- a/docs/BillingApi.md +++ b/docs/BillingApi.md @@ -4,35 +4,1003 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**getAllThresholdsForOrganization**](BillingApi.md#getAllThresholdsForOrganization) | **GET** /billing/billing/threshold | GET: All Thresholds for Organization -[**getBillingUsage**](BillingApi.md#getBillingUsage) | **GET** /billing/billing/usage | GET: Billing usage +[**bucketsBillingHistoryHourlyChart**](BillingApi.md#bucketsBillingHistoryHourlyChart) | **GET** /billing/billing/history/bucket/{bucket_id}/graph | Retrieve hourly cost datapoints of a Specific Bucket for a specific billing cycle +[**getBucketBillingHistory**](BillingApi.md#getBucketBillingHistory) | **GET** /billing/billing/history/bucket/{bucket_id} | Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle +[**getClusterBillingHistory**](BillingApi.md#getClusterBillingHistory) | **GET** /billing/billing/history/cluster/{cluster_id} | Retrieve Billing History of a Specific Cluster for a specific Billing Cycle +[**getClusterBillingHistoryGraph**](BillingApi.md#getClusterBillingHistoryGraph) | **GET** /billing/billing/history/cluster/{cluster_id}/graph | Retrieve hourly cost datapoints of a specific Cluster for a specific billing cycle +[**getDataSynthesisBillingHistory**](BillingApi.md#getDataSynthesisBillingHistory) | **GET** /billing/billing/history/data_synthesis | Retrieve Billing History of data synthesis for a specific Billing Cycle +[**getDataSynthesisBillingHistoryGraph**](BillingApi.md#getDataSynthesisBillingHistoryGraph) | **GET** /billing/billing/history/data_synthesis/{resource_id}/graph | Retrieve hourly cost datapoints of a Specific Data Synthesis for a specific +[**getDataSynthesisHistoryForResource**](BillingApi.md#getDataSynthesisHistoryForResource) | **GET** /billing/billing/history/data_synthesis/{resource_id} | +[**getFineTuningBillingHistory**](BillingApi.md#getFineTuningBillingHistory) | **GET** /billing/billing/history/fine_tuning | Retrieve Billing History of model evaluation for a specific Billing Cycle +[**getFineTuningBillingHistoryGraph**](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 [**getLastDayCost**](BillingApi.md#getLastDayCost) | **GET** /billing/billing/last-day-cost | GET: Last Day Cost -[**retrieveBillingHistoryForASpecificBillingCycle**](BillingApi.md#retrieveBillingHistoryForASpecificBillingCycle) | **GET** /billing/billing/history | Retrieve Billing History for a specific Billing Cycle -[**retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle**](BillingApi.md#retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle) | **GET** /billing/billing/history/snapshot/{snapshot_id} | Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle -[**retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle**](BillingApi.md#retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle) | **GET** /billing/billing/history/virtual-machine/{vm_id} | Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle -[**retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle**](BillingApi.md#retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle) | **GET** /billing/billing/history/volume/{volume_id} | Retrieve Billing History of a Specific Volume for a specific Billing Cycle -[**retrieveBillingHistoryOfContractForASpecificBillingCycle**](BillingApi.md#retrieveBillingHistoryOfContractForASpecificBillingCycle) | **GET** /billing/billing/history/contract | Retrieve Billing History of Contract for a specific Billing Cycle -[**retrieveBillingHistoryOfSnapshotForASpecificBillingCycle**](BillingApi.md#retrieveBillingHistoryOfSnapshotForASpecificBillingCycle) | **GET** /billing/billing/history/snapshot | Retrieve Billing History of Snapshot for a specific Billing Cycle -[**retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle**](BillingApi.md#retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle) | **GET** /billing/billing/history/virtual-machine | Retrieve Billing History of Virtual Machine for a specific Billing Cycle -[**retrieveBillingHistoryOfVolumeForASpecificBillingCycle**](BillingApi.md#retrieveBillingHistoryOfVolumeForASpecificBillingCycle) | **GET** /billing/billing/history/volume | Retrieve Billing History of Volume for a specific Billing Cycle -[**retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle**](BillingApi.md#retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle) | **GET** /billing/billing/history/snapshot/{snapshot_id}/graph | Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle -[**retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle**](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 -[**retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle**](BillingApi.md#retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle) | **GET** /billing/billing/history/volume/{volume_id}/graph | Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle -[**retrieveSubResourcesHistoricalCostDatapointsOfAVirtual**](BillingApi.md#retrieveSubResourcesHistoricalCostDatapointsOfAVirtual) | **GET** /billing/billing/virtual-machine/{vm_id}/sub-resource/graph | Retrieve Sub-Resources Historical Cost datapoints of a Virtual -[**retrieveTotalCostsAndNonDiscountCostsForSubResources**](BillingApi.md#retrieveTotalCostsAndNonDiscountCostsForSubResources) | **GET** /billing/billing/virtual-machine/{vm_id}/sub-resource | Retrieve Total Costs and Non Discount Costs for Sub Resources -[**retrieveVmBillingEventsHistory**](BillingApi.md#retrieveVmBillingEventsHistory) | **GET** /billing/billing/virtual-machine/{vm_id}/billing-events | Retrieve VM billing events history -[**retrieveVolumeBillingEventsHistory**](BillingApi.md#retrieveVolumeBillingEventsHistory) | **GET** /billing/billing/volume/{volume_id}/billing-events | Retrieve Volume billing events history -[**updateSubscribeOrUnsubscribeNotificationThreshold**](BillingApi.md#updateSubscribeOrUnsubscribeNotificationThreshold) | **PUT** /billing/billing/threshold/{threshold_id} | Update: Subscribe or Unsubscribe Notification Threshold +[**getModelEvaluationBillingHistory**](BillingApi.md#getModelEvaluationBillingHistory) | **GET** /billing/billing/history/model_evaluation | Retrieve Billing History of model evaluation for a specific Billing Cycle +[**getModelEvaluationBillingHistoryGraph**](BillingApi.md#getModelEvaluationBillingHistoryGraph) | **GET** /billing/billing/history/model_evaluation/{resource_id}/graph | Retrieve hourly cost datapoints of a Specific Model Evaluation for a specific +[**getNotificationThreshold**](BillingApi.md#getNotificationThreshold) | **PUT** /billing/billing/threshold/{threshold_id} | Update: Subscribe or Unsubscribe Notification Threshold +[**getResourceFineTuningBillingHistory**](BillingApi.md#getResourceFineTuningBillingHistory) | **GET** /billing/billing/history/fine_tuning/{resource_id} | Retrieve Billing History of a Specific Fine Tuning for a specific Billing Cycle +[**getResourceModelEvaluationBillingHistory**](BillingApi.md#getResourceModelEvaluationBillingHistory) | **GET** /billing/billing/history/model_evaluation/{resource_id} | +[**getServerlessInferenceBillingHistoryGraph**](BillingApi.md#getServerlessInferenceBillingHistoryGraph) | **GET** /billing/billing/history/serverless_inference/{resource_id}/graph | Retrieve hourly cost datapoints of a Specific Serverless Inference for a specific +[**getServerlessInferencesBillingHistory**](BillingApi.md#getServerlessInferencesBillingHistory) | **GET** /billing/billing/history/serverless_inference/{resource_id} | +[**getSnapshotBillingHistory**](BillingApi.md#getSnapshotBillingHistory) | **GET** /billing/billing/history/snapshot/{snapshot_id} | Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle +[**getSnapshotBillingHistoryGraph**](BillingApi.md#getSnapshotBillingHistoryGraph) | **GET** /billing/billing/history/snapshot/{snapshot_id}/graph | Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle +[**getUsage**](BillingApi.md#getUsage) | **GET** /billing/billing/usage | GET: Billing usage +[**getUserBillingHistory**](BillingApi.md#getUserBillingHistory) | **GET** /billing/billing/history | Retrieve Billing History for a specific Billing Cycle +[**getVMBillingDetails**](BillingApi.md#getVMBillingDetails) | **GET** /billing/billing/history/virtual-machine/{vm_id} | Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle +[**getVMBillingEvents**](BillingApi.md#getVMBillingEvents) | **GET** /billing/billing/virtual-machine/{vm_id}/billing-events | Retrieve VM billing events history +[**getVMBillingGraph**](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 +[**getVMBillingHistory**](BillingApi.md#getVMBillingHistory) | **GET** /billing/billing/history/virtual-machine | Retrieve Billing History of Virtual Machine for a specific Billing Cycle +[**getVMSubResourceCosts**](BillingApi.md#getVMSubResourceCosts) | **GET** /billing/billing/virtual-machine/{vm_id}/sub-resource | Retrieve Total Costs and Non Discount Costs for Sub Resources +[**getVMSubResourceGraph**](BillingApi.md#getVMSubResourceGraph) | **GET** /billing/billing/virtual-machine/{vm_id}/sub-resource/graph | Retrieve Sub-Resources Historical Cost datapoints of a Virtual +[**getVolumeBillingDetails**](BillingApi.md#getVolumeBillingDetails) | **GET** /billing/billing/history/volume/{volume_id} | Retrieve Billing History of a Specific Volume for a specific Billing Cycle +[**getVolumeBillingEvents**](BillingApi.md#getVolumeBillingEvents) | **GET** /billing/billing/volume/{volume_id}/billing-events | Retrieve Volume billing events history +[**getVolumeBillingHistory**](BillingApi.md#getVolumeBillingHistory) | **GET** /billing/billing/history/volume | Retrieve Billing History of Volume for a specific Billing Cycle +[**getVolumeBillingHistoryGraph**](BillingApi.md#getVolumeBillingHistoryGraph) | **GET** /billing/billing/history/volume/{volume_id}/graph | Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle +[**listBillingContractHistory**](BillingApi.md#listBillingContractHistory) | **GET** /billing/billing/history/contract | Retrieve Billing History of Contract for a specific Billing Cycle +[**listBucketBillingHistory**](BillingApi.md#listBucketBillingHistory) | **GET** /billing/billing/history/bucket | Retrieve Billing History of a Bucket for a specific Billing Cycle +[**listClustersBillingHistory**](BillingApi.md#listClustersBillingHistory) | **GET** /billing/billing/history/cluster | Retrieve Billing History of Clusters for a specific Billing Cycle +[**listOrgNotificationThresholds**](BillingApi.md#listOrgNotificationThresholds) | **GET** /billing/billing/threshold | GET: All Thresholds for Organization +[**listServerlessInferenceBillingHistory**](BillingApi.md#listServerlessInferenceBillingHistory) | **GET** /billing/billing/history/serverless_inference | Retrieve Billing History of serverless inference for a specific Billing Cycle +[**listSnapshotBillingHistory**](BillingApi.md#listSnapshotBillingHistory) | **GET** /billing/billing/history/snapshot | Retrieve Billing History of Snapshot for a specific Billing Cycle + + + +## bucketsBillingHistoryHourlyChart + +> ResourceLevelGraphBillingDetailsBucket bucketsBillingHistoryHourlyChart(bucketId, opts) + +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. +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +let bucketId = 56; // Number | +let opts = { + 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS +}; +apiInstance.bucketsBillingHistoryHourlyChart(bucketId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bucketId** | **Number**| | + **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + +### Return type + +[**ResourceLevelGraphBillingDetailsBucket**](ResourceLevelGraphBillingDetailsBucket.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getBucketBillingHistory + +> ResourceLevelBucketBillingDetailsResponseModel getBucketBillingHistory(bucketId, opts) + +Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle + +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'. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +let bucketId = 56; // Number | +let opts = { + 'startDate': "startDate_example", // String | Datetime should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example" // String | Datetime should be formatted in YYYY-MM-DDTHH:MM:SS +}; +apiInstance.getBucketBillingHistory(bucketId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bucketId** | **Number**| | + **startDate** | **String**| Datetime should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Datetime should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + +### Return type + +[**ResourceLevelBucketBillingDetailsResponseModel**](ResourceLevelBucketBillingDetailsResponseModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getClusterBillingHistory + +> ResourceLevelClusterBillingDetailsResponseModel getClusterBillingHistory(clusterId, opts) + +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'. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +let clusterId = 56; // Number | +let opts = { + 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS +}; +apiInstance.getClusterBillingHistory(clusterId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterId** | **Number**| | + **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + +### Return type + +[**ResourceLevelClusterBillingDetailsResponseModel**](ResourceLevelClusterBillingDetailsResponseModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getClusterBillingHistoryGraph + +> ResourceLevelClusterGraphBillingDetailsResponseModel getClusterBillingHistoryGraph(clusterId, opts) + +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. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +let clusterId = 56; // Number | +let opts = { + 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS +}; +apiInstance.getClusterBillingHistoryGraph(clusterId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterId** | **Number**| | + **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + +### Return type + +[**ResourceLevelClusterGraphBillingDetailsResponseModel**](ResourceLevelClusterGraphBillingDetailsResponseModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getDataSynthesisBillingHistory + +> TokenBasedBillingHistoryResponse getDataSynthesisBillingHistory(opts) + +Retrieve Billing History of data synthesis for a specific Billing Cycle + +User will receive billing history of data_synthesis for the specified billing cycle. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +let opts = { + 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'search': "search_example", // String | Search by resource \"Name\" or \"ID\" + 'perPage': 56, // Number | Number of items to return per page + 'page': 56 // Number | Page number +}; +apiInstance.getDataSynthesisBillingHistory(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **search** | **String**| Search by resource \"Name\" or \"ID\" | [optional] + **perPage** | **Number**| Number of items to return per page | [optional] + **page** | **Number**| Page number | [optional] + +### Return type + +[**TokenBasedBillingHistoryResponse**](TokenBasedBillingHistoryResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getDataSynthesisBillingHistoryGraph + +> DataSynthesisBillingHistoryDetailsResponseSchema getDataSynthesisBillingHistoryGraph(resourceId, opts) + +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 + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +let resourceId = 56; // Number | +let opts = { + 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS +}; +apiInstance.getDataSynthesisBillingHistoryGraph(resourceId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resourceId** | **Number**| | + **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + +### Return type + +[**DataSynthesisBillingHistoryDetailsResponseSchema**](DataSynthesisBillingHistoryDetailsResponseSchema.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getDataSynthesisHistoryForResource + +> DataSynthesisBillingHistoryDetailsResponseSchema getDataSynthesisHistoryForResource(resourceId, opts) + + + +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' + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +let resourceId = 56; // Number | +let opts = { + 'startDate': "startDate_example", // String | YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example" // String | YYYY-MM-DDTHH:MM:SS +}; +apiInstance.getDataSynthesisHistoryForResource(resourceId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resourceId** | **Number**| | + **startDate** | **String**| YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| YYYY-MM-DDTHH:MM:SS | [optional] + +### Return type + +[**DataSynthesisBillingHistoryDetailsResponseSchema**](DataSynthesisBillingHistoryDetailsResponseSchema.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getFineTuningBillingHistory + +> WorkloadBillingHistoryResponse getFineTuningBillingHistory(opts) + +Retrieve Billing History of model evaluation for a specific Billing Cycle + +User will receive billing history of fine_tuning for the specified billing cycle. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +let opts = { + 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'search': "search_example", // String | Search by resource \"Name\" or \"ID\" + 'perPage': 56, // Number | Number of items to return per page + 'page': 56 // Number | Page number +}; +apiInstance.getFineTuningBillingHistory(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **search** | **String**| Search by resource \"Name\" or \"ID\" | [optional] + **perPage** | **Number**| Number of items to return per page | [optional] + **page** | **Number**| Page number | [optional] + +### Return type + +[**WorkloadBillingHistoryResponse**](WorkloadBillingHistoryResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getFineTuningBillingHistoryGraph + +> ResourceLevelVolumeGraphBillingDetailsResponseModel getFineTuningBillingHistoryGraph(resourceId, opts) + +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. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +let resourceId = 56; // Number | +let opts = { + 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS +}; +apiInstance.getFineTuningBillingHistoryGraph(resourceId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resourceId** | **Number**| | + **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + +### Return type + +[**ResourceLevelVolumeGraphBillingDetailsResponseModel**](ResourceLevelVolumeGraphBillingDetailsResponseModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getLastDayCost + +> LastDayCostResponse getLastDayCost() + +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/) + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +apiInstance.getLastDayCost().then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**LastDayCostResponse**](LastDayCostResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getModelEvaluationBillingHistory + +> TokenBasedBillingHistoryResponse getModelEvaluationBillingHistory(opts) + +Retrieve Billing History of model evaluation for a specific Billing Cycle + +User will receive billing history of model_evaluation for the specified billing cycle. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +let opts = { + 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'search': "search_example", // String | Search by resource \"Name\" or \"ID\" + 'perPage': 56, // Number | Number of items to return per page + 'page': 56 // Number | Page number +}; +apiInstance.getModelEvaluationBillingHistory(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **search** | **String**| Search by resource \"Name\" or \"ID\" | [optional] + **perPage** | **Number**| Number of items to return per page | [optional] + **page** | **Number**| Page number | [optional] + +### Return type + +[**TokenBasedBillingHistoryResponse**](TokenBasedBillingHistoryResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getModelEvaluationBillingHistoryGraph + +> ModelEvaluationBillingHistoryDetailsResponseSchema getModelEvaluationBillingHistoryGraph(resourceId, opts) + +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 + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +let resourceId = 56; // Number | +let opts = { + 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS +}; +apiInstance.getModelEvaluationBillingHistoryGraph(resourceId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resourceId** | **Number**| | + **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + +### Return type + +[**ModelEvaluationBillingHistoryDetailsResponseSchema**](ModelEvaluationBillingHistoryDetailsResponseSchema.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getNotificationThreshold + +> OrganizationThresholdUpdateResponse getNotificationThreshold(thresholdId, payload) + +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. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +let thresholdId = 56; // Number | +let payload = new HyperstackApi.SubscribeOrUnsubscribeUpdatePayload(); // SubscribeOrUnsubscribeUpdatePayload | +apiInstance.getNotificationThreshold(thresholdId, payload).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **thresholdId** | **Number**| | + **payload** | [**SubscribeOrUnsubscribeUpdatePayload**](SubscribeOrUnsubscribeUpdatePayload.md)| | + +### Return type + +[**OrganizationThresholdUpdateResponse**](OrganizationThresholdUpdateResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## getResourceFineTuningBillingHistory + +> ResourceLevelVolumeBillingDetailsResponseModel getResourceFineTuningBillingHistory(resourceId, opts) + +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'. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +let resourceId = 56; // Number | +let opts = { + 'startDate': "startDate_example", // String | Datetime should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example" // String | Datetime should be formatted in YYYY-MM-DDTHH:MM:SS +}; +apiInstance.getResourceFineTuningBillingHistory(resourceId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resourceId** | **Number**| | + **startDate** | **String**| Datetime should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Datetime should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + +### Return type + +[**ResourceLevelVolumeBillingDetailsResponseModel**](ResourceLevelVolumeBillingDetailsResponseModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getResourceModelEvaluationBillingHistory + +> ModelEvaluationBillingHistoryDetailsResponseSchema getResourceModelEvaluationBillingHistory(resourceId, opts) + + + +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' + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +let resourceId = 56; // Number | +let opts = { + 'startDate': "startDate_example", // String | YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example" // String | YYYY-MM-DDTHH:MM:SS +}; +apiInstance.getResourceModelEvaluationBillingHistory(resourceId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resourceId** | **Number**| | + **startDate** | **String**| YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| YYYY-MM-DDTHH:MM:SS | [optional] + +### Return type + +[**ModelEvaluationBillingHistoryDetailsResponseSchema**](ModelEvaluationBillingHistoryDetailsResponseSchema.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getServerlessInferenceBillingHistoryGraph + +> ServerlessInferencedBillingHistoryDetailsResponseSchema getServerlessInferenceBillingHistoryGraph(resourceId, opts) + +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 + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +let resourceId = 56; // Number | +let opts = { + 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS +}; +apiInstance.getServerlessInferenceBillingHistoryGraph(resourceId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resourceId** | **Number**| | + **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + +### Return type + +[**ServerlessInferencedBillingHistoryDetailsResponseSchema**](ServerlessInferencedBillingHistoryDetailsResponseSchema.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getServerlessInferencesBillingHistory + +> ServerlessInferencedBillingHistoryDetailsResponseSchema getServerlessInferencesBillingHistory(resourceId, opts) + + + +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' + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BillingApi(); +let resourceId = 56; // Number | +let opts = { + 'startDate': "startDate_example", // String | YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example" // String | YYYY-MM-DDTHH:MM:SS +}; +apiInstance.getServerlessInferencesBillingHistory(resourceId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` +### Parameters -## getAllThresholdsForOrganization -> Organizationthresholdsresponse getAllThresholdsForOrganization() +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **resourceId** | **Number**| | + **startDate** | **String**| YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| YYYY-MM-DDTHH:MM:SS | [optional] -GET: All Thresholds for Organization +### Return type -Retrieve all the notification thresholds for an organization. +[**ServerlessInferencedBillingHistoryDetailsResponseSchema**](ServerlessInferencedBillingHistoryDetailsResponseSchema.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getSnapshotBillingHistory + +> ResourceLevelVolumeBillingDetailsResponseModel getSnapshotBillingHistory(snapshotId, opts) + +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'. ### Example @@ -44,14 +1012,14 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); -apiInstance.getAllThresholdsForOrganization().then((data) => { +let snapshotId = 56; // Number | +let opts = { + 'startDate': "startDate_example", // String | Datetime should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example" // String | Datetime should be formatted in YYYY-MM-DDTHH:MM:SS +}; +apiInstance.getSnapshotBillingHistory(snapshotId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -61,15 +1029,20 @@ apiInstance.getAllThresholdsForOrganization().then((data) => { ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshotId** | **Number**| | + **startDate** | **String**| Datetime should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Datetime should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] ### Return type -[**Organizationthresholdsresponse**](Organizationthresholdsresponse.md) +[**ResourceLevelVolumeBillingDetailsResponseModel**](ResourceLevelVolumeBillingDetailsResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -77,13 +1050,13 @@ This endpoint does not need any parameter. - **Accept**: application/json -## getBillingUsage +## getSnapshotBillingHistoryGraph -> Billingmetricesresponse getBillingUsage(opts) +> ResourceLevelVolumeGraphBillingDetailsResponseModel getSnapshotBillingHistoryGraph(snapshotId, opts) -GET: Billing usage +Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle -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) +User will receive hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. ### Example @@ -95,18 +1068,14 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); +let snapshotId = 56; // Number | let opts = { - 'deleted': "deleted_example", // String | `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`) - 'environment': "environment_example" // String | Filter resources by environment ID or Name + 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS }; -apiInstance.getBillingUsage(opts).then((data) => { +apiInstance.getSnapshotBillingHistoryGraph(snapshotId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -119,16 +1088,17 @@ apiInstance.getBillingUsage(opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **deleted** | **String**| `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`) | [optional] - **environment** | **String**| Filter resources by environment ID or Name | [optional] + **snapshotId** | **Number**| | + **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] ### Return type -[**Billingmetricesresponse**](Billingmetricesresponse.md) +[**ResourceLevelVolumeGraphBillingDetailsResponseModel**](ResourceLevelVolumeGraphBillingDetailsResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -136,13 +1106,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## getLastDayCost +## getUsage -> Lastdaycostresponse getLastDayCost() +> BillingMetricesResponse getUsage(opts) -GET: Last Day Cost +GET: Billing usage -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/) +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/) ### Example @@ -154,14 +1124,13 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); -apiInstance.getLastDayCost().then((data) => { +let opts = { + 'deleted': "deleted_example", // String | `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`) + 'environment': "environment_example" // String | Filter resources by environment ID or Name +}; +apiInstance.getUsage(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -171,15 +1140,19 @@ apiInstance.getLastDayCost().then((data) => { ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **deleted** | **String**| `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`) | [optional] + **environment** | **String**| Filter resources by environment ID or Name | [optional] ### Return type -[**Lastdaycostresponse**](Lastdaycostresponse.md) +[**BillingMetricesResponse**](BillingMetricesResponse.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -187,13 +1160,13 @@ This endpoint does not need any parameter. - **Accept**: application/json -## retrieveBillingHistoryForASpecificBillingCycle +## getUserBillingHistory -> OrganizationLevelBillingHistoryResponseModel retrieveBillingHistoryForASpecificBillingCycle(opts) +> OrganizationLevelBillingHistoryResponseModel getUserBillingHistory(opts) 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' +User will receive billing history for the specified billing cycle. This data will include 'incurred_bill', 'non_discounted_bill', 'vm_cost', 'volume_cost' ### Example @@ -205,11 +1178,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); let opts = { @@ -217,7 +1185,7 @@ let opts = { 'endDate': "endDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS 'graph': "graph_example" // String | Set this value to \"true\" for getting graph value }; -apiInstance.retrieveBillingHistoryForASpecificBillingCycle(opts).then((data) => { +apiInstance.getUserBillingHistory(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -240,7 +1208,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -248,13 +1216,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle +## getVMBillingDetails -> ResourceLevelVolumeBillingDetailsResponseModel retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle(snapshotId, opts) +> ResourceLevelVMBillingDetailsResponseModel getVMBillingDetails(vmId, opts) -Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle +Retrieve Billing History of a Specific Virtual Machine 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'. +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' ### Example @@ -266,19 +1234,14 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); -let snapshotId = 56; // Number | +let vmId = 56; // Number | let opts = { - 'startDate': "startDate_example", // String | Datetime should be formatted in YYYY-MM-DDTHH:MM:SS - 'endDate': "endDate_example" // String | Datetime should be formatted in YYYY-MM-DDTHH:MM:SS + 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS }; -apiInstance.retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle(snapshotId, opts).then((data) => { +apiInstance.getVMBillingDetails(vmId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -291,17 +1254,17 @@ apiInstance.retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle(sn Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **snapshotId** | **Number**| | - **startDate** | **String**| Datetime should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] - **endDate** | **String**| Datetime should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **vmId** | **Number**| | + **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] ### Return type -[**ResourceLevelVolumeBillingDetailsResponseModel**](ResourceLevelVolumeBillingDetailsResponseModel.md) +[**ResourceLevelVMBillingDetailsResponseModel**](ResourceLevelVMBillingDetailsResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -309,13 +1272,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle +## getVMBillingEvents -> ResourceLevelVMBillingDetailsResponseModel retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle(vmId, opts) +> ResourceBillingEventsHistoryResponse getVMBillingEvents(vmId, opts) -Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle +Retrieve VM billing events history -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' +User will receive vm billing events history ### Example @@ -327,11 +1290,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); let vmId = 56; // Number | @@ -339,7 +1297,7 @@ let opts = { 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS }; -apiInstance.retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle(vmId, opts).then((data) => { +apiInstance.getVMBillingEvents(vmId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -358,11 +1316,11 @@ Name | Type | Description | Notes ### Return type -[**ResourceLevelVMBillingDetailsResponseModel**](ResourceLevelVMBillingDetailsResponseModel.md) +[**ResourceBillingEventsHistoryResponse**](ResourceBillingEventsHistoryResponse.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -370,13 +1328,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle +## getVMBillingGraph -> ResourceLevelVolumeBillingDetailsResponseModel retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle(volumeId, opts) +> ResourceLevelVmGraphBillingDetailsResponseModel getVMBillingGraph(vmId, opts) -Retrieve Billing History of a Specific Volume for a specific Billing Cycle +Retrieve hourly cost datapoints of a Specific Virtual Machine 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'. +User will receive hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. ### Example @@ -388,19 +1346,14 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); -let volumeId = 56; // Number | +let vmId = 56; // Number | let opts = { 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS }; -apiInstance.retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle(volumeId, opts).then((data) => { +apiInstance.getVMBillingGraph(vmId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -413,17 +1366,17 @@ apiInstance.retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle(volu Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **volumeId** | **Number**| | + **vmId** | **Number**| | **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] ### Return type -[**ResourceLevelVolumeBillingDetailsResponseModel**](ResourceLevelVolumeBillingDetailsResponseModel.md) +[**ResourceLevelVmGraphBillingDetailsResponseModel**](ResourceLevelVmGraphBillingDetailsResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -431,13 +1384,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveBillingHistoryOfContractForASpecificBillingCycle +## getVMBillingHistory -> retrieveBillingHistoryOfContractForASpecificBillingCycle(opts) +> ResourceLevelVmBillingHistoryResponseModel getVMBillingHistory(opts) -Retrieve Billing History of Contract for a specific Billing Cycle +Retrieve Billing History of Virtual Machine 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' +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' ### Example @@ -449,20 +1402,17 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); let opts = { 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS 'endDate': "endDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS - 'search': "search_example" // String | Search by Contract \"Description\" or \"ID\" + 'search': "search_example", // String | Search by resource \"Name\" or \"ID\" + 'perPage': 56, // Number | Number of items to return per page + 'page': 56 // Number | Page number }; -apiInstance.retrieveBillingHistoryOfContractForASpecificBillingCycle(opts).then(() => { - console.log('API called successfully.'); +apiInstance.getVMBillingHistory(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -476,15 +1426,17 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] - **search** | **String**| Search by Contract \"Description\" or \"ID\" | [optional] + **search** | **String**| Search by resource \"Name\" or \"ID\" | [optional] + **perPage** | **Number**| Number of items to return per page | [optional] + **page** | **Number**| Page number | [optional] ### Return type -null (empty response body) +[**ResourceLevelVmBillingHistoryResponseModel**](ResourceLevelVmBillingHistoryResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -492,13 +1444,13 @@ null (empty response body) - **Accept**: application/json -## retrieveBillingHistoryOfSnapshotForASpecificBillingCycle +## getVMSubResourceCosts -> ResourceLevelVolumeBillingHistoryResponseModel retrieveBillingHistoryOfSnapshotForASpecificBillingCycle(opts) +> SubResourcesCostsResponseModel getVMSubResourceCosts(vmId, opts) -Retrieve Billing History of Snapshot for a specific Billing Cycle +Retrieve Total Costs and Non Discount Costs for Sub Resources -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' +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 ### Example @@ -510,21 +1462,14 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); +let vmId = 56; // Number | let opts = { 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS - 'endDate': "endDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS - 'search': "search_example", // String | Search by Volume \"Name\" or \"ID\" - 'page': "page_example", // String | Page number - 'perPage': "perPage_example" // String | Number of items to return per page + 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS }; -apiInstance.retrieveBillingHistoryOfSnapshotForASpecificBillingCycle(opts).then((data) => { +apiInstance.getVMSubResourceCosts(vmId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -537,19 +1482,17 @@ apiInstance.retrieveBillingHistoryOfSnapshotForASpecificBillingCycle(opts).then( Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **vmId** | **Number**| | **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] - **search** | **String**| Search by Volume \"Name\" or \"ID\" | [optional] - **page** | **String**| Page number | [optional] - **perPage** | **String**| Number of items to return per page | [optional] ### Return type -[**ResourceLevelVolumeBillingHistoryResponseModel**](ResourceLevelVolumeBillingHistoryResponseModel.md) +[**SubResourcesCostsResponseModel**](SubResourcesCostsResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -557,13 +1500,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle +## getVMSubResourceGraph -> ResourceLevelVmBillingHistoryResponseModel retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle(opts) +> SubResourcesGraphResponseModel getVMSubResourceGraph(vmId, opts) -Retrieve Billing History of Virtual Machine for a specific Billing Cycle +Retrieve Sub-Resources Historical Cost datapoints of a Virtual -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' +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 ### Example @@ -575,21 +1518,14 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); +let vmId = 56; // Number | let opts = { 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS - 'endDate': "endDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS - 'search': "search_example", // String | Search by Virtual Machine \"Name\" or \"ID\" - 'perPage': "perPage_example", // String | Number of items to return per page - 'page': "page_example" // String | Page number + 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS }; -apiInstance.retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle(opts).then((data) => { +apiInstance.getVMSubResourceGraph(vmId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -602,19 +1538,17 @@ apiInstance.retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle(opts) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **vmId** | **Number**| | **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] - **search** | **String**| Search by Virtual Machine \"Name\" or \"ID\" | [optional] - **perPage** | **String**| Number of items to return per page | [optional] - **page** | **String**| Page number | [optional] ### Return type -[**ResourceLevelVmBillingHistoryResponseModel**](ResourceLevelVmBillingHistoryResponseModel.md) +[**SubResourcesGraphResponseModel**](SubResourcesGraphResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -622,13 +1556,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveBillingHistoryOfVolumeForASpecificBillingCycle +## getVolumeBillingDetails -> ResourceLevelVolumeBillingHistoryResponseModel retrieveBillingHistoryOfVolumeForASpecificBillingCycle(opts) +> ResourceLevelVolumeBillingDetailsResponseModel getVolumeBillingDetails(volumeId, opts) -Retrieve Billing History of Volume for a specific Billing Cycle +Retrieve Billing History of a Specific 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 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'. ### Example @@ -640,21 +1574,14 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); +let volumeId = 56; // Number | let opts = { 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS - 'endDate': "endDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS - 'search': "search_example", // String | Search by Volume \"Name\" or \"ID\" - 'perPage': "perPage_example", // String | Number of items to return per page - 'page': "page_example" // String | Page number + 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS }; -apiInstance.retrieveBillingHistoryOfVolumeForASpecificBillingCycle(opts).then((data) => { +apiInstance.getVolumeBillingDetails(volumeId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -667,19 +1594,17 @@ apiInstance.retrieveBillingHistoryOfVolumeForASpecificBillingCycle(opts).then((d Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **volumeId** | **Number**| | **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] - **search** | **String**| Search by Volume \"Name\" or \"ID\" | [optional] - **perPage** | **String**| Number of items to return per page | [optional] - **page** | **String**| Page number | [optional] ### Return type -[**ResourceLevelVolumeBillingHistoryResponseModel**](ResourceLevelVolumeBillingHistoryResponseModel.md) +[**ResourceLevelVolumeBillingDetailsResponseModel**](ResourceLevelVolumeBillingDetailsResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -687,13 +1612,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle +## getVolumeBillingEvents -> ResourceLevelVolumeGraphBillingDetailsResponseModel retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle(snapshotId, opts) +> ResourceBillingEventsHistoryResponse getVolumeBillingEvents(volumeId, opts) -Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle +Retrieve Volume billing events history -User will recieve hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. +User will receive volume billing events history ### Example @@ -705,19 +1630,14 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); -let snapshotId = 56; // Number | +let volumeId = 56; // Number | let opts = { 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS }; -apiInstance.retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle(snapshotId, opts).then((data) => { +apiInstance.getVolumeBillingEvents(volumeId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -730,17 +1650,17 @@ apiInstance.retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCy Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **snapshotId** | **Number**| | + **volumeId** | **Number**| | **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] ### Return type -[**ResourceLevelVolumeGraphBillingDetailsResponseModel**](ResourceLevelVolumeGraphBillingDetailsResponseModel.md) +[**ResourceBillingEventsHistoryResponse**](ResourceBillingEventsHistoryResponse.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -748,13 +1668,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle +## getVolumeBillingHistory -> ResourceLevelVmGraphBillingDetailsResponseModel retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle(vmId, opts) +> ResourceLevelVolumeBillingHistoryResponseModel getVolumeBillingHistory(opts) -Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle +Retrieve Billing History of Volume 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. +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' ### Example @@ -766,19 +1686,16 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); -let vmId = 56; // Number | let opts = { 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS - 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'search': "search_example", // String | Search by resource \"Name\" or \"ID\" + 'perPage': 56, // Number | Number of items to return per page + 'page': 56 // Number | Page number }; -apiInstance.retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle(vmId, opts).then((data) => { +apiInstance.getVolumeBillingHistory(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -791,17 +1708,19 @@ apiInstance.retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBil Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **vmId** | **Number**| | **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **search** | **String**| Search by resource \"Name\" or \"ID\" | [optional] + **perPage** | **Number**| Number of items to return per page | [optional] + **page** | **Number**| Page number | [optional] ### Return type -[**ResourceLevelVmGraphBillingDetailsResponseModel**](ResourceLevelVmGraphBillingDetailsResponseModel.md) +[**ResourceLevelVolumeBillingHistoryResponseModel**](ResourceLevelVolumeBillingHistoryResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -809,13 +1728,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle +## getVolumeBillingHistoryGraph -> ResourceLevelVolumeGraphBillingDetailsResponseModel retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle(volumeId, opts) +> ResourceLevelVolumeGraphBillingDetailsResponseModel getVolumeBillingHistoryGraph(volumeId, opts) 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. +User will receive hourly cost datapoints for a Volume for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. ### Example @@ -827,11 +1746,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); let volumeId = 56; // Number | @@ -839,7 +1753,7 @@ let opts = { 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS }; -apiInstance.retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle(volumeId, opts).then((data) => { +apiInstance.getVolumeBillingHistoryGraph(volumeId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -862,7 +1776,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -870,13 +1784,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveSubResourcesHistoricalCostDatapointsOfAVirtual +## listBillingContractHistory -> SubResourcesGraphResponseModel retrieveSubResourcesHistoricalCostDatapointsOfAVirtual(vmId, opts) +> listBillingContractHistory(opts) -Retrieve Sub-Resources Historical Cost datapoints of a Virtual +Retrieve Billing History of Contract for a specific Billing Cycle -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 +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' ### Example @@ -888,20 +1802,15 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); -let vmId = 56; // Number | let opts = { 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS - 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'search': "search_example" // String | Search by Contract \"Description\" or \"ID\" }; -apiInstance.retrieveSubResourcesHistoricalCostDatapointsOfAVirtual(vmId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); +apiInstance.listBillingContractHistory(opts).then(() => { + console.log('API called successfully.'); }, (error) => { console.error(error); }); @@ -913,17 +1822,17 @@ apiInstance.retrieveSubResourcesHistoricalCostDatapointsOfAVirtual(vmId, opts).t Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **vmId** | **Number**| | **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **search** | **String**| Search by Contract \"Description\" or \"ID\" | [optional] ### Return type -[**SubResourcesGraphResponseModel**](SubResourcesGraphResponseModel.md) +null (empty response body) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -931,13 +1840,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveTotalCostsAndNonDiscountCostsForSubResources +## listBucketBillingHistory -> SubResourcesCostsResponseModel retrieveTotalCostsAndNonDiscountCostsForSubResources(vmId, opts) +> ResourceLevelBucketBillingHistoryResponseModel listBucketBillingHistory(opts) -Retrieve Total Costs and Non Discount Costs for Sub Resources +Retrieve Billing History of a Bucket for a specific Billing Cycle -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 +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' ### Example @@ -949,19 +1858,16 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); -let vmId = 56; // Number | let opts = { 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS - 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'search': "search_example", // String | Search by resource \"Name\" or \"ID\" + 'perPage': 56, // Number | Number of items to return per page + 'page': 56 // Number | Page number }; -apiInstance.retrieveTotalCostsAndNonDiscountCostsForSubResources(vmId, opts).then((data) => { +apiInstance.listBucketBillingHistory(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -974,17 +1880,19 @@ apiInstance.retrieveTotalCostsAndNonDiscountCostsForSubResources(vmId, opts).the Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **vmId** | **Number**| | **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **search** | **String**| Search by resource \"Name\" or \"ID\" | [optional] + **perPage** | **Number**| Number of items to return per page | [optional] + **page** | **Number**| Page number | [optional] ### Return type -[**SubResourcesCostsResponseModel**](SubResourcesCostsResponseModel.md) +[**ResourceLevelBucketBillingHistoryResponseModel**](ResourceLevelBucketBillingHistoryResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -992,13 +1900,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveVmBillingEventsHistory +## listClustersBillingHistory -> ResourceBillingEventsHistoryResponse retrieveVmBillingEventsHistory(vmId, opts) +> ResourceLevelClusterBillingHistoryResponseModel listClustersBillingHistory(opts) -Retrieve VM billing events history +Retrieve Billing History of Clusters for a specific Billing Cycle -User will receive vm billing events history +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' ### Example @@ -1010,19 +1918,16 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); -let vmId = 56; // Number | let opts = { 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS - 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'search': "search_example", // String | Search by resource \"Name\" or \"ID\" + 'perPage': 56, // Number | Number of items to return per page + 'page': 56 // Number | Page number }; -apiInstance.retrieveVmBillingEventsHistory(vmId, opts).then((data) => { +apiInstance.listClustersBillingHistory(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1035,17 +1940,19 @@ apiInstance.retrieveVmBillingEventsHistory(vmId, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **vmId** | **Number**| | **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **search** | **String**| Search by resource \"Name\" or \"ID\" | [optional] + **perPage** | **Number**| Number of items to return per page | [optional] + **page** | **Number**| Page number | [optional] ### Return type -[**ResourceBillingEventsHistoryResponse**](ResourceBillingEventsHistoryResponse.md) +[**ResourceLevelClusterBillingHistoryResponseModel**](ResourceLevelClusterBillingHistoryResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -1053,13 +1960,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveVolumeBillingEventsHistory +## listOrgNotificationThresholds -> ResourceBillingEventsHistoryResponse retrieveVolumeBillingEventsHistory(volumeId, opts) +> OrganizationThresholdsResponse listOrgNotificationThresholds() -Retrieve Volume billing events history +GET: All Thresholds for Organization -User will receive volume billing events history +Retrieve all the notification thresholds for an organization. ### Example @@ -1071,19 +1978,62 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; + +let apiInstance = new HyperstackApi.BillingApi(); +apiInstance.listOrgNotificationThresholds().then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**OrganizationThresholdsResponse**](OrganizationThresholdsResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## listServerlessInferenceBillingHistory + +> TokenBasedBillingHistoryResponse listServerlessInferenceBillingHistory(opts) + +Retrieve Billing History of serverless inference for a specific Billing Cycle + +User will receive billing history of serverless_inference for the specified billing cycle. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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) -//accessToken.apiKeyPrefix = 'Token'; +//apiKey.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); -let volumeId = 56; // Number | let opts = { 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS - 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'search': "search_example", // String | Search by resource \"Name\" or \"ID\" + 'perPage': 56, // Number | Number of items to return per page + 'page': 56 // Number | Page number }; -apiInstance.retrieveVolumeBillingEventsHistory(volumeId, opts).then((data) => { +apiInstance.listServerlessInferenceBillingHistory(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1096,17 +2046,19 @@ apiInstance.retrieveVolumeBillingEventsHistory(volumeId, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **volumeId** | **Number**| | **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **search** | **String**| Search by resource \"Name\" or \"ID\" | [optional] + **perPage** | **Number**| Number of items to return per page | [optional] + **page** | **Number**| Page number | [optional] ### Return type -[**ResourceBillingEventsHistoryResponse**](ResourceBillingEventsHistoryResponse.md) +[**TokenBasedBillingHistoryResponse**](TokenBasedBillingHistoryResponse.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -1114,13 +2066,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## updateSubscribeOrUnsubscribeNotificationThreshold +## listSnapshotBillingHistory -> Organizationthresholdupdateresponse updateSubscribeOrUnsubscribeNotificationThreshold(thresholdId, payload) +> ResourceLevelVolumeBillingHistoryResponseModel listSnapshotBillingHistory(opts) -Update: Subscribe or Unsubscribe Notification Threshold +Retrieve Billing History of Snapshot for a specific Billing Cycle -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. +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' ### Example @@ -1132,16 +2084,16 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.BillingApi(); -let thresholdId = 56; // Number | -let payload = new HyperstackApi.Subscribeorunsubscribeupdatepayload(); // Subscribeorunsubscribeupdatepayload | -apiInstance.updateSubscribeOrUnsubscribeNotificationThreshold(thresholdId, payload).then((data) => { +let opts = { + 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'search': "search_example", // String | Search by resource \"Name\" or \"ID\" + 'perPage': 56, // Number | Number of items to return per page + 'page': 56 // Number | Page number +}; +apiInstance.listSnapshotBillingHistory(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1154,19 +2106,22 @@ apiInstance.updateSubscribeOrUnsubscribeNotificationThreshold(thresholdId, paylo Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **thresholdId** | **Number**| | - **payload** | [**Subscribeorunsubscribeupdatepayload**](Subscribeorunsubscribeupdatepayload.md)| | + **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **search** | **String**| Search by resource \"Name\" or \"ID\" | [optional] + **perPage** | **Number**| Number of items to return per page | [optional] + **page** | **Number**| Page number | [optional] ### Return type -[**Organizationthresholdupdateresponse**](Organizationthresholdupdateresponse.md) +[**ResourceLevelVolumeBillingHistoryResponseModel**](ResourceLevelVolumeBillingHistoryResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json diff --git a/docs/BillingHistory.md b/docs/BillingHistory.md new file mode 100644 index 00000000..c65a0204 --- /dev/null +++ b/docs/BillingHistory.md @@ -0,0 +1,10 @@ +# HyperstackApi.BillingHistory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**Attributes**](Attributes.md) | | [optional] +**metrics** | **Object** | | [optional] + + diff --git a/docs/BillingHistoryDataSynthesisDetails.md b/docs/BillingHistoryDataSynthesisDetails.md new file mode 100644 index 00000000..2f2be5ea --- /dev/null +++ b/docs/BillingHistoryDataSynthesisDetails.md @@ -0,0 +1,12 @@ +# HyperstackApi.BillingHistoryDataSynthesisDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingHistory** | [**[BillingHistory]**](BillingHistory.md) | | [optional] +**orgId** | **Number** | | [optional] +**pagination** | [**Pagination**](Pagination.md) | | [optional] +**totalCount** | **Number** | | [optional] + + diff --git a/docs/BillingHistoryFineTuning.md b/docs/BillingHistoryFineTuning.md new file mode 100644 index 00000000..e715940f --- /dev/null +++ b/docs/BillingHistoryFineTuning.md @@ -0,0 +1,12 @@ +# HyperstackApi.BillingHistoryFineTuning + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingHistory** | [**[BillingHistory]**](BillingHistory.md) | | [optional] +**orgId** | **Number** | | [optional] +**pagination** | [**Pagination**](Pagination.md) | | [optional] +**totalCount** | **Number** | | [optional] + + diff --git a/docs/BillingHistoryModelEvalutationDetails.md b/docs/BillingHistoryModelEvalutationDetails.md new file mode 100644 index 00000000..312a5bf0 --- /dev/null +++ b/docs/BillingHistoryModelEvalutationDetails.md @@ -0,0 +1,12 @@ +# HyperstackApi.BillingHistoryModelEvalutationDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingHistory** | [**[BillingHistory]**](BillingHistory.md) | | [optional] +**orgId** | **Number** | | [optional] +**pagination** | [**Pagination**](Pagination.md) | | [optional] +**totalCount** | **Number** | | [optional] + + diff --git a/docs/BillingHistoryServerlessInference.md b/docs/BillingHistoryServerlessInference.md new file mode 100644 index 00000000..619eedb3 --- /dev/null +++ b/docs/BillingHistoryServerlessInference.md @@ -0,0 +1,12 @@ +# HyperstackApi.BillingHistoryServerlessInference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingHistory** | [**[BillingHistory]**](BillingHistory.md) | | [optional] +**orgId** | **Number** | | [optional] +**pagination** | [**Pagination**](Pagination.md) | | [optional] +**totalCount** | **Number** | | [optional] + + diff --git a/docs/BillingHistoryServerlessInferenceDetails.md b/docs/BillingHistoryServerlessInferenceDetails.md new file mode 100644 index 00000000..ce28c158 --- /dev/null +++ b/docs/BillingHistoryServerlessInferenceDetails.md @@ -0,0 +1,12 @@ +# HyperstackApi.BillingHistoryServerlessInferenceDetails + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingHistory** | [**[BillingHistory]**](BillingHistory.md) | | [optional] +**orgId** | **Number** | | [optional] +**pagination** | [**Pagination**](Pagination.md) | | [optional] +**totalCount** | **Number** | | [optional] + + diff --git a/docs/BillingImmuneResourcesResponse.md b/docs/BillingImmuneResourcesResponse.md deleted file mode 100644 index e506cdfd..00000000 --- a/docs/BillingImmuneResourcesResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# HyperstackApi.BillingImmuneResourcesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[Data]**](Data.md) | | [optional] - - diff --git a/docs/BillingMetricesFields.md b/docs/BillingMetricesFields.md new file mode 100644 index 00000000..cc9d345b --- /dev/null +++ b/docs/BillingMetricesFields.md @@ -0,0 +1,19 @@ +# HyperstackApi.BillingMetricesFields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **Boolean** | | [optional] +**billPerMinute** | **Number** | | [optional] +**createTime** | **Date** | | [optional] +**excludeBilling** | **Boolean** | | [optional] +**name** | **String** | | [optional] +**organizationId** | **Number** | | [optional] +**resourceId** | **Number** | | [optional] +**resourceType** | **String** | | [optional] +**terminateTime** | **Date** | | [optional] +**totalBill** | **Number** | | [optional] +**totalUpTime** | **Number** | | [optional] + + diff --git a/docs/BillingMetricesResponse.md b/docs/BillingMetricesResponse.md new file mode 100644 index 00000000..f5300410 --- /dev/null +++ b/docs/BillingMetricesResponse.md @@ -0,0 +1,11 @@ +# HyperstackApi.BillingMetricesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**[BillingMetricesFields]**](BillingMetricesFields.md) | | [optional] +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/BillingResponse.md b/docs/BillingResponse.md deleted file mode 100644 index 5f8ed57e..00000000 --- a/docs/BillingResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.BillingResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**calculatedBills** | [**[OrganizationObjectResponse]**](OrganizationObjectResponse.md) | | [optional] -**calculationTime** | **Date** | | [optional] -**type** | **String** | | [optional] - - diff --git a/docs/Billingmetricesfields.md b/docs/Billingmetricesfields.md deleted file mode 100644 index 4b70e37d..00000000 --- a/docs/Billingmetricesfields.md +++ /dev/null @@ -1,19 +0,0 @@ -# HyperstackApi.Billingmetricesfields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | **Boolean** | | [optional] -**billPerMinute** | **Number** | | [optional] -**createTime** | **Date** | | [optional] -**excludeBilling** | **Boolean** | | [optional] -**name** | **String** | | [optional] -**organizationId** | **Number** | | [optional] -**resourceId** | **Number** | | [optional] -**resourceType** | **String** | | [optional] -**terminateTime** | **Date** | | [optional] -**totalBill** | **Number** | | [optional] -**totalUpTime** | **Number** | | [optional] - - diff --git a/docs/Billingmetricesresponse.md b/docs/Billingmetricesresponse.md deleted file mode 100644 index f2be4d0f..00000000 --- a/docs/Billingmetricesresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.Billingmetricesresponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[Billingmetricesfields]**](Billingmetricesfields.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/BucketsApi.md b/docs/BucketsApi.md new file mode 100644 index 00000000..6fc9cf5c --- /dev/null +++ b/docs/BucketsApi.md @@ -0,0 +1,161 @@ +# HyperstackApi.BucketsApi + +All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**deleteBucketEndpoint**](BucketsApi.md#deleteBucketEndpoint) | **DELETE** /object-storage/buckets/{bucket_name} | Delete a bucket +[**listBucketsEndpoint**](BucketsApi.md#listBucketsEndpoint) | **GET** /object-storage/buckets | List buckets +[**retrieveBucketEndpoint**](BucketsApi.md#retrieveBucketEndpoint) | **GET** /object-storage/buckets/{bucket_name} | Retrieve a bucket + + + +## deleteBucketEndpoint + +> ObjectStorageDeleteResponse deleteBucketEndpoint(bucketName, region) + +Delete a bucket + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BucketsApi(); +let bucketName = "bucketName_example"; // String | +let region = "region_example"; // String | +apiInstance.deleteBucketEndpoint(bucketName, region).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bucketName** | **String**| | + **region** | **String**| | + +### Return type + +[**ObjectStorageDeleteResponse**](ObjectStorageDeleteResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## listBucketsEndpoint + +> ObjectStorageBucketListResponse listBucketsEndpoint(opts) + +List buckets + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BucketsApi(); +let opts = { + 'search': "search_example" // String | +}; +apiInstance.listBucketsEndpoint(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **search** | **String**| | [optional] + +### Return type + +[**ObjectStorageBucketListResponse**](ObjectStorageBucketListResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## retrieveBucketEndpoint + +> ObjectStorageBucketResponse retrieveBucketEndpoint(bucketName, region) + +Retrieve a bucket + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.BucketsApi(); +let bucketName = "bucketName_example"; // String | +let region = "region_example"; // String | +apiInstance.retrieveBucketEndpoint(bucketName, region).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bucketName** | **String**| | + **region** | **String**| | + +### Return type + +[**ObjectStorageBucketResponse**](ObjectStorageBucketResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + diff --git a/docs/CalculateApi.md b/docs/CalculateApi.md index 21be673d..af1da866 100644 --- a/docs/CalculateApi.md +++ b/docs/CalculateApi.md @@ -4,13 +4,13 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**retrieveBillingRateForResource**](CalculateApi.md#retrieveBillingRateForResource) | **GET** /pricebook/calculate/resource/{resource_type}/{id} | Retrieve Billing Rate for Resource +[**calculateResourceBillingRate**](CalculateApi.md#calculateResourceBillingRate) | **GET** /pricebook/calculate/resource/{resource_type}/{id} | Retrieve Billing Rate for Resource -## retrieveBillingRateForResource +## calculateResourceBillingRate -> ResourceBillingResponseForCustomer retrieveBillingRateForResource(resourceType, id) +> ResourceBillingResponseForCustomer calculateResourceBillingRate(resourceType, id) Retrieve Billing Rate for Resource @@ -26,16 +26,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.CalculateApi(); let resourceType = "resourceType_example"; // String | let id = 56; // Number | -apiInstance.retrieveBillingRateForResource(resourceType, id).then((data) => { +apiInstance.calculateResourceBillingRate(resourceType, id).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -57,7 +52,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/CallbacksApi.md b/docs/CallbacksApi.md index ba575bee..5e910359 100644 --- a/docs/CallbacksApi.md +++ b/docs/CallbacksApi.md @@ -4,22 +4,22 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**attachCallbackToVirtualMachine**](CallbacksApi.md#attachCallbackToVirtualMachine) | **POST** /core/virtual-machines/{id}/attach-callback | Attach callback to virtual machine -[**attachCallbackToVolume**](CallbacksApi.md#attachCallbackToVolume) | **POST** /core/volumes/{id}/attach-callback | Attach callback to volume -[**deleteVirtualMachineCallback**](CallbacksApi.md#deleteVirtualMachineCallback) | **DELETE** /core/virtual-machines/{id}/delete-callback | Delete virtual machine callback -[**deleteVolumeCallback**](CallbacksApi.md#deleteVolumeCallback) | **DELETE** /core/volumes/{id}/delete-callback | Delete volume callback -[**updateVirtualMachineCallback**](CallbacksApi.md#updateVirtualMachineCallback) | **PUT** /core/virtual-machines/{id}/update-callback | Update virtual machine callback -[**updateVolumeCallback**](CallbacksApi.md#updateVolumeCallback) | **PUT** /core/volumes/{id}/update-callback | Update volume callback +[**attachCallbackToVM**](CallbacksApi.md#attachCallbackToVM) | **POST** /core/virtual-machines/{vm_id}/attach-callback | Attach callback to virtual machine +[**attachCallbackToVolume**](CallbacksApi.md#attachCallbackToVolume) | **POST** /core/volumes/{volume_id}/attach-callback | Attach callback to volume +[**deleteVMCallback**](CallbacksApi.md#deleteVMCallback) | **DELETE** /core/virtual-machines/{vm_id}/delete-callback | Delete virtual machine callback +[**deleteVolumeCallback**](CallbacksApi.md#deleteVolumeCallback) | **DELETE** /core/volumes/{volume_id}/delete-callback | Delete volume callback +[**updateVMCallback**](CallbacksApi.md#updateVMCallback) | **PUT** /core/virtual-machines/{vm_id}/update-callback | Update virtual machine callback +[**updateVolumeCallback**](CallbacksApi.md#updateVolumeCallback) | **PUT** /core/volumes/{volume_id}/update-callback | Update volume callback -## attachCallbackToVirtualMachine +## attachCallbackToVM -> AttachCallbackResponse attachCallbackToVirtualMachine(id, payload) +> AttachCallbackResponse attachCallbackToVM(vmId, payload) 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). +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). ### Example @@ -31,16 +31,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.CallbacksApi(); -let id = 56; // Number | +let vmId = 56; // Number | let payload = new HyperstackApi.AttachCallbackPayload(); // AttachCallbackPayload | -apiInstance.attachCallbackToVirtualMachine(id, payload).then((data) => { +apiInstance.attachCallbackToVM(vmId, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -53,7 +48,7 @@ apiInstance.attachCallbackToVirtualMachine(id, payload).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **vmId** | **Number**| | **payload** | [**AttachCallbackPayload**](AttachCallbackPayload.md)| | ### Return type @@ -62,7 +57,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -72,11 +67,11 @@ Name | Type | Description | Notes ## attachCallbackToVolume -> AttachCallbackResponse attachCallbackToVolume(id, payload) +> AttachCallbackResponse attachCallbackToVolume(volumeId, payload) 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). +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). ### Example @@ -88,16 +83,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.CallbacksApi(); -let id = 56; // Number | +let volumeId = 56; // Number | let payload = new HyperstackApi.AttachCallbackPayload(); // AttachCallbackPayload | -apiInstance.attachCallbackToVolume(id, payload).then((data) => { +apiInstance.attachCallbackToVolume(volumeId, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -110,7 +100,7 @@ apiInstance.attachCallbackToVolume(id, payload).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **volumeId** | **Number**| | **payload** | [**AttachCallbackPayload**](AttachCallbackPayload.md)| | ### Return type @@ -119,7 +109,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -127,13 +117,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## deleteVirtualMachineCallback +## deleteVMCallback -> ResponseModel deleteVirtualMachineCallback(id) +> ResponseModel deleteVMCallback(vmId) 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). +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). ### Example @@ -145,15 +135,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.CallbacksApi(); -let id = 56; // Number | -apiInstance.deleteVirtualMachineCallback(id).then((data) => { +let vmId = 56; // Number | +apiInstance.deleteVMCallback(vmId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -166,7 +151,7 @@ apiInstance.deleteVirtualMachineCallback(id).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **vmId** | **Number**| | ### Return type @@ -174,7 +159,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -184,11 +169,11 @@ Name | Type | Description | Notes ## deleteVolumeCallback -> ResponseModel deleteVolumeCallback(id) +> ResponseModel deleteVolumeCallback(volumeId) 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). +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). ### Example @@ -200,15 +185,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.CallbacksApi(); -let id = 56; // Number | -apiInstance.deleteVolumeCallback(id).then((data) => { +let volumeId = 56; // Number | +apiInstance.deleteVolumeCallback(volumeId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -221,7 +201,7 @@ apiInstance.deleteVolumeCallback(id).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **volumeId** | **Number**| | ### Return type @@ -229,7 +209,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -237,13 +217,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## updateVirtualMachineCallback +## updateVMCallback -> AttachCallbackResponse updateVirtualMachineCallback(id, payload) +> AttachCallbackResponse updateVMCallback(vmId, payload) 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). +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). ### Example @@ -255,16 +235,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.CallbacksApi(); -let id = 56; // Number | +let vmId = 56; // Number | let payload = new HyperstackApi.AttachCallbackPayload(); // AttachCallbackPayload | -apiInstance.updateVirtualMachineCallback(id, payload).then((data) => { +apiInstance.updateVMCallback(vmId, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -277,7 +252,7 @@ apiInstance.updateVirtualMachineCallback(id, payload).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **vmId** | **Number**| | **payload** | [**AttachCallbackPayload**](AttachCallbackPayload.md)| | ### Return type @@ -286,7 +261,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -296,11 +271,11 @@ Name | Type | Description | Notes ## updateVolumeCallback -> AttachCallbackResponse updateVolumeCallback(id, payload) +> AttachCallbackResponse updateVolumeCallback(volumeId, payload) 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). +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/). ### Example @@ -312,16 +287,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.CallbacksApi(); -let id = 56; // Number | +let volumeId = 56; // Number | let payload = new HyperstackApi.AttachCallbackPayload(); // AttachCallbackPayload | -apiInstance.updateVolumeCallback(id, payload).then((data) => { +apiInstance.updateVolumeCallback(volumeId, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -334,7 +304,7 @@ apiInstance.updateVolumeCallback(id, payload).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **volumeId** | **Number**| | **payload** | [**AttachCallbackPayload**](AttachCallbackPayload.md)| | ### Return type @@ -343,7 +313,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/ClusterEventsApi.md b/docs/ClusterEventsApi.md index b3d78e51..92c22200 100644 --- a/docs/ClusterEventsApi.md +++ b/docs/ClusterEventsApi.md @@ -4,13 +4,13 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**fetchAllOfAClusterEvents**](ClusterEventsApi.md#fetchAllOfAClusterEvents) | **GET** /core/clusters/{cluster_id}/events | Fetch all of a cluster events +[**listClusterEvents**](ClusterEventsApi.md#listClusterEvents) | **GET** /core/clusters/{cluster_id}/events | Fetch all of a cluster events -## fetchAllOfAClusterEvents +## listClusterEvents -> ClusterEvents fetchAllOfAClusterEvents(clusterId) +> ClusterEvents listClusterEvents(clusterId) Fetch all of a cluster events @@ -24,15 +24,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ClusterEventsApi(); let clusterId = "clusterId_example"; // String | -apiInstance.fetchAllOfAClusterEvents(clusterId).then((data) => { +apiInstance.listClusterEvents(clusterId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -53,7 +48,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/ClusterFields.md b/docs/ClusterFields.md index 8afde73b..e5fd056c 100644 --- a/docs/ClusterFields.md +++ b/docs/ClusterFields.md @@ -8,12 +8,14 @@ Name | Type | Description | Notes **createdAt** | **Date** | | [optional] **environmentName** | **String** | | [optional] **id** | **Number** | | [optional] +**isReconciling** | **Boolean** | | [optional] **keypairName** | **String** | | [optional] **kubeConfig** | **String** | | [optional] **kubernetesVersion** | **String** | | [optional] +**masterFlavor** | [**ClusterFlavorFields**](ClusterFlavorFields.md) | | [optional] **name** | **String** | | [optional] -**nodeCount** | **Number** | | [optional] -**nodeFlavor** | [**InstanceFlavorFields**](InstanceFlavorFields.md) | | [optional] +**nodeGroups** | [**[ClusterNodeGroupFields]**](ClusterNodeGroupFields.md) | | [optional] +**nodes** | [**[ClusterNodeFields]**](ClusterNodeFields.md) | | [optional] **status** | **String** | | [optional] **statusReason** | **String** | | [optional] diff --git a/docs/ClusterFlavorFields.md b/docs/ClusterFlavorFields.md new file mode 100644 index 00000000..fdc440c3 --- /dev/null +++ b/docs/ClusterFlavorFields.md @@ -0,0 +1,18 @@ +# HyperstackApi.ClusterFlavorFields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cpu** | **Number** | | [optional] +**disk** | **Number** | | [optional] +**ephemeral** | **Number** | | [optional] +**features** | **Object** | | [optional] +**gpu** | **String** | | [optional] +**gpuCount** | **Number** | | [optional] +**id** | **Number** | | [optional] +**labels** | [**[LableResonse]**](LableResonse.md) | | [optional] +**name** | **String** | | [optional] +**ram** | **Number** | | [optional] + + diff --git a/docs/ClusterNodeFields.md b/docs/ClusterNodeFields.md new file mode 100644 index 00000000..dd8b2efd --- /dev/null +++ b/docs/ClusterNodeFields.md @@ -0,0 +1,19 @@ +# HyperstackApi.ClusterNodeFields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | **Date** | | [optional] +**id** | **Number** | | [optional] +**instance** | [**ClusterNodeInstanceFields**](ClusterNodeInstanceFields.md) | | [optional] +**isBastion** | **Boolean** | | [optional] +**nodeGroupId** | **Number** | | [optional] +**nodeGroupName** | **String** | | [optional] +**requiresPublicIp** | **Boolean** | | [optional] +**role** | **String** | | [optional] +**status** | **String** | | [optional] +**statusReason** | **String** | | [optional] +**updatedAt** | **Date** | | [optional] + + diff --git a/docs/ClusterNodeGroupFields.md b/docs/ClusterNodeGroupFields.md new file mode 100644 index 00000000..b04a61ff --- /dev/null +++ b/docs/ClusterNodeGroupFields.md @@ -0,0 +1,19 @@ +# HyperstackApi.ClusterNodeGroupFields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Number** | | [optional] +**createdAt** | **Date** | | [optional] +**firewallIds** | **[Number]** | | [optional] +**firewalls** | [**[ClusterNodeGroupFirewallFields]**](ClusterNodeGroupFirewallFields.md) | | [optional] +**flavor** | [**ClusterFlavorFields**](ClusterFlavorFields.md) | | [optional] +**id** | **Number** | | [optional] +**maxCount** | **Number** | | [optional] +**minCount** | **Number** | | [optional] +**name** | **String** | | [optional] +**role** | **String** | | [optional] +**updatedAt** | **Date** | | [optional] + + diff --git a/docs/ClusterNodeGroupFirewallFields.md b/docs/ClusterNodeGroupFirewallFields.md new file mode 100644 index 00000000..abcc8b44 --- /dev/null +++ b/docs/ClusterNodeGroupFirewallFields.md @@ -0,0 +1,11 @@ +# HyperstackApi.ClusterNodeGroupFirewallFields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | | [optional] +**name** | **String** | | [optional] +**status** | **String** | | [optional] + + diff --git a/docs/ClusterNodeGroupsCreateResponse.md b/docs/ClusterNodeGroupsCreateResponse.md new file mode 100644 index 00000000..cb206949 --- /dev/null +++ b/docs/ClusterNodeGroupsCreateResponse.md @@ -0,0 +1,12 @@ +# HyperstackApi.ClusterNodeGroupsCreateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | [optional] +**nodeGroup** | [**ClusterNodeGroupFields**](ClusterNodeGroupFields.md) | | [optional] +**nodes** | [**[ClusterNodeFields]**](ClusterNodeFields.md) | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/ClusterNodeGroupsGetResponse.md b/docs/ClusterNodeGroupsGetResponse.md new file mode 100644 index 00000000..1bb390c6 --- /dev/null +++ b/docs/ClusterNodeGroupsGetResponse.md @@ -0,0 +1,11 @@ +# HyperstackApi.ClusterNodeGroupsGetResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | [optional] +**nodeGroup** | [**ClusterNodeGroupFields**](ClusterNodeGroupFields.md) | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/ClusterNodeGroupsListResponse.md b/docs/ClusterNodeGroupsListResponse.md new file mode 100644 index 00000000..85a3b592 --- /dev/null +++ b/docs/ClusterNodeGroupsListResponse.md @@ -0,0 +1,11 @@ +# HyperstackApi.ClusterNodeGroupsListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | [optional] +**nodeGroups** | [**[ClusterNodeGroupFields]**](ClusterNodeGroupFields.md) | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/ClusterNodeInstanceFields.md b/docs/ClusterNodeInstanceFields.md new file mode 100644 index 00000000..1208757e --- /dev/null +++ b/docs/ClusterNodeInstanceFields.md @@ -0,0 +1,16 @@ +# HyperstackApi.ClusterNodeInstanceFields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contractId** | **Number** | | [optional] +**fixedIp** | **String** | | [optional] +**floatingIp** | **String** | | [optional] +**floatingIpStatus** | **String** | | [optional] +**id** | **Number** | | [optional] +**imageId** | **Number** | | [optional] +**name** | **String** | | [optional] +**status** | **String** | | [optional] + + diff --git a/docs/ClusterNodesListResponse.md b/docs/ClusterNodesListResponse.md new file mode 100644 index 00000000..497dbd5b --- /dev/null +++ b/docs/ClusterNodesListResponse.md @@ -0,0 +1,11 @@ +# HyperstackApi.ClusterNodesListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | [optional] +**nodes** | [**[ClusterNodeFields]**](ClusterNodeFields.md) | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/ClusterVersion.md b/docs/ClusterVersion.md new file mode 100644 index 00000000..9d0397ad --- /dev/null +++ b/docs/ClusterVersion.md @@ -0,0 +1,14 @@ +# HyperstackApi.ClusterVersion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | **Date** | | [optional] +**id** | **Number** | | [optional] +**image** | **Object** | | [optional] +**region** | **Object** | | [optional] +**updatedAt** | **Date** | | [optional] +**version** | **String** | | [optional] + + diff --git a/docs/ClusterVersions.md b/docs/ClusterVersions.md index 670e134d..5136fb9b 100644 --- a/docs/ClusterVersions.md +++ b/docs/ClusterVersions.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **String** | | [optional] **status** | **Boolean** | | [optional] -**versions** | **[String]** | | [optional] +**versions** | [**[ClusterVersion]**](ClusterVersion.md) | | [optional] diff --git a/docs/ClustersApi.md b/docs/ClustersApi.md index 4c6ad946..7edebc96 100644 --- a/docs/ClustersApi.md +++ b/docs/ClustersApi.md @@ -5,11 +5,22 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**createCluster**](ClustersApi.md#createCluster) | **POST** /core/clusters | Create Cluster -[**deleteACluster**](ClustersApi.md#deleteACluster) | **DELETE** /core/clusters/{id} | Delete a cluster +[**createNode**](ClustersApi.md#createNode) | **POST** /core/clusters/{cluster_id}/nodes | Create Node +[**createNodeGroup**](ClustersApi.md#createNodeGroup) | **POST** /core/clusters/{cluster_id}/node-groups | Create a node group in a cluster +[**deleteCluster**](ClustersApi.md#deleteCluster) | **DELETE** /core/clusters/{id} | Delete a cluster +[**deleteClusterNode**](ClustersApi.md#deleteClusterNode) | **DELETE** /core/clusters/{cluster_id}/nodes/{node_id} | Delete Cluster Node +[**deleteClusterNodes**](ClustersApi.md#deleteClusterNodes) | **POST** /core/clusters/{cluster_id}/nodes/delete | Delete Multiple Cluster Nodes +[**deleteNodeGroup**](ClustersApi.md#deleteNodeGroup) | **DELETE** /core/clusters/{cluster_id}/node-groups/{node_group_id} | Delete a node group [**fetchClusterNameAvailability**](ClustersApi.md#fetchClusterNameAvailability) | **GET** /core/clusters/name-availability/{name} | Fetch cluster name availability -[**getClusterVersions**](ClustersApi.md#getClusterVersions) | **GET** /core/clusters/versions | GET Cluster Versions +[**getClusterMasterFlavors**](ClustersApi.md#getClusterMasterFlavors) | **GET** /core/clusters/master-flavors | Get Cluster Master Flavors +[**getClusterNodes**](ClustersApi.md#getClusterNodes) | **GET** /core/clusters/{cluster_id}/nodes | Get Cluster Nodes +[**getClusterVersions**](ClustersApi.md#getClusterVersions) | **GET** /core/clusters/versions | List Cluster Versions +[**getNodeGroup**](ClustersApi.md#getNodeGroup) | **GET** /core/clusters/{cluster_id}/node-groups/{node_group_id} | Retrieve a node group in a cluster [**gettingClusterDetail**](ClustersApi.md#gettingClusterDetail) | **GET** /core/clusters/{id} | Getting Cluster Detail [**listClusters**](ClustersApi.md#listClusters) | **GET** /core/clusters | List Clusters +[**listNodeGroups**](ClustersApi.md#listNodeGroups) | **GET** /core/clusters/{cluster_id}/node-groups | List node groups for a cluster +[**reconcileCluster**](ClustersApi.md#reconcileCluster) | **POST** /core/clusters/{cluster_id}/reconcile | Reconcile a cluster +[**updateNodeGroup**](ClustersApi.md#updateNodeGroup) | **PATCH** /core/clusters/{cluster_id}/node-groups/{node_group_id} | Update a node group in a cluster @@ -29,11 +40,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ClustersApi(); let payload = new HyperstackApi.CreateClusterPayload(); // CreateClusterPayload | @@ -58,7 +64,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -66,11 +72,11 @@ Name | Type | Description | Notes - **Accept**: application/json -## deleteACluster +## createNode -> ResponseModel deleteACluster(id) +> ClusterNodesListResponse createNode(clusterId, payload) -Delete a cluster +Create Node ### Example @@ -82,15 +88,110 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; + +let apiInstance = new HyperstackApi.ClustersApi(); +let clusterId = 56; // Number | +let payload = new HyperstackApi.CreateClusterNodeFields(); // CreateClusterNodeFields | +apiInstance.createNode(clusterId, payload).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterId** | **Number**| | + **payload** | [**CreateClusterNodeFields**](CreateClusterNodeFields.md)| | + +### Return type + +[**ClusterNodesListResponse**](ClusterNodesListResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## createNodeGroup + +> ClusterNodeGroupsCreateResponse createNodeGroup(clusterId, payload) + +Create a node group in a cluster + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.ClustersApi(); +let clusterId = 56; // Number | +let payload = new HyperstackApi.CreateClusterNodeGroupPayload(); // CreateClusterNodeGroupPayload | +apiInstance.createNodeGroup(clusterId, payload).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterId** | **Number**| | + **payload** | [**CreateClusterNodeGroupPayload**](CreateClusterNodeGroupPayload.md)| | + +### Return type + +[**ClusterNodeGroupsCreateResponse**](ClusterNodeGroupsCreateResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## deleteCluster + +> ResponseModel deleteCluster(id) + +Delete a cluster + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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) -//accessToken.apiKeyPrefix = 'Token'; +//apiKey.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ClustersApi(); let id = 56; // Number | -apiInstance.deleteACluster(id).then((data) => { +apiInstance.deleteCluster(id).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -111,7 +212,157 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## deleteClusterNode + +> ResponseModel deleteClusterNode(clusterId, nodeId) + +Delete Cluster Node + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.ClustersApi(); +let clusterId = 56; // Number | +let nodeId = 56; // Number | +apiInstance.deleteClusterNode(clusterId, nodeId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterId** | **Number**| | + **nodeId** | **Number**| | + +### Return type + +[**ResponseModel**](ResponseModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## deleteClusterNodes + +> ResponseModel deleteClusterNodes(clusterId, payload) + +Delete Multiple Cluster Nodes + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.ClustersApi(); +let clusterId = 56; // Number | +let payload = new HyperstackApi.DeleteClusterNodesFields(); // DeleteClusterNodesFields | +apiInstance.deleteClusterNodes(clusterId, payload).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterId** | **Number**| | + **payload** | [**DeleteClusterNodesFields**](DeleteClusterNodesFields.md)| | + +### Return type + +[**ResponseModel**](ResponseModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## deleteNodeGroup + +> ResponseModel deleteNodeGroup(clusterId, nodeGroupId) + +Delete a node group + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.ClustersApi(); +let clusterId = 56; // Number | +let nodeGroupId = 56; // Number | +apiInstance.deleteNodeGroup(clusterId, nodeGroupId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterId** | **Number**| | + **nodeGroupId** | **Number**| | + +### Return type + +[**ResponseModel**](ResponseModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -137,11 +388,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ClustersApi(); let name = "name_example"; // String | @@ -166,7 +412,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -174,11 +420,11 @@ Name | Type | Description | Notes - **Accept**: application/json -## getClusterVersions +## getClusterMasterFlavors -> ClusterVersions getClusterVersions() +> MasterFlavorsResponse getClusterMasterFlavors() -GET Cluster Versions +Get Cluster Master Flavors ### Example @@ -190,14 +436,9 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ClustersApi(); -apiInstance.getClusterVersions().then((data) => { +apiInstance.getClusterMasterFlavors().then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -211,11 +452,161 @@ This endpoint does not need any parameter. ### Return type +[**MasterFlavorsResponse**](MasterFlavorsResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getClusterNodes + +> ClusterNodesListResponse getClusterNodes(clusterId) + +Get Cluster Nodes + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.ClustersApi(); +let clusterId = 56; // Number | +apiInstance.getClusterNodes(clusterId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterId** | **Number**| | + +### Return type + +[**ClusterNodesListResponse**](ClusterNodesListResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getClusterVersions + +> ClusterVersions getClusterVersions(opts) + +List Cluster Versions + +Lists available Kubernetes versions, optionally filtered by region. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.ClustersApi(); +let opts = { + 'region': "region_example" // String | Filter versions by region name (optional) +}; +apiInstance.getClusterVersions(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **region** | **String**| Filter versions by region name (optional) | [optional] + +### Return type + [**ClusterVersions**](ClusterVersions.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getNodeGroup + +> ClusterNodeGroupsGetResponse getNodeGroup(clusterId, nodeGroupId) + +Retrieve a node group in a cluster + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.ClustersApi(); +let clusterId = 56; // Number | +let nodeGroupId = 56; // Number | +apiInstance.getNodeGroup(clusterId, nodeGroupId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterId** | **Number**| | + **nodeGroupId** | **Number**| | + +### Return type + +[**ClusterNodeGroupsGetResponse**](ClusterNodeGroupsGetResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -239,11 +630,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ClustersApi(); let id = 56; // Number | @@ -268,7 +654,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -278,7 +664,7 @@ Name | Type | Description | Notes ## listClusters -> ClusterListResponse listClusters() +> ClusterListResponse listClusters(opts) List Clusters @@ -292,14 +678,15 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ClustersApi(); -apiInstance.listClusters().then((data) => { +let opts = { + 'page': 56, // Number | Page number for pagination + 'pageSize': 56, // Number | Number of items per page + 'environment': "environment_example", // String | Environment Filter + 'search': "search_example" // String | Search query to filter cluster by name +}; +apiInstance.listClusters(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -309,7 +696,13 @@ apiInstance.listClusters().then((data) => { ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **Number**| Page number for pagination | [optional] + **pageSize** | **Number**| Number of items per page | [optional] + **environment** | **String**| Environment Filter | [optional] + **search** | **String**| Search query to filter cluster by name | [optional] ### Return type @@ -317,10 +710,158 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## listNodeGroups + +> ClusterNodeGroupsListResponse listNodeGroups(clusterId) + +List node groups for a cluster + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.ClustersApi(); +let clusterId = 56; // Number | +apiInstance.listNodeGroups(clusterId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterId** | **Number**| | + +### Return type + +[**ClusterNodeGroupsListResponse**](ClusterNodeGroupsListResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## reconcileCluster + +> ManualReconciliationModel reconcileCluster(clusterId) + +Reconcile a cluster + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.ClustersApi(); +let clusterId = 56; // Number | +apiInstance.reconcileCluster(clusterId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterId** | **Number**| | + +### Return type + +[**ManualReconciliationModel**](ManualReconciliationModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json + +## updateNodeGroup + +> ClusterNodeGroupsCreateResponse updateNodeGroup(clusterId, nodeGroupId, payload) + +Update a node group in a cluster + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.ClustersApi(); +let clusterId = 56; // Number | +let nodeGroupId = 56; // Number | +let payload = new HyperstackApi.UpdateClusterNodeGroupPayload(); // UpdateClusterNodeGroupPayload | +apiInstance.updateNodeGroup(clusterId, nodeGroupId, payload).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterId** | **Number**| | + **nodeGroupId** | **Number**| | + **payload** | [**UpdateClusterNodeGroupPayload**](UpdateClusterNodeGroupPayload.md)| | + +### Return type + +[**ClusterNodeGroupsCreateResponse**](ClusterNodeGroupsCreateResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + diff --git a/docs/Colors.md b/docs/Colors.md new file mode 100644 index 00000000..871687d5 --- /dev/null +++ b/docs/Colors.md @@ -0,0 +1,10 @@ +# HyperstackApi.Colors + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**primary** | [**PrimaryColor**](PrimaryColor.md) | | [optional] +**secondary** | [**SecondaryColor**](SecondaryColor.md) | | [optional] + + diff --git a/docs/CompatibleFlavor.md b/docs/CompatibleFlavor.md new file mode 100644 index 00000000..9bfbd55e --- /dev/null +++ b/docs/CompatibleFlavor.md @@ -0,0 +1,13 @@ +# HyperstackApi.CompatibleFlavor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**constraints** | **Object** | JSON constraints object | [optional] +**flavorId** | **Number** | | [optional] +**flavorName** | **String** | | [optional] +**linkType** | **String** | Either 'hard' or 'soft' | [optional] +**reason** | **String** | | [optional] + + diff --git a/docs/ComplianceApi.md b/docs/ComplianceApi.md index 65b78a6c..2d677bfa 100644 --- a/docs/ComplianceApi.md +++ b/docs/ComplianceApi.md @@ -5,9 +5,9 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**createCompliance**](ComplianceApi.md#createCompliance) | **POST** /core/compliance | Create compliance -[**deleteACompliance**](ComplianceApi.md#deleteACompliance) | **DELETE** /core/compliance/{gpu_model} | Delete a compliance -[**retrieveGpuCompliance**](ComplianceApi.md#retrieveGpuCompliance) | **GET** /core/compliance | Retrieve GPU compliance -[**updateACompliance**](ComplianceApi.md#updateACompliance) | **PUT** /core/compliance | Update a compliance +[**deleteCompliance**](ComplianceApi.md#deleteCompliance) | **DELETE** /core/compliance/{gpu_model} | Delete a compliance +[**getCompliance**](ComplianceApi.md#getCompliance) | **GET** /core/compliance | Retrieve GPU compliance +[**updateCompliance**](ComplianceApi.md#updateCompliance) | **PUT** /core/compliance | Update a compliance @@ -27,11 +27,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ComplianceApi(); let payload = new HyperstackApi.CompliancePayload(); // CompliancePayload | @@ -56,7 +51,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -64,9 +59,9 @@ Name | Type | Description | Notes - **Accept**: application/json -## deleteACompliance +## deleteCompliance -> ResponseModel deleteACompliance(gpuModel) +> ResponseModel deleteCompliance(gpuModel) Delete a compliance @@ -80,15 +75,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ComplianceApi(); let gpuModel = "gpuModel_example"; // String | -apiInstance.deleteACompliance(gpuModel).then((data) => { +apiInstance.deleteCompliance(gpuModel).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -109,7 +99,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -117,13 +107,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveGpuCompliance +## getCompliance -> ComplianceResponse retrieveGpuCompliance(opts) +> ComplianceResponse getCompliance(opts) 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). ### Example @@ -135,17 +125,12 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ComplianceApi(); let opts = { 'gpu': "gpu_example" // String | This is for gpu model }; -apiInstance.retrieveGpuCompliance(opts).then((data) => { +apiInstance.getCompliance(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -166,7 +151,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -174,9 +159,9 @@ Name | Type | Description | Notes - **Accept**: application/json -## updateACompliance +## updateCompliance -> CreateUpdateComplianceResponse updateACompliance(payload) +> CreateUpdateComplianceResponse updateCompliance(payload) Update a compliance @@ -190,15 +175,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ComplianceApi(); let payload = new HyperstackApi.CompliancePayload(); // CompliancePayload | -apiInstance.updateACompliance(payload).then((data) => { +apiInstance.updateCompliance(payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -219,7 +199,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/ContractBillingHistory.md b/docs/ContractBillingHistory.md deleted file mode 100644 index 8370be8c..00000000 --- a/docs/ContractBillingHistory.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.ContractBillingHistory - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attributes** | [**ContractBillingHistoryResponseAttributes**](ContractBillingHistoryResponseAttributes.md) | | [optional] -**metrics** | [**ContractlBillingHistoryResponseMetrics**](ContractlBillingHistoryResponseMetrics.md) | | [optional] - - diff --git a/docs/ContractBillingHistoryResponseAttributes.md b/docs/ContractBillingHistoryResponseAttributes.md deleted file mode 100644 index 4452f652..00000000 --- a/docs/ContractBillingHistoryResponseAttributes.md +++ /dev/null @@ -1,15 +0,0 @@ -# HyperstackApi.ContractBillingHistoryResponseAttributes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | | [optional] -**endDate** | **String** | | [optional] -**gpuCount** | **Number** | | [optional] -**gpuName** | **String** | | [optional] -**id** | **String** | | [optional] -**infrahubId** | **Number** | | [optional] -**pricePerHour** | **Number** | | [optional] - - diff --git a/docs/ContractBillingHistoryResponseModel.md b/docs/ContractBillingHistoryResponseModel.md deleted file mode 100644 index ae0e6ace..00000000 --- a/docs/ContractBillingHistoryResponseModel.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.ContractBillingHistoryResponseModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**billingHistoryContract** | [**ContractBillingHistory**](ContractBillingHistory.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/ContractChangePayload.md b/docs/ContractChangePayload.md deleted file mode 100644 index 461d8431..00000000 --- a/docs/ContractChangePayload.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.ContractChangePayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**changes** | [**[FieldChange]**](FieldChange.md) | List of field changes for 'updated' type | [optional] -**id** | **Number** | The ID of the contract | -**orgId** | **Number** | The ORG ID of the contract | -**type** | **String** | Purpose of the change: created, deleted, expired, or updated | - - diff --git a/docs/ContractDiscountPlanFields.md b/docs/ContractDiscountPlanFields.md index b625f93a..0ad0c328 100644 --- a/docs/ContractDiscountPlanFields.md +++ b/docs/ContractDiscountPlanFields.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **discountStatus** | **String** | | [optional] **discountType** | **String** | | [optional] **id** | **Number** | | [optional] +**remainingCount** | **Number** | | [optional] **resourceCount** | **Number** | | [optional] **resourceId** | **Number** | | [optional] **resourceName** | **String** | | [optional] diff --git a/docs/ContractEligibleInstanceFields.md b/docs/ContractEligibleInstanceFields.md deleted file mode 100644 index 2b98affc..00000000 --- a/docs/ContractEligibleInstanceFields.md +++ /dev/null @@ -1,15 +0,0 @@ -# HyperstackApi.ContractEligibleInstanceFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**contractId** | **Number** | | [optional] -**host** | **String** | | [optional] -**id** | **Number** | | [optional] -**name** | **String** | | [optional] -**openstackId** | **String** | | [optional] -**publicIp** | **String** | | [optional] -**status** | **String** | | [optional] - - diff --git a/docs/ContractEligibleInstancesResponse.md b/docs/ContractEligibleInstancesResponse.md deleted file mode 100644 index d219dd78..00000000 --- a/docs/ContractEligibleInstancesResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.ContractEligibleInstancesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**instanceCount** | **Number** | | [optional] -**instances** | [**[ContractEligibleInstanceFields]**](ContractEligibleInstanceFields.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/ContractEventCreateModel.md b/docs/ContractEventCreateModel.md deleted file mode 100644 index fa06692e..00000000 --- a/docs/ContractEventCreateModel.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.ContractEventCreateModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | Message for the event | -**reason** | **String** | Reason for the event | -**type** | **String** | Event type | - - diff --git a/docs/ContractInstanceFields.md b/docs/ContractInstanceFields.md index c86ff99e..e6f11011 100644 --- a/docs/ContractInstanceFields.md +++ b/docs/ContractInstanceFields.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**cluster** | [**ClusterFields**](ClusterFields.md) | | [optional] **createdAt** | **Date** | | [optional] **flavorName** | **String** | | [optional] **gpuCount** | **Number** | | [optional] diff --git a/docs/ContractResourcePayload.md b/docs/ContractResourcePayload.md deleted file mode 100644 index 5b824f67..00000000 --- a/docs/ContractResourcePayload.md +++ /dev/null @@ -1,13 +0,0 @@ -# HyperstackApi.ContractResourcePayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**discountAmount** | **Number** | | [optional] -**discountPercent** | **Number** | | [optional] -**discountType** | **String** | | -**resourceCount** | **Number** | | [optional] -**resourceId** | **Number** | | - - diff --git a/docs/ContractlBillingHistoryResponseMetrics.md b/docs/ContractlBillingHistoryResponseMetrics.md deleted file mode 100644 index 3f8b43b5..00000000 --- a/docs/ContractlBillingHistoryResponseMetrics.md +++ /dev/null @@ -1,9 +0,0 @@ -# HyperstackApi.ContractlBillingHistoryResponseMetrics - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**incurredBill** | **Number** | | [optional] - - diff --git a/docs/CreateClusterNodeFields.md b/docs/CreateClusterNodeFields.md new file mode 100644 index 00000000..c5a1ca0e --- /dev/null +++ b/docs/CreateClusterNodeFields.md @@ -0,0 +1,22 @@ +# HyperstackApi.CreateClusterNodeFields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Number** | | [optional] +**nodeGroup** | **String** | | [optional] +**role** | **String** | | [optional] + + + +## Enum: RoleEnum + + +* `worker` (value: `"worker"`) + +* `master` (value: `"master"`) + + + + diff --git a/docs/CreateClusterNodeGroupPayload.md b/docs/CreateClusterNodeGroupPayload.md new file mode 100644 index 00000000..0500b5c0 --- /dev/null +++ b/docs/CreateClusterNodeGroupPayload.md @@ -0,0 +1,24 @@ +# HyperstackApi.CreateClusterNodeGroupPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Number** | | [optional] +**firewallIds** | **[Number]** | IDs of the firewalls to apply to all nodes in this node group | [optional] +**flavorName** | **String** | | +**maxCount** | **Number** | | [optional] +**minCount** | **Number** | | [optional] +**name** | **String** | | +**role** | **String** | | [default to 'worker'] + + + +## Enum: RoleEnum + + +* `worker` (value: `"worker"`) + + + + diff --git a/docs/CreateClusterPayload.md b/docs/CreateClusterPayload.md index c9644796..22653595 100644 --- a/docs/CreateClusterPayload.md +++ b/docs/CreateClusterPayload.md @@ -4,13 +4,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**deploymentMode** | **String** | | [optional] [default to 'full'] **environmentName** | **String** | | -**imageName** | **String** | | **keypairName** | **String** | | **kubernetesVersion** | **String** | | +**masterCount** | **Number** | | [optional] **masterFlavorName** | **String** | | **name** | **String** | | -**nodeCount** | **Number** | | -**nodeFlavorName** | **String** | | +**nodeCount** | **Number** | | [optional] +**nodeFlavorName** | **String** | | [optional] +**nodeGroups** | [**[CreateClusterNodeGroupPayload]**](CreateClusterNodeGroupPayload.md) | | [optional] + + + +## Enum: DeploymentModeEnum + + +* `full` (value: `"full"`) + +* `standard` (value: `"standard"`) + + diff --git a/docs/CreateContractFields.md b/docs/CreateContractFields.md deleted file mode 100644 index 15a17197..00000000 --- a/docs/CreateContractFields.md +++ /dev/null @@ -1,16 +0,0 @@ -# HyperstackApi.CreateContractFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**createdAt** | **Date** | | [optional] -**description** | **String** | | [optional] -**discountPlans** | [**[ContractDiscountPlanFields]**](ContractDiscountPlanFields.md) | | [optional] -**endDate** | **Date** | | [optional] -**expirationPolicy** | **Number** | | [optional] -**id** | **Number** | | [optional] -**orgId** | **Number** | | [optional] -**startDate** | **Date** | | [optional] - - diff --git a/docs/CreateContractPayload.md b/docs/CreateContractPayload.md deleted file mode 100644 index 27ff8ae4..00000000 --- a/docs/CreateContractPayload.md +++ /dev/null @@ -1,14 +0,0 @@ -# HyperstackApi.CreateContractPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | | [optional] -**discountResources** | [**[ContractResourcePayload]**](ContractResourcePayload.md) | | -**endDate** | **Date** | | [optional] -**expirationPolicy** | **Number** | | -**orgId** | **Number** | | -**startDate** | **Date** | | [optional] - - diff --git a/docs/CreateDiscountResponse.md b/docs/CreateDiscountResponse.md deleted file mode 100644 index 0e56f7a3..00000000 --- a/docs/CreateDiscountResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.CreateDiscountResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**discountPlan** | [**InsertDiscountPlanFields**](InsertDiscountPlanFields.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/CreateDiscountsPayload.md b/docs/CreateDiscountsPayload.md deleted file mode 100644 index 2cc6b7db..00000000 --- a/docs/CreateDiscountsPayload.md +++ /dev/null @@ -1,13 +0,0 @@ -# HyperstackApi.CreateDiscountsPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**customers** | [**[CustomerPayload]**](CustomerPayload.md) | | -**discountResources** | [**[DiscountResourcePayload]**](DiscountResourcePayload.md) | | -**discountStatus** | **String** | | -**endDate** | **Date** | | [optional] -**startDate** | **Date** | | [optional] - - diff --git a/docs/CreateEnvironment.md b/docs/CreateEnvironment.md index f2a77a6a..34dab984 100644 --- a/docs/CreateEnvironment.md +++ b/docs/CreateEnvironment.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the environment being created. | -**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). | +**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). | diff --git a/docs/CreateGPU.md b/docs/CreateGPU.md deleted file mode 100644 index ec9b1f92..00000000 --- a/docs/CreateGPU.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.CreateGPU - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**exampleMetadata** | **String** | A valid JSON string. | [optional] -**name** | **String** | | -**regions** | **[String]** | | [optional] - - diff --git a/docs/CreateInstancesPayload.md b/docs/CreateInstancesPayload.md index a539da98..3bd4ae87 100644 --- a/docs/CreateInstancesPayload.md +++ b/docs/CreateInstancesPayload.md @@ -4,21 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**assignFloatingIp** | **Boolean** | 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. | [optional] -**callbackUrl** | **String** | 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). | [optional] +**assignFloatingIp** | **Boolean** | 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. | [optional] +**callbackUrl** | **String** | 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/). | [optional] **count** | **Number** | The number of virtual machines to be created. | **createBootableVolume** | **Boolean** | Indicates whether to create a bootable volume for the virtual machine. When set to `true`, a bootable volume will be created; the default value is `false`. | [optional] **enablePortRandomization** | **Boolean** | Indicates whether to enable port randomization.This setting is only effective if 'assign_floating_ip' is true. Defaults to true. | [optional] [default to true] -**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. | +**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. | **flavor** | [**FlavorObjectFields**](FlavorObjectFields.md) | | [optional] -**flavorName** | **String** | The name of the GPU hardware configuration ([flavor](https://infrahub-doc.nexgencloud.com/docs/hardware/flavors)) for the virtual machines being created. | -**imageName** | **String** | 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). | [optional] -**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). | +**flavorName** | **String** | The name of the GPU hardware configuration ([flavor](https://docs.hyperstack.cloud/docs/hardware/flavors)) for the virtual machines being created. | +**imageName** | **String** | 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). | [optional] +**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/). | **labels** | **[String]** | | [optional] **name** | **String** | The name of the virtual machine being created. | **profile** | [**ProfileObjectFields**](ProfileObjectFields.md) | | [optional] **securityRules** | [**[CreateSecurityRulePayload]**](CreateSecurityRulePayload.md) | | [optional] -**userData** | **String** | 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] +**userData** | **String** | 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). | [optional] **volumeName** | **String** | The names of the volume(s) to be attached to the virtual machine being created. | [optional] diff --git a/docs/CreateProfilePayload.md b/docs/CreateProfilePayload.md index 200584c0..5343cd42 100644 --- a/docs/CreateProfilePayload.md +++ b/docs/CreateProfilePayload.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | **{String: String}** | The data object which contains the configuration of the virtual machine profile being created. | +**data** | **{String: String}** | The data object containing the configuration details of the virtual machine profile being created. | **description** | **String** | The optional description for the profile being created. | [optional] **name** | **String** | The name of the profile being created. | diff --git a/docs/CreateSnapshotPayload.md b/docs/CreateSnapshotPayload.md index b37ed856..7a9c864d 100644 --- a/docs/CreateSnapshotPayload.md +++ b/docs/CreateSnapshotPayload.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **String** | description | -**isImage** | **Boolean** | Indicates if the snapshot is an image | **labels** | **[String]** | Labels associated with snapshot | [optional] **name** | **String** | Snapshot name | diff --git a/docs/CreateUpdatePermissionPayload.md b/docs/CreateUpdatePermissionPayload.md deleted file mode 100644 index 94f09c5c..00000000 --- a/docs/CreateUpdatePermissionPayload.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.CreateUpdatePermissionPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**endpoint** | **String** | | -**method** | **String** | | -**permission** | **String** | | -**resource** | **String** | | - - diff --git a/docs/CreateUpdatePermissionResponseModel.md b/docs/CreateUpdatePermissionResponseModel.md deleted file mode 100644 index 68114d31..00000000 --- a/docs/CreateUpdatePermissionResponseModel.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.CreateUpdatePermissionResponseModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | [optional] -**permission** | [**PermissionFields**](PermissionFields.md) | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/CreateUpdatePolicyPayload.md b/docs/CreateUpdatePolicyPayload.md deleted file mode 100644 index a089a05b..00000000 --- a/docs/CreateUpdatePolicyPayload.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.CreateUpdatePolicyPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | | -**isPublic** | **Boolean** | | -**name** | **String** | | -**permissions** | **[Number]** | | - - diff --git a/docs/CreateUpdatePolicyResponseModel.md b/docs/CreateUpdatePolicyResponseModel.md deleted file mode 100644 index 8e152819..00000000 --- a/docs/CreateUpdatePolicyResponseModel.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.CreateUpdatePolicyResponseModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | [optional] -**policy** | [**PolicyFields**](PolicyFields.md) | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/CreateVolumePayload.md b/docs/CreateVolumePayload.md index 42e59dad..9018f9f5 100644 --- a/docs/CreateVolumePayload.md +++ b/docs/CreateVolumePayload.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **callbackUrl** | **String** | A URL that can be attached to the volume you are creating. This `callback_url` will post any action events that occur to your volume to the provided URL. | [optional] **description** | **String** | A brief description or comment about the volume. | [optional] -**environmentName** | **String** | The name of the [environment](https://infrahub-doc.nexgencloud.com/docs/features/environments-available-features) within which the volume is being created. | +**environmentName** | **String** | The name of the [environment](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/) within which the volume is being created. | **imageId** | **Number** | The ID of the operating system image that will be associated with the volume. By providing an `image_id` in the create volume request, you will create a bootable volume. | [optional] **name** | **String** | The name of the volume being created. | **size** | **Number** | The size of the volume in GB. 1048576GB storage capacity per volume. | diff --git a/docs/CreditApi.md b/docs/CreditApi.md index 679bbe06..9d1378d7 100644 --- a/docs/CreditApi.md +++ b/docs/CreditApi.md @@ -4,16 +4,18 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**getViewCreditAndThreshold**](CreditApi.md#getViewCreditAndThreshold) | **GET** /billing/user-credit/credit | GET: View credit and threshold +[**getUserCredit**](CreditApi.md#getUserCredit) | **GET** /billing/user-credit/credit | GET: View credit and threshold -## getViewCreditAndThreshold +## getUserCredit -> Getcreditandthresholdinfoinresponse getViewCreditAndThreshold() +> GetCreditAndThresholdInfoInResponse getUserCredit() GET: View credit and threshold +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/). + ### Example ```javascript @@ -24,14 +26,9 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.CreditApi(); -apiInstance.getViewCreditAndThreshold().then((data) => { +apiInstance.getUserCredit().then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -45,11 +42,11 @@ This endpoint does not need any parameter. ### Return type -[**Getcreditandthresholdinfoinresponse**](Getcreditandthresholdinfoinresponse.md) +[**GetCreditAndThresholdInfoInResponse**](GetCreditAndThresholdInfoInResponse.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/Creditrechargelimitfield.md b/docs/Creditrechargelimitfield.md deleted file mode 100644 index a57a20fe..00000000 --- a/docs/Creditrechargelimitfield.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.Creditrechargelimitfield - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**creditGranted** | **Number** | | [optional] -**creditLimit** | **Number** | | [optional] -**organizationId** | **Number** | | [optional] -**userId** | **Number** | | [optional] - - diff --git a/docs/Creditrechargelimitresponse.md b/docs/Creditrechargelimitresponse.md deleted file mode 100644 index f5acbea6..00000000 --- a/docs/Creditrechargelimitresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.Creditrechargelimitresponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[Creditrechargelimitfield]**](Creditrechargelimitfield.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/Creditrequestresponse.md b/docs/Creditrequestresponse.md deleted file mode 100644 index be83d045..00000000 --- a/docs/Creditrequestresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.Creditrequestresponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[Creditrequests]**](Creditrequests.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/Creditrequests.md b/docs/Creditrequests.md deleted file mode 100644 index 76731c26..00000000 --- a/docs/Creditrequests.md +++ /dev/null @@ -1,13 +0,0 @@ -# HyperstackApi.Creditrequests - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**adminUserId** | **Number** | | [optional] -**amount** | **Number** | | [optional] -**reason** | **String** | | [optional] -**status** | **String** | | [optional] -**updatedAt** | **Date** | | [optional] - - diff --git a/docs/CustomerContractApi.md b/docs/CustomerContractApi.md index 635b7dfe..474a0111 100644 --- a/docs/CustomerContractApi.md +++ b/docs/CustomerContractApi.md @@ -4,19 +4,19 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**listContracts**](CustomerContractApi.md#listContracts) | **GET** /pricebook/contracts | List Contracts -[**retrieveContractDetails**](CustomerContractApi.md#retrieveContractDetails) | **GET** /pricebook/contracts/{contract_id} | Retrieve Contract Details -[**retrieveGpuAllocationGraphForContract**](CustomerContractApi.md#retrieveGpuAllocationGraphForContract) | **GET** /pricebook/contracts/{contract_id}/gpu_allocation_graph | Retrieve GPU Allocation Graph for Contract +[**getContractGPUAllocationGraph**](CustomerContractApi.md#getContractGPUAllocationGraph) | **GET** /pricebook/contracts/{contract_id}/gpu_allocation_graph | Retrieve GPU Allocation Graph for Contract +[**listCustomerContracts**](CustomerContractApi.md#listCustomerContracts) | **GET** /pricebook/contracts | List Contracts +[**retrieveContract**](CustomerContractApi.md#retrieveContract) | **GET** /pricebook/contracts/{contract_id} | Retrieve Contract Details -## listContracts +## getContractGPUAllocationGraph -> GetCustomerContractsListResponseModel listContracts(opts) +> ContractGPUAllocationGraphResponse getContractGPUAllocationGraph(contractId, opts) -List Contracts +Retrieve GPU Allocation Graph for Contract -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 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. ### Example @@ -28,18 +28,14 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.CustomerContractApi(); +let contractId = 56; // Number | let opts = { - 'page': 56, // Number | - 'perPage': 56 // Number | + 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS + 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS }; -apiInstance.listContracts(opts).then((data) => { +apiInstance.getContractGPUAllocationGraph(contractId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -52,16 +48,17 @@ apiInstance.listContracts(opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **Number**| | [optional] - **perPage** | **Number**| | [optional] + **contractId** | **Number**| | + **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] + **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] ### Return type -[**GetCustomerContractsListResponseModel**](GetCustomerContractsListResponseModel.md) +[**ContractGPUAllocationGraphResponse**](ContractGPUAllocationGraphResponse.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -69,13 +66,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveContractDetails +## listCustomerContracts -> CustomerContractDetailResponseModel retrieveContractDetails(contractId) +> GetCustomerContractsListResponseModel listCustomerContracts(opts) -Retrieve Contract Details +List Contracts -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). +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). ### Example @@ -87,15 +84,13 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.CustomerContractApi(); -let contractId = 56; // Number | -apiInstance.retrieveContractDetails(contractId).then((data) => { +let opts = { + 'page': 56, // Number | + 'perPage': 56 // Number | +}; +apiInstance.listCustomerContracts(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -108,15 +103,16 @@ apiInstance.retrieveContractDetails(contractId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **contractId** | **Number**| | + **page** | **Number**| | [optional] + **perPage** | **Number**| | [optional] ### Return type -[**CustomerContractDetailResponseModel**](CustomerContractDetailResponseModel.md) +[**GetCustomerContractsListResponseModel**](GetCustomerContractsListResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -124,13 +120,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveGpuAllocationGraphForContract +## retrieveContract -> ContractGPUAllocationGraphResponse retrieveGpuAllocationGraphForContract(contractId, opts) +> CustomerContractDetailResponseModel retrieveContract(contractId) -Retrieve GPU Allocation Graph for Contract +Retrieve Contract Details -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 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). ### Example @@ -142,19 +138,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.CustomerContractApi(); let contractId = 56; // Number | -let opts = { - 'startDate': "startDate_example", // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS - 'endDate': "endDate_example" // String | Date should be formatted in YYYY-MM-DDTHH:MM:SS -}; -apiInstance.retrieveGpuAllocationGraphForContract(contractId, opts).then((data) => { +apiInstance.retrieveContract(contractId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -168,16 +155,14 @@ apiInstance.retrieveGpuAllocationGraphForContract(contractId, opts).then((data) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contractId** | **Number**| | - **startDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] - **endDate** | **String**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional] ### Return type -[**ContractGPUAllocationGraphResponse**](ContractGPUAllocationGraphResponse.md) +[**CustomerContractDetailResponseModel**](CustomerContractDetailResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/CustomerFields.md b/docs/CustomerFields.md deleted file mode 100644 index 448f80ea..00000000 --- a/docs/CustomerFields.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.CustomerFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**planType** | **String** | | [optional] - - diff --git a/docs/CustomerPayload.md b/docs/CustomerPayload.md deleted file mode 100644 index 2bd7f18b..00000000 --- a/docs/CustomerPayload.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.CustomerPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | -**planType** | **String** | | - - diff --git a/docs/DashboardApi.md b/docs/DashboardApi.md index 0d4de20b..4971a9d5 100644 --- a/docs/DashboardApi.md +++ b/docs/DashboardApi.md @@ -4,17 +4,17 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**retrieveDashboard**](DashboardApi.md#retrieveDashboard) | **GET** /core/dashboard | Retrieve Dashboard +[**getDashboard**](DashboardApi.md#getDashboard) | **GET** /core/dashboard | Retrieve Dashboard -## retrieveDashboard +## getDashboard -> DashboardInfoResponse retrieveDashboard() +> DashboardInfoResponse getDashboard() 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/). ### Example @@ -26,14 +26,9 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.DashboardApi(); -apiInstance.retrieveDashboard().then((data) => { +apiInstance.getDashboard().then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -51,7 +46,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/Data.md b/docs/Data.md deleted file mode 100644 index 22346a4a..00000000 --- a/docs/Data.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.Data - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organizationId** | **Number** | Organization ID associated with the resource. | [optional] -**resourceId** | **Number** | ID of the resource. | [optional] -**resourceType** | **String** | Type of the resource. | [optional] - - diff --git a/docs/DataSynthesisBillingHistoryDetailsResponseSchema.md b/docs/DataSynthesisBillingHistoryDetailsResponseSchema.md new file mode 100644 index 00000000..6b921099 --- /dev/null +++ b/docs/DataSynthesisBillingHistoryDetailsResponseSchema.md @@ -0,0 +1,11 @@ +# HyperstackApi.DataSynthesisBillingHistoryDetailsResponseSchema + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingHistoryDataSynthesisDetails** | [**BillingHistoryDataSynthesisDetails**](BillingHistoryDataSynthesisDetails.md) | | [optional] +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/DeleteClusterNodesFields.md b/docs/DeleteClusterNodesFields.md new file mode 100644 index 00000000..d9a7109e --- /dev/null +++ b/docs/DeleteClusterNodesFields.md @@ -0,0 +1,9 @@ +# HyperstackApi.DeleteClusterNodesFields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **[Number]** | | [optional] + + diff --git a/docs/DeploymentApi.md b/docs/DeploymentApi.md index 04d1a5c4..2ab2c194 100644 --- a/docs/DeploymentApi.md +++ b/docs/DeploymentApi.md @@ -5,7 +5,7 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**deleteDeployment**](DeploymentApi.md#deleteDeployment) | **DELETE** /core/marketplace/deployments/{id} | Delete Deployment -[**detailsOfDeploymentById**](DeploymentApi.md#detailsOfDeploymentById) | **GET** /core/marketplace/deployments/{id} | Details of Deployment by ID +[**getDeployment**](DeploymentApi.md#getDeployment) | **GET** /core/marketplace/deployments/{id} | Details of Deployment by ID [**listDeployments**](DeploymentApi.md#listDeployments) | **GET** /core/marketplace/deployments | List Deployments [**startDeployment**](DeploymentApi.md#startDeployment) | **POST** /core/marketplace/deployments | Start Deployment @@ -27,11 +27,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.DeploymentApi(); let id = 56; // Number | @@ -56,7 +51,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -64,9 +59,9 @@ Name | Type | Description | Notes - **Accept**: application/json -## detailsOfDeploymentById +## getDeployment -> StartDeployment detailsOfDeploymentById(id) +> StartDeployment getDeployment(id) Details of Deployment by ID @@ -80,15 +75,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.DeploymentApi(); let id = 56; // Number | -apiInstance.detailsOfDeploymentById(id).then((data) => { +apiInstance.getDeployment(id).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -109,7 +99,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -133,11 +123,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.DeploymentApi(); apiInstance.listDeployments().then((data) => { @@ -158,7 +143,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -182,11 +167,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.DeploymentApi(); let payload = new HyperstackApi.StartDeploymentPayload(); // StartDeploymentPayload | @@ -211,7 +191,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/DeploymentFieldsForStartDeployments.md b/docs/DeploymentFieldsForStartDeployments.md new file mode 100644 index 00000000..9be352dd --- /dev/null +++ b/docs/DeploymentFieldsForStartDeployments.md @@ -0,0 +1,15 @@ +# HyperstackApi.DeploymentFieldsForStartDeployments + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | **Date** | | [optional] +**description** | **String** | | [optional] +**id** | **Number** | | [optional] +**name** | **String** | | [optional] +**status** | **String** | | [optional] +**template** | **String** | | [optional] +**variables** | **String** | | [optional] + + diff --git a/docs/DeploymentFieldsforstartdeployments.md b/docs/DeploymentFieldsforstartdeployments.md deleted file mode 100644 index 5f0f1319..00000000 --- a/docs/DeploymentFieldsforstartdeployments.md +++ /dev/null @@ -1,15 +0,0 @@ -# HyperstackApi.DeploymentFieldsforstartdeployments - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**createdAt** | **Date** | | [optional] -**description** | **String** | | [optional] -**id** | **Number** | | [optional] -**name** | **String** | | [optional] -**status** | **String** | | [optional] -**template** | **String** | | [optional] -**variables** | **String** | | [optional] - - diff --git a/docs/DiscountEntityModel.md b/docs/DiscountEntityModel.md deleted file mode 100644 index 6ed6326b..00000000 --- a/docs/DiscountEntityModel.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.DiscountEntityModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[DiscountPlanFields]**](DiscountPlanFields.md) | | [optional] -**entity** | **String** | | [optional] - - diff --git a/docs/DiscountFields.md b/docs/DiscountFields.md deleted file mode 100644 index c0633107..00000000 --- a/docs/DiscountFields.md +++ /dev/null @@ -1,15 +0,0 @@ -# HyperstackApi.DiscountFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**discountStatus** | **String** | | [optional] -**endDate** | **Date** | | [optional] -**orgId** | **Number** | | [optional] -**orgName** | **String** | | [optional] -**planType** | **String** | | [optional] -**vmId** | **Number** | | [optional] -**vmName** | **String** | | [optional] - - diff --git a/docs/DiscountPlanFields.md b/docs/DiscountPlanFields.md deleted file mode 100644 index 44459e71..00000000 --- a/docs/DiscountPlanFields.md +++ /dev/null @@ -1,19 +0,0 @@ -# HyperstackApi.DiscountPlanFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**discountAmount** | **Number** | | [optional] -**discountCode** | **String** | | [optional] -**discountPercent** | **Number** | | [optional] -**discountStatus** | **String** | | [optional] -**discountType** | **String** | | [optional] -**endDate** | **Date** | | [optional] -**id** | **Number** | | [optional] -**resource** | **String** | | [optional] -**startDate** | **Date** | | [optional] -**validityDays** | **Number** | | [optional] -**vmId** | **Number** | | [optional] - - diff --git a/docs/DiscountResourceFields.md b/docs/DiscountResourceFields.md deleted file mode 100644 index 654f61ea..00000000 --- a/docs/DiscountResourceFields.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.DiscountResourceFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**discountAmount** | **Number** | | [optional] -**discountPercent** | **Number** | | [optional] -**discountType** | **String** | | [optional] -**resourceId** | **Number** | | [optional] - - diff --git a/docs/DiscountResourcePayload.md b/docs/DiscountResourcePayload.md deleted file mode 100644 index 80caebc6..00000000 --- a/docs/DiscountResourcePayload.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.DiscountResourcePayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**discountAmount** | **Number** | | -**discountPercent** | **Number** | | -**discountType** | **String** | | -**resourceId** | **Number** | | - - diff --git a/docs/EditLabelOfAnExistingVMPayload.md b/docs/EditLabelOfAnExistingVMPayload.md new file mode 100644 index 00000000..59b8a395 --- /dev/null +++ b/docs/EditLabelOfAnExistingVMPayload.md @@ -0,0 +1,9 @@ +# HyperstackApi.EditLabelOfAnExistingVMPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**labels** | **[String]** | Multiple labels can be added by separating with spaces | [optional] + + diff --git a/docs/EditlabelofanexistingVMPayload.md b/docs/EditlabelofanexistingVMPayload.md deleted file mode 100644 index 06ee5b17..00000000 --- a/docs/EditlabelofanexistingVMPayload.md +++ /dev/null @@ -1,9 +0,0 @@ -# HyperstackApi.EditlabelofanexistingVMPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**labels** | **[String]** | Multiple labels can be added by separating with spaces | [optional] - - diff --git a/docs/EnvironmentApi.md b/docs/EnvironmentApi.md index dd3af4e0..205ec71e 100644 --- a/docs/EnvironmentApi.md +++ b/docs/EnvironmentApi.md @@ -6,8 +6,10 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**createEnvironment**](EnvironmentApi.md#createEnvironment) | **POST** /core/environments | Create environment [**deleteEnvironment**](EnvironmentApi.md#deleteEnvironment) | **DELETE** /core/environments/{id} | Delete environment +[**fetchEnvironmentNameAvailability**](EnvironmentApi.md#fetchEnvironmentNameAvailability) | **GET** /core/environments/name-availability/{name} | Fetch environment name availability +[**getEnvironment**](EnvironmentApi.md#getEnvironment) | **GET** /core/environments/{id} | Retrieve environment +[**getEnvironmentVMQuota**](EnvironmentApi.md#getEnvironmentVMQuota) | **GET** /core/environments/{id}/vm-quota | Get environment VM quota [**listEnvironments**](EnvironmentApi.md#listEnvironments) | **GET** /core/environments | List environments -[**retrieveEnvironment**](EnvironmentApi.md#retrieveEnvironment) | **GET** /core/environments/{id} | Retrieve environment [**updateEnvironment**](EnvironmentApi.md#updateEnvironment) | **PUT** /core/environments/{id} | Update environment @@ -18,7 +20,7 @@ Method | HTTP request | Description 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. ### Example @@ -30,11 +32,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.EnvironmentApi(); let payload = new HyperstackApi.CreateEnvironment(); // CreateEnvironment | @@ -59,7 +56,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -85,11 +82,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.EnvironmentApi(); let id = 56; // Number | @@ -114,7 +106,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -122,13 +114,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## listEnvironments +## fetchEnvironmentNameAvailability -> Environments listEnvironments(opts) +> NameAvailableModel fetchEnvironmentNameAvailability(name) -List environments +Fetch environment name availability -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). +Check if a Environment name is available ### Example @@ -140,19 +132,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.EnvironmentApi(); -let opts = { - 'page': "page_example", // String | Page Number - 'pageSize': "pageSize_example", // String | Data Per Page - 'search': "search_example" // String | Search By ID or Name or Region -}; -apiInstance.listEnvironments(opts).then((data) => { +let name = "name_example"; // String | +apiInstance.fetchEnvironmentNameAvailability(name).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -165,17 +148,15 @@ apiInstance.listEnvironments(opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **String**| Page Number | [optional] - **pageSize** | **String**| Data Per Page | [optional] - **search** | **String**| Search By ID or Name or Region | [optional] + **name** | **String**| | ### Return type -[**Environments**](Environments.md) +[**NameAvailableModel**](NameAvailableModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -183,9 +164,9 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveEnvironment +## getEnvironment -> Environment retrieveEnvironment(id) +> Environment getEnvironment(id) Retrieve environment @@ -201,15 +182,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.EnvironmentApi(); let id = 56; // Number | -apiInstance.retrieveEnvironment(id).then((data) => { +apiInstance.getEnvironment(id).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -230,7 +206,113 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getEnvironmentVMQuota + +> VMQuota getEnvironmentVMQuota(id) + +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. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.EnvironmentApi(); +let id = 56; // Number | +apiInstance.getEnvironmentVMQuota(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| | + +### Return type + +[**VMQuota**](VMQuota.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## listEnvironments + +> Environments listEnvironments(opts) + +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/). + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.EnvironmentApi(); +let opts = { + 'page': "page_example", // String | Page Number + 'pageSize': "pageSize_example", // String | Data Per Page + 'search': "search_example" // String | Search By ID or Name or Region +}; +apiInstance.listEnvironments(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **String**| Page Number | [optional] + **pageSize** | **String**| Data Per Page | [optional] + **search** | **String**| Search By ID or Name or Region | [optional] + +### Return type + +[**Environments**](Environments.md) + +### Authorization + +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -256,11 +338,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.EnvironmentApi(); let id = 56; // Number | @@ -287,7 +364,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/EnvironmentFeatures.md b/docs/EnvironmentFeatures.md index debaa4fb..4eedf833 100644 --- a/docs/EnvironmentFeatures.md +++ b/docs/EnvironmentFeatures.md @@ -4,6 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**greenStatus** | **String** | | [optional] **networkOptimised** | **Boolean** | | [optional] + +## Enum: GreenStatusEnum + + +* `GREEN` (value: `"GREEN"`) + +* `PARTIALLY_GREEN` (value: `"PARTIALLY_GREEN"`) + +* `NOT_GREEN` (value: `"NOT_GREEN"`) + + + + diff --git a/docs/EnvironmentFieldsForVolume.md b/docs/EnvironmentFieldsForVolume.md new file mode 100644 index 00000000..051461ed --- /dev/null +++ b/docs/EnvironmentFieldsForVolume.md @@ -0,0 +1,11 @@ +# HyperstackApi.EnvironmentFieldsForVolume + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**features** | **Object** | | [optional] +**name** | **String** | | [optional] +**region** | **String** | | [optional] + + diff --git a/docs/EnvironmentFieldsforVolume.md b/docs/EnvironmentFieldsforVolume.md deleted file mode 100644 index 491c06f6..00000000 --- a/docs/EnvironmentFieldsforVolume.md +++ /dev/null @@ -1,9 +0,0 @@ -# HyperstackApi.EnvironmentFieldsforVolume - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/docs/ExcludeBillingPostPayload.md b/docs/ExcludeBillingPostPayload.md deleted file mode 100644 index b40244b4..00000000 --- a/docs/ExcludeBillingPostPayload.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.ExcludeBillingPostPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**exclude** | **Boolean** | `true` excludes the resource from billing while `false` does not. | -**resourceId** | **Number** | The ID of the resource which is being excluded from billing. | -**resourceType** | **String** | The type of the resource which is being excluded from billing. | - - diff --git a/docs/ExcludeBillingPostResponse.md b/docs/ExcludeBillingPostResponse.md deleted file mode 100644 index b471b39b..00000000 --- a/docs/ExcludeBillingPostResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# HyperstackApi.ExcludeBillingPostResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Data**](Data.md) | | [optional] - - diff --git a/docs/ExportBillingDataRequest.md b/docs/ExportBillingDataRequest.md deleted file mode 100644 index 3a273f4e..00000000 --- a/docs/ExportBillingDataRequest.md +++ /dev/null @@ -1,25 +0,0 @@ -# HyperstackApi.ExportBillingDataRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**endDate** | **Date** | | -**orgId** | **Number** | | [optional] -**requiredAttributes** | **[String]** | | -**requiredMetrics** | **[String]** | | -**resourceType** | **String** | | -**startDate** | **Date** | | - - - -## Enum: ResourceTypeEnum - - -* `virtual_machine` (value: `"virtual_machine"`) - -* `volume` (value: `"volume"`) - - - - diff --git a/docs/ExportBillingDataResponse.md b/docs/ExportBillingDataResponse.md deleted file mode 100644 index e45517c9..00000000 --- a/docs/ExportBillingDataResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.ExportBillingDataResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**measures** | **[Object]** | | [optional] -**message** | **String** | | [optional] - - diff --git a/docs/FIPExclusionsApi.md b/docs/FIPExclusionsApi.md new file mode 100644 index 00000000..580326ee --- /dev/null +++ b/docs/FIPExclusionsApi.md @@ -0,0 +1,59 @@ +# HyperstackApi.FIPExclusionsApi + +All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**checkIfOrgIsExcludedFromFloatingIPDetachment**](FIPExclusionsApi.md#checkIfOrgIsExcludedFromFloatingIPDetachment) | **GET** /core/fip-detachment-exclusions/org/{org_id} | + + + +## checkIfOrgIsExcludedFromFloatingIPDetachment + +> ResponseModel checkIfOrgIsExcludedFromFloatingIPDetachment(orgId) + + + +is org excluded from floating ip detachment + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.FIPExclusionsApi(); +let orgId = 56; // Number | +apiInstance.checkIfOrgIsExcludedFromFloatingIPDetachment(orgId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **orgId** | **Number**| | + +### Return type + +[**ResponseModel**](ResponseModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + diff --git a/docs/FieldChange.md b/docs/FieldChange.md deleted file mode 100644 index e346a677..00000000 --- a/docs/FieldChange.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.FieldChange - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fieldName** | **String** | The name of the field that was changed | [optional] -**newValue** | **String** | The new value of the field | [optional] -**oldValue** | **String** | The old value of the field | [optional] - - diff --git a/docs/FirewallAttachmentApi.md b/docs/FirewallAttachmentApi.md index f1ae5459..fcc8c0b3 100644 --- a/docs/FirewallAttachmentApi.md +++ b/docs/FirewallAttachmentApi.md @@ -4,16 +4,18 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**attachFirewallsToVms**](FirewallAttachmentApi.md#attachFirewallsToVms) | **POST** /core/firewalls/{firewall_id}/update-attachments | Attach Firewalls to VMs +[**attachFirewallToVMs**](FirewallAttachmentApi.md#attachFirewallToVMs) | **POST** /core/firewalls/{firewall_id}/update-attachments | Attach Firewalls to VMs -## attachFirewallsToVms +## attachFirewallToVMs -> ResponseModel attachFirewallsToVms(firewallId, payload) +> ResponseModel attachFirewallToVMs(firewallId, payload) 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). + ### Example ```javascript @@ -24,16 +26,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.FirewallAttachmentApi(); let firewallId = 56; // Number | let payload = new HyperstackApi.AttachFirewallWithVM(); // AttachFirewallWithVM | -apiInstance.attachFirewallsToVms(firewallId, payload).then((data) => { +apiInstance.attachFirewallToVMs(firewallId, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -55,7 +52,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/FirewallsApi.md b/docs/FirewallsApi.md index 8306b31f..6ec98677 100644 --- a/docs/FirewallsApi.md +++ b/docs/FirewallsApi.md @@ -4,22 +4,22 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**addFirewallRuleToFirewall**](FirewallsApi.md#addFirewallRuleToFirewall) | **POST** /core/firewalls/{firewall_id}/firewall-rules | Add firewall rule to firewall +[**addRuleToFirewall**](FirewallsApi.md#addRuleToFirewall) | **POST** /core/firewalls/{firewall_id}/firewall-rules | Add firewall rule to firewall [**createFirewall**](FirewallsApi.md#createFirewall) | **POST** /core/firewalls | Create firewall -[**deleteFirewall**](FirewallsApi.md#deleteFirewall) | **DELETE** /core/firewalls/{id} | Delete firewall -[**deleteFirewallRulesFromFirewall**](FirewallsApi.md#deleteFirewallRulesFromFirewall) | **DELETE** /core/firewalls/{firewall_id}/firewall-rules/{firewall_rule_id} | Delete firewall rules from firewall -[**listFirewalls**](FirewallsApi.md#listFirewalls) | **GET** /core/firewalls | List firewalls -[**retrieveFirewallDetails**](FirewallsApi.md#retrieveFirewallDetails) | **GET** /core/firewalls/{id} | Retrieve firewall details +[**deleteExistingFirewall**](FirewallsApi.md#deleteExistingFirewall) | **DELETE** /core/firewalls/{id} | Delete firewall +[**deleteRuleFromFirewall**](FirewallsApi.md#deleteRuleFromFirewall) | **DELETE** /core/firewalls/{firewall_id}/firewall-rules/{firewall_rule_id} | Delete firewall rules from firewall +[**getFirewall**](FirewallsApi.md#getFirewall) | **GET** /core/firewalls/{id} | Retrieve firewall details +[**listExistingFirewalls**](FirewallsApi.md#listExistingFirewalls) | **GET** /core/firewalls | List firewalls -## addFirewallRuleToFirewall +## addRuleToFirewall -> FirewallRule addFirewallRuleToFirewall(firewallId, payload) +> FirewallRule addRuleToFirewall(firewallId, payload) 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. ### Example @@ -31,16 +31,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.FirewallsApi(); let firewallId = 56; // Number | let payload = new HyperstackApi.CreateFirewallRulePayload(); // CreateFirewallRulePayload | -apiInstance.addFirewallRuleToFirewall(firewallId, payload).then((data) => { +apiInstance.addRuleToFirewall(firewallId, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -62,7 +57,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -76,7 +71,7 @@ Name | Type | Description | Notes 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. ### Example @@ -88,11 +83,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.FirewallsApi(); let payload = new HyperstackApi.CreateFirewallPayload(); // CreateFirewallPayload | @@ -117,7 +107,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -125,13 +115,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## deleteFirewall +## deleteExistingFirewall -> ResponseModel deleteFirewall(id) +> ResponseModel deleteExistingFirewall(id) 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). ### Example @@ -143,15 +133,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.FirewallsApi(); let id = 56; // Number | -apiInstance.deleteFirewall(id).then((data) => { +apiInstance.deleteExistingFirewall(id).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -172,7 +157,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -180,13 +165,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## deleteFirewallRulesFromFirewall +## deleteRuleFromFirewall -> ResponseModel deleteFirewallRulesFromFirewall(firewallId, firewallRuleId) +> ResponseModel deleteRuleFromFirewall(firewallId, firewallRuleId) 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). ### Example @@ -198,16 +183,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.FirewallsApi(); let firewallId = 56; // Number | let firewallRuleId = 56; // Number | -apiInstance.deleteFirewallRulesFromFirewall(firewallId, firewallRuleId).then((data) => { +apiInstance.deleteRuleFromFirewall(firewallId, firewallRuleId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -229,7 +209,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -237,13 +217,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## listFirewalls +## getFirewall -> FirewallsListResponse listFirewalls(opts) +> FirewallDetailResponse getFirewall(id) -List firewalls +Retrieve firewall details -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 the details of an existing firewall, including the security rules it contains and information about the virtual machines to which it is attached. ### Example @@ -255,20 +235,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.FirewallsApi(); -let opts = { - 'page': 56, // Number | - 'pageSize': 56, // Number | - 'search': "search_example", // String | - 'environment': "environment_example" // String | Filter Environment ID or Name -}; -apiInstance.listFirewalls(opts).then((data) => { +let id = 56; // Number | +apiInstance.getFirewall(id).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -281,18 +251,15 @@ apiInstance.listFirewalls(opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **Number**| | [optional] - **pageSize** | **Number**| | [optional] - **search** | **String**| | [optional] - **environment** | **String**| Filter Environment ID or Name | [optional] + **id** | **Number**| | ### Return type -[**FirewallsListResponse**](FirewallsListResponse.md) +[**FirewallDetailResponse**](FirewallDetailResponse.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -300,13 +267,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveFirewallDetails +## listExistingFirewalls -> FirewallDetailResponse retrieveFirewallDetails(id) +> FirewallsListResponse listExistingFirewalls(opts) -Retrieve firewall details +List firewalls -Retrieves the details of an existing firewall, including the security rules it contains and information about the virtual machines to which it is attached. +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). ### Example @@ -318,15 +285,15 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.FirewallsApi(); -let id = 56; // Number | -apiInstance.retrieveFirewallDetails(id).then((data) => { +let opts = { + 'page': 56, // Number | + 'pageSize': 56, // Number | + 'search': "search_example", // String | + 'environment': "environment_example" // String | Filter Environment ID or Name +}; +apiInstance.listExistingFirewalls(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -339,15 +306,18 @@ apiInstance.retrieveFirewallDetails(id).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **page** | **Number**| | [optional] + **pageSize** | **Number**| | [optional] + **search** | **String**| | [optional] + **environment** | **String**| Filter Environment ID or Name | [optional] ### Return type -[**FirewallDetailResponse**](FirewallDetailResponse.md) +[**FirewallsListResponse**](FirewallsListResponse.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/FlavorApi.md b/docs/FlavorApi.md index 7b09f471..8871b87e 100644 --- a/docs/FlavorApi.md +++ b/docs/FlavorApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description 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). ### Example @@ -26,11 +26,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.FlavorApi(); let opts = { @@ -57,7 +52,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/FlavorFields.md b/docs/FlavorFields.md index eb6d3c03..c75b632b 100644 --- a/docs/FlavorFields.md +++ b/docs/FlavorFields.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **disk** | **Number** | | [optional] **displayName** | **String** | | [optional] **ephemeral** | **Number** | | [optional] +**features** | **Object** | | [optional] **gpu** | **String** | | [optional] **gpuCount** | **Number** | | [optional] **id** | **Number** | | [optional] diff --git a/docs/FlavorLabelFields.md b/docs/FlavorLabelFields.md new file mode 100644 index 00000000..6d5ddfc3 --- /dev/null +++ b/docs/FlavorLabelFields.md @@ -0,0 +1,10 @@ +# HyperstackApi.FlavorLabelFields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | | [optional] +**label** | **String** | | [optional] + + diff --git a/docs/FlavorPayload.md b/docs/FlavorPayload.md deleted file mode 100644 index 9125156c..00000000 --- a/docs/FlavorPayload.md +++ /dev/null @@ -1,16 +0,0 @@ -# HyperstackApi.FlavorPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cpu** | **Number** | | -**disk** | **Number** | | -**gpu** | **String** | | -**gpuCount** | **Number** | | -**isPublic** | **Boolean** | | -**name** | **String** | | -**ram** | **Number** | | -**regionName** | **String** | | - - diff --git a/docs/FlavorResponse.md b/docs/FlavorResponse.md deleted file mode 100644 index 6530f031..00000000 --- a/docs/FlavorResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.FlavorResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**flavor** | [**FlavorFields**](FlavorFields.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/FlavorRestrictions.md b/docs/FlavorRestrictions.md new file mode 100644 index 00000000..cae2629a --- /dev/null +++ b/docs/FlavorRestrictions.md @@ -0,0 +1,11 @@ +# HyperstackApi.FlavorRestrictions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**compatibleFlavors** | [**[CompatibleFlavor]**](CompatibleFlavor.md) | List of compatible flavors with their link metadata | [optional] +**hasFlavorRestrictions** | **Boolean** | Whether the image has any flavor restrictions | [optional] +**restrictionType** | **String** | Either 'hard', 'soft', or null if no restrictions | [optional] + + diff --git a/docs/FlavorVMFields.md b/docs/FlavorVMFields.md deleted file mode 100644 index 440540f2..00000000 --- a/docs/FlavorVMFields.md +++ /dev/null @@ -1,15 +0,0 @@ -# HyperstackApi.FlavorVMFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**createdAt** | **Date** | | [optional] -**host** | **String** | | [optional] -**id** | **Number** | | [optional] -**name** | **String** | | [optional] -**openstackId** | **String** | | [optional] -**orgId** | **Number** | | [optional] -**status** | **String** | | [optional] - - diff --git a/docs/FlavorVMsResponse.md b/docs/FlavorVMsResponse.md deleted file mode 100644 index c4bea75b..00000000 --- a/docs/FlavorVMsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.FlavorVMsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**flavorVms** | [**[FlavorVMFields]**](FlavorVMFields.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/FloatingIpApi.md b/docs/FloatingIpApi.md index 1968d6bb..c34576b5 100644 --- a/docs/FloatingIpApi.md +++ b/docs/FloatingIpApi.md @@ -4,18 +4,18 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**attachPublicIpToVirtualMachine**](FloatingIpApi.md#attachPublicIpToVirtualMachine) | **POST** /core/virtual-machines/{id}/attach-floatingip | Attach public IP to virtual machine -[**detachPublicIpFromVirtualMachine**](FloatingIpApi.md#detachPublicIpFromVirtualMachine) | **POST** /core/virtual-machines/{id}/detach-floatingip | Detach public IP from virtual machine +[**attachPublicIPToVM**](FloatingIpApi.md#attachPublicIPToVM) | **POST** /core/virtual-machines/{vm_id}/attach-floatingip | Attach public IP to virtual machine +[**detachPublicIPFromVM**](FloatingIpApi.md#detachPublicIPFromVM) | **POST** /core/virtual-machines/{vm_id}/detach-floatingip | Detach public IP from virtual machine -## attachPublicIpToVirtualMachine +## attachPublicIPToVM -> ResponseModel attachPublicIpToVirtualMachine(id) +> ResponseModel attachPublicIPToVM(vmId) 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). +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/). ### Example @@ -27,15 +27,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.FloatingIpApi(); -let id = 56; // Number | -apiInstance.attachPublicIpToVirtualMachine(id).then((data) => { +let vmId = 56; // Number | +apiInstance.attachPublicIPToVM(vmId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -48,7 +43,7 @@ apiInstance.attachPublicIpToVirtualMachine(id).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **vmId** | **Number**| | ### Return type @@ -56,7 +51,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -64,13 +59,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## detachPublicIpFromVirtualMachine +## detachPublicIPFromVM -> ResponseModel detachPublicIpFromVirtualMachine(id) +> ResponseModel detachPublicIPFromVM(vmId) 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). +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). ### Example @@ -82,15 +77,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.FloatingIpApi(); -let id = 56; // Number | -apiInstance.detachPublicIpFromVirtualMachine(id).then((data) => { +let vmId = 56; // Number | +apiInstance.detachPublicIPFromVM(vmId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -103,7 +93,7 @@ apiInstance.detachPublicIpFromVirtualMachine(id).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **vmId** | **Number**| | ### Return type @@ -111,7 +101,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/FutureNodeModel.md b/docs/FutureNodeModel.md deleted file mode 100644 index 00b21ab7..00000000 --- a/docs/FutureNodeModel.md +++ /dev/null @@ -1,13 +0,0 @@ -# HyperstackApi.FutureNodeModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**expectedProvisionDate** | **Date** | Date and time in the format YYYY-MM-DD HH:mm:ss | -**id** | **Number** | | [optional] [readonly] -**nexgenName** | **String** | | [optional] -**openstackName** | **String** | | [optional] -**stocks** | [**[FutureNodeStockModel]**](FutureNodeStockModel.md) | | [optional] - - diff --git a/docs/FutureNodeResponseModel.md b/docs/FutureNodeResponseModel.md deleted file mode 100644 index a944cead..00000000 --- a/docs/FutureNodeResponseModel.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.FutureNodeResponseModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nodes** | [**[FutureNodeModel]**](FutureNodeModel.md) | | [optional] -**region** | **String** | | [optional] - - diff --git a/docs/FutureNodeStockModel.md b/docs/FutureNodeStockModel.md deleted file mode 100644 index 55d87196..00000000 --- a/docs/FutureNodeStockModel.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.FutureNodeStockModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**expectedAmount** | **Number** | | -**id** | **Number** | | [optional] [readonly] -**name** | **String** | | [optional] - - diff --git a/docs/FutureNodeUpdateModel.md b/docs/FutureNodeUpdateModel.md deleted file mode 100644 index dc11fd62..00000000 --- a/docs/FutureNodeUpdateModel.md +++ /dev/null @@ -1,13 +0,0 @@ -# HyperstackApi.FutureNodeUpdateModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**expectedProvisionDate** | **Date** | | -**id** | **Number** | | [optional] [readonly] -**nexgenName** | **String** | | -**openstackName** | **String** | | -**regionId** | **Number** | | [optional] - - diff --git a/docs/FutureNodesStockModel.md b/docs/FutureNodesStockModel.md deleted file mode 100644 index cc2c1bbc..00000000 --- a/docs/FutureNodesStockModel.md +++ /dev/null @@ -1,9 +0,0 @@ -# HyperstackApi.FutureNodesStockModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**futureStocks** | [**[FutureNodeResponseModel]**](FutureNodeResponseModel.md) | | [optional] - - diff --git a/docs/GPU.md b/docs/GPU.md deleted file mode 100644 index acc9dfa7..00000000 --- a/docs/GPU.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.GPU - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**gpu** | [**GPUFields**](GPUFields.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/GetAllContractFields.md b/docs/GetAllContractFields.md deleted file mode 100644 index c481a1ad..00000000 --- a/docs/GetAllContractFields.md +++ /dev/null @@ -1,15 +0,0 @@ -# HyperstackApi.GetAllContractFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**createdAt** | **Date** | | [optional] -**description** | **String** | | [optional] -**endDate** | **Date** | | [optional] -**expirationPolicy** | **Number** | | [optional] -**id** | **Number** | | [optional] -**orgId** | **Number** | | [optional] -**startDate** | **Date** | | [optional] - - diff --git a/docs/GetAllContractsResponseModel.md b/docs/GetAllContractsResponseModel.md deleted file mode 100644 index 68c9d070..00000000 --- a/docs/GetAllContractsResponseModel.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.GetAllContractsResponseModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**contracts** | [**[GetAllContractFields]**](GetAllContractFields.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/GetAllDiscountForAllOrganizationResponse.md b/docs/GetAllDiscountForAllOrganizationResponse.md deleted file mode 100644 index ab5b9b1c..00000000 --- a/docs/GetAllDiscountForAllOrganizationResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.GetAllDiscountForAllOrganizationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**discountPlans** | [**[GetAllDiscountsFields]**](GetAllDiscountsFields.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/GetAllDiscountsFields.md b/docs/GetAllDiscountsFields.md deleted file mode 100644 index a90663da..00000000 --- a/docs/GetAllDiscountsFields.md +++ /dev/null @@ -1,14 +0,0 @@ -# HyperstackApi.GetAllDiscountsFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**discountResources** | [**[DiscountResourceFields]**](DiscountResourceFields.md) | | [optional] -**discountStatus** | **String** | | [optional] -**endDate** | **Date** | | [optional] -**orgId** | **Number** | | [optional] -**orgName** | **String** | | [optional] -**startDate** | **Date** | | [optional] - - diff --git a/docs/GetCreditAndThresholdInfo.md b/docs/GetCreditAndThresholdInfo.md new file mode 100644 index 00000000..b8be3ba8 --- /dev/null +++ b/docs/GetCreditAndThresholdInfo.md @@ -0,0 +1,11 @@ +# HyperstackApi.GetCreditAndThresholdInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**canCreateInstance** | **Boolean** | | [optional] +**credit** | **Number** | | [optional] +**threshold** | **Number** | | [optional] + + diff --git a/docs/GetCreditAndThresholdInfoInResponse.md b/docs/GetCreditAndThresholdInfoInResponse.md new file mode 100644 index 00000000..95db34b0 --- /dev/null +++ b/docs/GetCreditAndThresholdInfoInResponse.md @@ -0,0 +1,11 @@ +# HyperstackApi.GetCreditAndThresholdInfoInResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**GetCreditAndThresholdInfo**](GetCreditAndThresholdInfo.md) | | [optional] +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/GetDiscountDetailResponse.md b/docs/GetDiscountDetailResponse.md deleted file mode 100644 index 2a3a37f0..00000000 --- a/docs/GetDiscountDetailResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.GetDiscountDetailResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**discountsEntity** | [**DiscountEntityModel**](DiscountEntityModel.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/GetDiscountResponse.md b/docs/GetDiscountResponse.md deleted file mode 100644 index 0be4d0b5..00000000 --- a/docs/GetDiscountResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.GetDiscountResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**discountEntites** | [**[DiscountFields]**](DiscountFields.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/GetEntityDiscountDetailResponse.md b/docs/GetEntityDiscountDetailResponse.md deleted file mode 100644 index 6dbbca54..00000000 --- a/docs/GetEntityDiscountDetailResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.GetEntityDiscountDetailResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | [optional] -**organization** | [**[DiscountPlanFields]**](DiscountPlanFields.md) | | [optional] -**status** | **Boolean** | | [optional] -**virtualMachine** | [**[DiscountPlanFields]**](DiscountPlanFields.md) | | [optional] - - diff --git a/docs/GetInstanceLogsResponse.md b/docs/GetInstanceLogsResponse.md new file mode 100644 index 00000000..3226ba73 --- /dev/null +++ b/docs/GetInstanceLogsResponse.md @@ -0,0 +1,9 @@ +# HyperstackApi.GetInstanceLogsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logs** | **String** | | [optional] + + diff --git a/docs/GetTokenPayload.md b/docs/GetTokenPayload.md deleted file mode 100644 index c09ffc73..00000000 --- a/docs/GetTokenPayload.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.GetTokenPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callbackCode** | **String** | | -**sessionId** | **String** | | - - diff --git a/docs/GetVersionResponse.md b/docs/GetVersionResponse.md deleted file mode 100644 index 24cf7095..00000000 --- a/docs/GetVersionResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.GetVersionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] -**version** | **String** | | [optional] - - diff --git a/docs/Getcreditandthresholdinfo.md b/docs/Getcreditandthresholdinfo.md deleted file mode 100644 index d6429f17..00000000 --- a/docs/Getcreditandthresholdinfo.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.Getcreditandthresholdinfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**canCreateInstance** | **Boolean** | | [optional] -**credit** | **Number** | | [optional] -**threshold** | **Number** | | [optional] - - diff --git a/docs/Getcreditandthresholdinfoinresponse.md b/docs/Getcreditandthresholdinfoinresponse.md deleted file mode 100644 index 2833fce8..00000000 --- a/docs/Getcreditandthresholdinfoinresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.Getcreditandthresholdinfoinresponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Getcreditandthresholdinfo**](Getcreditandthresholdinfo.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/GpuApi.md b/docs/GpuApi.md index 7ab18a6c..24a34c28 100644 --- a/docs/GpuApi.md +++ b/docs/GpuApi.md @@ -4,13 +4,13 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**listGpus**](GpuApi.md#listGpus) | **GET** /core/gpus | List GPUs +[**listGPUs**](GpuApi.md#listGPUs) | **GET** /core/gpus | List GPUs -## listGpus +## listGPUs -> GPUList listGpus() +> GPUList listGPUs() List GPUs @@ -26,14 +26,9 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.GpuApi(); -apiInstance.listGpus().then((data) => { +apiInstance.listGPUs().then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -51,7 +46,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/HealthApi.md b/docs/HealthApi.md new file mode 100644 index 00000000..67c3d42e --- /dev/null +++ b/docs/HealthApi.md @@ -0,0 +1,53 @@ +# HyperstackApi.HealthApi + +All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**healthzEndpoint**](HealthApi.md#healthzEndpoint) | **GET** /object-storage/healthz | Healthcheck + + + +## healthzEndpoint + +> ObjectStorageHealthResponse healthzEndpoint() + +Healthcheck + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.HealthApi(); +apiInstance.healthzEndpoint().then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**ObjectStorageHealthResponse**](ObjectStorageHealthResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + diff --git a/docs/HistoricalInstance.md b/docs/HistoricalInstance.md deleted file mode 100644 index f0a175c0..00000000 --- a/docs/HistoricalInstance.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.HistoricalInstance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**instanceCount** | **Number** | | [optional] -**instances** | [**[HistoricalInstancesFields]**](HistoricalInstancesFields.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/HistoricalInstancesFields.md b/docs/HistoricalInstancesFields.md deleted file mode 100644 index e65368a7..00000000 --- a/docs/HistoricalInstancesFields.md +++ /dev/null @@ -1,20 +0,0 @@ -# HyperstackApi.HistoricalInstancesFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**createdAt** | **Date** | | [optional] -**environment** | **String** | | [optional] -**environmentId** | **Number** | | [optional] -**flavor** | **String** | | [optional] -**flavorId** | **Number** | | [optional] -**floatingIp** | **String** | | [optional] -**host** | **String** | | [optional] -**id** | **Number** | | [optional] -**name** | **String** | | [optional] -**openstackId** | **String** | | [optional] -**status** | **String** | | [optional] -**updatedAt** | **Date** | | [optional] - - diff --git a/docs/ImageApi.md b/docs/ImageApi.md index 2591a952..2af591b8 100644 --- a/docs/ImageApi.md +++ b/docs/ImageApi.md @@ -4,16 +4,16 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**deleteAnImage**](ImageApi.md#deleteAnImage) | **DELETE** /core/images/{id} | Delete an image -[**fetchNameAvailabilityForImages**](ImageApi.md#fetchNameAvailabilityForImages) | **GET** /core/image/name-availability/{name} | Fetch name availability for Images -[**getPrivateImageDetails**](ImageApi.md#getPrivateImageDetails) | **GET** /core/images/{id} | Get Private Image Details +[**deleteImage**](ImageApi.md#deleteImage) | **DELETE** /core/images/{id} | Delete an image +[**fetchImageNameAvailability**](ImageApi.md#fetchImageNameAvailability) | **GET** /core/image/name-availability/{name} | Fetch name availability for Images +[**getImage**](ImageApi.md#getImage) | **GET** /core/images/{id} | Get Private Image Details [**listImages**](ImageApi.md#listImages) | **GET** /core/images | List Images -## deleteAnImage +## deleteImage -> ResponseModel deleteAnImage(id) +> ResponseModel deleteImage(id) Delete an image @@ -29,15 +29,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ImageApi(); let id = 56; // Number | -apiInstance.deleteAnImage(id).then((data) => { +apiInstance.deleteImage(id).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -58,7 +53,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -66,9 +61,9 @@ Name | Type | Description | Notes - **Accept**: application/json -## fetchNameAvailabilityForImages +## fetchImageNameAvailability -> NameAvailableModel fetchNameAvailabilityForImages(name) +> NameAvailableModel fetchImageNameAvailability(name) Fetch name availability for Images @@ -84,15 +79,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ImageApi(); let name = "name_example"; // String | -apiInstance.fetchNameAvailabilityForImages(name).then((data) => { +apiInstance.fetchImageNameAvailability(name).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -113,7 +103,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -121,9 +111,9 @@ Name | Type | Description | Notes - **Accept**: application/json -## getPrivateImageDetails +## getImage -> Image getPrivateImageDetails(id, opts) +> Image getImage(id, opts) Get Private Image Details @@ -139,18 +129,13 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ImageApi(); let id = 56; // Number | let opts = { 'includeRelatedVms': true // Boolean | }; -apiInstance.getPrivateImageDetails(id, opts).then((data) => { +apiInstance.getImage(id, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -172,7 +157,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -186,7 +171,7 @@ Name | Type | Description | Notes 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). ### Example @@ -198,11 +183,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ImageApi(); let opts = { @@ -237,7 +217,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/ImageFields.md b/docs/ImageFields.md index d287bc48..4347e18f 100644 --- a/docs/ImageFields.md +++ b/docs/ImageFields.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **String** | | [optional] **displaySize** | **String** | | [optional] +**flavorRestrictions** | [**FlavorRestrictions**](FlavorRestrictions.md) | Flavor compatibility restrictions for this image | [optional] **id** | **Number** | | [optional] **isPublic** | **Boolean** | | [optional] **labels** | [**[LableResonse]**](LableResonse.md) | | [optional] diff --git a/docs/ImageLogos.md b/docs/ImageLogos.md deleted file mode 100644 index 3d47b944..00000000 --- a/docs/ImageLogos.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.ImageLogos - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**logos** | [**[LogoGetResponse]**](LogoGetResponse.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/InfrahubResourceObjectResponse.md b/docs/InfrahubResourceObjectResponse.md deleted file mode 100644 index 28e4add8..00000000 --- a/docs/InfrahubResourceObjectResponse.md +++ /dev/null @@ -1,21 +0,0 @@ -# HyperstackApi.InfrahubResourceObjectResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**actualHostPrice** | **Number** | | [optional] -**actualPrice** | **Number** | | [optional] -**contractId** | **Number** | | [optional] -**host** | **String** | | [optional] -**hostPrice** | **Number** | | [optional] -**infrahubId** | **Number** | | [optional] -**name** | **String** | | [optional] -**nexgenActualPrice** | **Number** | | [optional] -**nexgenPrice** | **Number** | | [optional] -**price** | **Number** | | [optional] -**resources** | [**[PricebookResourceObjectResponse]**](PricebookResourceObjectResponse.md) | | [optional] -**status** | **String** | | [optional] -**type** | **String** | | [optional] - - diff --git a/docs/InsertDiscountPlanFields.md b/docs/InsertDiscountPlanFields.md deleted file mode 100644 index 4c724b92..00000000 --- a/docs/InsertDiscountPlanFields.md +++ /dev/null @@ -1,13 +0,0 @@ -# HyperstackApi.InsertDiscountPlanFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**customers** | [**[CustomerFields]**](CustomerFields.md) | | [optional] -**discountResources** | [**[DiscountResourceFields]**](DiscountResourceFields.md) | | [optional] -**discountStatus** | **String** | | [optional] -**endDate** | **Date** | | [optional] -**startDate** | **Date** | | [optional] - - diff --git a/docs/InstanceFields.md b/docs/InstanceFields.md index b56cd321..b72273d9 100644 --- a/docs/InstanceFields.md +++ b/docs/InstanceFields.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **contractId** | **Number** | | [optional] **createdAt** | **Date** | | [optional] **environment** | [**InstanceEnvironmentFields**](InstanceEnvironmentFields.md) | | [optional] +**features** | **Object** | | [optional] **fixedIp** | **String** | | [optional] **flavor** | [**InstanceFlavorFields**](InstanceFlavorFields.md) | | [optional] **floatingIp** | **String** | | [optional] @@ -22,7 +23,8 @@ Name | Type | Description | Notes **portRandomization** | **Boolean** | | [optional] **portRandomizationStatus** | **String** | | [optional] **powerState** | **String** | | [optional] -**securityRules** | [**[SecurityRulesFieldsforInstance]**](SecurityRulesFieldsforInstance.md) | | [optional] +**requiresPublicIp** | **Boolean** | | [optional] +**securityRules** | [**[SecurityRulesFieldsForInstance]**](SecurityRulesFieldsForInstance.md) | | [optional] **status** | **String** | | [optional] **vmState** | **String** | | [optional] **volumeAttachments** | [**[VolumeAttachmentFields]**](VolumeAttachmentFields.md) | | [optional] diff --git a/docs/InstanceFlavorFields.md b/docs/InstanceFlavorFields.md index 8e49520c..32ec94d2 100644 --- a/docs/InstanceFlavorFields.md +++ b/docs/InstanceFlavorFields.md @@ -7,9 +7,11 @@ Name | Type | Description | Notes **cpu** | **Number** | | [optional] **disk** | **Number** | | [optional] **ephemeral** | **Number** | | [optional] +**features** | **Object** | | [optional] **gpu** | **String** | | [optional] **gpuCount** | **Number** | | [optional] **id** | **Number** | | [optional] +**labels** | [**[FlavorLabelFields]**](FlavorLabelFields.md) | | [optional] **name** | **String** | | [optional] **ram** | **Number** | | [optional] diff --git a/docs/InstancesSummaryFields.md b/docs/InstancesSummaryFields.md deleted file mode 100644 index bbafbf6d..00000000 --- a/docs/InstancesSummaryFields.md +++ /dev/null @@ -1,25 +0,0 @@ -# HyperstackApi.InstancesSummaryFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**createdAt** | **Date** | | [optional] -**environment** | **String** | | [optional] -**environmentId** | **Number** | | [optional] -**fixedIp** | **String** | | [optional] -**flavor** | **String** | | [optional] -**flavorId** | **Number** | | [optional] -**floatingIp** | **String** | | [optional] -**floatingIpStatus** | **String** | | [optional] -**id** | **Number** | | [optional] -**image** | **String** | | [optional] -**imageId** | **Number** | | [optional] -**keypair** | **String** | | [optional] -**keypairId** | **Number** | | [optional] -**name** | **String** | | [optional] -**orgId** | **Number** | | [optional] -**status** | **String** | | [optional] -**updatedAt** | **Date** | | [optional] - - diff --git a/docs/InternalEnvironmentFields.md b/docs/InternalEnvironmentFields.md deleted file mode 100644 index 20ecd61a..00000000 --- a/docs/InternalEnvironmentFields.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.InternalEnvironmentFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**createdAt** | **Date** | | [optional] -**id** | **Number** | | [optional] -**name** | **String** | | [optional] -**region** | **String** | | [optional] - - diff --git a/docs/InternalInstanceFields.md b/docs/InternalInstanceFields.md deleted file mode 100644 index 03501dfb..00000000 --- a/docs/InternalInstanceFields.md +++ /dev/null @@ -1,27 +0,0 @@ -# HyperstackApi.InternalInstanceFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bootSource** | **String** | | [optional] -**callbackUrl** | **String** | | [optional] -**createdAt** | **Date** | | [optional] -**environment** | [**InternalEnvironmentFields**](InternalEnvironmentFields.md) | | [optional] -**fixedIp** | **String** | | [optional] -**flavor** | [**InternalInstanceFlavorFields**](InternalInstanceFlavorFields.md) | | [optional] -**floatingIp** | **String** | | [optional] -**floatingIpStatus** | **String** | | [optional] -**id** | **Number** | | [optional] -**image** | [**InternalInstanceImageFields**](InternalInstanceImageFields.md) | | [optional] -**keypair** | [**InternalInstanceKeypairFields**](InternalInstanceKeypairFields.md) | | [optional] -**name** | **String** | | [optional] -**openstackId** | **String** | | [optional] -**powerState** | **String** | | [optional] -**securityRules** | [**[InternalSecurityRulesFieldsForInstance]**](InternalSecurityRulesFieldsForInstance.md) | | [optional] -**status** | **String** | | [optional] -**userData** | **String** | | [optional] -**vmState** | **String** | | [optional] -**volumeAttachments** | [**[InternalVolumeAttachmentFields]**](InternalVolumeAttachmentFields.md) | | [optional] - - diff --git a/docs/InternalInstanceFlavorFields.md b/docs/InternalInstanceFlavorFields.md deleted file mode 100644 index 7e44274f..00000000 --- a/docs/InternalInstanceFlavorFields.md +++ /dev/null @@ -1,17 +0,0 @@ -# HyperstackApi.InternalInstanceFlavorFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cpu** | **Number** | | [optional] -**createdAt** | **Date** | | [optional] -**disk** | **Number** | | [optional] -**gpu** | **String** | | [optional] -**gpuCount** | **Number** | | [optional] -**id** | **Number** | | [optional] -**name** | **String** | | [optional] -**ram** | **Number** | | [optional] -**regionName** | **String** | | [optional] - - diff --git a/docs/InternalInstanceImageFields.md b/docs/InternalInstanceImageFields.md deleted file mode 100644 index 53120e98..00000000 --- a/docs/InternalInstanceImageFields.md +++ /dev/null @@ -1,13 +0,0 @@ -# HyperstackApi.InternalInstanceImageFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**name** | **String** | | [optional] -**regionName** | **String** | | [optional] -**type** | **String** | | [optional] -**version** | **String** | | [optional] - - diff --git a/docs/InternalInstanceKeypairFields.md b/docs/InternalInstanceKeypairFields.md deleted file mode 100644 index 5ad7bf39..00000000 --- a/docs/InternalInstanceKeypairFields.md +++ /dev/null @@ -1,14 +0,0 @@ -# HyperstackApi.InternalInstanceKeypairFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**createdAt** | **Date** | | [optional] -**environment** | **String** | | [optional] -**fingerprint** | **String** | | [optional] -**id** | **Number** | | [optional] -**name** | **String** | | [optional] -**publicKey** | **String** | | [optional] - - diff --git a/docs/InternalInstancesResponse.md b/docs/InternalInstancesResponse.md deleted file mode 100644 index 8e4512b1..00000000 --- a/docs/InternalInstancesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.InternalInstancesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**instances** | [**[InternalInstanceFields]**](InternalInstanceFields.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/InternalSecurityRulesFieldsForInstance.md b/docs/InternalSecurityRulesFieldsForInstance.md deleted file mode 100644 index cc8cd409..00000000 --- a/docs/InternalSecurityRulesFieldsForInstance.md +++ /dev/null @@ -1,17 +0,0 @@ -# HyperstackApi.InternalSecurityRulesFieldsForInstance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**createdAt** | **Date** | | [optional] -**direction** | **String** | | [optional] -**ethertype** | **String** | | [optional] -**id** | **Number** | | [optional] -**portRangeMax** | **Number** | | [optional] -**portRangeMin** | **Number** | | [optional] -**protocol** | **String** | | [optional] -**remoteIpPrefix** | **String** | | [optional] -**status** | **String** | | [optional] - - diff --git a/docs/InternalVolumeAttachmentFields.md b/docs/InternalVolumeAttachmentFields.md deleted file mode 100644 index 2e00375d..00000000 --- a/docs/InternalVolumeAttachmentFields.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.InternalVolumeAttachmentFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**createdAt** | **Date** | | [optional] -**device** | **String** | | [optional] -**status** | **String** | | [optional] -**volume** | [**InternalVolumeFields**](InternalVolumeFields.md) | | [optional] - - diff --git a/docs/InternalVolumeFields.md b/docs/InternalVolumeFields.md deleted file mode 100644 index 5e37e505..00000000 --- a/docs/InternalVolumeFields.md +++ /dev/null @@ -1,13 +0,0 @@ -# HyperstackApi.InternalVolumeFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | | [optional] -**id** | **Number** | | [optional] -**name** | **String** | | [optional] -**size** | **Number** | | [optional] -**volumeType** | **String** | | [optional] - - diff --git a/docs/InternalVolumesResponse.md b/docs/InternalVolumesResponse.md deleted file mode 100644 index 6dcf753f..00000000 --- a/docs/InternalVolumesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.InternalVolumesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] -**volumes** | [**[InternalVolumeFields]**](InternalVolumeFields.md) | | [optional] - - diff --git a/docs/InviteApi.md b/docs/InviteApi.md index d37c7d07..ad930aef 100644 --- a/docs/InviteApi.md +++ b/docs/InviteApi.md @@ -4,19 +4,70 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**deleteInvite**](InviteApi.md#deleteInvite) | **DELETE** /auth/invites/{id} | Delete Invite +[**acceptInvite**](InviteApi.md#acceptInvite) | **GET** /auth/invites/{id}/accept | Accept Invite +[**deleteInvite**](InviteApi.md#deleteInvite) | **DELETE** /auth/invites/{id} | Accept Invite [**inviteUserToOrganization**](InviteApi.md#inviteUserToOrganization) | **POST** /auth/invites | Invite User to Organization [**listInvites**](InviteApi.md#listInvites) | **GET** /auth/invites | List Invites +## acceptInvite + +> CommonResponseModel acceptInvite(id) + +Accept Invite + +Accept an invitation for a user to join your organization. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.InviteApi(); +let id = 56; // Number | +apiInstance.acceptInvite(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| | + +### Return type + +[**CommonResponseModel**](CommonResponseModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## deleteInvite > CommonResponseModel deleteInvite(id) -Delete Invite +Accept 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). +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). ### Example @@ -28,11 +79,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.InviteApi(); let id = 56; // Number | @@ -57,7 +103,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -71,7 +117,7 @@ Name | Type | Description | Notes 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). ### Example @@ -83,11 +129,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.InviteApi(); let payload = new HyperstackApi.InviteUserPayload(); // InviteUserPayload | @@ -112,7 +153,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -126,7 +167,7 @@ Name | Type | Description | Notes 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). ### Example @@ -138,11 +179,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.InviteApi(); apiInstance.listInvites().then((data) => { @@ -163,7 +199,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/KeypairApi.md b/docs/KeypairApi.md index c7ae3350..c7f6fcaf 100644 --- a/docs/KeypairApi.md +++ b/docs/KeypairApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description 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. ### Example @@ -29,11 +29,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.KeypairApi(); let id = 56; // Number | @@ -58,7 +53,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -72,7 +67,7 @@ Name | Type | Description | Notes 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). ### Example @@ -84,11 +79,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.KeypairApi(); let payload = new HyperstackApi.ImportKeypairPayload(); // ImportKeypairPayload | @@ -113,7 +103,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -127,7 +117,7 @@ Name | Type | Description | Notes 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/). ### Example @@ -139,11 +129,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.KeypairApi(); let opts = { @@ -174,7 +159,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -184,11 +169,11 @@ Name | Type | Description | Notes ## updateKeyPairName -> UpdateKeypairnameresponse updateKeyPairName(id, payload) +> UpdateKeypairNameResponse updateKeyPairName(id, payload) 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. ### Example @@ -200,11 +185,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.KeypairApi(); let id = 56; // Number | @@ -227,11 +207,11 @@ Name | Type | Description | Notes ### Return type -[**UpdateKeypairnameresponse**](UpdateKeypairnameresponse.md) +[**UpdateKeypairNameResponse**](UpdateKeypairNameResponse.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/KeypairEnvironmentFeatures.md b/docs/KeypairEnvironmentFeatures.md new file mode 100644 index 00000000..3f4dcf2b --- /dev/null +++ b/docs/KeypairEnvironmentFeatures.md @@ -0,0 +1,23 @@ +# HyperstackApi.KeypairEnvironmentFeatures + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**greenStatus** | **String** | | [optional] +**networkOptimised** | **Boolean** | | [optional] + + + +## Enum: GreenStatusEnum + + +* `GREEN` (value: `"GREEN"`) + +* `PARTIALLY_GREEN` (value: `"PARTIALLY_GREEN"`) + +* `NOT_GREEN` (value: `"NOT_GREEN"`) + + + + diff --git a/docs/KeypairEnvironmentFields.md b/docs/KeypairEnvironmentFields.md new file mode 100644 index 00000000..eb55caec --- /dev/null +++ b/docs/KeypairEnvironmentFields.md @@ -0,0 +1,13 @@ +# HyperstackApi.KeypairEnvironmentFields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | **Date** | | [optional] +**features** | [**KeypairEnvironmentFeatures**](KeypairEnvironmentFeatures.md) | | [optional] +**id** | **Number** | | [optional] +**name** | **String** | | [optional] +**region** | **String** | | [optional] + + diff --git a/docs/KeypairFields.md b/docs/KeypairFields.md index a8cd12ae..15e2e14a 100644 --- a/docs/KeypairFields.md +++ b/docs/KeypairFields.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createdAt** | **Date** | | [optional] -**environment** | **String** | | [optional] +**environment** | [**KeypairEnvironmentFields**](KeypairEnvironmentFields.md) | | [optional] **fingerprint** | **String** | | [optional] **id** | **Number** | | [optional] **name** | **String** | | [optional] diff --git a/docs/LastDayCostFields.md b/docs/LastDayCostFields.md new file mode 100644 index 00000000..69d5b1a5 --- /dev/null +++ b/docs/LastDayCostFields.md @@ -0,0 +1,12 @@ +# HyperstackApi.LastDayCostFields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**clustersCost** | **Number** | | [optional] +**instancesCost** | **Number** | | [optional] +**totalCost** | **Number** | | [optional] +**volumesCost** | **Number** | | [optional] + + diff --git a/docs/LastDayCostResponse.md b/docs/LastDayCostResponse.md new file mode 100644 index 00000000..1339236b --- /dev/null +++ b/docs/LastDayCostResponse.md @@ -0,0 +1,11 @@ +# HyperstackApi.LastDayCostResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**LastDayCostFields**](LastDayCostFields.md) | | [optional] +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/Lastdaycostfields.md b/docs/Lastdaycostfields.md deleted file mode 100644 index 54409daa..00000000 --- a/docs/Lastdaycostfields.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.Lastdaycostfields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clustersCost** | **Number** | | [optional] -**instancesCost** | **Number** | | [optional] -**totalCost** | **Number** | | [optional] -**volumesCost** | **Number** | | [optional] - - diff --git a/docs/Lastdaycostresponse.md b/docs/Lastdaycostresponse.md deleted file mode 100644 index 8762d6b9..00000000 --- a/docs/Lastdaycostresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.Lastdaycostresponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Lastdaycostfields**](Lastdaycostfields.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/LogoGetResponse.md b/docs/LogoGetResponse.md deleted file mode 100644 index 45233deb..00000000 --- a/docs/LogoGetResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.LogoGetResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**type** | **String** | | [optional] -**url** | **String** | | [optional] - - diff --git a/docs/Logos.md b/docs/Logos.md new file mode 100644 index 00000000..2ecb752d --- /dev/null +++ b/docs/Logos.md @@ -0,0 +1,12 @@ +# HyperstackApi.Logos + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dark** | **String** | | [optional] +**email** | **String** | | [optional] +**favicon** | **String** | | [optional] +**light** | **String** | | [optional] + + diff --git a/docs/LogoutPayload.md b/docs/LogoutPayload.md deleted file mode 100644 index f79654a8..00000000 --- a/docs/LogoutPayload.md +++ /dev/null @@ -1,9 +0,0 @@ -# HyperstackApi.LogoutPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**refreshToken** | **String** | | - - diff --git a/docs/MFAStatusFields.md b/docs/MFAStatusFields.md new file mode 100644 index 00000000..d671bc6c --- /dev/null +++ b/docs/MFAStatusFields.md @@ -0,0 +1,9 @@ +# HyperstackApi.MFAStatusFields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mfaEnabled** | **Boolean** | Whether MFA is enabled for the user | + + diff --git a/docs/MFAStatusResponse.md b/docs/MFAStatusResponse.md new file mode 100644 index 00000000..8fb0058b --- /dev/null +++ b/docs/MFAStatusResponse.md @@ -0,0 +1,11 @@ +# HyperstackApi.MFAStatusResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | [optional] +**mfa** | [**MFAStatusFields**](MFAStatusFields.md) | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/ManualReconciliationModel.md b/docs/ManualReconciliationModel.md new file mode 100644 index 00000000..f7712fc7 --- /dev/null +++ b/docs/ManualReconciliationModel.md @@ -0,0 +1,11 @@ +# HyperstackApi.ManualReconciliationModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cluster** | [**ClusterFields**](ClusterFields.md) | | [optional] +**message** | **String** | | [optional] +**status** | **String** | | [optional] + + diff --git a/docs/MasterFlavorsResponse.md b/docs/MasterFlavorsResponse.md new file mode 100644 index 00000000..ebd716b6 --- /dev/null +++ b/docs/MasterFlavorsResponse.md @@ -0,0 +1,11 @@ +# HyperstackApi.MasterFlavorsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**flavors** | [**[ClusterFlavorFields]**](ClusterFlavorFields.md) | | [optional] +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/ModelEvaluationBillingHistoryDetailsResponseSchema.md b/docs/ModelEvaluationBillingHistoryDetailsResponseSchema.md new file mode 100644 index 00000000..c98b30fd --- /dev/null +++ b/docs/ModelEvaluationBillingHistoryDetailsResponseSchema.md @@ -0,0 +1,11 @@ +# HyperstackApi.ModelEvaluationBillingHistoryDetailsResponseSchema + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingHistoryModelEvalutationDetails** | [**BillingHistoryModelEvalutationDetails**](BillingHistoryModelEvalutationDetails.md) | | [optional] +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/NewStockUpdateResponseModel.md b/docs/NewStockUpdateResponseModel.md deleted file mode 100644 index ed0a2e11..00000000 --- a/docs/NewStockUpdateResponseModel.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.NewStockUpdateResponseModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/NodeModel.md b/docs/NodeModel.md deleted file mode 100644 index b83a1be9..00000000 --- a/docs/NodeModel.md +++ /dev/null @@ -1,18 +0,0 @@ -# HyperstackApi.NodeModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**flavors** | **[String]** | | [optional] -**nexgenName** | **String** | | [optional] -**openstackId** | **String** | | -**openstackName** | **String** | | [optional] -**organizations** | **[Number]** | | [optional] -**projects** | **[String]** | | [optional] -**provisionDate** | **Date** | | [optional] -**status** | **String** | | [optional] -**stocks** | [**[NodeStocksPayload]**](NodeStocksPayload.md) | | [optional] -**sunsetDate** | **Date** | | [optional] - - diff --git a/docs/NodePayloadModel.md b/docs/NodePayloadModel.md deleted file mode 100644 index 497da246..00000000 --- a/docs/NodePayloadModel.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.NodePayloadModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nodes** | [**[NodePowerUsageModel]**](NodePowerUsageModel.md) | | [optional] -**region** | **String** | | [optional] - - diff --git a/docs/NodePowerUsageModel.md b/docs/NodePowerUsageModel.md deleted file mode 100644 index 68ccabd4..00000000 --- a/docs/NodePowerUsageModel.md +++ /dev/null @@ -1,19 +0,0 @@ -# HyperstackApi.NodePowerUsageModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**flavors** | **[String]** | | [optional] -**nexgenName** | **String** | | [optional] -**openstackId** | **String** | | -**openstackName** | **String** | | [optional] -**organizations** | **[Number]** | | [optional] -**powerUsages** | [**PowerUsageModel**](PowerUsageModel.md) | | [optional] -**projects** | **[String]** | | [optional] -**provisionDate** | **Date** | | [optional] -**status** | **String** | | [optional] -**stocks** | [**[NodeStocksPayload]**](NodeStocksPayload.md) | | [optional] -**sunsetDate** | **Date** | | [optional] - - diff --git a/docs/NodeResponseModel.md b/docs/NodeResponseModel.md deleted file mode 100644 index ee1a2337..00000000 --- a/docs/NodeResponseModel.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.NodeResponseModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nodes** | [**[NodeModel]**](NodeModel.md) | | [optional] -**region** | **String** | | [optional] - - diff --git a/docs/NodeStockPayloadModel.md b/docs/NodeStockPayloadModel.md deleted file mode 100644 index 41a6a6be..00000000 --- a/docs/NodeStockPayloadModel.md +++ /dev/null @@ -1,9 +0,0 @@ -# HyperstackApi.NodeStockPayloadModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**stocks** | [**[NodePayloadModel]**](NodePayloadModel.md) | | [optional] - - diff --git a/docs/NodeStockResponseModel.md b/docs/NodeStockResponseModel.md deleted file mode 100644 index 1c64ec52..00000000 --- a/docs/NodeStockResponseModel.md +++ /dev/null @@ -1,9 +0,0 @@ -# HyperstackApi.NodeStockResponseModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**stocks** | [**[NodeResponseModel]**](NodeResponseModel.md) | | [optional] - - diff --git a/docs/NodeStocksPayload.md b/docs/NodeStocksPayload.md deleted file mode 100644 index 16836ab7..00000000 --- a/docs/NodeStocksPayload.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.NodeStocksPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**inUse** | **Number** | | -**name** | **String** | | [optional] -**total** | **Number** | | -**type** | **String** | | - - diff --git a/docs/ObjectStorageAccessKeyCreateRequest.md b/docs/ObjectStorageAccessKeyCreateRequest.md new file mode 100644 index 00000000..77fcf240 --- /dev/null +++ b/docs/ObjectStorageAccessKeyCreateRequest.md @@ -0,0 +1,10 @@ +# HyperstackApi.ObjectStorageAccessKeyCreateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **Object** | | [optional] +**region** | [**ObjectStorageRegionsEnum**](ObjectStorageRegionsEnum.md) | | + + diff --git a/docs/ObjectStorageAccessKeyCreateResponse.md b/docs/ObjectStorageAccessKeyCreateResponse.md new file mode 100644 index 00000000..e95dfeb2 --- /dev/null +++ b/docs/ObjectStorageAccessKeyCreateResponse.md @@ -0,0 +1,15 @@ +# HyperstackApi.ObjectStorageAccessKeyCreateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accessKey** | **String** | | +**createdAt** | **Date** | | +**description** | **Object** | | [optional] +**id** | **Number** | | +**region** | [**ObjectStorageRegionsEnum**](ObjectStorageRegionsEnum.md) | | +**secretKey** | **String** | | +**userId** | **Number** | | + + diff --git a/docs/ObjectStorageAccessKeyListResponse.md b/docs/ObjectStorageAccessKeyListResponse.md new file mode 100644 index 00000000..85ba5628 --- /dev/null +++ b/docs/ObjectStorageAccessKeyListResponse.md @@ -0,0 +1,10 @@ +# HyperstackApi.ObjectStorageAccessKeyListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accessKeys** | [**[ObjectStorageAccessKeyResponse]**](ObjectStorageAccessKeyResponse.md) | | +**meta** | [**ObjectStoragePaginationMeta**](ObjectStoragePaginationMeta.md) | | + + diff --git a/docs/ObjectStorageAccessKeyResponse.md b/docs/ObjectStorageAccessKeyResponse.md new file mode 100644 index 00000000..978bb430 --- /dev/null +++ b/docs/ObjectStorageAccessKeyResponse.md @@ -0,0 +1,14 @@ +# HyperstackApi.ObjectStorageAccessKeyResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accessKey** | **String** | | +**createdAt** | **Date** | | +**description** | **Object** | | [optional] +**id** | **Number** | | +**region** | [**ObjectStorageRegionsEnum**](ObjectStorageRegionsEnum.md) | | +**userId** | **Number** | | + + diff --git a/docs/ObjectStorageBucketListResponse.md b/docs/ObjectStorageBucketListResponse.md new file mode 100644 index 00000000..36efa6b2 --- /dev/null +++ b/docs/ObjectStorageBucketListResponse.md @@ -0,0 +1,10 @@ +# HyperstackApi.ObjectStorageBucketListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**buckets** | [**[ObjectStorageBucketResponse]**](ObjectStorageBucketResponse.md) | | +**failedRegions** | **[String]** | | [optional] + + diff --git a/docs/ObjectStorageBucketResponse.md b/docs/ObjectStorageBucketResponse.md new file mode 100644 index 00000000..27eca33e --- /dev/null +++ b/docs/ObjectStorageBucketResponse.md @@ -0,0 +1,15 @@ +# HyperstackApi.ObjectStorageBucketResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | **Date** | | +**endpoint** | **String** | | +**name** | **String** | | +**numObjects** | **Number** | Number of objects | +**region** | [**ObjectStorageRegionsEnum**](ObjectStorageRegionsEnum.md) | | +**sizeBytes** | **Number** | Accumulated size in bytes | +**sizeBytesActual** | **Number** | Size utilized in bytes | + + diff --git a/docs/ObjectStorageDeleteResponse.md b/docs/ObjectStorageDeleteResponse.md new file mode 100644 index 00000000..cfb34f1d --- /dev/null +++ b/docs/ObjectStorageDeleteResponse.md @@ -0,0 +1,9 @@ +# HyperstackApi.ObjectStorageDeleteResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | + + diff --git a/docs/ObjectStorageErrorResponse.md b/docs/ObjectStorageErrorResponse.md new file mode 100644 index 00000000..978fc336 --- /dev/null +++ b/docs/ObjectStorageErrorResponse.md @@ -0,0 +1,11 @@ +# HyperstackApi.ObjectStorageErrorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errorReason** | **String** | | +**message** | **String** | | +**status** | **Boolean** | | [optional] [default to false] + + diff --git a/docs/ObjectStorageHealthResponse.md b/docs/ObjectStorageHealthResponse.md new file mode 100644 index 00000000..f114a512 --- /dev/null +++ b/docs/ObjectStorageHealthResponse.md @@ -0,0 +1,9 @@ +# HyperstackApi.ObjectStorageHealthResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | + + diff --git a/docs/ObjectStoragePaginationMeta.md b/docs/ObjectStoragePaginationMeta.md new file mode 100644 index 00000000..12d87814 --- /dev/null +++ b/docs/ObjectStoragePaginationMeta.md @@ -0,0 +1,11 @@ +# HyperstackApi.ObjectStoragePaginationMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **Number** | | +**currentPage** | **Number** | | +**totalPages** | **Number** | | + + diff --git a/docs/ObjectStorageRegionListResponse.md b/docs/ObjectStorageRegionListResponse.md new file mode 100644 index 00000000..bfff1439 --- /dev/null +++ b/docs/ObjectStorageRegionListResponse.md @@ -0,0 +1,9 @@ +# HyperstackApi.ObjectStorageRegionListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**regions** | [**[ObjectStorageRegionResponse]**](ObjectStorageRegionResponse.md) | | + + diff --git a/docs/ObjectStorageRegionResponse.md b/docs/ObjectStorageRegionResponse.md new file mode 100644 index 00000000..939443ed --- /dev/null +++ b/docs/ObjectStorageRegionResponse.md @@ -0,0 +1,9 @@ +# HyperstackApi.ObjectStorageRegionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | + + diff --git a/docs/ObjectStorageRegionsEnum.md b/docs/ObjectStorageRegionsEnum.md new file mode 100644 index 00000000..54de59ff --- /dev/null +++ b/docs/ObjectStorageRegionsEnum.md @@ -0,0 +1,8 @@ +# HyperstackApi.ObjectStorageRegionsEnum + +## Enum + + +* `CANADA-1` (value: `"CANADA-1"`) + + diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md index 1e37e574..f8fe0c1d 100644 --- a/docs/OrganizationApi.md +++ b/docs/OrganizationApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description 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). ### Example @@ -28,11 +28,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.OrganizationApi(); let payload = new HyperstackApi.RemoveMemberPayload(); // RemoveMemberPayload | @@ -57,7 +52,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -71,7 +66,7 @@ Name | Type | Description | Notes 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). ### Example @@ -83,11 +78,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.OrganizationApi(); apiInstance.retrieveOrganizationInformation().then((data) => { @@ -108,7 +98,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -122,7 +112,7 @@ This endpoint does not need any parameter. 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). ### Example @@ -134,11 +124,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.OrganizationApi(); let payload = new HyperstackApi.UpdateOrganizationPayload(); // UpdateOrganizationPayload | @@ -163,7 +148,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/OrganizationObjectResponse.md b/docs/OrganizationObjectResponse.md deleted file mode 100644 index f73dc091..00000000 --- a/docs/OrganizationObjectResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.OrganizationObjectResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**orgId** | **Number** | | [optional] -**resources** | [**[InfrahubResourceObjectResponse]**](InfrahubResourceObjectResponse.md) | | [optional] - - diff --git a/docs/OrganizationThresholdFields.md b/docs/OrganizationThresholdFields.md new file mode 100644 index 00000000..fd298f93 --- /dev/null +++ b/docs/OrganizationThresholdFields.md @@ -0,0 +1,13 @@ +# HyperstackApi.OrganizationThresholdFields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Number** | | [optional] +**interfaceTitle** | **String** | | [optional] +**interfaceTooltip** | **String** | | [optional] +**subscribed** | **Boolean** | | [optional] +**threshold** | **Number** | | [optional] + + diff --git a/docs/OrganizationThresholdUpdateResponse.md b/docs/OrganizationThresholdUpdateResponse.md new file mode 100644 index 00000000..9db0f855 --- /dev/null +++ b/docs/OrganizationThresholdUpdateResponse.md @@ -0,0 +1,11 @@ +# HyperstackApi.OrganizationThresholdUpdateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] +**threshold** | [**OrganizationThresholdFields**](OrganizationThresholdFields.md) | | [optional] + + diff --git a/docs/OrganizationThresholdfields.md b/docs/OrganizationThresholdfields.md deleted file mode 100644 index f9ecc862..00000000 --- a/docs/OrganizationThresholdfields.md +++ /dev/null @@ -1,13 +0,0 @@ -# HyperstackApi.OrganizationThresholdfields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**interfaceTitle** | **String** | | [optional] -**interfaceTooltip** | **String** | | [optional] -**subscribed** | **Boolean** | | [optional] -**threshold** | **Number** | | [optional] - - diff --git a/docs/OrganizationThresholdsResponse.md b/docs/OrganizationThresholdsResponse.md new file mode 100644 index 00000000..1bd5bef1 --- /dev/null +++ b/docs/OrganizationThresholdsResponse.md @@ -0,0 +1,11 @@ +# HyperstackApi.OrganizationThresholdsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] +**thresholds** | [**[OrganizationThresholdFields]**](OrganizationThresholdFields.md) | | [optional] + + diff --git a/docs/Organizationcreditrechargelimitresponse.md b/docs/Organizationcreditrechargelimitresponse.md deleted file mode 100644 index 45b067e2..00000000 --- a/docs/Organizationcreditrechargelimitresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.Organizationcreditrechargelimitresponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Creditrechargelimitfield**](Creditrechargelimitfield.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/Organizationthresholdsresponse.md b/docs/Organizationthresholdsresponse.md deleted file mode 100644 index 87c1b989..00000000 --- a/docs/Organizationthresholdsresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.Organizationthresholdsresponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] -**thresholds** | [**[OrganizationThresholdfields]**](OrganizationThresholdfields.md) | | [optional] - - diff --git a/docs/Organizationthresholdupdateresponse.md b/docs/Organizationthresholdupdateresponse.md deleted file mode 100644 index d54197c1..00000000 --- a/docs/Organizationthresholdupdateresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.Organizationthresholdupdateresponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] -**threshold** | [**OrganizationThresholdfields**](OrganizationThresholdfields.md) | | [optional] - - diff --git a/docs/Pagination.md b/docs/Pagination.md new file mode 100644 index 00000000..aa991186 --- /dev/null +++ b/docs/Pagination.md @@ -0,0 +1,11 @@ +# HyperstackApi.Pagination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**page** | **Number** | | [optional] +**pages** | **Number** | | [optional] +**perPage** | **Number** | | [optional] + + diff --git a/docs/PartnerConfig.md b/docs/PartnerConfig.md new file mode 100644 index 00000000..4c5a0453 --- /dev/null +++ b/docs/PartnerConfig.md @@ -0,0 +1,15 @@ +# HyperstackApi.PartnerConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**backgroundImageUrl** | **String** | | [optional] +**colors** | [**Colors**](Colors.md) | | [optional] +**logos** | [**Logos**](Logos.md) | | [optional] +**name** | **String** | | +**supportEmail** | **String** | | [optional] +**uris** | [**URIs**](URIs.md) | | [optional] +**userType** | **String** | | + + diff --git a/docs/PartnerConfigApi.md b/docs/PartnerConfigApi.md new file mode 100644 index 00000000..d4594f9a --- /dev/null +++ b/docs/PartnerConfigApi.md @@ -0,0 +1,108 @@ +# HyperstackApi.PartnerConfigApi + +All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getPartnerConfig**](PartnerConfigApi.md#getPartnerConfig) | **GET** /auth/partner-config | Get partner config +[**getPartnerConfigByDomain**](PartnerConfigApi.md#getPartnerConfigByDomain) | **GET** /auth/partner-config/docs | + + + +## getPartnerConfig + +> PartnerConfig getPartnerConfig() + +Get partner config + +Fetch the customised customer configuration for Hyperstack. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.PartnerConfigApi(); +apiInstance.getPartnerConfig().then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**PartnerConfig**](PartnerConfig.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getPartnerConfigByDomain + +> PartnerConfig getPartnerConfigByDomain(opts) + + + +Fetch the partner config for a given domain. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.PartnerConfigApi(); +let opts = { + 'domain': "domain_example" // String | The domain to look up the partner config for. +}; +apiInstance.getPartnerConfigByDomain(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **domain** | **String**| The domain to look up the partner config for. | [optional] + +### Return type + +[**PartnerConfig**](PartnerConfig.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + diff --git a/docs/PaymentApi.md b/docs/PaymentApi.md index d7663223..41b4e427 100644 --- a/docs/PaymentApi.md +++ b/docs/PaymentApi.md @@ -4,16 +4,19 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**getViewPaymentDetails**](PaymentApi.md#getViewPaymentDetails) | **GET** /billing/payment/payment-details | GET: View payment details -[**postInitiatePayment**](PaymentApi.md#postInitiatePayment) | **POST** /billing/payment/payment-initiate | POST: Initiate payment +[**getPaymentReceipt**](PaymentApi.md#getPaymentReceipt) | **GET** /billing/payment/receipt/{payment_id} | Retrieve Payment Receipt +[**initiatePayment**](PaymentApi.md#initiatePayment) | **POST** /billing/payment/payment-initiate | POST: Initiate payment +[**listPaymentDetails**](PaymentApi.md#listPaymentDetails) | **GET** /billing/payment/payment-details | GET: View payment details -## getViewPaymentDetails +## getPaymentReceipt -> PaymentDetailsResponse getViewPaymentDetails() +> getPaymentReceipt(paymentId) -GET: View payment details +Retrieve Payment Receipt + +Retrieve the payment receipt from Stripe for a specific payment ### Example @@ -25,15 +28,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.PaymentApi(); -apiInstance.getViewPaymentDetails().then((data) => { - console.log('API called successfully. Returned data: ' + data); +let paymentId = "paymentId_example"; // String | +apiInstance.getPaymentReceipt(paymentId).then(() => { + console.log('API called successfully.'); }, (error) => { console.error(error); }); @@ -42,15 +41,18 @@ apiInstance.getViewPaymentDetails().then((data) => { ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **paymentId** | **String**| | ### Return type -[**PaymentDetailsResponse**](PaymentDetailsResponse.md) +null (empty response body) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -58,12 +60,14 @@ This endpoint does not need any parameter. - **Accept**: application/json -## postInitiatePayment +## initiatePayment -> PaymentInitiateResponse postInitiatePayment(payload) +> PaymentInitiateResponse initiatePayment(payload) 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). + ### Example ```javascript @@ -74,15 +78,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.PaymentApi(); let payload = new HyperstackApi.PaymentInitiatePayload(); // PaymentInitiatePayload | -apiInstance.postInitiatePayment(payload).then((data) => { +apiInstance.initiatePayment(payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -103,10 +102,56 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json + +## listPaymentDetails + +> PaymentDetailsResponse listPaymentDetails() + +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/). + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.PaymentApi(); +apiInstance.listPaymentDetails().then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**PaymentDetailsResponse**](PaymentDetailsResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + diff --git a/docs/PaymentDetailsFields.md b/docs/PaymentDetailsFields.md index b59f565d..43297d2c 100644 --- a/docs/PaymentDetailsFields.md +++ b/docs/PaymentDetailsFields.md @@ -9,9 +9,11 @@ Name | Type | Description | Notes **currency** | **String** | | [optional] **description** | **String** | | [optional] **gatewayResponse** | **String** | | [optional] +**invoice** | **String** | | [optional] **paidFrom** | **String** | | [optional] **paymentId** | **String** | | [optional] **status** | **String** | | [optional] +**taxAmount** | **Number** | | [optional] **transactionId** | **String** | | [optional] **updatedAt** | **Date** | | [optional] diff --git a/docs/PermissionApi.md b/docs/PermissionApi.md index 82658bb8..c83148ac 100644 --- a/docs/PermissionApi.md +++ b/docs/PermissionApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description 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). ### Example @@ -26,11 +26,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.PermissionApi(); apiInstance.listPermissions().then((data) => { @@ -51,7 +46,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/PolicyApi.md b/docs/PolicyApi.md index 37500f06..f2d00ca9 100644 --- a/docs/PolicyApi.md +++ b/docs/PolicyApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description 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). ### Example @@ -26,11 +26,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.PolicyApi(); apiInstance.listPolicies().then((data) => { @@ -51,7 +46,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/PowerUsageModel.md b/docs/PowerUsageModel.md deleted file mode 100644 index 0bfe77f7..00000000 --- a/docs/PowerUsageModel.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.PowerUsageModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**unit** | **String** | | -**value** | **Number** | | - - diff --git a/docs/PricebookApi.md b/docs/PricebookApi.md index 053c1b40..2fcfc54e 100644 --- a/docs/PricebookApi.md +++ b/docs/PricebookApi.md @@ -4,16 +4,18 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**retrivePricebook**](PricebookApi.md#retrivePricebook) | **GET** /pricebook | +[**getPricebook**](PricebookApi.md#getPricebook) | **GET** /pricebook | -## retrivePricebook +## getPricebook -> [PricebookModel] retrivePricebook() +> [PricebookModel] getPricebook() +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/). + ### Example ```javascript @@ -24,14 +26,9 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.PricebookApi(); -apiInstance.retrivePricebook().then((data) => { +apiInstance.getPricebook().then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -49,7 +46,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/PricebookResourceObjectResponse.md b/docs/PricebookResourceObjectResponse.md deleted file mode 100644 index 9b793880..00000000 --- a/docs/PricebookResourceObjectResponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# HyperstackApi.PricebookResourceObjectResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**actualPrice** | **Number** | | [optional] -**amount** | **Number** | | [optional] -**discountedRate** | **Number** | | [optional] -**hostOriginalPrice** | **Number** | | [optional] -**hostPrice** | **Number** | | [optional] -**name** | **String** | | [optional] -**nexgenOriginalPrice** | **Number** | | [optional] -**nexgenPrice** | **Number** | | [optional] -**price** | **Number** | | [optional] -**rate** | **Number** | | [optional] -**type** | **String** | | [optional] - - diff --git a/docs/PrimaryColor.md b/docs/PrimaryColor.md new file mode 100644 index 00000000..7a99bbd9 --- /dev/null +++ b/docs/PrimaryColor.md @@ -0,0 +1,10 @@ +# HyperstackApi.PrimaryColor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dark** | **String** | | [optional] +**light** | **String** | | [optional] + + diff --git a/docs/ProfileApi.md b/docs/ProfileApi.md index 8e0f4cc4..bb2f3d39 100644 --- a/docs/ProfileApi.md +++ b/docs/ProfileApi.md @@ -6,8 +6,8 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**createProfile**](ProfileApi.md#createProfile) | **POST** /core/profiles | Create profile [**deleteProfile**](ProfileApi.md#deleteProfile) | **DELETE** /core/profiles/{id} | Delete profile +[**getProfile**](ProfileApi.md#getProfile) | **GET** /core/profiles/{id} | Retrieve profile details [**listProfiles**](ProfileApi.md#listProfiles) | **GET** /core/profiles | List profiles -[**retrieveProfileDetails**](ProfileApi.md#retrieveProfileDetails) | **GET** /core/profiles/{id} | Retrieve profile details @@ -17,7 +17,7 @@ Method | HTTP request | Description 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). ### Example @@ -29,11 +29,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ProfileApi(); let payload = new HyperstackApi.CreateProfilePayload(); // CreateProfilePayload | @@ -58,7 +53,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -84,11 +79,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ProfileApi(); let id = 56; // Number | @@ -113,7 +103,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -121,13 +111,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## listProfiles +## getProfile -> ProfileListResponse listProfiles() +> CreateProfileResponse getProfile(id) -List profiles +Retrieve profile details -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). +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). ### Example @@ -139,14 +129,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ProfileApi(); -apiInstance.listProfiles().then((data) => { +let id = 56; // Number | +apiInstance.getProfile(id).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -156,15 +142,18 @@ apiInstance.listProfiles().then((data) => { ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Number**| | ### Return type -[**ProfileListResponse**](ProfileListResponse.md) +[**CreateProfileResponse**](CreateProfileResponse.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -172,13 +161,13 @@ This endpoint does not need any parameter. - **Accept**: application/json -## retrieveProfileDetails +## listProfiles -> CreateProfileResponse retrieveProfileDetails(id) +> ProfileListResponse listProfiles() -Retrieve profile details +List profiles -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). +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). ### Example @@ -190,15 +179,9 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.ProfileApi(); -let id = 56; // Number | -apiInstance.retrieveProfileDetails(id).then((data) => { +apiInstance.listProfiles().then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -208,18 +191,15 @@ apiInstance.retrieveProfileDetails(id).then((data) => { ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| | +This endpoint does not need any parameter. ### Return type -[**CreateProfileResponse**](CreateProfileResponse.md) +[**ProfileListResponse**](ProfileListResponse.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/RbacRoleApi.md b/docs/RbacRoleApi.md index 06221ca4..176455e5 100644 --- a/docs/RbacRoleApi.md +++ b/docs/RbacRoleApi.md @@ -4,21 +4,21 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**createRbacRole**](RbacRoleApi.md#createRbacRole) | **POST** /auth/roles | Create RBAC Role -[**deleteRbacRole**](RbacRoleApi.md#deleteRbacRole) | **DELETE** /auth/roles/{id} | Delete RBAC Role -[**listRbacRoles**](RbacRoleApi.md#listRbacRoles) | **GET** /auth/roles | List RBAC Roles -[**retrieveRbacRoleDetails**](RbacRoleApi.md#retrieveRbacRoleDetails) | **GET** /auth/roles/{id} | Retrieve RBAC Role Details -[**updateRbacRole**](RbacRoleApi.md#updateRbacRole) | **PUT** /auth/roles/{id} | Update RBAC Role +[**createRBACRole**](RbacRoleApi.md#createRBACRole) | **POST** /auth/roles | Create RBAC Role +[**deleteRBACRole**](RbacRoleApi.md#deleteRBACRole) | **DELETE** /auth/roles/{id} | Delete RBAC Role +[**listRBACRoles**](RbacRoleApi.md#listRBACRoles) | **GET** /auth/roles | List RBAC Roles +[**retrieveRBACRoleDetails**](RbacRoleApi.md#retrieveRBACRoleDetails) | **GET** /auth/roles/{id} | Retrieve RBAC Role Details +[**updateRBACRole**](RbacRoleApi.md#updateRBACRole) | **PUT** /auth/roles/{id} | Update RBAC Role -## createRbacRole +## createRBACRole -> RbacRoleDetailResponseModel createRbacRole(payload) +> RbacRoleDetailResponseModel createRBACRole(payload) 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). ### Example @@ -30,15 +30,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.RbacRoleApi(); let payload = new HyperstackApi.CreateUpdateRbacRolePayload(); // CreateUpdateRbacRolePayload | -apiInstance.createRbacRole(payload).then((data) => { +apiInstance.createRBACRole(payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -59,7 +54,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -67,13 +62,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## deleteRbacRole +## deleteRBACRole -> CommonResponseModel deleteRbacRole(id) +> CommonResponseModel deleteRBACRole(id) 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). ### Example @@ -85,15 +80,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.RbacRoleApi(); let id = 56; // Number | -apiInstance.deleteRbacRole(id).then((data) => { +apiInstance.deleteRBACRole(id).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -114,7 +104,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -122,13 +112,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## listRbacRoles +## listRBACRoles -> GetRbacRolesResponseModel listRbacRoles() +> GetRbacRolesResponseModel listRBACRoles() 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). ### Example @@ -140,14 +130,9 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.RbacRoleApi(); -apiInstance.listRbacRoles().then((data) => { +apiInstance.listRBACRoles().then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -165,7 +150,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -173,13 +158,13 @@ This endpoint does not need any parameter. - **Accept**: application/json -## retrieveRbacRoleDetails +## retrieveRBACRoleDetails -> RbacRoleDetailResponseModelFixed retrieveRbacRoleDetails(id) +> RbacRoleDetailResponseModelFixed retrieveRBACRoleDetails(id) 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). ### Example @@ -191,15 +176,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.RbacRoleApi(); let id = 56; // Number | -apiInstance.retrieveRbacRoleDetails(id).then((data) => { +apiInstance.retrieveRBACRoleDetails(id).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -220,7 +200,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -228,13 +208,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## updateRbacRole +## updateRBACRole -> RbacRoleDetailResponseModel updateRbacRole(id, payload) +> RbacRoleDetailResponseModel updateRBACRole(id, payload) 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). ### Example @@ -246,16 +226,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.RbacRoleApi(); let id = 56; // Number | let payload = new HyperstackApi.CreateUpdateRbacRolePayload(); // CreateUpdateRbacRolePayload | -apiInstance.updateRbacRole(id, payload).then((data) => { +apiInstance.updateRBACRole(id, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -277,7 +252,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/RedeemVoucherPayload.md b/docs/RedeemVoucherPayload.md new file mode 100644 index 00000000..5a5e4a62 --- /dev/null +++ b/docs/RedeemVoucherPayload.md @@ -0,0 +1,9 @@ +# HyperstackApi.RedeemVoucherPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**voucherCode** | **String** | The code of the voucher you want to redeem. | + + diff --git a/docs/RefreshTokenPayload.md b/docs/RefreshTokenPayload.md deleted file mode 100644 index 148a6be2..00000000 --- a/docs/RefreshTokenPayload.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.RefreshTokenPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**idToken** | **String** | | -**refreshToken** | **String** | | - - diff --git a/docs/RegionApi.md b/docs/RegionApi.md index 578913e0..42d16137 100644 --- a/docs/RegionApi.md +++ b/docs/RegionApi.md @@ -4,7 +4,7 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**listRegions**](RegionApi.md#listRegions) | **GET** /core/regions | List regions +[**listRegions**](RegionApi.md#listRegions) | **GET** /core/regions | List Regions @@ -12,9 +12,9 @@ Method | HTTP request | Description > Regions listRegions() -List 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://infrahub-doc.nexgencloud.com/docs/features/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). ### Example @@ -26,11 +26,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.RegionApi(); apiInstance.listRegions().then((data) => { @@ -51,7 +46,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/RegionFields.md b/docs/RegionFields.md index 639e18ef..d6d76c3c 100644 --- a/docs/RegionFields.md +++ b/docs/RegionFields.md @@ -4,8 +4,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**country** | **String** | | [optional] **description** | **String** | | [optional] +**features** | **Object** | | [optional] +**greenStatus** | **String** | Green status | [optional] **id** | **Number** | | [optional] **name** | **String** | | [optional] + +## Enum: GreenStatusEnum + + +* `GREEN` (value: `"GREEN"`) + +* `PARTIALLY_GREEN` (value: `"PARTIALLY_GREEN"`) + +* `NOT_GREEN` (value: `"NOT_GREEN"`) + + + + diff --git a/docs/RegionPayload.md b/docs/RegionPayload.md deleted file mode 100644 index 783dfc77..00000000 --- a/docs/RegionPayload.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.RegionPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | | [optional] -**name** | **String** | | - - diff --git a/docs/RegionResponse.md b/docs/RegionResponse.md deleted file mode 100644 index c755cdef..00000000 --- a/docs/RegionResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.RegionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | [optional] -**region** | [**RegionFields**](RegionFields.md) | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/RegionsApi.md b/docs/RegionsApi.md new file mode 100644 index 00000000..3b32ce68 --- /dev/null +++ b/docs/RegionsApi.md @@ -0,0 +1,53 @@ +# HyperstackApi.RegionsApi + +All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**listRegionsEndpoint**](RegionsApi.md#listRegionsEndpoint) | **GET** /object-storage/regions | Get a list of supported regions + + + +## listRegionsEndpoint + +> ObjectStorageRegionListResponse listRegionsEndpoint() + +Get a list of supported regions + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.RegionsApi(); +apiInstance.listRegionsEndpoint().then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**ObjectStorageRegionListResponse**](ObjectStorageRegionListResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + diff --git a/docs/RequestInstanceLogsPayload.md b/docs/RequestInstanceLogsPayload.md new file mode 100644 index 00000000..9c6f21ef --- /dev/null +++ b/docs/RequestInstanceLogsPayload.md @@ -0,0 +1,9 @@ +# HyperstackApi.RequestInstanceLogsPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**length** | **Number** | The amount of lines to fetch | [optional] + + diff --git a/docs/RequestInstanceLogsResponse.md b/docs/RequestInstanceLogsResponse.md new file mode 100644 index 00000000..f341af10 --- /dev/null +++ b/docs/RequestInstanceLogsResponse.md @@ -0,0 +1,9 @@ +# HyperstackApi.RequestInstanceLogsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requestId** | **Number** | | [optional] + + diff --git a/docs/ResourceLevelBillingBucketDetailsResources.md b/docs/ResourceLevelBillingBucketDetailsResources.md new file mode 100644 index 00000000..21a5cd21 --- /dev/null +++ b/docs/ResourceLevelBillingBucketDetailsResources.md @@ -0,0 +1,10 @@ +# HyperstackApi.ResourceLevelBillingBucketDetailsResources + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**ResourceLevelBillingDetailsAttributes**](ResourceLevelBillingDetailsAttributes.md) | | [optional] +**metrics** | [**ResourceLevelBillingDetailsMetrics**](ResourceLevelBillingDetailsMetrics.md) | | [optional] + + diff --git a/docs/ResourceLevelBillingHistoryResourcesCluster.md b/docs/ResourceLevelBillingHistoryResourcesCluster.md new file mode 100644 index 00000000..f03e255f --- /dev/null +++ b/docs/ResourceLevelBillingHistoryResourcesCluster.md @@ -0,0 +1,11 @@ +# HyperstackApi.ResourceLevelBillingHistoryResourcesCluster + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | [**ResourceLevelBillingHistoryResponseAttributes**](ResourceLevelBillingHistoryResponseAttributes.md) | | [optional] +**metrics** | [**ResourceLevelBillingHistoryResponseMetrics**](ResourceLevelBillingHistoryResponseMetrics.md) | | [optional] +**nodes** | [**[ResourceLevelBillingHistoryResources]**](ResourceLevelBillingHistoryResources.md) | | [optional] + + diff --git a/docs/ResourceLevelBillingHistoryResponseAttributes.md b/docs/ResourceLevelBillingHistoryResponseAttributes.md index 2f47cbd0..c1b5a327 100644 --- a/docs/ResourceLevelBillingHistoryResponseAttributes.md +++ b/docs/ResourceLevelBillingHistoryResponseAttributes.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**contractId** | **Number** | | [optional] **id** | **String** | | [optional] **infrahubId** | **Number** | | [optional] **resourceName** | **String** | | [optional] diff --git a/docs/ResourceLevelBucketBillingDetailsResponseModel.md b/docs/ResourceLevelBucketBillingDetailsResponseModel.md new file mode 100644 index 00000000..3ba6d645 --- /dev/null +++ b/docs/ResourceLevelBucketBillingDetailsResponseModel.md @@ -0,0 +1,11 @@ +# HyperstackApi.ResourceLevelBucketBillingDetailsResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingHistoryBucketDetails** | [**ResourceLevelBillingBucketDetailsResources**](ResourceLevelBillingBucketDetailsResources.md) | | [optional] +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/ResourceLevelBucketBillingHistoryResponseModel.md b/docs/ResourceLevelBucketBillingHistoryResponseModel.md new file mode 100644 index 00000000..5ed094a0 --- /dev/null +++ b/docs/ResourceLevelBucketBillingHistoryResponseModel.md @@ -0,0 +1,11 @@ +# HyperstackApi.ResourceLevelBucketBillingHistoryResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingHistoryBucket** | [**ResourceLevelBillingHistory**](ResourceLevelBillingHistory.md) | | [optional] +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/ResourceLevelClusterBillingDetailsResponseModel.md b/docs/ResourceLevelClusterBillingDetailsResponseModel.md new file mode 100644 index 00000000..562cb7a9 --- /dev/null +++ b/docs/ResourceLevelClusterBillingDetailsResponseModel.md @@ -0,0 +1,11 @@ +# HyperstackApi.ResourceLevelClusterBillingDetailsResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingHistoryClusterDetails** | [**ResourceLevelBillingHistoryResourcesCluster**](ResourceLevelBillingHistoryResourcesCluster.md) | | [optional] +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/ResourceLevelClusterBillingHistoryResponseModel.md b/docs/ResourceLevelClusterBillingHistoryResponseModel.md new file mode 100644 index 00000000..fad8679a --- /dev/null +++ b/docs/ResourceLevelClusterBillingHistoryResponseModel.md @@ -0,0 +1,11 @@ +# HyperstackApi.ResourceLevelClusterBillingHistoryResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingHistoryCluster** | [**ResourceLevelBillingHistory**](ResourceLevelBillingHistory.md) | | [optional] +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/ResourceLevelClusterGraphBillingDetailsResponseModel.md b/docs/ResourceLevelClusterGraphBillingDetailsResponseModel.md new file mode 100644 index 00000000..9f5a476c --- /dev/null +++ b/docs/ResourceLevelClusterGraphBillingDetailsResponseModel.md @@ -0,0 +1,11 @@ +# HyperstackApi.ResourceLevelClusterGraphBillingDetailsResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingHistoryClusterDetails** | [**ResourceLevelGraphBillingDetailVolume**](ResourceLevelGraphBillingDetailVolume.md) | | [optional] +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/ResourceLevelGraphBillingDetailsBucket.md b/docs/ResourceLevelGraphBillingDetailsBucket.md new file mode 100644 index 00000000..0396d348 --- /dev/null +++ b/docs/ResourceLevelGraphBillingDetailsBucket.md @@ -0,0 +1,12 @@ +# HyperstackApi.ResourceLevelGraphBillingDetailsBucket + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingHistory** | [**[ResourceLevelBillingBucketDetailsResources]**](ResourceLevelBillingBucketDetailsResources.md) | | [optional] +**granularity** | **Number** | | [optional] +**orgId** | **Number** | | [optional] +**totalCount** | **Number** | | [optional] + + diff --git a/docs/SecondaryColor.md b/docs/SecondaryColor.md new file mode 100644 index 00000000..72fc4319 --- /dev/null +++ b/docs/SecondaryColor.md @@ -0,0 +1,10 @@ +# HyperstackApi.SecondaryColor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dark** | **String** | | [optional] +**light** | **String** | | [optional] + + diff --git a/docs/SecurityRulesApi.md b/docs/SecurityRulesApi.md index ff505801..26f3758a 100644 --- a/docs/SecurityRulesApi.md +++ b/docs/SecurityRulesApi.md @@ -26,11 +26,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.SecurityRulesApi(); apiInstance.listFirewallRuleProtocols().then((data) => { @@ -51,7 +46,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/SecurityRulesFieldsForInstance.md b/docs/SecurityRulesFieldsForInstance.md new file mode 100644 index 00000000..30e9d061 --- /dev/null +++ b/docs/SecurityRulesFieldsForInstance.md @@ -0,0 +1,17 @@ +# HyperstackApi.SecurityRulesFieldsForInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | **Date** | | [optional] +**direction** | **String** | | [optional] +**ethertype** | **String** | | [optional] +**id** | **Number** | | [optional] +**portRangeMax** | **Number** | | [optional] +**portRangeMin** | **Number** | | [optional] +**protocol** | **String** | | [optional] +**remoteIpPrefix** | **String** | | [optional] +**status** | **String** | | [optional] + + diff --git a/docs/SecurityRulesFieldsforInstance.md b/docs/SecurityRulesFieldsforInstance.md deleted file mode 100644 index 1d69cb21..00000000 --- a/docs/SecurityRulesFieldsforInstance.md +++ /dev/null @@ -1,17 +0,0 @@ -# HyperstackApi.SecurityRulesFieldsforInstance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**createdAt** | **Date** | | [optional] -**direction** | **String** | | [optional] -**ethertype** | **String** | | [optional] -**id** | **Number** | | [optional] -**portRangeMax** | **Number** | | [optional] -**portRangeMin** | **Number** | | [optional] -**protocol** | **String** | | [optional] -**remoteIpPrefix** | **String** | | [optional] -**status** | **String** | | [optional] - - diff --git a/docs/ServerlessInferencedBillingHistoryDetailsResponseSchema.md b/docs/ServerlessInferencedBillingHistoryDetailsResponseSchema.md new file mode 100644 index 00000000..a1145d5b --- /dev/null +++ b/docs/ServerlessInferencedBillingHistoryDetailsResponseSchema.md @@ -0,0 +1,11 @@ +# HyperstackApi.ServerlessInferencedBillingHistoryDetailsResponseSchema + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingHistoryServerlessInferenceDetails** | [**BillingHistoryServerlessInferenceDetails**](BillingHistoryServerlessInferenceDetails.md) | | [optional] +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/SetDefaultsPayload.md b/docs/SetDefaultsPayload.md deleted file mode 100644 index f52dc0e8..00000000 --- a/docs/SetDefaultsPayload.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.SetDefaultsPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**flavors** | **[Number]** | | -**images** | **[Number]** | | - - diff --git a/docs/SingleVisibilityUserResponse.md b/docs/SingleVisibilityUserResponse.md deleted file mode 100644 index 04f0c165..00000000 --- a/docs/SingleVisibilityUserResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.SingleVisibilityUserResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | -**stockVisible** | **Boolean** | | -**userId** | **Number** | | - - diff --git a/docs/SnapshotEventsApi.md b/docs/SnapshotEventsApi.md index d4fa9e5a..e7fb2948 100644 --- a/docs/SnapshotEventsApi.md +++ b/docs/SnapshotEventsApi.md @@ -4,13 +4,13 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**fetchAllEventsForASnapshot**](SnapshotEventsApi.md#fetchAllEventsForASnapshot) | **GET** /core/snapshots/{snapshot_id}/events | Fetch all events for a snapshot +[**listSnapshotEvents**](SnapshotEventsApi.md#listSnapshotEvents) | **GET** /core/snapshots/{snapshot_id}/events | Fetch all events for a snapshot -## fetchAllEventsForASnapshot +## listSnapshotEvents -> fetchAllEventsForASnapshot(snapshotId) +> listSnapshotEvents(snapshotId) Fetch all events for a snapshot @@ -26,15 +26,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.SnapshotEventsApi(); let snapshotId = 56; // Number | -apiInstance.fetchAllEventsForASnapshot(snapshotId).then(() => { +apiInstance.listSnapshotEvents(snapshotId).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -55,7 +50,7 @@ null (empty response body) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/SnapshotFields.md b/docs/SnapshotFields.md index 6702f5d5..7bb3cb09 100644 --- a/docs/SnapshotFields.md +++ b/docs/SnapshotFields.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**createdAt** | **Date** | Creation timestamp | **description** | **String** | Description of the snapshot | **hasFloatingIp** | **Boolean** | Indicates if the VM had a floating IP assigned | [optional] **id** | **Number** | Snapshot ID | @@ -13,6 +14,7 @@ Name | Type | Description | Notes **regionId** | **Number** | Region where the snapshot will be available | **size** | **Number** | Size in GB of the snapshot | **status** | **String** | Status of the snapshot | +**updatedAt** | **Date** | Last update timestamp | **vmId** | **Number** | ID of the VM from which the snapshot is created | diff --git a/docs/SnapshotRetrieveFields.md b/docs/SnapshotRetrieveFields.md index 46bd7139..b71182b2 100644 --- a/docs/SnapshotRetrieveFields.md +++ b/docs/SnapshotRetrieveFields.md @@ -4,14 +4,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**createdAt** | **Date** | Creation timestamp | +**customImage** | **String** | | [optional] **description** | **String** | Description of the snapshot | **hasFloatingIp** | **Boolean** | Indicates if the VM had a floating IP assigned | [optional] **id** | **Number** | Snapshot ID | **isImage** | **Boolean** | Indicates if the snapshot is an image | +**labels** | **String** | | [optional] **name** | **String** | Snapshot name | +**region** | **String** | | [optional] **regionId** | **Number** | Region where the snapshot will be available | **size** | **Number** | Size in GB of the snapshot | **status** | **String** | Status of the snapshot | +**updatedAt** | **Date** | Last update timestamp | +**vmEnvironment** | **String** | | [optional] +**vmFlavor** | **String** | | [optional] **vmId** | **Number** | ID of the VM from which the snapshot is created | +**vmImage** | **String** | | [optional] +**vmKeypair** | **String** | | [optional] +**vmName** | **String** | | [optional] +**vmStatus** | **String** | | [optional] +**volumeId** | **String** | | [optional] +**volumeName** | **String** | | [optional] diff --git a/docs/SnapshotsApi.md b/docs/SnapshotsApi.md index 6c56283a..86b22d91 100644 --- a/docs/SnapshotsApi.md +++ b/docs/SnapshotsApi.md @@ -4,18 +4,18 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**createAnImageFromASnapshot**](SnapshotsApi.md#createAnImageFromASnapshot) | **POST** /core/snapshots/{snapshot_id}/image | Create an image from a snapshot +[**createCustomImage**](SnapshotsApi.md#createCustomImage) | **POST** /core/snapshots/{snapshot_id}/image | Create an image from a snapshot [**deleteSnapshot**](SnapshotsApi.md#deleteSnapshot) | **DELETE** /core/snapshots/{id} | Delete snapshot [**fetchSnapshotNameAvailability**](SnapshotsApi.md#fetchSnapshotNameAvailability) | **GET** /core/snapshots/name-availability/{name} | Fetch snapshot name availability -[**restoreASnapshot**](SnapshotsApi.md#restoreASnapshot) | **POST** /core/snapshots/{id}/restore | Restore a snapshot -[**retrieveASnapshot**](SnapshotsApi.md#retrieveASnapshot) | **GET** /core/snapshots/{id} | Retrieve a snapshot -[**retrieveListOfSnapshotsWithPagination**](SnapshotsApi.md#retrieveListOfSnapshotsWithPagination) | **GET** /core/snapshots | Retrieve list of snapshots with pagination +[**getSnapshot**](SnapshotsApi.md#getSnapshot) | **GET** /core/snapshots/{id} | Retrieve a snapshot +[**listSnapshots**](SnapshotsApi.md#listSnapshots) | **GET** /core/snapshots | Retrieve list of snapshots with pagination +[**restoreSnapshot**](SnapshotsApi.md#restoreSnapshot) | **POST** /core/snapshots/{id}/restore | Restore a snapshot -## createAnImageFromASnapshot +## createCustomImage -> CreateImage createAnImageFromASnapshot(snapshotId, payload) +> CreateImage createCustomImage(snapshotId, payload) Create an image from a snapshot @@ -31,16 +31,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.SnapshotsApi(); let snapshotId = 56; // Number | let payload = new HyperstackApi.CreateImagePayload(); // CreateImagePayload | -apiInstance.createAnImageFromASnapshot(snapshotId, payload).then((data) => { +apiInstance.createCustomImage(snapshotId, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -62,7 +57,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -88,11 +83,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.SnapshotsApi(); let id = 56; // Number | @@ -117,7 +107,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -143,11 +133,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.SnapshotsApi(); let name = "name_example"; // String | @@ -172,7 +157,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -180,13 +165,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## restoreASnapshot +## getSnapshot -> Instance restoreASnapshot(id, payload) +> SnapshotRetrieve getSnapshot(id) -Restore a snapshot +Retrieve a snapshot -Restore a snapshot. +Retrieve a snapshot. ### Example @@ -198,16 +183,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.SnapshotsApi(); let id = 56; // Number | -let payload = new HyperstackApi.SnapshotRestoreRequest(); // SnapshotRestoreRequest | -apiInstance.restoreASnapshot(id, payload).then((data) => { +apiInstance.getSnapshot(id).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -221,29 +200,28 @@ apiInstance.restoreASnapshot(id, payload).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **Number**| | - **payload** | [**SnapshotRestoreRequest**](SnapshotRestoreRequest.md)| | ### Return type -[**Instance**](Instance.md) +[**SnapshotRetrieve**](SnapshotRetrieve.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## retrieveASnapshot +## listSnapshots -> SnapshotRetrieve retrieveASnapshot(id) +> Snapshots listSnapshots(opts) -Retrieve a snapshot +Retrieve list of snapshots with pagination -Retrieve a snapshot. +Retrieves a list of snapshots, providing details such as snapshot name, timestamp, VM ID, and other relevant information. ### Example @@ -255,15 +233,14 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.SnapshotsApi(); -let id = 56; // Number | -apiInstance.retrieveASnapshot(id).then((data) => { +let opts = { + 'page': "page_example", // String | Page Number + 'pageSize': "pageSize_example", // String | Data Per Page + 'search': "search_example" // String | Search By Snapshot ID or Name +}; +apiInstance.listSnapshots(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -276,15 +253,17 @@ apiInstance.retrieveASnapshot(id).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **page** | **String**| Page Number | [optional] + **pageSize** | **String**| Data Per Page | [optional] + **search** | **String**| Search By Snapshot ID or Name | [optional] ### Return type -[**SnapshotRetrieve**](SnapshotRetrieve.md) +[**Snapshots**](Snapshots.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -292,13 +271,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveListOfSnapshotsWithPagination +## restoreSnapshot -> Snapshots retrieveListOfSnapshotsWithPagination(opts) +> Instance restoreSnapshot(id, payload) -Retrieve list of snapshots with pagination +Restore a snapshot -Retrieves a list of snapshot, providing details such as snapshot name, timestamp, VM ID, and other relevant information. +Restore a snapshot. ### Example @@ -310,19 +289,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.SnapshotsApi(); -let opts = { - 'page': "page_example", // String | Page Number - 'pageSize': "pageSize_example", // String | Data Per Page - 'search': "search_example" // String | Search By Snapshot ID or Name -}; -apiInstance.retrieveListOfSnapshotsWithPagination(opts).then((data) => { +let id = 56; // Number | +let payload = new HyperstackApi.SnapshotRestoreRequest(); // SnapshotRestoreRequest | +apiInstance.restoreSnapshot(id, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -335,20 +306,19 @@ apiInstance.retrieveListOfSnapshotsWithPagination(opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **String**| Page Number | [optional] - **pageSize** | **String**| Data Per Page | [optional] - **search** | **String**| Search By Snapshot ID or Name | [optional] + **id** | **Number**| | + **payload** | [**SnapshotRestoreRequest**](SnapshotRestoreRequest.md)| | ### Return type -[**Snapshots**](Snapshots.md) +[**Instance**](Instance.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json diff --git a/docs/StartDeployment.md b/docs/StartDeployment.md index 3b6c3d37..880ec56f 100644 --- a/docs/StartDeployment.md +++ b/docs/StartDeployment.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**deployment** | [**DeploymentFieldsforstartdeployments**](DeploymentFieldsforstartdeployments.md) | | [optional] +**deployment** | [**DeploymentFieldsForStartDeployments**](DeploymentFieldsForStartDeployments.md) | | [optional] **message** | **String** | | [optional] **status** | **Boolean** | | [optional] diff --git a/docs/StockApi.md b/docs/StockApi.md index c23ea14a..60a9598c 100644 --- a/docs/StockApi.md +++ b/docs/StockApi.md @@ -4,17 +4,17 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**retrieveGpuStocks**](StockApi.md#retrieveGpuStocks) | **GET** /core/stocks | Retrieve GPU stocks +[**getGPUStock**](StockApi.md#getGPUStock) | **GET** /core/stocks | Retrieve GPU stocks -## retrieveGpuStocks +## getGPUStock -> NewStockRetriveResponse retrieveGpuStocks() +> NewStockRetriveResponse getGPUStock() 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). ### Example @@ -26,14 +26,9 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.StockApi(); -apiInstance.retrieveGpuStocks().then((data) => { +apiInstance.getGPUStock().then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -51,7 +46,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/StockVisibilityUserListResponse.md b/docs/StockVisibilityUserListResponse.md deleted file mode 100644 index 5719e043..00000000 --- a/docs/StockVisibilityUserListResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.StockVisibilityUserListResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] -**users** | [**[SingleVisibilityUserResponse]**](SingleVisibilityUserResponse.md) | | [optional] - - diff --git a/docs/StockVisibilityUserPayload.md b/docs/StockVisibilityUserPayload.md deleted file mode 100644 index b6b18db6..00000000 --- a/docs/StockVisibilityUserPayload.md +++ /dev/null @@ -1,9 +0,0 @@ -# HyperstackApi.StockVisibilityUserPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userIds** | **[Number]** | | - - diff --git a/docs/SubscribeOrUnsubscribeUpdatePayload.md b/docs/SubscribeOrUnsubscribeUpdatePayload.md new file mode 100644 index 00000000..12303ace --- /dev/null +++ b/docs/SubscribeOrUnsubscribeUpdatePayload.md @@ -0,0 +1,9 @@ +# HyperstackApi.SubscribeOrUnsubscribeUpdatePayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subscribe** | **Boolean** | `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails. | + + diff --git a/docs/Subscribeorunsubscribeupdatepayload.md b/docs/Subscribeorunsubscribeupdatepayload.md deleted file mode 100644 index 442ad96b..00000000 --- a/docs/Subscribeorunsubscribeupdatepayload.md +++ /dev/null @@ -1,9 +0,0 @@ -# HyperstackApi.Subscribeorunsubscribeupdatepayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subscribe** | **Boolean** | `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails. | - - diff --git a/docs/SuccessResponseModel.md b/docs/SuccessResponseModel.md deleted file mode 100644 index 317b42f6..00000000 --- a/docs/SuccessResponseModel.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.SuccessResponseModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] [default to false] - - diff --git a/docs/TemplateApi.md b/docs/TemplateApi.md index a4675cf3..9a06ea81 100644 --- a/docs/TemplateApi.md +++ b/docs/TemplateApi.md @@ -6,8 +6,8 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**createTemplate**](TemplateApi.md#createTemplate) | **POST** /core/marketplace/templates | Create template [**deleteTemplate**](TemplateApi.md#deleteTemplate) | **DELETE** /core/marketplace/templates/{id} | Delete template +[**getTemplate**](TemplateApi.md#getTemplate) | **GET** /core/marketplace/templates/{id} | Retrieve template details [**listTemplates**](TemplateApi.md#listTemplates) | **GET** /core/marketplace/templates | List templates -[**retrieveTemplateDetails**](TemplateApi.md#retrieveTemplateDetails) | **GET** /core/marketplace/templates/{id} | Retrieve template details [**updateTemplate**](TemplateApi.md#updateTemplate) | **PUT** /core/marketplace/templates/{id} | Update template @@ -30,11 +30,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.TemplateApi(); let content = "/path/to/file"; // File | YAML file is required @@ -65,7 +60,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -91,11 +86,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.TemplateApi(); let id = 56; // Number | @@ -120,7 +110,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -128,13 +118,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## listTemplates +## getTemplate -> Templates listTemplates(opts) +> Template getTemplate(id) -List templates +Retrieve template details -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). +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/). ### Example @@ -146,17 +136,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.TemplateApi(); -let opts = { - 'visibility': "visibility_example" // String | Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility. -}; -apiInstance.listTemplates(opts).then((data) => { +let id = 56; // Number | +apiInstance.getTemplate(id).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -169,15 +152,15 @@ apiInstance.listTemplates(opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **visibility** | **String**| Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility. | [optional] + **id** | **Number**| | ### Return type -[**Templates**](Templates.md) +[**Template**](Template.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -185,13 +168,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveTemplateDetails +## listTemplates -> Template retrieveTemplateDetails(id) +> Templates listTemplates(opts) -Retrieve template details +List templates -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). +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). ### Example @@ -203,15 +186,12 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.TemplateApi(); -let id = 56; // Number | -apiInstance.retrieveTemplateDetails(id).then((data) => { +let opts = { + 'visibility': "visibility_example" // String | Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility. +}; +apiInstance.listTemplates(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -224,15 +204,15 @@ apiInstance.retrieveTemplateDetails(id).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **visibility** | **String**| Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility. | [optional] ### Return type -[**Template**](Template.md) +[**Templates**](Templates.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -246,7 +226,7 @@ Name | Type | Description | Notes 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. ### Example @@ -258,11 +238,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.TemplateApi(); let id = 56; // Number | @@ -289,7 +264,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/TokenBasedBillingHistoryResponse.md b/docs/TokenBasedBillingHistoryResponse.md new file mode 100644 index 00000000..7efa0a56 --- /dev/null +++ b/docs/TokenBasedBillingHistoryResponse.md @@ -0,0 +1,11 @@ +# HyperstackApi.TokenBasedBillingHistoryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingHistoryServerlessInference** | [**BillingHistoryServerlessInference**](BillingHistoryServerlessInference.md) | | [optional] +**message** | **String** | | [optional] +**success** | **Boolean** | | [optional] + + diff --git a/docs/TokenFields.md b/docs/TokenFields.md deleted file mode 100644 index f9c0b6f0..00000000 --- a/docs/TokenFields.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.TokenFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**accessToken** | **String** | | [optional] -**idToken** | **String** | | [optional] -**refreshToken** | **String** | | [optional] - - diff --git a/docs/URIs.md b/docs/URIs.md new file mode 100644 index 00000000..99a95ba3 --- /dev/null +++ b/docs/URIs.md @@ -0,0 +1,15 @@ +# HyperstackApi.URIs + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apiDoc** | **String** | | [optional] +**apiUri** | **String** | | [optional] +**auth** | **String** | | [optional] +**console** | **String** | | [optional] +**contactUs** | **String** | | [optional] +**doc** | **String** | | [optional] +**landingPage** | **String** | | [optional] + + diff --git a/docs/UpdateClusterNodeGroupPayload.md b/docs/UpdateClusterNodeGroupPayload.md new file mode 100644 index 00000000..68bd88d6 --- /dev/null +++ b/docs/UpdateClusterNodeGroupPayload.md @@ -0,0 +1,11 @@ +# HyperstackApi.UpdateClusterNodeGroupPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**firewallIds** | **[Number]** | IDs of the firewalls to apply to all nodes in this node group | [optional] +**maxCount** | **Number** | | [optional] +**minCount** | **Number** | | [optional] + + diff --git a/docs/UpdateContractPayload.md b/docs/UpdateContractPayload.md deleted file mode 100644 index aed5ba48..00000000 --- a/docs/UpdateContractPayload.md +++ /dev/null @@ -1,13 +0,0 @@ -# HyperstackApi.UpdateContractPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | | [optional] -**discountResources** | [**[ContractResourcePayload]**](ContractResourcePayload.md) | | -**endDate** | **Date** | | [optional] -**expirationPolicy** | **Number** | | -**startDate** | **Date** | | [optional] - - diff --git a/docs/UpdateDiscountsPayload.md b/docs/UpdateDiscountsPayload.md deleted file mode 100644 index 5df36107..00000000 --- a/docs/UpdateDiscountsPayload.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.UpdateDiscountsPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**discountResources** | [**[DiscountResourcePayload]**](DiscountResourcePayload.md) | | -**discountStatus** | **String** | | -**endDate** | **Date** | | [optional] -**startDate** | **Date** | | [optional] - - diff --git a/docs/UpdateDiscountsStatusPayload.md b/docs/UpdateDiscountsStatusPayload.md deleted file mode 100644 index 56220463..00000000 --- a/docs/UpdateDiscountsStatusPayload.md +++ /dev/null @@ -1,9 +0,0 @@ -# HyperstackApi.UpdateDiscountsStatusPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**discountStatus** | **String** | | - - diff --git a/docs/UpdateGPU.md b/docs/UpdateGPU.md deleted file mode 100644 index 35e0b066..00000000 --- a/docs/UpdateGPU.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.UpdateGPU - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**exampleMetadata** | **String** | A valid JSON string. | [optional] -**name** | **String** | | [optional] -**regions** | **[String]** | | [optional] - - diff --git a/docs/UpdateKeypairNameResponse.md b/docs/UpdateKeypairNameResponse.md new file mode 100644 index 00000000..539458cc --- /dev/null +++ b/docs/UpdateKeypairNameResponse.md @@ -0,0 +1,11 @@ +# HyperstackApi.UpdateKeypairNameResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**keypair** | [**KeypairFields**](KeypairFields.md) | | [optional] +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/UpdateKeypairnameresponse.md b/docs/UpdateKeypairnameresponse.md deleted file mode 100644 index 65502a25..00000000 --- a/docs/UpdateKeypairnameresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.UpdateKeypairnameresponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**keypair** | [**KeypairFields**](KeypairFields.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/UpdateVolumeAttachmentPayload.md b/docs/UpdateVolumeAttachmentPayload.md new file mode 100644 index 00000000..f2577285 --- /dev/null +++ b/docs/UpdateVolumeAttachmentPayload.md @@ -0,0 +1,9 @@ +# HyperstackApi.UpdateVolumeAttachmentPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_protected** | **Boolean** | | [optional] + + diff --git a/docs/UpdateVolumePayload.md b/docs/UpdateVolumePayload.md new file mode 100644 index 00000000..7399c20a --- /dev/null +++ b/docs/UpdateVolumePayload.md @@ -0,0 +1,9 @@ +# HyperstackApi.UpdateVolumePayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**environmentName** | **String** | The name of the target environment to move the volume to. The target environment must be in the same region as the current environment. | + + diff --git a/docs/UpdateVolumeResponse.md b/docs/UpdateVolumeResponse.md new file mode 100644 index 00000000..b08b1ab7 --- /dev/null +++ b/docs/UpdateVolumeResponse.md @@ -0,0 +1,12 @@ +# HyperstackApi.UpdateVolumeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | | [optional] +**status** | **Boolean** | | [optional] +**updates** | **Object** | Summary of fields that were updated | [optional] +**volume** | [**VolumeFields**](VolumeFields.md) | | [optional] + + diff --git a/docs/UserApi.md b/docs/UserApi.md index 5904ba7d..0be39b8b 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -4,17 +4,19 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**getFetchUserInfo**](UserApi.md#getFetchUserInfo) | **GET** /billing/user/info | GET: Fetch User Info -[**postInsertUserInfo**](UserApi.md#postInsertUserInfo) | **POST** /billing/user/info | POST: Insert user info -[**putUpdateUserInfo**](UserApi.md#putUpdateUserInfo) | **PUT** /billing/user/info | PUT: Update user info +[**addUserBillingInfo**](UserApi.md#addUserBillingInfo) | **POST** /billing/user/info | POST: Insert billing info +[**getUserBillingInfo**](UserApi.md#getUserBillingInfo) | **GET** /billing/user/info | GET: Retrieve billing info +[**updateUserBillingInfo**](UserApi.md#updateUserBillingInfo) | **PUT** /billing/user/info | PUT: Update billing info -## getFetchUserInfo +## addUserBillingInfo -> UsersInfoListResponse getFetchUserInfo() +> AddUserInfoSuccessResponseModel addUserBillingInfo(payload) -GET: Fetch User Info +POST: Insert billing info + +Add billing details associated with your user in the request body. ### Example @@ -26,14 +28,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.UserApi(); -apiInstance.getFetchUserInfo().then((data) => { +let payload = new HyperstackApi.UserInfoPostPayload(); // UserInfoPostPayload | +apiInstance.addUserBillingInfo(payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -43,27 +41,32 @@ apiInstance.getFetchUserInfo().then((data) => { ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **payload** | [**UserInfoPostPayload**](UserInfoPostPayload.md)| | ### Return type -[**UsersInfoListResponse**](UsersInfoListResponse.md) +[**AddUserInfoSuccessResponseModel**](AddUserInfoSuccessResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## postInsertUserInfo +## getUserBillingInfo + +> UsersInfoListResponse getUserBillingInfo() -> AddUserInfoSuccessResponseModel postInsertUserInfo(payload) +GET: Retrieve billing info -POST: Insert user info +Retrieve the billing details associated with your user. ### Example @@ -75,15 +78,9 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.UserApi(); -let payload = new HyperstackApi.Userinfopostpayload(); // Userinfopostpayload | -apiInstance.postInsertUserInfo(payload).then((data) => { +apiInstance.getUserBillingInfo().then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -93,30 +90,29 @@ apiInstance.postInsertUserInfo(payload).then((data) => { ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **payload** | [**Userinfopostpayload**](Userinfopostpayload.md)| | +This endpoint does not need any parameter. ### Return type -[**AddUserInfoSuccessResponseModel**](AddUserInfoSuccessResponseModel.md) +[**UsersInfoListResponse**](UsersInfoListResponse.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## putUpdateUserInfo +## updateUserBillingInfo -> AddUserInfoSuccessResponseModel putUpdateUserInfo(payload) +> AddUserInfoSuccessResponseModel updateUserBillingInfo(payload) -PUT: Update user info +PUT: Update billing info + +Update the billing information for your user in the request body. ### Example @@ -128,15 +124,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.UserApi(); -let payload = new HyperstackApi.Userinfopostpayload(); // Userinfopostpayload | -apiInstance.putUpdateUserInfo(payload).then((data) => { +let payload = new HyperstackApi.UserInfoPostPayload(); // UserInfoPostPayload | +apiInstance.updateUserBillingInfo(payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -149,7 +140,7 @@ apiInstance.putUpdateUserInfo(payload).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **payload** | [**Userinfopostpayload**](Userinfopostpayload.md)| | + **payload** | [**UserInfoPostPayload**](UserInfoPostPayload.md)| | ### Return type @@ -157,7 +148,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/UserDetailChoiceApi.md b/docs/UserDetailChoiceApi.md index cb93b96f..e47cce7f 100644 --- a/docs/UserDetailChoiceApi.md +++ b/docs/UserDetailChoiceApi.md @@ -4,17 +4,17 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**retrieveDefaultFlavorsAndImages**](UserDetailChoiceApi.md#retrieveDefaultFlavorsAndImages) | **GET** /core/user/resources/defaults | Retrieve Default Flavors and Images +[**listDefaultFlavorsAndImages**](UserDetailChoiceApi.md#listDefaultFlavorsAndImages) | **GET** /core/user/resources/defaults | Retrieve Default Flavors and Images -## retrieveDefaultFlavorsAndImages +## listDefaultFlavorsAndImages -> UserDefaultChoicesForUserResponse retrieveDefaultFlavorsAndImages() +> UserDefaultChoicesForUserResponse listDefaultFlavorsAndImages() 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. ### Example @@ -26,14 +26,9 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.UserDetailChoiceApi(); -apiInstance.retrieveDefaultFlavorsAndImages().then((data) => { +apiInstance.listDefaultFlavorsAndImages().then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -51,7 +46,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/UserInfoPostPayload.md b/docs/UserInfoPostPayload.md new file mode 100644 index 00000000..59772ff2 --- /dev/null +++ b/docs/UserInfoPostPayload.md @@ -0,0 +1,19 @@ +# HyperstackApi.UserInfoPostPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingAddress1** | **String** | | [optional] +**billingAddress2** | **String** | | [optional] +**business** | **Boolean** | | +**companyName** | **String** | | [optional] +**country** | **String** | | +**email** | **String** | | [optional] +**name** | **String** | | [optional] +**phone** | **String** | | [optional] +**state** | **String** | | [optional] +**vatNumber** | **String** | | [optional] +**zipCode** | **String** | | + + diff --git a/docs/UserOrganizationsResponse.md b/docs/UserOrganizationsResponse.md new file mode 100644 index 00000000..d9fff280 --- /dev/null +++ b/docs/UserOrganizationsResponse.md @@ -0,0 +1,9 @@ +# HyperstackApi.UserOrganizationsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organizations** | [**[OrganizationFields]**](OrganizationFields.md) | | [optional] + + diff --git a/docs/UserPermissionApi.md b/docs/UserPermissionApi.md index 7a6bce19..c36a1c1c 100644 --- a/docs/UserPermissionApi.md +++ b/docs/UserPermissionApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description 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). ### Example @@ -27,11 +27,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.UserPermissionApi(); apiInstance.listMyUserPermissions().then((data) => { @@ -52,7 +47,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -66,7 +61,7 @@ This endpoint does not need any parameter. 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). ### Example @@ -78,11 +73,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.UserPermissionApi(); let id = 56; // Number | @@ -107,7 +97,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/UserTransferPayload.md b/docs/UserTransferPayload.md deleted file mode 100644 index 2017e752..00000000 --- a/docs/UserTransferPayload.md +++ /dev/null @@ -1,10 +0,0 @@ -# HyperstackApi.UserTransferPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**orgId** | **Number** | | -**role** | **String** | | - - diff --git a/docs/Userinfopostpayload.md b/docs/Userinfopostpayload.md deleted file mode 100644 index 6a648c5e..00000000 --- a/docs/Userinfopostpayload.md +++ /dev/null @@ -1,19 +0,0 @@ -# HyperstackApi.Userinfopostpayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**billingAddress1** | **String** | | [optional] -**billingAddress2** | **String** | | [optional] -**business** | **Boolean** | | -**companyName** | **String** | | [optional] -**country** | **String** | | -**email** | **String** | | [optional] -**name** | **String** | | [optional] -**phone** | **String** | | [optional] -**state** | **String** | | [optional] -**vatNumber** | **String** | | [optional] -**zipCode** | **String** | | - - diff --git a/docs/UsersInfoFields.md b/docs/UsersInfoFields.md index 76745db5..94809f5c 100644 --- a/docs/UsersInfoFields.md +++ b/docs/UsersInfoFields.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **organizationId** | **Number** | | [optional] **phone** | **String** | | [optional] **state** | **String** | | [optional] +**stripeUserId** | **String** | | [optional] **vatNumber** | **String** | | [optional] **zipCode** | **String** | | [optional] diff --git a/docs/VMQuota.md b/docs/VMQuota.md new file mode 100644 index 00000000..a4d8b489 --- /dev/null +++ b/docs/VMQuota.md @@ -0,0 +1,15 @@ +# HyperstackApi.VMQuota + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**availableVms** | **Number** | | [optional] +**cidr** | **String** | | [optional] +**currentVms** | **Number** | | [optional] +**maxVms** | **Number** | | [optional] +**message** | **String** | | [optional] +**percentageUsed** | **Number** | | [optional] +**status** | **Boolean** | | [optional] + + diff --git a/docs/VMUsageRequestPayload.md b/docs/VMUsageRequestPayload.md deleted file mode 100644 index 3164419a..00000000 --- a/docs/VMUsageRequestPayload.md +++ /dev/null @@ -1,9 +0,0 @@ -# HyperstackApi.VMUsageRequestPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**vmIds** | **[Number]** | List of virtual machine IDs | - - diff --git a/docs/VMUsageResponse.md b/docs/VMUsageResponse.md deleted file mode 100644 index c777a269..00000000 --- a/docs/VMUsageResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.VMUsageResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | [optional] -**orgId** | **Number** | | [optional] -**status** | **Boolean** | | [optional] -**virtualMachines** | [**[VirtualMachineUsage]**](VirtualMachineUsage.md) | | [optional] - - diff --git a/docs/VerifyApiKeyPayload.md b/docs/VerifyApiKeyPayload.md deleted file mode 100644 index dedffb8b..00000000 --- a/docs/VerifyApiKeyPayload.md +++ /dev/null @@ -1,9 +0,0 @@ -# HyperstackApi.VerifyApiKeyPayload - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiKey** | **String** | The direction of traffic that the firewall rule applies to. | - - diff --git a/docs/VerifyApiKeyResponseModel.md b/docs/VerifyApiKeyResponseModel.md deleted file mode 100644 index e751841f..00000000 --- a/docs/VerifyApiKeyResponseModel.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.VerifyApiKeyResponseModel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiKey** | [**ApiKeyVerifyFields**](ApiKeyVerifyFields.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] - - diff --git a/docs/VirtualMachineApi.md b/docs/VirtualMachineApi.md index a9d57581..2df47324 100644 --- a/docs/VirtualMachineApi.md +++ b/docs/VirtualMachineApi.md @@ -4,34 +4,36 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**addFirewallRuleToVirtualMachine**](VirtualMachineApi.md#addFirewallRuleToVirtualMachine) | **POST** /core/virtual-machines/{id}/sg-rules | Add firewall rule to virtual machine -[**attachFirewallsToAVirtualMachine**](VirtualMachineApi.md#attachFirewallsToAVirtualMachine) | **POST** /core/virtual-machines/{vm_id}/attach-firewalls | Attach firewalls to a virtual machine -[**createSnapshotFromAVirtualMachine**](VirtualMachineApi.md#createSnapshotFromAVirtualMachine) | **POST** /core/virtual-machines/{vm_id}/snapshots | Create snapshot from a virtual machine -[**createVirtualMachines**](VirtualMachineApi.md#createVirtualMachines) | **POST** /core/virtual-machines | Create virtual machines -[**deleteFirewallRuleFromVirtualMachine**](VirtualMachineApi.md#deleteFirewallRuleFromVirtualMachine) | **DELETE** /core/virtual-machines/{virtual_machine_id}/sg-rules/{sg_rule_id} | Delete firewall rule from virtual machine -[**deleteVirtualMachine**](VirtualMachineApi.md#deleteVirtualMachine) | **DELETE** /core/virtual-machines/{id} | Delete virtual machine -[**editVirtualMachineLabels**](VirtualMachineApi.md#editVirtualMachineLabels) | **PUT** /core/virtual-machines/{virtual_machine_id}/label | Edit virtual machine labels -[**fetchVirtualMachineNameAvailability**](VirtualMachineApi.md#fetchVirtualMachineNameAvailability) | **GET** /core/virtual-machines/name-availability/{name} | Fetch virtual machine name availability -[**hardRebootVirtualMachine**](VirtualMachineApi.md#hardRebootVirtualMachine) | **GET** /core/virtual-machines/{id}/hard-reboot | Hard reboot virtual machine -[**hibernateVirtualMachine**](VirtualMachineApi.md#hibernateVirtualMachine) | **GET** /core/virtual-machines/{virtual_machine_id}/hibernate | Hibernate virtual machine -[**listVirtualMachines**](VirtualMachineApi.md#listVirtualMachines) | **GET** /core/virtual-machines | List virtual machines -[**resizeVirtualMachine**](VirtualMachineApi.md#resizeVirtualMachine) | **POST** /core/virtual-machines/{virtual_machine_id}/resize | Resize virtual machine -[**restoreVirtualMachineFromHibernation**](VirtualMachineApi.md#restoreVirtualMachineFromHibernation) | **GET** /core/virtual-machines/{virtual_machine_id}/hibernate-restore | Restore virtual machine from hibernation -[**retrieveVirtualMachineDetails**](VirtualMachineApi.md#retrieveVirtualMachineDetails) | **GET** /core/virtual-machines/{id} | Retrieve virtual machine details -[**retrieveVirtualMachinePerformanceMetrics**](VirtualMachineApi.md#retrieveVirtualMachinePerformanceMetrics) | **GET** /core/virtual-machines/{virtual_machine_id}/metrics | Retrieve virtual machine performance metrics -[**retrieveVirtualMachinesAssociatedWithAContract**](VirtualMachineApi.md#retrieveVirtualMachinesAssociatedWithAContract) | **GET** /core/virtual-machines/contract/{contract_id}/virtual-machines | Retrieve virtual machines associated with a contract -[**startVirtualMachine**](VirtualMachineApi.md#startVirtualMachine) | **GET** /core/virtual-machines/{id}/start | Start virtual machine -[**stopVirtualMachine**](VirtualMachineApi.md#stopVirtualMachine) | **GET** /core/virtual-machines/{id}/stop | Stop virtual machine - - - -## addFirewallRuleToVirtualMachine - -> SecurityGroupRule addFirewallRuleToVirtualMachine(id, payload) +[**addVMLabel**](VirtualMachineApi.md#addVMLabel) | **PUT** /core/virtual-machines/{vm_id}/label | Edit virtual machine labels +[**attachFirewallsToVM**](VirtualMachineApi.md#attachFirewallsToVM) | **POST** /core/virtual-machines/{vm_id}/attach-firewalls | Attach firewalls to a virtual machine +[**checkVMNameAvailability**](VirtualMachineApi.md#checkVMNameAvailability) | **GET** /core/virtual-machines/name-availability/{name} | Fetch virtual machine name availability +[**createFirewallRuleForVM**](VirtualMachineApi.md#createFirewallRuleForVM) | **POST** /core/virtual-machines/{vm_id}/sg-rules | Add firewall rule to virtual machine +[**createSnapshotForVM**](VirtualMachineApi.md#createSnapshotForVM) | **POST** /core/virtual-machines/{vm_id}/snapshots | Create snapshot from a virtual machine +[**createVMs**](VirtualMachineApi.md#createVMs) | **POST** /core/virtual-machines | Create virtual machines +[**deleteFirewallRuleForVM**](VirtualMachineApi.md#deleteFirewallRuleForVM) | **DELETE** /core/virtual-machines/{vm_id}/sg-rules/{sg_rule_id} | Delete firewall rule from virtual machine +[**deleteVM**](VirtualMachineApi.md#deleteVM) | **DELETE** /core/virtual-machines/{vm_id} | Delete virtual machine +[**getContractVMs**](VirtualMachineApi.md#getContractVMs) | **GET** /core/virtual-machines/contract/{contract_id}/virtual-machines | Retrieve virtual machines associated with a contract +[**getVM**](VirtualMachineApi.md#getVM) | **GET** /core/virtual-machines/{vm_id} | Retrieve virtual machine details +[**getVMLogs**](VirtualMachineApi.md#getVMLogs) | **GET** /core/virtual-machines/{vm_id}/logs | Get virtual machine logs +[**getVMMetrics**](VirtualMachineApi.md#getVMMetrics) | **GET** /core/virtual-machines/{vm_id}/metrics | Retrieve virtual machine performance metrics +[**hardRebootVM**](VirtualMachineApi.md#hardRebootVM) | **GET** /core/virtual-machines/{vm_id}/hard-reboot | Hard reboot virtual machine +[**hibernateVM**](VirtualMachineApi.md#hibernateVM) | **GET** /core/virtual-machines/{vm_id}/hibernate | Hibernate virtual machine +[**listVMs**](VirtualMachineApi.md#listVMs) | **GET** /core/virtual-machines | List virtual machines +[**requestVMLogs**](VirtualMachineApi.md#requestVMLogs) | **POST** /core/virtual-machines/{vm_id}/logs | Request virtual machine logs +[**resizeVM**](VirtualMachineApi.md#resizeVM) | **POST** /core/virtual-machines/{vm_id}/resize | Resize virtual machine +[**restoreVMFromHibernation**](VirtualMachineApi.md#restoreVMFromHibernation) | **GET** /core/virtual-machines/{vm_id}/hibernate-restore | Restore virtual machine from hibernation +[**startVM**](VirtualMachineApi.md#startVM) | **GET** /core/virtual-machines/{vm_id}/start | Start virtual machine +[**stopVM**](VirtualMachineApi.md#stopVM) | **GET** /core/virtual-machines/{vm_id}/stop | Stop virtual machine + + + +## addVMLabel + +> ResponseModel addVMLabel(vmId, payload) -Add firewall rule to virtual machine +Edit virtual machine labels -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). +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. ### Example @@ -43,16 +45,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); -let id = 56; // Number | -let payload = new HyperstackApi.CreateSecurityRulePayload(); // CreateSecurityRulePayload | -apiInstance.addFirewallRuleToVirtualMachine(id, payload).then((data) => { +let vmId = 56; // Number | +let payload = new HyperstackApi.EditLabelOfAnExistingVMPayload(); // EditLabelOfAnExistingVMPayload | +apiInstance.addVMLabel(vmId, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -65,16 +62,16 @@ apiInstance.addFirewallRuleToVirtualMachine(id, payload).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | - **payload** | [**CreateSecurityRulePayload**](CreateSecurityRulePayload.md)| | + **vmId** | **Number**| | + **payload** | [**EditLabelOfAnExistingVMPayload**](EditLabelOfAnExistingVMPayload.md)| | ### Return type -[**SecurityGroupRule**](SecurityGroupRule.md) +[**ResponseModel**](ResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -82,9 +79,9 @@ Name | Type | Description | Notes - **Accept**: application/json -## attachFirewallsToAVirtualMachine +## attachFirewallsToVM -> ResponseModel attachFirewallsToAVirtualMachine(vmId, payload) +> ResponseModel attachFirewallsToVM(vmId, payload) Attach firewalls to a virtual machine @@ -100,16 +97,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); let vmId = 56; // Number | let payload = new HyperstackApi.AttachFirewallsToVMPayload(); // AttachFirewallsToVMPayload | -apiInstance.attachFirewallsToAVirtualMachine(vmId, payload).then((data) => { +apiInstance.attachFirewallsToVM(vmId, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -131,7 +123,113 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## checkVMNameAvailability + +> NameAvailableModel checkVMNameAvailability(name, opts) + +Fetch virtual machine name availability + +Check if a Virtual Machine name is available + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.VirtualMachineApi(); +let name = "name_example"; // String | +let opts = { + 'count': "count_example" // String | Nr of instances to handle (optional, default: 1) +}; +apiInstance.checkVMNameAvailability(name, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **String**| | + **count** | **String**| Nr of instances to handle (optional, default: 1) | [optional] + +### Return type + +[**NameAvailableModel**](NameAvailableModel.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## createFirewallRuleForVM + +> SecurityGroupRule createFirewallRuleForVM(vmId, payload) + +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). + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.VirtualMachineApi(); +let vmId = 56; // Number | +let payload = new HyperstackApi.CreateSecurityRulePayload(); // CreateSecurityRulePayload | +apiInstance.createFirewallRuleForVM(vmId, payload).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **vmId** | **Number**| | + **payload** | [**CreateSecurityRulePayload**](CreateSecurityRulePayload.md)| | + +### Return type + +[**SecurityGroupRule**](SecurityGroupRule.md) + +### Authorization + +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -139,9 +237,9 @@ Name | Type | Description | Notes - **Accept**: application/json -## createSnapshotFromAVirtualMachine +## createSnapshotForVM -> CreateSnapshotResponse createSnapshotFromAVirtualMachine(vmId, payload) +> CreateSnapshotResponse createSnapshotForVM(vmId, payload) Create snapshot from a virtual machine @@ -157,16 +255,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); let vmId = 56; // Number | let payload = new HyperstackApi.CreateSnapshotPayload(); // CreateSnapshotPayload | -apiInstance.createSnapshotFromAVirtualMachine(vmId, payload).then((data) => { +apiInstance.createSnapshotForVM(vmId, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -188,7 +281,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -196,13 +289,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## createVirtualMachines +## createVMs -> CreateInstancesResponse createVirtualMachines(payload) +> CreateInstancesResponse createVMs(payload) 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). ### Example @@ -214,15 +307,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); let payload = new HyperstackApi.CreateInstancesPayload(); // CreateInstancesPayload | -apiInstance.createVirtualMachines(payload).then((data) => { +apiInstance.createVMs(payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -243,7 +331,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -251,9 +339,9 @@ Name | Type | Description | Notes - **Accept**: application/json -## deleteFirewallRuleFromVirtualMachine +## deleteFirewallRuleForVM -> ResponseModel deleteFirewallRuleFromVirtualMachine(virtualMachineId, sgRuleId) +> ResponseModel deleteFirewallRuleForVM(vmId, sgRuleId) Delete firewall rule from virtual machine @@ -269,16 +357,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); -let virtualMachineId = 56; // Number | +let vmId = 56; // Number | let sgRuleId = 56; // Number | -apiInstance.deleteFirewallRuleFromVirtualMachine(virtualMachineId, sgRuleId).then((data) => { +apiInstance.deleteFirewallRuleForVM(vmId, sgRuleId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -291,7 +374,7 @@ apiInstance.deleteFirewallRuleFromVirtualMachine(virtualMachineId, sgRuleId).the Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **virtualMachineId** | **Number**| | + **vmId** | **Number**| | **sgRuleId** | **Number**| | ### Return type @@ -300,7 +383,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -308,9 +391,9 @@ Name | Type | Description | Notes - **Accept**: application/json -## deleteVirtualMachine +## deleteVM -> ResponseModel deleteVirtualMachine(id) +> ResponseModel deleteVM(vmId) Delete virtual machine @@ -326,15 +409,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); -let id = 56; // Number | -apiInstance.deleteVirtualMachine(id).then((data) => { +let vmId = 56; // Number | +apiInstance.deleteVM(vmId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -347,7 +425,7 @@ apiInstance.deleteVirtualMachine(id).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **vmId** | **Number**| | ### Return type @@ -355,7 +433,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -363,13 +441,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## editVirtualMachineLabels +## getContractVMs -> ResponseModel editVirtualMachineLabels(virtualMachineId, payload) +> ContractInstancesResponse getContractVMs(contractId, opts) -Edit virtual machine labels +Retrieve virtual machines associated with a contract -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. +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. ### Example @@ -381,16 +459,15 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); -let virtualMachineId = 56; // Number | -let payload = new HyperstackApi.EditlabelofanexistingVMPayload(); // EditlabelofanexistingVMPayload | -apiInstance.editVirtualMachineLabels(virtualMachineId, payload).then((data) => { +let contractId = 56; // Number | +let opts = { + 'page': "page_example", // String | Page Number + 'pageSize': "pageSize_example", // String | Data Per Page + 'search': "search_example" // String | Search By Instance ID or Name +}; +apiInstance.getContractVMs(contractId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -403,30 +480,32 @@ apiInstance.editVirtualMachineLabels(virtualMachineId, payload).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **virtualMachineId** | **Number**| | - **payload** | [**EditlabelofanexistingVMPayload**](EditlabelofanexistingVMPayload.md)| | + **contractId** | **Number**| | + **page** | **String**| Page Number | [optional] + **pageSize** | **String**| Data Per Page | [optional] + **search** | **String**| Search By Instance ID or Name | [optional] ### Return type -[**ResponseModel**](ResponseModel.md) +[**ContractInstancesResponse**](ContractInstancesResponse.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## fetchVirtualMachineNameAvailability +## getVM -> NameAvailableModel fetchVirtualMachineNameAvailability(name) +> Instance getVM(vmId) -Fetch virtual machine name availability +Retrieve virtual machine details -Check if a Virtual Machine name is available +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. ### Example @@ -438,15 +517,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); -let name = "name_example"; // String | -apiInstance.fetchVirtualMachineNameAvailability(name).then((data) => { +let vmId = 56; // Number | +apiInstance.getVM(vmId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -459,15 +533,15 @@ apiInstance.fetchVirtualMachineNameAvailability(name).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| | + **vmId** | **Number**| | ### Return type -[**NameAvailableModel**](NameAvailableModel.md) +[**Instance**](Instance.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -475,13 +549,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## hardRebootVirtualMachine +## getVMLogs -> ResponseModel hardRebootVirtualMachine(id) +> GetInstanceLogsResponse getVMLogs(vmId, requestId) -Hard reboot virtual machine +Get virtual machine logs -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. +Retrieve console logs for a virtual machine ### Example @@ -493,15 +567,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); -let id = 56; // Number | -apiInstance.hardRebootVirtualMachine(id).then((data) => { +let vmId = 56; // Number | +let requestId = 56; // Number | +apiInstance.getVMLogs(vmId, requestId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -514,15 +584,16 @@ apiInstance.hardRebootVirtualMachine(id).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **vmId** | **Number**| | + **requestId** | **Number**| | ### Return type -[**ResponseModel**](ResponseModel.md) +[**GetInstanceLogsResponse**](GetInstanceLogsResponse.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -530,13 +601,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## hibernateVirtualMachine +## getVMMetrics -> ResponseModel hibernateVirtualMachine(virtualMachineId) +> MetricsFields getVMMetrics(vmId, opts) -Hibernate virtual machine +Retrieve virtual machine performance metrics -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. +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). ### Example @@ -548,15 +619,13 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); -let virtualMachineId = 56; // Number | -apiInstance.hibernateVirtualMachine(virtualMachineId).then((data) => { +let vmId = 56; // Number | +let opts = { + 'duration': "duration_example" // String | +}; +apiInstance.getVMMetrics(vmId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -569,15 +638,16 @@ apiInstance.hibernateVirtualMachine(virtualMachineId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **virtualMachineId** | **Number**| | + **vmId** | **Number**| | + **duration** | **String**| | [optional] ### Return type -[**ResponseModel**](ResponseModel.md) +[**MetricsFields**](MetricsFields.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -585,13 +655,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## listVirtualMachines +## hardRebootVM -> Instances listVirtualMachines(opts) +> ResponseModel hardRebootVM(vmId) -List virtual machines +Hard reboot virtual machine -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. +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. ### Example @@ -603,20 +673,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); -let opts = { - 'page': "page_example", // String | Page Number - 'pageSize': "pageSize_example", // String | Data Per Page - 'search': "search_example", // String | - 'environment': "environment_example" // String | Filter Environment ID or Name -}; -apiInstance.listVirtualMachines(opts).then((data) => { +let vmId = 56; // Number | +apiInstance.hardRebootVM(vmId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -629,18 +689,15 @@ apiInstance.listVirtualMachines(opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **page** | **String**| Page Number | [optional] - **pageSize** | **String**| Data Per Page | [optional] - **search** | **String**| | [optional] - **environment** | **String**| Filter Environment ID or Name | [optional] + **vmId** | **Number**| | ### Return type -[**Instances**](Instances.md) +[**ResponseModel**](ResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -648,13 +705,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## resizeVirtualMachine +## hibernateVM -> ResponseModel resizeVirtualMachine(virtualMachineId, payload) +> ResponseModel hibernateVM(vmId, opts) -Resize virtual machine +Hibernate 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). +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. ### Example @@ -666,16 +723,13 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); -let virtualMachineId = 56; // Number | -let payload = new HyperstackApi.InstanceResizePayload(); // InstanceResizePayload | -apiInstance.resizeVirtualMachine(virtualMachineId, payload).then((data) => { +let vmId = 56; // Number | +let opts = { + 'retainIp': "retainIp_example" // String | false +}; +apiInstance.hibernateVM(vmId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -688,8 +742,8 @@ apiInstance.resizeVirtualMachine(virtualMachineId, payload).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **virtualMachineId** | **Number**| | - **payload** | [**InstanceResizePayload**](InstanceResizePayload.md)| | + **vmId** | **Number**| | + **retainIp** | **String**| false | [optional] ### Return type @@ -697,21 +751,21 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## restoreVirtualMachineFromHibernation +## listVMs -> ResponseModel restoreVirtualMachineFromHibernation(virtualMachineId) +> Instances listVMs(opts) -Restore virtual machine from hibernation +List virtual machines -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. +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. ### Example @@ -723,15 +777,17 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); -let virtualMachineId = 56; // Number | -apiInstance.restoreVirtualMachineFromHibernation(virtualMachineId).then((data) => { +let opts = { + 'page': 56, // Number | + 'pageSize': 56, // Number | + 'search': "search_example", // String | + 'environment': "environment_example", // String | + 'excludeFirewalls': [null], // [Number] | Comma-separated list of Security Group IDs to ignore instances attached + 'exactEnvironmentMatch': false // Boolean | Flag to filter environment by exact match instead of partial match +}; +apiInstance.listVMs(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -744,15 +800,20 @@ apiInstance.restoreVirtualMachineFromHibernation(virtualMachineId).then((data) = Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **virtualMachineId** | **Number**| | + **page** | **Number**| | [optional] + **pageSize** | **Number**| | [optional] + **search** | **String**| | [optional] + **environment** | **String**| | [optional] + **excludeFirewalls** | [**[Number]**](Number.md)| Comma-separated list of Security Group IDs to ignore instances attached | [optional] + **exactEnvironmentMatch** | **Boolean**| Flag to filter environment by exact match instead of partial match | [optional] [default to false] ### Return type -[**ResponseModel**](ResponseModel.md) +[**Instances**](Instances.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -760,13 +821,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## retrieveVirtualMachineDetails +## requestVMLogs -> Instance retrieveVirtualMachineDetails(id) +> RequestInstanceLogsResponse requestVMLogs(vmId, payload) -Retrieve virtual machine details +Request virtual machine logs -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. +Request console logs for a virtual machine ### Example @@ -778,15 +839,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); -let id = 56; // Number | -apiInstance.retrieveVirtualMachineDetails(id).then((data) => { +let vmId = 56; // Number | +let payload = new HyperstackApi.RequestInstanceLogsPayload(); // RequestInstanceLogsPayload | +apiInstance.requestVMLogs(vmId, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -799,29 +856,30 @@ apiInstance.retrieveVirtualMachineDetails(id).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **vmId** | **Number**| | + **payload** | [**RequestInstanceLogsPayload**](RequestInstanceLogsPayload.md)| | ### Return type -[**Instance**](Instance.md) +[**RequestInstanceLogsResponse**](RequestInstanceLogsResponse.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## retrieveVirtualMachinePerformanceMetrics +## resizeVM -> MetricsFields retrieveVirtualMachinePerformanceMetrics(virtualMachineId, opts) +> ResponseModel resizeVM(vmId, payload) -Retrieve virtual machine performance metrics +Resize virtual machine -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). +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). ### Example @@ -833,18 +891,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); -let virtualMachineId = 56; // Number | -let opts = { - 'duration': "duration_example" // String | -}; -apiInstance.retrieveVirtualMachinePerformanceMetrics(virtualMachineId, opts).then((data) => { +let vmId = 56; // Number | +let payload = new HyperstackApi.InstanceResizePayload(); // InstanceResizePayload | +apiInstance.resizeVM(vmId, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -857,30 +908,30 @@ apiInstance.retrieveVirtualMachinePerformanceMetrics(virtualMachineId, opts).the Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **virtualMachineId** | **Number**| | - **duration** | **String**| | [optional] + **vmId** | **Number**| | + **payload** | [**InstanceResizePayload**](InstanceResizePayload.md)| | ### Return type -[**MetricsFields**](MetricsFields.md) +[**ResponseModel**](ResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## retrieveVirtualMachinesAssociatedWithAContract +## restoreVMFromHibernation -> ContractInstancesResponse retrieveVirtualMachinesAssociatedWithAContract(contractId, opts) +> ResponseModel restoreVMFromHibernation(vmId) -Retrieve virtual machines associated with a contract +Restore virtual machine from hibernation -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. +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. ### Example @@ -892,20 +943,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); -let contractId = 56; // Number | -let opts = { - 'page': "page_example", // String | Page Number - 'pageSize': "pageSize_example", // String | Data Per Page - 'search': "search_example" // String | Search By Instance ID or Name -}; -apiInstance.retrieveVirtualMachinesAssociatedWithAContract(contractId, opts).then((data) => { +let vmId = 56; // Number | +apiInstance.restoreVMFromHibernation(vmId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -918,18 +959,15 @@ apiInstance.retrieveVirtualMachinesAssociatedWithAContract(contractId, opts).the Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **contractId** | **Number**| | - **page** | **String**| Page Number | [optional] - **pageSize** | **String**| Data Per Page | [optional] - **search** | **String**| Search By Instance ID or Name | [optional] + **vmId** | **Number**| | ### Return type -[**ContractInstancesResponse**](ContractInstancesResponse.md) +[**ResponseModel**](ResponseModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -937,9 +975,9 @@ Name | Type | Description | Notes - **Accept**: application/json -## startVirtualMachine +## startVM -> ResponseModel startVirtualMachine(id) +> ResponseModel startVM(vmId) Start virtual machine @@ -955,15 +993,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); -let id = 56; // Number | -apiInstance.startVirtualMachine(id).then((data) => { +let vmId = 56; // Number | +apiInstance.startVM(vmId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -976,7 +1009,7 @@ apiInstance.startVirtualMachine(id).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **vmId** | **Number**| | ### Return type @@ -984,7 +1017,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -992,9 +1025,9 @@ Name | Type | Description | Notes - **Accept**: application/json -## stopVirtualMachine +## stopVM -> ResponseModel stopVirtualMachine(id) +> ResponseModel stopVM(vmId) Stop virtual machine @@ -1010,15 +1043,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineApi(); -let id = 56; // Number | -apiInstance.stopVirtualMachine(id).then((data) => { +let vmId = 56; // Number | +apiInstance.stopVM(vmId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1031,7 +1059,7 @@ apiInstance.stopVirtualMachine(id).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **vmId** | **Number**| | ### Return type @@ -1039,7 +1067,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/VirtualMachineEventsApi.md b/docs/VirtualMachineEventsApi.md index e3e7605f..77d79e17 100644 --- a/docs/VirtualMachineEventsApi.md +++ b/docs/VirtualMachineEventsApi.md @@ -4,17 +4,17 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**listVirtualMachineEvents**](VirtualMachineEventsApi.md#listVirtualMachineEvents) | **GET** /core/virtual-machines/{virtual_machine_id}/events | List virtual machine events +[**listVMEvents**](VirtualMachineEventsApi.md#listVMEvents) | **GET** /core/virtual-machines/{vm_id}/events | List virtual machine events -## listVirtualMachineEvents +## listVMEvents -> InstanceEvents listVirtualMachineEvents(virtualMachineId) +> InstanceEvents listVMEvents(vmId) 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). +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). ### Example @@ -26,15 +26,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VirtualMachineEventsApi(); -let virtualMachineId = "virtualMachineId_example"; // String | -apiInstance.listVirtualMachineEvents(virtualMachineId).then((data) => { +let vmId = 56; // Number | +apiInstance.listVMEvents(vmId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -47,7 +42,7 @@ apiInstance.listVirtualMachineEvents(virtualMachineId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **virtualMachineId** | **String**| | + **vmId** | **Number**| | ### Return type @@ -55,7 +50,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/VirtualMachineUsage.md b/docs/VirtualMachineUsage.md deleted file mode 100644 index 6b924915..00000000 --- a/docs/VirtualMachineUsage.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.VirtualMachineUsage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**name** | **String** | | [optional] -**status** | **String** | | [optional] -**totalUsageTime** | **Number** | | [optional] - - diff --git a/docs/VncUrlApi.md b/docs/VncUrlApi.md index ae2f3fbb..35dfb8a2 100644 --- a/docs/VncUrlApi.md +++ b/docs/VncUrlApi.md @@ -4,17 +4,19 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**getVncConsoleLink**](VncUrlApi.md#getVncConsoleLink) | **GET** /core/virtual-machines/{virtual_machine_id}/console/{job_id} | Get VNC Console Link -[**requestInstanceConsole**](VncUrlApi.md#requestInstanceConsole) | **GET** /core/virtual-machines/{id}/request-console | Request Instance Console +[**getVNCURL**](VncUrlApi.md#getVNCURL) | **GET** /core/virtual-machines/{vm_id}/console/{job_id} | Get VNC Console Link +[**requestVMConsole**](VncUrlApi.md#requestVMConsole) | **GET** /core/virtual-machines/{vm_id}/request-console | Request Instance Console -## getVncConsoleLink +## getVNCURL -> VNCURL getVncConsoleLink(virtualMachineId, jobId) +> VNCURL getVNCURL(vmId, jobId) Get VNC Console Link +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). + ### Example ```javascript @@ -25,16 +27,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VncUrlApi(); -let virtualMachineId = 56; // Number | +let vmId = 56; // Number | let jobId = 56; // Number | -apiInstance.getVncConsoleLink(virtualMachineId, jobId).then((data) => { +apiInstance.getVNCURL(vmId, jobId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -47,7 +44,7 @@ apiInstance.getVncConsoleLink(virtualMachineId, jobId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **virtualMachineId** | **Number**| | + **vmId** | **Number**| | **jobId** | **Number**| | ### Return type @@ -56,7 +53,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -64,12 +61,14 @@ Name | Type | Description | Notes - **Accept**: application/json -## requestInstanceConsole +## requestVMConsole -> RequestConsole requestInstanceConsole(id) +> RequestConsole requestVMConsole(vmId) Request Instance Console +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). + ### Example ```javascript @@ -80,15 +79,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VncUrlApi(); -let id = 56; // Number | -apiInstance.requestInstanceConsole(id).then((data) => { +let vmId = 56; // Number | +apiInstance.requestVMConsole(vmId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -101,7 +95,7 @@ apiInstance.requestInstanceConsole(id).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **vmId** | **Number**| | ### Return type @@ -109,7 +103,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/VolumeApi.md b/docs/VolumeApi.md index 57405a6f..db517682 100644 --- a/docs/VolumeApi.md +++ b/docs/VolumeApi.md @@ -5,11 +5,12 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**createVolume**](VolumeApi.md#createVolume) | **POST** /core/volumes | Create volume -[**deleteVolume**](VolumeApi.md#deleteVolume) | **DELETE** /core/volumes/{id} | Delete volume -[**fetchVolumeDetails**](VolumeApi.md#fetchVolumeDetails) | **GET** /core/volume/{volume_id} | Fetch Volume Details +[**deleteVolume**](VolumeApi.md#deleteVolume) | **DELETE** /core/volumes/{volume_id} | Delete volume [**fetchVolumeNameAvailability**](VolumeApi.md#fetchVolumeNameAvailability) | **GET** /core/volume/name-availability/{name} | Fetch volume name availability +[**getVolume**](VolumeApi.md#getVolume) | **GET** /core/volumes/{volume_id} | Fetch Volume Details [**listVolumeTypes**](VolumeApi.md#listVolumeTypes) | **GET** /core/volume-types | List volume types [**listVolumes**](VolumeApi.md#listVolumes) | **GET** /core/volumes | List volumes +[**updateVolume**](VolumeApi.md#updateVolume) | **PATCH** /core/volumes/{volume_id} | Update volume fields @@ -19,7 +20,7 @@ Method | HTTP request | Description 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). ### Example @@ -31,11 +32,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VolumeApi(); let payload = new HyperstackApi.CreateVolumePayload(); // CreateVolumePayload | @@ -60,7 +56,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -70,7 +66,7 @@ Name | Type | Description | Notes ## deleteVolume -> ResponseModel deleteVolume(id) +> ResponseModel deleteVolume(volumeId) Delete volume @@ -86,15 +82,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VolumeApi(); -let id = 56; // Number | -apiInstance.deleteVolume(id).then((data) => { +let volumeId = 56; // Number | +apiInstance.deleteVolume(volumeId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -107,7 +98,7 @@ apiInstance.deleteVolume(id).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **Number**| | + **volumeId** | **Number**| | ### Return type @@ -115,7 +106,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -123,13 +114,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## fetchVolumeDetails +## fetchVolumeNameAvailability -> Volumes fetchVolumeDetails(volumeId) +> NameAvailableModel fetchVolumeNameAvailability(name) -Fetch Volume Details +Fetch volume name availability -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. +Check if a Volume name is available ### Example @@ -141,15 +132,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VolumeApi(); -let volumeId = 56; // Number | -apiInstance.fetchVolumeDetails(volumeId).then((data) => { +let name = "name_example"; // String | +apiInstance.fetchVolumeNameAvailability(name).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -162,15 +148,15 @@ apiInstance.fetchVolumeDetails(volumeId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **volumeId** | **Number**| | + **name** | **String**| | ### Return type -[**Volumes**](Volumes.md) +[**NameAvailableModel**](NameAvailableModel.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -178,13 +164,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## fetchVolumeNameAvailability +## getVolume -> NameAvailableModel fetchVolumeNameAvailability(name) +> Volume getVolume(volumeId) -Fetch volume name availability +Fetch Volume Details -Check if a Volume name is available +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. ### Example @@ -196,15 +182,10 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VolumeApi(); -let name = "name_example"; // String | -apiInstance.fetchVolumeNameAvailability(name).then((data) => { +let volumeId = 56; // Number | +apiInstance.getVolume(volumeId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -217,15 +198,15 @@ apiInstance.fetchVolumeNameAvailability(name).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | **String**| | + **volumeId** | **Number**| | ### Return type -[**NameAvailableModel**](NameAvailableModel.md) +[**Volume**](Volume.md) ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -251,11 +232,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VolumeApi(); apiInstance.listVolumeTypes().then((data) => { @@ -276,7 +252,7 @@ This endpoint does not need any parameter. ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -290,7 +266,7 @@ This endpoint does not need any parameter. 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/). ### Example @@ -302,11 +278,6 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VolumeApi(); let opts = { @@ -339,10 +310,62 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json + +## updateVolume + +> UpdateVolumeResponse updateVolume(volumeId, payload) + +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. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.VolumeApi(); +let volumeId = 56; // Number | +let payload = new HyperstackApi.UpdateVolumePayload(); // UpdateVolumePayload | +apiInstance.updateVolume(volumeId, payload).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **volumeId** | **Number**| | + **payload** | [**UpdateVolumePayload**](UpdateVolumePayload.md)| | + +### Return type + +[**UpdateVolumeResponse**](UpdateVolumeResponse.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + diff --git a/docs/VolumeAttachmentApi.md b/docs/VolumeAttachmentApi.md index 885b7b68..4bd76e45 100644 --- a/docs/VolumeAttachmentApi.md +++ b/docs/VolumeAttachmentApi.md @@ -4,18 +4,19 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**attachVolumesToVirtualMachine**](VolumeAttachmentApi.md#attachVolumesToVirtualMachine) | **POST** /core/virtual-machines/{virtual_machine_id}/attach-volumes | Attach volumes to virtual machine -[**detachVolumesFromVirtualMachine**](VolumeAttachmentApi.md#detachVolumesFromVirtualMachine) | **POST** /core/virtual-machines/{virtual_machine_id}/detach-volumes | Detach volumes from virtual machine +[**attachVolumesToVM**](VolumeAttachmentApi.md#attachVolumesToVM) | **POST** /core/virtual-machines/{vm_id}/attach-volumes | Attach volumes to virtual machine +[**detachVolumesFromVM**](VolumeAttachmentApi.md#detachVolumesFromVM) | **POST** /core/virtual-machines/{vm_id}/detach-volumes | Detach volumes from virtual machine +[**updateVolumeAttachment**](VolumeAttachmentApi.md#updateVolumeAttachment) | **PATCH** /core/volume-attachments/{volume_attachment_id} | Update a volume attachment -## attachVolumesToVirtualMachine +## attachVolumesToVM -> AttachVolumes attachVolumesToVirtualMachine(virtualMachineId, payload) +> AttachVolumes attachVolumesToVM(vmId, payload) 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). +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/). ### Example @@ -27,16 +28,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VolumeAttachmentApi(); -let virtualMachineId = 56; // Number | +let vmId = 56; // Number | let payload = new HyperstackApi.AttachVolumesPayload(); // AttachVolumesPayload | -apiInstance.attachVolumesToVirtualMachine(virtualMachineId, payload).then((data) => { +apiInstance.attachVolumesToVM(vmId, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -49,7 +45,7 @@ apiInstance.attachVolumesToVirtualMachine(virtualMachineId, payload).then((data) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **virtualMachineId** | **Number**| | + **vmId** | **Number**| | **payload** | [**AttachVolumesPayload**](AttachVolumesPayload.md)| | ### Return type @@ -58,7 +54,7 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) ### HTTP request headers @@ -66,13 +62,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## detachVolumesFromVirtualMachine +## detachVolumesFromVM -> DetachVolumes detachVolumesFromVirtualMachine(virtualMachineId, payload) +> DetachVolumes detachVolumesFromVM(vmId, payload) 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. +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. ### Example @@ -84,16 +80,11 @@ let 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 = 'Token'; -// Configure API key authorization: accessToken -let accessToken = defaultClient.authentications['accessToken']; -accessToken.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//accessToken.apiKeyPrefix = 'Token'; let apiInstance = new HyperstackApi.VolumeAttachmentApi(); -let virtualMachineId = 56; // Number | +let vmId = 56; // Number | let payload = new HyperstackApi.DetachVolumesPayload(); // DetachVolumesPayload | -apiInstance.detachVolumesFromVirtualMachine(virtualMachineId, payload).then((data) => { +apiInstance.detachVolumesFromVM(vmId, payload).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -106,7 +97,7 @@ apiInstance.detachVolumesFromVirtualMachine(virtualMachineId, payload).then((dat Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **virtualMachineId** | **Number**| | + **vmId** | **Number**| | **payload** | [**DetachVolumesPayload**](DetachVolumesPayload.md)| | ### Return type @@ -115,7 +106,57 @@ Name | Type | Description | Notes ### Authorization -[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken) +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## updateVolumeAttachment + +> AttachVolumes updateVolumeAttachment(volumeAttachmentId, payload) + +Update a volume attachment + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.VolumeAttachmentApi(); +let volumeAttachmentId = 56; // Number | +let payload = new HyperstackApi.UpdateVolumeAttachmentPayload(); // UpdateVolumeAttachmentPayload | +apiInstance.updateVolumeAttachment(volumeAttachmentId, payload).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **volumeAttachmentId** | **Number**| | + **payload** | [**UpdateVolumeAttachmentPayload**](UpdateVolumeAttachmentPayload.md)| | + +### Return type + +[**AttachVolumes**](AttachVolumes.md) + +### Authorization + +[apiKey](../README.md#apiKey) ### HTTP request headers diff --git a/docs/VolumeAttachmentFields.md b/docs/VolumeAttachmentFields.md index c026395e..7645ab60 100644 --- a/docs/VolumeAttachmentFields.md +++ b/docs/VolumeAttachmentFields.md @@ -6,7 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createdAt** | **Date** | | [optional] **device** | **String** | | [optional] +**id** | **Number** | | [optional] +**_protected** | **Boolean** | | [optional] **status** | **String** | | [optional] -**volume** | [**VolumeFieldsforInstance**](VolumeFieldsforInstance.md) | | [optional] +**volume** | [**VolumeFieldsForInstance**](VolumeFieldsForInstance.md) | | [optional] diff --git a/docs/VolumeFields.md b/docs/VolumeFields.md index 0eadaebc..2d080a9c 100644 --- a/docs/VolumeFields.md +++ b/docs/VolumeFields.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**attachments** | [**[AttachmentsFieldsForVolume]**](AttachmentsFieldsForVolume.md) | | [optional] **bootable** | **Boolean** | | [optional] **callbackUrl** | **String** | | [optional] **createdAt** | **Date** | | [optional] **description** | **String** | | [optional] -**environment** | [**EnvironmentFieldsforVolume**](EnvironmentFieldsforVolume.md) | | [optional] +**environment** | [**EnvironmentFieldsForVolume**](EnvironmentFieldsForVolume.md) | | [optional] **id** | **Number** | | [optional] **imageId** | **Number** | | [optional] **name** | **String** | | [optional] diff --git a/docs/VolumeFieldsForInstance.md b/docs/VolumeFieldsForInstance.md new file mode 100644 index 00000000..5fd6a1b2 --- /dev/null +++ b/docs/VolumeFieldsForInstance.md @@ -0,0 +1,14 @@ +# HyperstackApi.VolumeFieldsForInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bootable** | **Boolean** | | [optional] +**description** | **String** | | [optional] +**id** | **Number** | | [optional] +**name** | **String** | | [optional] +**size** | **Number** | | [optional] +**volumeType** | **String** | | [optional] + + diff --git a/docs/VolumeFieldsforInstance.md b/docs/VolumeFieldsforInstance.md deleted file mode 100644 index 413f539c..00000000 --- a/docs/VolumeFieldsforInstance.md +++ /dev/null @@ -1,14 +0,0 @@ -# HyperstackApi.VolumeFieldsforInstance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bootable** | **Boolean** | | [optional] -**description** | **String** | | [optional] -**id** | **Number** | | [optional] -**name** | **String** | | [optional] -**size** | **Number** | | [optional] -**volumeType** | **String** | | [optional] - - diff --git a/docs/VolumeStatusChangeFields.md b/docs/VolumeStatusChangeFields.md deleted file mode 100644 index 46f18023..00000000 --- a/docs/VolumeStatusChangeFields.md +++ /dev/null @@ -1,13 +0,0 @@ -# HyperstackApi.VolumeStatusChangeFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**createdAt** | **Date** | | [optional] -**currentStatus** | **String** | | [optional] -**id** | **Number** | | [optional] -**previousStatus** | **String** | | [optional] -**volumeId** | **Number** | | [optional] - - diff --git a/docs/Volumes.md b/docs/Volumes.md index 4e7f68fe..feaea6f0 100644 --- a/docs/Volumes.md +++ b/docs/Volumes.md @@ -4,8 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**count** | **Number** | | [optional] **message** | **String** | | [optional] +**page** | **Number** | | [optional] +**pageSize** | **Number** | | [optional] **status** | **Boolean** | | [optional] -**volume** | [**[VolumeFields]**](VolumeFields.md) | | [optional] +**volumes** | [**[VolumesFields]**](VolumesFields.md) | | [optional] diff --git a/docs/VolumesFields.md b/docs/VolumesFields.md new file mode 100644 index 00000000..ab0ef6dd --- /dev/null +++ b/docs/VolumesFields.md @@ -0,0 +1,21 @@ +# HyperstackApi.VolumesFields + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attachments** | [**[AttachmentsFieldsForVolume]**](AttachmentsFieldsForVolume.md) | | [optional] +**bootable** | **Boolean** | | [optional] +**callbackUrl** | **String** | | [optional] +**createdAt** | **Date** | | [optional] +**description** | **String** | | [optional] +**environment** | [**EnvironmentFieldsForVolume**](EnvironmentFieldsForVolume.md) | | [optional] +**id** | **Number** | | [optional] +**imageId** | **Number** | | [optional] +**name** | **String** | | [optional] +**size** | **Number** | | [optional] +**status** | **String** | | [optional] +**updatedAt** | **Date** | | [optional] +**volumeType** | **String** | | [optional] + + diff --git a/docs/VolumesLastStatusChangeResponse.md b/docs/VolumesLastStatusChangeResponse.md deleted file mode 100644 index a708a74c..00000000 --- a/docs/VolumesLastStatusChangeResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# HyperstackApi.VolumesLastStatusChangeResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] -**volumeStatusList** | [**[VolumeStatusChangeFields]**](VolumeStatusChangeFields.md) | | [optional] - - diff --git a/docs/Voucher.md b/docs/Voucher.md new file mode 100644 index 00000000..21dd2dd1 --- /dev/null +++ b/docs/Voucher.md @@ -0,0 +1,14 @@ +# HyperstackApi.Voucher + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | Voucher code | +**id** | **Number** | Voucher ID | +**maxRedemptionCount** | **Number** | Max redemption count for a General Voucher | [optional] +**redemptionCount** | **Number** | Current redemption count for a General Voucher | [optional] +**remainingRedemptions** | **Number** | Remaining redemptions | [optional] +**status** | **String** | Voucher status | + + diff --git a/docs/VoucherRedeemResponseSchema.md b/docs/VoucherRedeemResponseSchema.md new file mode 100644 index 00000000..f825401b --- /dev/null +++ b/docs/VoucherRedeemResponseSchema.md @@ -0,0 +1,11 @@ +# HyperstackApi.VoucherRedeemResponseSchema + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | Response message | +**status** | **Boolean** | Success status of the operation | +**voucher** | [**Voucher**](Voucher.md) | Redeemed voucher details | [optional] + + diff --git a/docs/VouchersApi.md b/docs/VouchersApi.md new file mode 100644 index 00000000..6f25e711 --- /dev/null +++ b/docs/VouchersApi.md @@ -0,0 +1,59 @@ +# HyperstackApi.VouchersApi + +All URIs are relative to *https://infrahub-api.nexgencloud.com/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**redeemAVoucher**](VouchersApi.md#redeemAVoucher) | **POST** /billing/billing/vouchers/redeem | Redeem a voucher with a voucher_code + + + +## redeemAVoucher + +> VoucherRedeemResponseSchema redeemAVoucher(payload) + +Redeem a voucher with a voucher_code + +Request to redeem a voucher with a voucher code. + +### Example + +```javascript +import HyperstackApi from '@nexgencloud/hyperstack-sdk-javascript'; +let defaultClient = HyperstackApi.ApiClient.instance; +// Configure API key authorization: apiKey +let 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 = 'Token'; + +let apiInstance = new HyperstackApi.VouchersApi(); +let payload = new HyperstackApi.RedeemVoucherPayload(); // RedeemVoucherPayload | +apiInstance.redeemAVoucher(payload).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **payload** | [**RedeemVoucherPayload**](RedeemVoucherPayload.md)| | + +### Return type + +[**VoucherRedeemResponseSchema**](VoucherRedeemResponseSchema.md) + +### Authorization + +[apiKey](../README.md#apiKey) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + diff --git a/docs/WarningMailLogFields.md b/docs/WarningMailLogFields.md deleted file mode 100644 index 1c96da44..00000000 --- a/docs/WarningMailLogFields.md +++ /dev/null @@ -1,15 +0,0 @@ -# HyperstackApi.WarningMailLogFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | **String** | | [optional] -**createdAt** | **String** | | [optional] -**id** | **Number** | | [optional] -**organizationId** | **Number** | | [optional] -**threshold** | **Number** | | [optional] -**topic** | **String** | | [optional] -**updatedAt** | **String** | | [optional] - - diff --git a/docs/WarningMailLogResponse.md b/docs/WarningMailLogResponse.md deleted file mode 100644 index 167e7f0b..00000000 --- a/docs/WarningMailLogResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# HyperstackApi.WarningMailLogResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[WarningMailLogFields]**](WarningMailLogFields.md) | | [optional] -**message** | **String** | | [optional] -**status** | **Boolean** | | [optional] -**total** | **Number** | | [optional] - - diff --git a/docs/WorkloadBillingHistoryResponse.md b/docs/WorkloadBillingHistoryResponse.md new file mode 100644 index 00000000..2760bd48 --- /dev/null +++ b/docs/WorkloadBillingHistoryResponse.md @@ -0,0 +1,11 @@ +# HyperstackApi.WorkloadBillingHistoryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**billingHistoryFineTuning** | [**BillingHistoryFineTuning**](BillingHistoryFineTuning.md) | | [optional] +**message** | **String** | | [optional] +**success** | **Boolean** | | [optional] + + diff --git a/package-lock.json b/package-lock.json index 47dcad41..dd460dc8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@nexgencloud/hyperstack-sdk-javascript", - "version": "v1.25.0-alpha", + "version": "v1.51.1-alpha", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@nexgencloud/hyperstack-sdk-javascript", - "version": "v1.25.0-alpha", + "version": "v1.51.1-alpha", "license": "MIT License", "dependencies": { "@babel/cli": "^7.0.0", @@ -37,26 +37,13 @@ "sinon": "^7.2.0" } }, - "node_modules/@ampproject/remapping": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", - "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", - "license": "Apache-2.0", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/@babel/cli": { - "version": "7.26.4", - "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.26.4.tgz", - "integrity": "sha512-+mORf3ezU3p3qr+82WvJSnQNE1GAYeoCfEv4fik6B5/2cvKZ75AX8oawWQdXtM9MmndooQj15Jr9kelRFWsuRw==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.28.6.tgz", + "integrity": "sha512-6EUNcuBbNkj08Oj4gAZ+BUU8yLCgKzgVX4gaTh09Ya2C8ICM4P+G30g4m3akRxSYAp3A/gnWchrNst7px4/nUQ==", "license": "MIT", "dependencies": { - "@jridgewell/trace-mapping": "^0.3.25", + "@jridgewell/trace-mapping": "^0.3.28", "commander": "^6.2.0", "convert-source-map": "^2.0.0", "fs-readdir-recursive": "^1.1.0", @@ -80,44 +67,44 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.26.2", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", - "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", + "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", "license": "MIT", "dependencies": { - "@babel/helper-validator-identifier": "^7.25.9", + "@babel/helper-validator-identifier": "^7.28.5", "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" + "picocolors": "^1.1.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { - "version": "7.26.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.5.tgz", - "integrity": "sha512-XvcZi1KWf88RVbF9wn8MN6tYFloU5qX8KjuF3E1PVBmJ9eypXfs4GRiJwLuTZL0iSnJUKn1BFPa5BPZZJyFzPg==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz", + "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==", "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.0.tgz", - "integrity": "sha512-i1SLeK+DzNnQ3LL/CswPCa/E5u4lh1k6IAEphON8F+cXt0t9euTshDru0q7/IqMa1PMPz5RnHuHscF8/ZJsStg==", - "license": "MIT", - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.26.0", - "@babel/generator": "^7.26.0", - "@babel/helper-compilation-targets": "^7.25.9", - "@babel/helper-module-transforms": "^7.26.0", - "@babel/helpers": "^7.26.0", - "@babel/parser": "^7.26.0", - "@babel/template": "^7.25.9", - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.26.0", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", + "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helpers": "^7.28.6", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/remapping": "^2.3.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -133,15 +120,15 @@ } }, "node_modules/@babel/generator": { - "version": "7.26.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.26.5.tgz", - "integrity": "sha512-2caSP6fN9I7HOe6nqhtft7V4g7/V/gfDsC3Ag4W7kEzzvRGKqiv0pu0HogPiZ3KaVSoNDhUws6IJjDjpfmYIXw==", + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", + "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", "license": "MIT", "dependencies": { - "@babel/parser": "^7.26.5", - "@babel/types": "^7.26.5", - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.25", + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" }, "engines": { @@ -149,26 +136,26 @@ } }, "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.9.tgz", - "integrity": "sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==", + "version": "7.27.3", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.3.tgz", + "integrity": "sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/types": "^7.25.9" + "@babel/types": "^7.27.3" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.26.5", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.26.5.tgz", - "integrity": "sha512-IXuyn5EkouFJscIDuFF5EsiSolseme1s0CZB+QxVugqJLYmKdxI1VfIBOst0SUu4rnk2Z7kqTwmoO1lp3HIfnA==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", + "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.26.5", - "@babel/helper-validator-option": "^7.25.9", + "@babel/compat-data": "^7.28.6", + "@babel/helper-validator-option": "^7.27.1", "browserslist": "^4.24.0", "lru-cache": "^5.1.1", "semver": "^6.3.1" @@ -178,18 +165,18 @@ } }, "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.9.tgz", - "integrity": "sha512-UTZQMvt0d/rSz6KI+qdu7GQze5TIajwTS++GUozlw8VBJDEOAqSXwm1WvmYEZwqdqSGQshRocPDqrt4HBZB3fQ==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.28.6.tgz", + "integrity": "sha512-dTOdvsjnG3xNT9Y0AUg1wAl38y+4Rl4sf9caSQZOXdNqVn+H+HbbJ4IyyHaIqNR6SW9oJpA/RuRjsjCw2IdIow==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "@babel/helper-member-expression-to-functions": "^7.25.9", - "@babel/helper-optimise-call-expression": "^7.25.9", - "@babel/helper-replace-supers": "^7.25.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9", - "@babel/traverse": "^7.25.9", + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-member-expression-to-functions": "^7.28.5", + "@babel/helper-optimise-call-expression": "^7.27.1", + "@babel/helper-replace-supers": "^7.28.6", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", + "@babel/traverse": "^7.28.6", "semver": "^6.3.1" }, "engines": { @@ -200,14 +187,14 @@ } }, "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.26.3", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.26.3.tgz", - "integrity": "sha512-G7ZRb40uUgdKOQqPLjfD12ZmGA54PzqDFUv2BKImnC9QIfGhIHKvVML0oN8IUiDq4iRqpq74ABpvOaerfWdong==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.28.5.tgz", + "integrity": "sha512-N1EhvLtHzOvj7QQOUCCS3NrPJP8c5W6ZXCHDn7Yialuy1iu4r5EmIYkXlKNqT99Ciw+W0mDqWoR6HWMZlFP3hw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "regexpu-core": "^6.2.0", + "@babel/helper-annotate-as-pure": "^7.27.3", + "regexpu-core": "^6.3.1", "semver": "^6.3.1" }, "engines": { @@ -218,58 +205,67 @@ } }, "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.3.tgz", - "integrity": "sha512-HK7Bi+Hj6H+VTHA3ZvBis7V/6hu9QuTrnMXNybfUf2iiuU/N97I8VjB+KbhFF8Rld/Lx5MzoCwPCpPjfK+n8Cg==", + "version": "0.6.8", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.8.tgz", + "integrity": "sha512-47UwBLPpQi1NoWzLuHNjRoHlYXMwIJoBf7MFou6viC/sIHWYygpvr0B6IAyh5sBdA2nr2LPIRww8lfaUVQINBA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-compilation-targets": "^7.22.6", - "@babel/helper-plugin-utils": "^7.22.5", - "debug": "^4.1.1", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "debug": "^4.4.3", "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2" + "resolve": "^1.22.11" }, "peerDependencies": { "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.9.tgz", - "integrity": "sha512-wbfdZ9w5vk0C0oyHqAJbc62+vet5prjj01jjJ8sKn3j9h3MQQlflEdXYvuqRWjHnM12coDEqiC1IRCi0U/EKwQ==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.28.5.tgz", + "integrity": "sha512-cwM7SBRZcPCLgl8a7cY0soT1SptSzAlMH39vwiRpOQkJlh53r5hdHwLSCZpQdVLT39sZt+CRpNwYG4Y2v77atg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.25.9" + "@babel/traverse": "^7.28.5", + "@babel/types": "^7.28.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-imports": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", - "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", + "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", "license": "MIT", "dependencies": { - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.25.9" + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz", - "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", + "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", "license": "MIT", "dependencies": { - "@babel/helper-module-imports": "^7.25.9", - "@babel/helper-validator-identifier": "^7.25.9", - "@babel/traverse": "^7.25.9" + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -279,22 +275,22 @@ } }, "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.25.9.tgz", - "integrity": "sha512-FIpuNaz5ow8VyrYcnXQTDRGvV6tTjkNtCK/RYNDXGSLlUD6cBuQTSw43CShGxjvfBTfcUA/r6UhUCbtYqkhcuQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.27.1.tgz", + "integrity": "sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/types": "^7.25.9" + "@babel/types": "^7.27.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.26.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz", - "integrity": "sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz", + "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==", "dev": true, "license": "MIT", "engines": { @@ -302,15 +298,15 @@ } }, "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.25.9.tgz", - "integrity": "sha512-IZtukuUeBbhgOcaW2s06OXTzVNJR0ybm4W5xC1opWFFJMZbwRj5LCk+ByYH7WdZPZTt8KnFwA8pvjN2yqcPlgw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.27.1.tgz", + "integrity": "sha512-7fiA521aVw8lSPeI4ZOD3vRFkoqkJcS+z4hFo82bFSH/2tNd6eJ5qCVMS5OzDmZh/kaHQeBaeyxK6wljcPtveA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "@babel/helper-wrap-function": "^7.25.9", - "@babel/traverse": "^7.25.9" + "@babel/helper-annotate-as-pure": "^7.27.1", + "@babel/helper-wrap-function": "^7.27.1", + "@babel/traverse": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -320,15 +316,15 @@ } }, "node_modules/@babel/helper-replace-supers": { - "version": "7.26.5", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.26.5.tgz", - "integrity": "sha512-bJ6iIVdYX1YooY2X7w1q6VITt+LnUILtNk7zT78ykuwStx8BauCzxvFqFaHjOpW1bVnSUM1PN1f0p5P21wHxvg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.28.6.tgz", + "integrity": "sha512-mq8e+laIk94/yFec3DxSjCRD2Z0TAjhVbEJY3UQrlwVo15Lmt7C2wAUbK4bjnTs4APkwsYLTahXRraQXhb1WCg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-member-expression-to-functions": "^7.25.9", - "@babel/helper-optimise-call-expression": "^7.25.9", - "@babel/traverse": "^7.26.5" + "@babel/helper-member-expression-to-functions": "^7.28.5", + "@babel/helper-optimise-call-expression": "^7.27.1", + "@babel/traverse": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -338,81 +334,81 @@ } }, "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.25.9.tgz", - "integrity": "sha512-K4Du3BFa3gvyhzgPcntrkDgZzQaq6uozzcpGbOO1OEJaI+EJdqWIMTLgFgQf6lrfiDFo5FU+BxKepI9RmZqahA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.27.1.tgz", + "integrity": "sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.25.9" + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", - "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", - "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", - "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-wrap-function": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.25.9.tgz", - "integrity": "sha512-ETzz9UTjQSTmw39GboatdymDq4XIQbR8ySgVrylRhPOFpsd+JrKHIuF0de7GCWmem+T4uC5z7EZguod7Wj4A4g==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.28.6.tgz", + "integrity": "sha512-z+PwLziMNBeSQJonizz2AGnndLsP2DeGHIxDAn+wdHOGuo4Fo1x1HBPPXeE9TAOPHNNWQKCSlA2VZyYyyibDnQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/template": "^7.25.9", - "@babel/traverse": "^7.25.9", - "@babel/types": "^7.25.9" + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.0.tgz", - "integrity": "sha512-tbhNuIxNcVb21pInl3ZSjksLCvgdZy9KwJ8brv993QtIVKJBBkYXz4q4ZbAv31GdnC+R90np23L5FbEBlthAEw==", + "version": "7.29.2", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz", + "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==", "license": "MIT", "dependencies": { - "@babel/template": "^7.25.9", - "@babel/types": "^7.26.0" + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.26.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.5.tgz", - "integrity": "sha512-SRJ4jYmXRqV1/Xc+TIVG84WjHBXKlxO9sHQnA2Pf12QQEAp1LOh6kDzNHXcUnbH1QI0FDoPPVOt+vyUDucxpaw==", + "version": "7.29.2", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.2.tgz", + "integrity": "sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==", "license": "MIT", "dependencies": { - "@babel/types": "^7.26.5" + "@babel/types": "^7.29.0" }, "bin": { "parser": "bin/babel-parser.js" @@ -422,14 +418,14 @@ } }, "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.25.9.tgz", - "integrity": "sha512-ZkRyVkThtxQ/J6nv3JFYv1RYY+JT5BvU0y3k5bWrmuG4woXypRa4PXmm9RhOwodRkYFWqC0C0cqcJ4OqR7kW+g==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.28.5.tgz", + "integrity": "sha512-87GDMS3tsmMSi/3bWOte1UblL+YUTFMV8SZPZ2eSEL17s74Cw/l63rR6NmGVKMYW2GYi85nE+/d6Hw5N0bEk2Q==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/traverse": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.28.5" }, "engines": { "node": ">=6.9.0" @@ -439,13 +435,13 @@ } }, "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.25.9.tgz", - "integrity": "sha512-MrGRLZxLD/Zjj0gdU15dfs+HH/OXvnw/U4jJD8vpcP2CJQapPEv1IWwjc/qMg7ItBlPwSv1hRBbb7LeuANdcnw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.27.1.tgz", + "integrity": "sha512-qNeq3bCKnGgLkEXUuFry6dPlGfCdQNZbn7yUAPCInwAJHMU7THJfrBSozkcWq5sNM6RcF3S8XyQL2A52KNR9IA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -455,13 +451,13 @@ } }, "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.25.9.tgz", - "integrity": "sha512-2qUwwfAFpJLZqxd02YW9btUCZHl+RFvdDkNfZwaIJrvB8Tesjsk8pEQkTvGwZXLqXUx/2oyY3ySRhm6HOXuCug==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.27.1.tgz", + "integrity": "sha512-g4L7OYun04N1WyqMNjldFwlfPCLVkgB54A/YCXICZYBsvJJE3kByKv9c9+R/nAfmIfjl2rKYLNyMHboYbZaWaA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -471,15 +467,15 @@ } }, "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.25.9.tgz", - "integrity": "sha512-6xWgLZTJXwilVjlnV7ospI3xi+sl8lN8rXXbBD6vYn3UYDlGsag8wrZkKcSI8G6KgqKP7vNFaDgeDnfAABq61g==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.27.1.tgz", + "integrity": "sha512-oO02gcONcD5O1iTLi/6frMJBIwWEHceWGSGqrpCmEL8nogiS6J9PBlE48CaK20/Jx1LuRml9aDftLgdjXT8+Cw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9", - "@babel/plugin-transform-optional-chaining": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1", + "@babel/plugin-transform-optional-chaining": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -489,14 +485,14 @@ } }, "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.25.9.tgz", - "integrity": "sha512-aLnMXYPnzwwqhYSCyXfKkIkYgJ8zv9RK+roo9DkTXz38ynIhd9XCbN08s3MGvqL2MYGVUGdRQLL/JqBIeJhJBg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.28.6.tgz", + "integrity": "sha512-a0aBScVTlNaiUe35UtfxAN7A/tehvvG4/ByO6+46VPKTRSlfnAFsgKy0FUh+qAkQrDTmhDkT+IBOKlOoMUxQ0g==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/traverse": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/traverse": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -524,15 +520,15 @@ } }, "node_modules/@babel/plugin-proposal-decorators": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.25.9.tgz", - "integrity": "sha512-smkNLL/O1ezy9Nhy4CNosc4Va+1wo5w4gzSZeLe6y6dM4mmHfYOCPolXQPHQxonZCF+ZyebxN9vqOolkYrSn5g==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.29.0.tgz", + "integrity": "sha512-CVBVv3VY/XRMxRYq5dwr2DS7/MvqPm23cOCjbwNnVrfOqcWlnefua1uUs0sjdKOGjvPUG633o07uWzJq4oI6dA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/plugin-syntax-decorators": "^7.25.9" + "@babel/helper-create-class-features-plugin": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/plugin-syntax-decorators": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -542,13 +538,13 @@ } }, "node_modules/@babel/plugin-proposal-do-expressions": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-do-expressions/-/plugin-proposal-do-expressions-7.25.9.tgz", - "integrity": "sha512-0IkO77tw2OcZua/ADovH//IEiUyQpNjWvLyMFNidXnZx4eEriQjwkH9t/EyQZUaQu0KOxxdszC7m8VUVs51ydg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-do-expressions/-/plugin-proposal-do-expressions-7.28.6.tgz", + "integrity": "sha512-w+xevqofr+s/YQN0YSYxgV2CdClmlBP8L2FtMXqiPgolYztdLZXCnFkMvXoRQPwMx3QdjcgIAXG+IpW6UWKVWQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -558,13 +554,13 @@ } }, "node_modules/@babel/plugin-proposal-export-default-from": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.25.9.tgz", - "integrity": "sha512-ykqgwNfSnNOB+C8fV5X4mG3AVmvu+WVxcaU9xHHtBb7PCrPeweMmPjGsn8eMaeJg6SJuoUuZENeeSWaarWqonQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.27.1.tgz", + "integrity": "sha512-hjlsMBl1aJc5lp8MoCDEZCiYzlgdRAShOjAfRw6X+GlpLpUPU7c3XNLsKFZbQk/1cRzBlJ7CXg3xJAJMrFa1Uw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -592,13 +588,13 @@ } }, "node_modules/@babel/plugin-proposal-function-bind": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-function-bind/-/plugin-proposal-function-bind-7.25.9.tgz", - "integrity": "sha512-1g0b0XU667A2IZNdhovGr0ZdywJxf081B8JN5qyiNqzJK7GtdYBxGcuA+lq7q8OgO4cAc4vF57Ad0XLoDBsJAg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-function-bind/-/plugin-proposal-function-bind-7.27.1.tgz", + "integrity": "sha512-CyWwteAXrh7X5IRCQxagcNAIJ8TDPdikCB8m9G+yas1flyvMpC79FvnLOmOa3aAV5u6Y4RhdJU8EolpTUgugOQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -608,14 +604,14 @@ } }, "node_modules/@babel/plugin-proposal-function-sent": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-function-sent/-/plugin-proposal-function-sent-7.25.9.tgz", - "integrity": "sha512-Qi9KEBTY6WAjHBeHJ1jm4HyGlwvZLfjUaxO9g1jKHqyQPe6c+q7DlKgyrBUH7v+VWLJ0bNy5cQlXHtOV5/uibw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-function-sent/-/plugin-proposal-function-sent-7.27.1.tgz", + "integrity": "sha512-xA8Bqt8p12TxOFy3os20LxmOoHjyhzRC3zBql57d2W/YarNHgxHB4IlLHf3nXb7N6vSZ6kAdOoK2z5h0evGMhw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-wrap-function": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-wrap-function": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -716,14 +712,14 @@ } }, "node_modules/@babel/plugin-proposal-pipeline-operator": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-pipeline-operator/-/plugin-proposal-pipeline-operator-7.25.9.tgz", - "integrity": "sha512-rmb8zOYFdVz6y/OqJn6RfbIBiJPQdUbHg7R5ibym5KM0e8uNGdU9yfn9cjkBLwS22Lqd+ey3D8/UvK5GLyyh5A==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-pipeline-operator/-/plugin-proposal-pipeline-operator-7.28.6.tgz", + "integrity": "sha512-A7QVQdruOHhhObpdTVbElReVQjjWgTOJtMIbXT/Ds+QYI5/ahNnUtfUCCdnEGrOZpQnNf7XMdg+lAsaHviP5fQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/plugin-syntax-pipeline-operator": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/plugin-syntax-pipeline-operator": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -746,13 +742,13 @@ } }, "node_modules/@babel/plugin-proposal-throw-expressions": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-throw-expressions/-/plugin-proposal-throw-expressions-7.25.9.tgz", - "integrity": "sha512-Zw62DP6cdbXXEtTNMWYY10rIOPGAWPk8qdqM+AT3JbHtFq8ook0JXJCWdQJTlSVACHo0R6lvoNKO9B1ZVkjClg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-throw-expressions/-/plugin-proposal-throw-expressions-7.27.1.tgz", + "integrity": "sha512-pnGZCFdGiN3vHk54wWIvLJV3MXviRjCkSWhPtCkra6AW3AP3AcrRByT5jOnuk6nwu9VYT/B7ujdaLiBnkmc0hw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -762,13 +758,13 @@ } }, "node_modules/@babel/plugin-syntax-decorators": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.25.9.tgz", - "integrity": "sha512-ryzI0McXUPJnRCvMo4lumIKZUzhYUO/ScI+Mz4YVaTLt04DHNSjEUjKVvbzQjZFLuod/cYEc07mJWhzl6v4DPg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.28.6.tgz", + "integrity": "sha512-71EYI0ONURHJBL4rSFXnITXqXrrY8q4P0q006DPfN+Rk+ASM+++IBXem/ruokgBZR8YNEWZ8R6B+rCb8VcUTqA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -804,13 +800,13 @@ } }, "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.26.0.tgz", - "integrity": "sha512-QCWT5Hh830hK5EQa7XzuqIkQU9tT/whqbDz7kuaZMHFl1inRRg7JnuAEOQ0Ur0QUl0NufCk1msK2BeY79Aj/eg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.28.6.tgz", + "integrity": "sha512-pSJUpFHdx9z5nqTSirOCMtYVP2wFgoWhP0p3g8ONK/4IHhLIBd0B9NYqAvIUAhq+OkhO4VM1tENCt0cjlsNShw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -820,13 +816,13 @@ } }, "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.26.0.tgz", - "integrity": "sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.28.6.tgz", + "integrity": "sha512-jiLC0ma9XkQT3TKJ9uYvlakm66Pamywo+qwL+oL8HJOvc6TWdZXVfhqJr8CCzbSGUAbDOzlGHJC1U+vRfLQDvw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -914,13 +910,13 @@ } }, "node_modules/@babel/plugin-syntax-pipeline-operator": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-pipeline-operator/-/plugin-syntax-pipeline-operator-7.25.9.tgz", - "integrity": "sha512-W0KjBvv8uT4A8DUoRNpXEHkKekqO/PC57doaWCqbJeG0lGxKFh7w7/PHYPmwgF+jKxekNnc+YOMQNCo94d8MJg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-pipeline-operator/-/plugin-syntax-pipeline-operator-7.28.6.tgz", + "integrity": "sha512-VPU0PrCRvdjHsb6Di2sen45JcHfnhcL0ChT6SbE3JhvsxzTnO9+RbnaC5xKxz55gDq9Ik0W9qsiRrLfadltucQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -947,13 +943,13 @@ } }, "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.25.9.tgz", - "integrity": "sha512-6jmooXYIwn9ca5/RylZADJ+EnSxVUS5sjeJ9UPk6RWRzXCmOJCy6dqItPJFpw2cuCangPK4OYr5uhGKcmrm5Qg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.27.1.tgz", + "integrity": "sha512-8Z4TGic6xW70FKThA5HYEKKyBpOOsucTOD1DjU3fZxDg+K3zBJcXMFnt/4yQiZnf5+MiOMSXQ9PaEK/Ilh1DeA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -963,15 +959,15 @@ } }, "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.25.9.tgz", - "integrity": "sha512-RXV6QAzTBbhDMO9fWwOmwwTuYaiPbggWQ9INdZqAYeSHyG7FzQ+nOZaUUjNwKv9pV3aE4WFqFm1Hnbci5tBCAw==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.29.0.tgz", + "integrity": "sha512-va0VdWro4zlBr2JsXC+ofCPB2iG12wPtVGTWFx2WLDOM3nYQZZIGP82qku2eW/JR83sD+k2k+CsNtyEbUqhU6w==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-remap-async-to-generator": "^7.25.9", - "@babel/traverse": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/helper-remap-async-to-generator": "^7.27.1", + "@babel/traverse": "^7.29.0" }, "engines": { "node": ">=6.9.0" @@ -981,15 +977,15 @@ } }, "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.25.9.tgz", - "integrity": "sha512-NT7Ejn7Z/LjUH0Gv5KsBCxh7BH3fbLTV0ptHvpeMvrt3cPThHfJfst9Wrb7S8EvJ7vRTFI7z+VAvFVEQn/m5zQ==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.28.6.tgz", + "integrity": "sha512-ilTRcmbuXjsMmcZ3HASTe4caH5Tpo93PkTxF9oG2VZsSWsahydmcEHhix9Ik122RcTnZnUzPbmux4wh1swfv7g==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-module-imports": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-remap-async-to-generator": "^7.25.9" + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/helper-remap-async-to-generator": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -999,13 +995,13 @@ } }, "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.26.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.26.5.tgz", - "integrity": "sha512-chuTSY+hq09+/f5lMj8ZSYgCFpppV2CbYrhNFJ1BFoXpiWPnnAb7R0MqrafCpN8E1+YRrtM1MXZHJdIx8B6rMQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.27.1.tgz", + "integrity": "sha512-cnqkuOtZLapWYZUYM5rVIdv1nXYuFVIltZ6ZJ7nIj585QsjKM5dhL2Fu/lICXZ1OyIAFc7Qy+bvDAtTXqGrlhg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.26.5" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1015,13 +1011,13 @@ } }, "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.9.tgz", - "integrity": "sha512-1F05O7AYjymAtqbsFETboN1NvBdcnzMerO+zlMyJBEz6WkMdejvGWw9p05iTSjC85RLlBseHHQpYaM4gzJkBGg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.28.6.tgz", + "integrity": "sha512-tt/7wOtBmwHPNMPu7ax4pdPz6shjFrmHDghvNC+FG9Qvj7D6mJcoRQIF5dy4njmxR941l6rgtvfSB2zX3VlUIw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1031,14 +1027,14 @@ } }, "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.25.9.tgz", - "integrity": "sha512-bbMAII8GRSkcd0h0b4X+36GksxuheLFjP65ul9w6C3KgAamI3JqErNgSrosX6ZPj+Mpim5VvEbawXxJCyEUV3Q==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.28.6.tgz", + "integrity": "sha512-dY2wS3I2G7D697VHndN91TJr8/AAfXQNt5ynCTI/MpxMsSzHp+52uNivYT5wCPax3whc47DR8Ba7cmlQMg24bw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-class-features-plugin": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1048,14 +1044,14 @@ } }, "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.26.0.tgz", - "integrity": "sha512-6J2APTs7BDDm+UMqP1useWqhcRAXo0WIoVj26N7kPFB6S73Lgvyka4KTZYIxtgYXiN5HTyRObA72N2iu628iTQ==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.28.6.tgz", + "integrity": "sha512-rfQ++ghVwTWTqQ7w8qyDxL1XGihjBss4CmTgGRCTAC9RIbhVpyp4fOeZtta0Lbf+dTNIVJer6ych2ibHwkZqsQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-class-features-plugin": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1065,18 +1061,18 @@ } }, "node_modules/@babel/plugin-transform-classes": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.9.tgz", - "integrity": "sha512-mD8APIXmseE7oZvZgGABDyM34GUmK45Um2TXiBUt7PnuAxrgoSVf123qUzPxEr/+/BHrRn5NMZCdE2m/1F8DGg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.28.6.tgz", + "integrity": "sha512-EF5KONAqC5zAqT783iMGuM2ZtmEBy+mJMOKl2BCvPZ2lVrwvXnB6o+OBWCS+CoeCCpVRF2sA2RBKUxvT8tQT5Q==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "@babel/helper-compilation-targets": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-replace-supers": "^7.25.9", - "@babel/traverse": "^7.25.9", - "globals": "^11.1.0" + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-globals": "^7.28.0", + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/helper-replace-supers": "^7.28.6", + "@babel/traverse": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1086,14 +1082,14 @@ } }, "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.25.9.tgz", - "integrity": "sha512-HnBegGqXZR12xbcTHlJ9HGxw1OniltT26J5YpfruGqtUHlz/xKf/G2ak9e+t0rVqrjXa9WOhvYPz1ERfMj23AA==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.28.6.tgz", + "integrity": "sha512-bcc3k0ijhHbc2lEfpFHgx7eYw9KNXqOerKWfzbxEHUGKnS3sz9C4CNL9OiFN1297bDNfUiSO7DaLzbvHQQQ1BQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/template": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/template": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1103,13 +1099,14 @@ } }, "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.25.9.tgz", - "integrity": "sha512-WkCGb/3ZxXepmMiX101nnGiU+1CAdut8oHyEOHxkKuS1qKpU2SMXE2uSvfz8PBuLd49V6LEsbtyPhWC7fnkgvQ==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.28.5.tgz", + "integrity": "sha512-Kl9Bc6D0zTUcFUvkNuQh4eGXPKKNDOJQXVyyM4ZAQPMveniJdxi8XMJwLo+xSoW3MIq81bD33lcUe9kZpl0MCw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.28.5" }, "engines": { "node": ">=6.9.0" @@ -1119,14 +1116,14 @@ } }, "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.25.9.tgz", - "integrity": "sha512-t7ZQ7g5trIgSRYhI9pIJtRl64KHotutUJsh4Eze5l7olJv+mRSg4/MmbZ0tv1eeqRbdvo/+trvJD/Oc5DmW2cA==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.28.6.tgz", + "integrity": "sha512-SljjowuNKB7q5Oayv4FoPzeB74g3QgLt8IVJw9ADvWy3QnUb/01aw8I4AVv8wYnPvQz2GDDZ/g3GhcNyDBI4Bg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-regexp-features-plugin": "^7.28.5", + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1136,13 +1133,13 @@ } }, "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.25.9.tgz", - "integrity": "sha512-LZxhJ6dvBb/f3x8xwWIuyiAHy56nrRG3PeYTpBkkzkYRRQ6tJLu68lEF5VIqMUZiAV7a8+Tb78nEoMCMcqjXBw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.27.1.tgz", + "integrity": "sha512-MTyJk98sHvSs+cvZ4nOauwTTG1JeonDjSGvGGUNHreGQns+Mpt6WX/dVzWBHgg+dYZhkC4X+zTDfkTU+Vy9y7Q==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1152,14 +1149,14 @@ } }, "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.25.9.tgz", - "integrity": "sha512-0UfuJS0EsXbRvKnwcLjFtJy/Sxc5J5jhLHnFhy7u4zih97Hz6tJkLU+O+FMMrNZrosUPxDi6sYxJ/EA8jDiAog==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.29.0.tgz", + "integrity": "sha512-zBPcW2lFGxdiD8PUnPwJjag2J9otbcLQzvbiOzDxpYXyCuYX9agOwMPGn1prVH0a4qzhCKu24rlH4c1f7yA8rw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-regexp-features-plugin": "^7.28.5", + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1169,13 +1166,30 @@ } }, "node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.25.9.tgz", - "integrity": "sha512-GCggjexbmSLaFhqsojeugBpeaRIgWNTcgKVq/0qIteFEqY2A+b9QidYadrWlnbWQUrW5fn+mCvf3tr7OeBFTyg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.27.1.tgz", + "integrity": "sha512-MHzkWQcEmjzzVW9j2q8LGjwGWpG2mjwaaB0BNQwst3FIjqsg8Ct/mIZlvSPJvfi9y2AC8mi/ktxbFVL9pZ1I4A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-explicit-resource-management": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-explicit-resource-management/-/plugin-transform-explicit-resource-management-7.28.6.tgz", + "integrity": "sha512-Iao5Konzx2b6g7EPqTy40UZbcdXE126tTxVFr/nAIj+WItNxjKSYTEw3RC+A2/ZetmdJsgueL1KhaMCQHkLPIg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/plugin-transform-destructuring": "^7.28.5" }, "engines": { "node": ">=6.9.0" @@ -1185,13 +1199,13 @@ } }, "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.26.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.26.3.tgz", - "integrity": "sha512-7CAHcQ58z2chuXPWblnn1K6rLDnDWieghSOEmqQsrBenH0P9InCUtOJYD89pvngljmZlJcz3fcmgYsXFNGa1ZQ==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.28.6.tgz", + "integrity": "sha512-WitabqiGjV/vJ0aPOLSFfNY1u9U3R7W36B03r5I2KoNix+a3sOhJ3pKFB3R5It9/UiK78NiO0KE9P21cMhlPkw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1201,13 +1215,13 @@ } }, "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.25.9.tgz", - "integrity": "sha512-2NsEz+CxzJIVOPx2o9UsW1rXLqtChtLoVnwYHHiB04wS5sgn7mrV45fWMBX0Kk+ub9uXytVYfNP2HjbVbCB3Ww==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.27.1.tgz", + "integrity": "sha512-tQvHWSZ3/jH2xuq/vZDy0jNn+ZdXJeM8gHvX4lnJmsc3+50yPlWdZXIc5ay+umX+2/tJIqHqiEqcJvxlmIvRvQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1217,14 +1231,14 @@ } }, "node_modules/@babel/plugin-transform-for-of": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.25.9.tgz", - "integrity": "sha512-LqHxduHoaGELJl2uhImHwRQudhCM50pT46rIBNvtT/Oql3nqiS3wOwP+5ten7NpYSXrrVLgtZU3DZmPtWZo16A==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.27.1.tgz", + "integrity": "sha512-BfbWFFEJFQzLCQ5N8VocnCtA8J1CLkNTe2Ms2wocj75dd6VpiqS5Z5quTYcUoo4Yq+DN0rtikODccuv7RU81sw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1234,15 +1248,15 @@ } }, "node_modules/@babel/plugin-transform-function-name": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.9.tgz", - "integrity": "sha512-8lP+Yxjv14Vc5MuWBpJsoUCd3hD6V9DgBon2FVYL4jJgbnVQ9fTgYmonchzZJOVNgzEgbxp4OwAf6xz6M/14XA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.27.1.tgz", + "integrity": "sha512-1bQeydJF9Nr1eBCMMbC+hdwmRlsv5XYOMu03YSWFwNs0HsAmtSxxF1fyuYPqemVldVyFmlCU7w8UE14LupUSZQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-compilation-targets": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/traverse": "^7.25.9" + "@babel/helper-compilation-targets": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/traverse": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1252,13 +1266,13 @@ } }, "node_modules/@babel/plugin-transform-json-strings": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.25.9.tgz", - "integrity": "sha512-xoTMk0WXceiiIvsaquQQUaLLXSW1KJ159KP87VilruQm0LNNGxWzahxSS6T6i4Zg3ezp4vA4zuwiNUR53qmQAw==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.28.6.tgz", + "integrity": "sha512-Nr+hEN+0geQkzhbdgQVPoqr47lZbm+5fCUmO70722xJZd0Mvb59+33QLImGj6F+DkK3xgDi1YVysP8whD6FQAw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1268,13 +1282,13 @@ } }, "node_modules/@babel/plugin-transform-literals": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.9.tgz", - "integrity": "sha512-9N7+2lFziW8W9pBl2TzaNht3+pgMIRP74zizeCSrtnSKVdUl8mAjjOP2OOVQAfZ881P2cNjDj1uAMEdeD50nuQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.27.1.tgz", + "integrity": "sha512-0HCFSepIpLTkLcsi86GG3mTUzxV5jpmbv97hTETW3yzrAij8aqlD36toB1D0daVFJM8NK6GvKO0gslVQmm+zZA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1284,13 +1298,13 @@ } }, "node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.25.9.tgz", - "integrity": "sha512-wI4wRAzGko551Y8eVf6iOY9EouIDTtPb0ByZx+ktDGHwv6bHFimrgJM/2T021txPZ2s4c7bqvHbd+vXG6K948Q==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.28.6.tgz", + "integrity": "sha512-+anKKair6gpi8VsM/95kmomGNMD0eLz1NQ8+Pfw5sAwWH9fGYXT50E55ZpV0pHUHWf6IUTWPM+f/7AAff+wr9A==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1300,13 +1314,13 @@ } }, "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.25.9.tgz", - "integrity": "sha512-PYazBVfofCQkkMzh2P6IdIUaCEWni3iYEerAsRWuVd8+jlM1S9S9cz1dF9hIzyoZ8IA3+OwVYIp9v9e+GbgZhA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.27.1.tgz", + "integrity": "sha512-hqoBX4dcZ1I33jCSWcXrP+1Ku7kdqXf1oeah7ooKOIiAdKQ+uqftgCFNOSzA5AMS2XIHEYeGFg4cKRCdpxzVOQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1316,14 +1330,14 @@ } }, "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.25.9.tgz", - "integrity": "sha512-g5T11tnI36jVClQlMlt4qKDLlWnG5pP9CSM4GhdRciTNMRgkfpo5cR6b4rGIOYPgRRuFAvwjPQ/Yk+ql4dyhbw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.27.1.tgz", + "integrity": "sha512-iCsytMg/N9/oFq6n+gFTvUYDZQOMK5kEdeYxmxt91fcJGycfxVP9CnrxoliM0oumFERba2i8ZtwRUCMhvP1LnA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-module-transforms": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1333,14 +1347,14 @@ } }, "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.26.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.26.3.tgz", - "integrity": "sha512-MgR55l4q9KddUDITEzEFYn5ZsGDXMSsU9E+kh7fjRXTIC3RHqfCo8RPRbyReYJh44HQ/yomFkqbOFohXvDCiIQ==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.28.6.tgz", + "integrity": "sha512-jppVbf8IV9iWWwWTQIxJMAJCWBuuKx71475wHwYytrRGQ2CWiDvYlADQno3tcYpS/T2UUWFQp3nVtYfK/YBQrA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-module-transforms": "^7.26.0", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1350,16 +1364,16 @@ } }, "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.25.9.tgz", - "integrity": "sha512-hyss7iIlH/zLHaehT+xwiymtPOpsiwIIRlCAOwBB04ta5Tt+lNItADdlXw3jAWZ96VJ2jlhl/c+PNIQPKNfvcA==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.29.0.tgz", + "integrity": "sha512-PrujnVFbOdUpw4UHiVwKvKRLMMic8+eC0CuNlxjsyZUiBjhFdPsewdXCkveh2KqBA9/waD0W1b4hXSOBQJezpQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-module-transforms": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-validator-identifier": "^7.25.9", - "@babel/traverse": "^7.25.9" + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.29.0" }, "engines": { "node": ">=6.9.0" @@ -1369,14 +1383,14 @@ } }, "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.25.9.tgz", - "integrity": "sha512-bS9MVObUgE7ww36HEfwe6g9WakQ0KF07mQF74uuXdkoziUPfKyu/nIm663kz//e5O1nPInPFx36z7WJmJ4yNEw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.27.1.tgz", + "integrity": "sha512-iQBE/xC5BV1OxJbp6WG7jq9IWiD+xxlZhLrdwpPkTX3ydmXdvoCpyfJN7acaIBZaOqTfr76pgzqBJflNbeRK+w==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-module-transforms": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-module-transforms": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1386,14 +1400,14 @@ } }, "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.25.9.tgz", - "integrity": "sha512-oqB6WHdKTGl3q/ItQhpLSnWWOpjUJLsOCLVyeFgeTktkBSCiurvPOsyt93gibI9CmuKvTUEtWmG5VhZD+5T/KA==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.29.0.tgz", + "integrity": "sha512-1CZQA5KNAD6ZYQLPw7oi5ewtDNxH/2vuCh+6SmvgDfhumForvs8a1o9n0UrEoBD8HU4djO2yWngTQlXl1NDVEQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-regexp-features-plugin": "^7.28.5", + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1403,13 +1417,13 @@ } }, "node_modules/@babel/plugin-transform-new-target": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.25.9.tgz", - "integrity": "sha512-U/3p8X1yCSoKyUj2eOBIx3FOn6pElFOKvAAGf8HTtItuPyB+ZeOqfn+mvTtg9ZlOAjsPdK3ayQEjqHjU/yLeVQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.27.1.tgz", + "integrity": "sha512-f6PiYeqXQ05lYq3TIfIDu/MtliKUbNwkGApPUvyo6+tc7uaR4cPjPe7DFPr15Uyycg2lZU6btZ575CuQoYh7MQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1419,13 +1433,13 @@ } }, "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.26.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.26.6.tgz", - "integrity": "sha512-CKW8Vu+uUZneQCPtXmSBUC6NCAUdya26hWCElAWh5mVSlSRsmiCPUUDKb3Z0szng1hiAJa098Hkhg9o4SE35Qw==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.28.6.tgz", + "integrity": "sha512-3wKbRgmzYbw24mDJXT7N+ADXw8BC/imU9yo9c9X9NKaLF1fW+e5H1U5QjMUBe4Qo4Ox/o++IyUkl1sVCLgevKg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.26.5" + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1435,13 +1449,13 @@ } }, "node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.25.9.tgz", - "integrity": "sha512-TlprrJ1GBZ3r6s96Yq8gEQv82s8/5HnCVHtEJScUj90thHQbwe+E5MLhi2bbNHBEJuzrvltXSru+BUxHDoog7Q==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.28.6.tgz", + "integrity": "sha512-SJR8hPynj8outz+SlStQSwvziMN4+Bq99it4tMIf5/Caq+3iOc0JtKyse8puvyXkk3eFRIA5ID/XfunGgO5i6w==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1451,15 +1465,17 @@ } }, "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.25.9.tgz", - "integrity": "sha512-fSaXafEE9CVHPweLYw4J0emp1t8zYTXyzN3UuG+lylqkvYd7RMrsOQ8TYx5RF231be0vqtFC6jnx3UmpJmKBYg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.28.6.tgz", + "integrity": "sha512-5rh+JR4JBC4pGkXLAcYdLHZjXudVxWMXbB6u6+E9lRL5TrGVbHt1TjxGbZ8CkmYw9zjkB7jutzOROArsqtncEA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-compilation-targets": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/plugin-transform-parameters": "^7.25.9" + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/plugin-transform-destructuring": "^7.28.5", + "@babel/plugin-transform-parameters": "^7.27.7", + "@babel/traverse": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1469,14 +1485,14 @@ } }, "node_modules/@babel/plugin-transform-object-super": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.25.9.tgz", - "integrity": "sha512-Kj/Gh+Rw2RNLbCK1VAWj2U48yxxqL2x0k10nPtSdRa0O2xnHXalD0s+o1A6a0W43gJ00ANo38jxkQreckOzv5A==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.27.1.tgz", + "integrity": "sha512-SFy8S9plRPbIcxlJ8A6mT/CxFdJx/c04JEctz4jf8YZaVS2px34j7NXRrlGlHkN/M2gnpL37ZpGRGVFLd3l8Ng==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-replace-supers": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1", + "@babel/helper-replace-supers": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1486,13 +1502,13 @@ } }, "node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.25.9.tgz", - "integrity": "sha512-qM/6m6hQZzDcZF3onzIhZeDHDO43bkNNlOX0i8n3lR6zLbu0GN2d8qfM/IERJZYauhAHSLHy39NF0Ctdvcid7g==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.28.6.tgz", + "integrity": "sha512-R8ja/Pyrv0OGAvAXQhSTmWyPJPml+0TMqXlO5w+AsMEiwb2fg3WkOvob7UxFSL3OIttFSGSRFKQsOhJ/X6HQdQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1502,14 +1518,14 @@ } }, "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.25.9.tgz", - "integrity": "sha512-6AvV0FsLULbpnXeBjrY4dmWF8F7gf8QnvTEoO/wX/5xm/xE1Xo8oPuD3MPS+KS9f9XBEAWN7X1aWr4z9HdOr7A==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.28.6.tgz", + "integrity": "sha512-A4zobikRGJTsX9uqVFdafzGkqD30t26ck2LmOzAuLL8b2x6k3TIqRiT2xVvA9fNmFeTX484VpsdgmKNA0bS23w==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1519,13 +1535,13 @@ } }, "node_modules/@babel/plugin-transform-parameters": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.25.9.tgz", - "integrity": "sha512-wzz6MKwpnshBAiRmn4jR8LYz/g8Ksg0o80XmwZDlordjwEk9SxBzTWC7F5ef1jhbrbOW2DJ5J6ayRukrJmnr0g==", + "version": "7.27.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.27.7.tgz", + "integrity": "sha512-qBkYTYCb76RRxUM6CcZA5KRu8K4SM8ajzVeUgVdMVO9NN9uI/GaVmBg/WKJJGnNokV9SY8FxNOVWGXzqzUidBg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1535,14 +1551,14 @@ } }, "node_modules/@babel/plugin-transform-private-methods": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.25.9.tgz", - "integrity": "sha512-D/JUozNpQLAPUVusvqMxyvjzllRaF8/nSrP1s2YGQT/W4LHK4xxsMcHjhOGTS01mp9Hda8nswb+FblLdJornQw==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.28.6.tgz", + "integrity": "sha512-piiuapX9CRv7+0st8lmuUlRSmX6mBcVeNQ1b4AYzJxfCMuBfB0vBXDiGSmm03pKJw1v6cZ8KSeM+oUnM6yAExg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-class-features-plugin": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1552,15 +1568,15 @@ } }, "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.25.9.tgz", - "integrity": "sha512-Evf3kcMqzXA3xfYJmZ9Pg1OvKdtqsDMSWBDzZOPLvHiTt36E75jLDQo5w1gtRU95Q4E5PDttrTf25Fw8d/uWLw==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.28.6.tgz", + "integrity": "sha512-b97jvNSOb5+ehyQmBpmhOCiUC5oVK4PMnpRvO7+ymFBoqYjeDHIU9jnrNUuwHOiL9RpGDoKBpSViarV+BU+eVA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.25.9", - "@babel/helper-create-class-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-annotate-as-pure": "^7.27.3", + "@babel/helper-create-class-features-plugin": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1570,13 +1586,13 @@ } }, "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.25.9.tgz", - "integrity": "sha512-IvIUeV5KrS/VPavfSM/Iu+RE6llrHrYIKY1yfCzyO/lMXHQ+p7uGhonmGVisv6tSBSVgWzMBohTcvkC9vQcQFA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.27.1.tgz", + "integrity": "sha512-oThy3BCuCha8kDZ8ZkgOg2exvPYUlprMukKQXI1r1pJ47NCvxfkEy8vK+r/hT9nF0Aa4H1WUPZZjHTFtAhGfmQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1586,14 +1602,13 @@ } }, "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.25.9.tgz", - "integrity": "sha512-vwDcDNsgMPDGP0nMqzahDWE5/MLcX8sv96+wfX7as7LoF/kr97Bo/7fI00lXY4wUXYfVmwIIyG80fGZ1uvt2qg==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.29.0.tgz", + "integrity": "sha512-FijqlqMA7DmRdg/aINBSs04y8XNTYw/lr1gJ2WsmBnnaNw1iS43EPkJW+zK7z65auG3AWRFXWj+NcTQwYptUog==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "regenerator-transform": "^0.15.2" + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1603,14 +1618,14 @@ } }, "node_modules/@babel/plugin-transform-regexp-modifiers": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.26.0.tgz", - "integrity": "sha512-vN6saax7lrA2yA/Pak3sCxuD6F5InBjn9IcrIKQPjpsLvuHYLVroTxjdlVRHjjBWxKOqIwpTXDkOssYT4BFdRw==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.28.6.tgz", + "integrity": "sha512-QGWAepm9qxpaIs7UM9FvUSnCGlb8Ua1RhyM4/veAxLwt3gMat/LSGrZixyuj4I6+Kn9iwvqCyPTtbdxanYoWYg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-regexp-features-plugin": "^7.28.5", + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1620,13 +1635,13 @@ } }, "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.25.9.tgz", - "integrity": "sha512-7DL7DKYjn5Su++4RXu8puKZm2XBPHyjWLUidaPEkCUBbE7IPcsrkRHggAOOKydH1dASWdcUBxrkOGNxUv5P3Jg==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.27.1.tgz", + "integrity": "sha512-V2ABPHIJX4kC7HegLkYoDpfg9PVmuWy/i6vUM5eGK22bx4YVFD3M5F0QQnWQoDs6AGsUWTVOopBiMFQgHaSkVw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1636,13 +1651,13 @@ } }, "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.25.9.tgz", - "integrity": "sha512-MUv6t0FhO5qHnS/W8XCbHmiRWOphNufpE1IVxhK5kuN3Td9FT1x4rx4K42s3RYdMXCXpfWkGSbCSd0Z64xA7Ng==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.27.1.tgz", + "integrity": "sha512-N/wH1vcn4oYawbJ13Y/FxcQrWk63jhfNa7jef0ih7PHSIHX2LB7GWE1rkPrOnka9kwMxb6hMl19p7lidA+EHmQ==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1652,14 +1667,14 @@ } }, "node_modules/@babel/plugin-transform-spread": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.25.9.tgz", - "integrity": "sha512-oNknIB0TbURU5pqJFVbOOFspVlrpVwo2H1+HUIsVDvp5VauGGDP1ZEvO8Nn5xyMEs3dakajOxlmkNW7kNgSm6A==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.28.6.tgz", + "integrity": "sha512-9U4QObUC0FtJl05AsUcodau/RWDytrU6uKgkxu09mLR9HLDAtUMoPuuskm5huQsoktmsYpI+bGmq+iapDcriKA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1669,13 +1684,13 @@ } }, "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.25.9.tgz", - "integrity": "sha512-WqBUSgeVwucYDP9U/xNRQam7xV8W5Zf+6Eo7T2SRVUFlhRiMNFdFz58u0KZmCVVqs2i7SHgpRnAhzRNmKfi2uA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.27.1.tgz", + "integrity": "sha512-lhInBO5bi/Kowe2/aLdBAawijx+q1pQzicSgnkB6dUPc1+RC8QmJHKf2OjvU+NZWitguJHEaEmbV6VWEouT58g==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1685,13 +1700,13 @@ } }, "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.25.9.tgz", - "integrity": "sha512-o97AE4syN71M/lxrCtQByzphAdlYluKPDBzDVzMmfCobUjjhAryZV0AIpRPrxN0eAkxXO6ZLEScmt+PNhj2OTw==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.27.1.tgz", + "integrity": "sha512-fBJKiV7F2DxZUkg5EtHKXQdbsbURW3DZKQUWphDum0uRP6eHGGa/He9mc0mypL680pb+e/lDIthRohlv8NCHkg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1701,13 +1716,13 @@ } }, "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.25.9.tgz", - "integrity": "sha512-v61XqUMiueJROUv66BVIOi0Fv/CUuZuZMl5NkRoCVxLAnMexZ0A3kMe7vvZ0nulxMuMp0Mk6S5hNh48yki08ZA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.27.1.tgz", + "integrity": "sha512-RiSILC+nRJM7FY5srIyc4/fGIwUhyDuuBSdWn4y6yT6gm652DpCHZjIipgn6B7MQ1ITOUnAKWixEUjQRIBIcLw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1717,13 +1732,13 @@ } }, "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.25.9.tgz", - "integrity": "sha512-s5EDrE6bW97LtxOcGj1Khcx5AaXwiMmi4toFWRDP9/y0Woo6pXC+iyPu/KuhKtfSrNFd7jJB+/fkOtZy6aIC6Q==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.27.1.tgz", + "integrity": "sha512-Ysg4v6AmF26k9vpfFuTZg8HRfVWzsh1kVfowA23y9j/Gu6dOuahdUVhkLqpObp3JIv27MLSii6noRnuKN8H0Mg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1733,14 +1748,14 @@ } }, "node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.25.9.tgz", - "integrity": "sha512-Jt2d8Ga+QwRluxRQ307Vlxa6dMrYEMZCgGxoPR8V52rxPyldHu3hdlHspxaqYmE7oID5+kB+UKUB/eWS+DkkWg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.28.6.tgz", + "integrity": "sha512-4Wlbdl/sIZjzi/8St0evF0gEZrgOswVO6aOzqxh1kDZOl9WmLrHq2HtGhnOJZmHZYKP8WZ1MDLCt5DAWwRo57A==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-regexp-features-plugin": "^7.28.5", + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1750,14 +1765,14 @@ } }, "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.25.9.tgz", - "integrity": "sha512-yoxstj7Rg9dlNn9UQxzk4fcNivwv4nUYz7fYXBaKxvw/lnmPuOm/ikoELygbYq68Bls3D/D+NBPHiLwZdZZ4HA==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.27.1.tgz", + "integrity": "sha512-xvINq24TRojDuyt6JGtHmkVkrfVV3FPT16uytxImLeBZqW3/H52yN+kM1MGuyPkIQxrzKwPHs5U/MP3qKyzkGw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-regexp-features-plugin": "^7.27.1", + "@babel/helper-plugin-utils": "^7.27.1" }, "engines": { "node": ">=6.9.0" @@ -1767,14 +1782,14 @@ } }, "node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.25.9.tgz", - "integrity": "sha512-8BYqO3GeVNHtx69fdPshN3fnzUNLrWdHhk/icSwigksJGczKSizZ+Z6SBCxTs723Fr5VSNorTIK7a+R2tISvwQ==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.28.6.tgz", + "integrity": "sha512-/wHc/paTUmsDYN7SZkpWxogTOBNnlx7nBQYfy6JJlCT7G3mVhltk3e++N7zV0XfgGsrqBxd4rJQt9H16I21Y1Q==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9" + "@babel/helper-create-regexp-features-plugin": "^7.28.5", + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -1784,80 +1799,81 @@ } }, "node_modules/@babel/preset-env": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.26.0.tgz", - "integrity": "sha512-H84Fxq0CQJNdPFT2DrfnylZ3cf5K43rGfWK4LJGPpjKHiZlk0/RzwEus3PDDZZg+/Er7lCA03MVacueUuXdzfw==", + "version": "7.29.2", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.29.2.tgz", + "integrity": "sha512-DYD23veRYGvBFhcTY1iUvJnDNpuqNd/BzBwCvzOTKUnJjKg5kpUBh3/u9585Agdkgj+QuygG7jLfOPWMa2KVNw==", "dev": true, "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.26.0", - "@babel/helper-compilation-targets": "^7.25.9", - "@babel/helper-plugin-utils": "^7.25.9", - "@babel/helper-validator-option": "^7.25.9", - "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.9", - "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.9", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.9", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.25.9", - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.9", + "@babel/compat-data": "^7.29.0", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-plugin-utils": "^7.28.6", + "@babel/helper-validator-option": "^7.27.1", + "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.28.5", + "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.27.1", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.27.1", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.27.1", + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.28.6", "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", - "@babel/plugin-syntax-import-assertions": "^7.26.0", - "@babel/plugin-syntax-import-attributes": "^7.26.0", + "@babel/plugin-syntax-import-assertions": "^7.28.6", + "@babel/plugin-syntax-import-attributes": "^7.28.6", "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.25.9", - "@babel/plugin-transform-async-generator-functions": "^7.25.9", - "@babel/plugin-transform-async-to-generator": "^7.25.9", - "@babel/plugin-transform-block-scoped-functions": "^7.25.9", - "@babel/plugin-transform-block-scoping": "^7.25.9", - "@babel/plugin-transform-class-properties": "^7.25.9", - "@babel/plugin-transform-class-static-block": "^7.26.0", - "@babel/plugin-transform-classes": "^7.25.9", - "@babel/plugin-transform-computed-properties": "^7.25.9", - "@babel/plugin-transform-destructuring": "^7.25.9", - "@babel/plugin-transform-dotall-regex": "^7.25.9", - "@babel/plugin-transform-duplicate-keys": "^7.25.9", - "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.9", - "@babel/plugin-transform-dynamic-import": "^7.25.9", - "@babel/plugin-transform-exponentiation-operator": "^7.25.9", - "@babel/plugin-transform-export-namespace-from": "^7.25.9", - "@babel/plugin-transform-for-of": "^7.25.9", - "@babel/plugin-transform-function-name": "^7.25.9", - "@babel/plugin-transform-json-strings": "^7.25.9", - "@babel/plugin-transform-literals": "^7.25.9", - "@babel/plugin-transform-logical-assignment-operators": "^7.25.9", - "@babel/plugin-transform-member-expression-literals": "^7.25.9", - "@babel/plugin-transform-modules-amd": "^7.25.9", - "@babel/plugin-transform-modules-commonjs": "^7.25.9", - "@babel/plugin-transform-modules-systemjs": "^7.25.9", - "@babel/plugin-transform-modules-umd": "^7.25.9", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.25.9", - "@babel/plugin-transform-new-target": "^7.25.9", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.25.9", - "@babel/plugin-transform-numeric-separator": "^7.25.9", - "@babel/plugin-transform-object-rest-spread": "^7.25.9", - "@babel/plugin-transform-object-super": "^7.25.9", - "@babel/plugin-transform-optional-catch-binding": "^7.25.9", - "@babel/plugin-transform-optional-chaining": "^7.25.9", - "@babel/plugin-transform-parameters": "^7.25.9", - "@babel/plugin-transform-private-methods": "^7.25.9", - "@babel/plugin-transform-private-property-in-object": "^7.25.9", - "@babel/plugin-transform-property-literals": "^7.25.9", - "@babel/plugin-transform-regenerator": "^7.25.9", - "@babel/plugin-transform-regexp-modifiers": "^7.26.0", - "@babel/plugin-transform-reserved-words": "^7.25.9", - "@babel/plugin-transform-shorthand-properties": "^7.25.9", - "@babel/plugin-transform-spread": "^7.25.9", - "@babel/plugin-transform-sticky-regex": "^7.25.9", - "@babel/plugin-transform-template-literals": "^7.25.9", - "@babel/plugin-transform-typeof-symbol": "^7.25.9", - "@babel/plugin-transform-unicode-escapes": "^7.25.9", - "@babel/plugin-transform-unicode-property-regex": "^7.25.9", - "@babel/plugin-transform-unicode-regex": "^7.25.9", - "@babel/plugin-transform-unicode-sets-regex": "^7.25.9", + "@babel/plugin-transform-arrow-functions": "^7.27.1", + "@babel/plugin-transform-async-generator-functions": "^7.29.0", + "@babel/plugin-transform-async-to-generator": "^7.28.6", + "@babel/plugin-transform-block-scoped-functions": "^7.27.1", + "@babel/plugin-transform-block-scoping": "^7.28.6", + "@babel/plugin-transform-class-properties": "^7.28.6", + "@babel/plugin-transform-class-static-block": "^7.28.6", + "@babel/plugin-transform-classes": "^7.28.6", + "@babel/plugin-transform-computed-properties": "^7.28.6", + "@babel/plugin-transform-destructuring": "^7.28.5", + "@babel/plugin-transform-dotall-regex": "^7.28.6", + "@babel/plugin-transform-duplicate-keys": "^7.27.1", + "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.29.0", + "@babel/plugin-transform-dynamic-import": "^7.27.1", + "@babel/plugin-transform-explicit-resource-management": "^7.28.6", + "@babel/plugin-transform-exponentiation-operator": "^7.28.6", + "@babel/plugin-transform-export-namespace-from": "^7.27.1", + "@babel/plugin-transform-for-of": "^7.27.1", + "@babel/plugin-transform-function-name": "^7.27.1", + "@babel/plugin-transform-json-strings": "^7.28.6", + "@babel/plugin-transform-literals": "^7.27.1", + "@babel/plugin-transform-logical-assignment-operators": "^7.28.6", + "@babel/plugin-transform-member-expression-literals": "^7.27.1", + "@babel/plugin-transform-modules-amd": "^7.27.1", + "@babel/plugin-transform-modules-commonjs": "^7.28.6", + "@babel/plugin-transform-modules-systemjs": "^7.29.0", + "@babel/plugin-transform-modules-umd": "^7.27.1", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.29.0", + "@babel/plugin-transform-new-target": "^7.27.1", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.28.6", + "@babel/plugin-transform-numeric-separator": "^7.28.6", + "@babel/plugin-transform-object-rest-spread": "^7.28.6", + "@babel/plugin-transform-object-super": "^7.27.1", + "@babel/plugin-transform-optional-catch-binding": "^7.28.6", + "@babel/plugin-transform-optional-chaining": "^7.28.6", + "@babel/plugin-transform-parameters": "^7.27.7", + "@babel/plugin-transform-private-methods": "^7.28.6", + "@babel/plugin-transform-private-property-in-object": "^7.28.6", + "@babel/plugin-transform-property-literals": "^7.27.1", + "@babel/plugin-transform-regenerator": "^7.29.0", + "@babel/plugin-transform-regexp-modifiers": "^7.28.6", + "@babel/plugin-transform-reserved-words": "^7.27.1", + "@babel/plugin-transform-shorthand-properties": "^7.27.1", + "@babel/plugin-transform-spread": "^7.28.6", + "@babel/plugin-transform-sticky-regex": "^7.27.1", + "@babel/plugin-transform-template-literals": "^7.27.1", + "@babel/plugin-transform-typeof-symbol": "^7.27.1", + "@babel/plugin-transform-unicode-escapes": "^7.27.1", + "@babel/plugin-transform-unicode-property-regex": "^7.28.6", + "@babel/plugin-transform-unicode-regex": "^7.27.1", + "@babel/plugin-transform-unicode-sets-regex": "^7.28.6", "@babel/preset-modules": "0.1.6-no-external-plugins", - "babel-plugin-polyfill-corejs2": "^0.4.10", - "babel-plugin-polyfill-corejs3": "^0.10.6", - "babel-plugin-polyfill-regenerator": "^0.6.1", - "core-js-compat": "^3.38.1", + "babel-plugin-polyfill-corejs2": "^0.4.15", + "babel-plugin-polyfill-corejs3": "^0.14.0", + "babel-plugin-polyfill-regenerator": "^0.6.6", + "core-js-compat": "^3.48.0", "semver": "^6.3.1" }, "engines": { @@ -1883,9 +1899,9 @@ } }, "node_modules/@babel/register": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/register/-/register-7.25.9.tgz", - "integrity": "sha512-8D43jXtGsYmEeDvm4MWHYUpWf8iiXgWYx3fW7E7Wb7Oe6FWqJPl5K6TuFW0dOwNZzEE5rjlaSJYH9JjrUKJszA==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/register/-/register-7.28.6.tgz", + "integrity": "sha512-pgcbbEl/dWQYb6L6Yew6F94rdwygfuv+vJ/tXfwIOYAfPB6TNWpXUMEtEq3YuTeHRdvMIhvz13bkT9CNaS+wqA==", "dev": true, "license": "MIT", "dependencies": { @@ -1902,76 +1918,69 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/runtime": { - "version": "7.26.0", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.0.tgz", - "integrity": "sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==", - "dev": true, - "license": "MIT", - "dependencies": { - "regenerator-runtime": "^0.14.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/template": { - "version": "7.25.9", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.9.tgz", - "integrity": "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", + "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.25.9", - "@babel/parser": "^7.25.9", - "@babel/types": "^7.25.9" + "@babel/code-frame": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.26.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.26.5.tgz", - "integrity": "sha512-rkOSPOw+AXbgtwUga3U4u8RpoK9FEFWBNAlTpcnkLFjL5CT+oyHNuUUC/xx6XefEJ16r38r8Bc/lfp6rYuHeJQ==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", + "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.26.2", - "@babel/generator": "^7.26.5", - "@babel/parser": "^7.26.5", - "@babel/template": "^7.25.9", - "@babel/types": "^7.26.5", - "debug": "^4.3.1", - "globals": "^11.1.0" + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0", + "debug": "^4.3.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/types": { - "version": "7.26.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.5.tgz", - "integrity": "sha512-L6mZmwFDK6Cjh1nRCLXpa6no13ZIioJDz7mdkzHv399pThrTa/k0nUlNaenOeh2kWu/iaOQYElEpKPUswUa9Vg==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.25.9", - "@babel/helper-validator-identifier": "^7.25.9" + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", - "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", "license": "MIT", "dependencies": { - "@jridgewell/set-array": "^1.2.1", - "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" - }, - "engines": { - "node": ">=6.0.0" } }, "node_modules/@jridgewell/resolve-uri": { @@ -1983,25 +1992,16 @@ "node": ">=6.0.0" } }, - "node_modules/@jridgewell/set-array": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", - "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", - "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.25", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", - "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", @@ -2052,6 +2052,7 @@ "version": "0.7.3", "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.3.tgz", "integrity": "sha512-DE427ROAphMQzU4ENbliGYrBSYPXF+TtLg9S8vzeA+OF4ZKzoDdzfL8sxuMUGS/lgRhM6j1URSk9ghf7Xo1tyA==", + "deprecated": "Deprecated: no longer maintained and no longer used by Sinon packages. See\n https://github.com/sinonjs/nise/issues/243 for replacement details.", "dev": true, "license": "(Unlicense OR Apache-2.0)" }, @@ -2133,14 +2134,14 @@ "license": "MIT" }, "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.12", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.12.tgz", - "integrity": "sha512-CPWT6BwvhrTO2d8QVorhTCQw9Y43zOu7G9HigcfxvepOU6b8o3tcWad6oVgZIsZCTt42FFv97aA7ZJsbM4+8og==", + "version": "0.4.17", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.17.tgz", + "integrity": "sha512-aTyf30K/rqAsNwN76zYrdtx8obu0E4KoUME29B1xj+B3WxgvWkp943vYQ+z8Mv3lw9xHXMHpvSPOBxzAkIa94w==", "dev": true, "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.6.3", + "@babel/compat-data": "^7.28.6", + "@babel/helper-define-polyfill-provider": "^0.6.8", "semver": "^6.3.1" }, "peerDependencies": { @@ -2148,27 +2149,27 @@ } }, "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.10.6", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.6.tgz", - "integrity": "sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA==", + "version": "0.14.2", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.14.2.tgz", + "integrity": "sha512-coWpDLJ410R781Npmn/SIBZEsAetR4xVi0SxLMXPaMO4lSf1MwnkGYMtkFxew0Dn8B3/CpbpYxN0JCgg8mn67g==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.2", - "core-js-compat": "^3.38.0" + "@babel/helper-define-polyfill-provider": "^0.6.8", + "core-js-compat": "^3.48.0" }, "peerDependencies": { "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.3.tgz", - "integrity": "sha512-LiWSbl4CRSIa5x/JAU6jZiG9eit9w6mz+yVMFwDE83LAWvt0AfGBoZ7HS/mkhrKuh2ZlzfVZYKoLjXdqw6Yt7Q==", + "version": "0.6.8", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.8.tgz", + "integrity": "sha512-M762rNHfSF1EV3SLtnCJXFoQbbIIz0OyRwnCmV0KPC7qosSfCO0QLTSuJX3ayAebubhE6oYBAYPrBA5ljowaZg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.3" + "@babel/helper-define-polyfill-provider": "^0.6.8" }, "peerDependencies": { "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" @@ -2180,6 +2181,18 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "license": "MIT" }, + "node_modules/baseline-browser-mapping": { + "version": "2.10.16", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.16.tgz", + "integrity": "sha512-Lyf3aK28zpsD1yQMiiHD4RvVb6UdMoo8xzG2XzFIfR9luPzOpcBlAsT/qfB1XWS1bxWT+UtE4WmQgsp297FYOA==", + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, "node_modules/binary-extensions": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", @@ -2194,9 +2207,9 @@ } }, "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.13.tgz", + "integrity": "sha512-9ZLprWS6EENmhEOpjCYW2c8VkmOvckIJZfkr7rBW6dObmfgJ/L1GpSYW5Hpo9lDz4D1+n0Ckz8rU7FwHDQiG/w==", "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", @@ -2224,9 +2237,9 @@ "license": "ISC" }, "node_modules/browserslist": { - "version": "4.24.4", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", - "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", + "version": "4.28.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz", + "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==", "funding": [ { "type": "opencollective", @@ -2243,10 +2256,11 @@ ], "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001688", - "electron-to-chromium": "^1.5.73", - "node-releases": "^2.0.19", - "update-browserslist-db": "^1.1.1" + "baseline-browser-mapping": "^2.10.12", + "caniuse-lite": "^1.0.30001782", + "electron-to-chromium": "^1.5.328", + "node-releases": "^2.0.36", + "update-browserslist-db": "^1.2.3" }, "bin": { "browserslist": "cli.js" @@ -2263,9 +2277,9 @@ "license": "MIT" }, "node_modules/call-bind-apply-helpers": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz", - "integrity": "sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", "license": "MIT", "dependencies": { "es-errors": "^1.3.0", @@ -2276,13 +2290,13 @@ } }, "node_modules/call-bound": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.3.tgz", - "integrity": "sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", "license": "MIT", "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "get-intrinsic": "^1.2.6" + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" }, "engines": { "node": ">= 0.4" @@ -2305,9 +2319,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001692", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001692.tgz", - "integrity": "sha512-A95VKan0kdtrsnMubMKxEKUKImOPSuCpYgxSQBo036P5YYgVIcOYJEgt/txJWqObiRQeISNCfef9nvlQ0vbV7A==", + "version": "1.0.30001786", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001786.tgz", + "integrity": "sha512-4oxTZEvqmLLrERwxO76yfKM7acZo310U+v4kqexI2TL1DkkUEMT8UijrxxcnVdxR3qkVf5awGRX+4Z6aPHVKrA==", "funding": [ { "type": "opencollective", @@ -2530,13 +2544,13 @@ "license": "MIT" }, "node_modules/core-js-compat": { - "version": "3.40.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.40.0.tgz", - "integrity": "sha512-0XEDpr5y5mijvw8Lbc6E5AkjrHfp7eEoPlu36SWeAbcL8fn1G1ANe8DBlo2XoNN89oVpxWwOjYIPVzR4ZvsKCQ==", + "version": "3.49.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.49.0.tgz", + "integrity": "sha512-VQXt1jr9cBz03b331DFDCCP90b3fanciLkgiOoy8SBHy06gNf+vQ1A3WFLqG7I8TipYIKeYK9wxd0tUrvHcOZA==", "dev": true, "license": "MIT", "dependencies": { - "browserslist": "^4.24.3" + "browserslist": "^4.28.1" }, "funding": { "type": "opencollective", @@ -2544,9 +2558,9 @@ } }, "node_modules/debug": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", - "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -2607,9 +2621,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.83", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.83.tgz", - "integrity": "sha512-LcUDPqSt+V0QmI47XLzZrz5OqILSMGsPFkDYus22rIbgorSvBYEFqq854ltTmUdHkY92FSdAAvsh4jWEULMdfQ==", + "version": "1.5.332", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.332.tgz", + "integrity": "sha512-7OOtytmh/rINMLwaFTbcMVvYXO3AUm029X0LcyfYk0B557RlPkdpTpnH9+htMlfu5dKwOmT0+Zs2Aw+lnn6TeQ==", "license": "ISC" }, "node_modules/emoji-regex": { @@ -2649,6 +2663,21 @@ "node": ">= 0.4" } }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/escalade": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", @@ -2749,14 +2778,16 @@ } }, "node_modules/form-data": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.2.tgz", - "integrity": "sha512-sJe+TQb2vIaIyO783qN6BlMYWMw3WBOHA1Ay2qxsnjuafEOQFJ2JakedOQirT6D5XPRxDvS7AHYyem9fTpb4LQ==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.4.tgz", + "integrity": "sha512-f0cRzm6dkyVYV3nPoooP8XlccPQukegwhAnpoLcXy+X+A8KfpGOoXwDr9FLZd3wzgLaBGQBE3lY93Zm/i1JvIQ==", "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.35" }, "engines": { "node": ">= 6" @@ -2827,17 +2858,17 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.7.tgz", - "integrity": "sha512-VW6Pxhsrk0KAOqs3WEd0klDiF/+V7gQOpAvY1jVU/LHmaD/kQO4523aiJuikX/QAKYiW6x8Jh+RJej1almdtCA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "license": "MIT", "dependencies": { - "call-bind-apply-helpers": "^1.0.1", + "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", + "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", - "get-proto": "^1.0.0", + "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", @@ -2867,7 +2898,7 @@ "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -2897,15 +2928,6 @@ "node": ">= 6" } }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, "node_modules/gopd": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", @@ -2950,6 +2972,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/hasown": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", @@ -3185,9 +3222,9 @@ } }, "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "version": "4.18.1", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz", + "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==", "dev": true, "license": "MIT" }, @@ -3301,9 +3338,9 @@ } }, "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" @@ -3408,7 +3445,7 @@ "version": "7.1.6", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", - "deprecated": "Glob versions prior to v9 are no longer supported", + "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me", "dev": true, "license": "ISC", "dependencies": { @@ -3496,9 +3533,9 @@ } }, "node_modules/node-releases": { - "version": "2.0.19", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", - "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "version": "2.0.37", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.37.tgz", + "integrity": "sha512-1h5gKZCF+pO/o3Iqt5Jp7wc9rH3eJJ0+nh/CIoiRwjRxde/hAHyLPXYN4V3CqKAbiZPSeJFSWHmJsbkicta0Eg==", "license": "MIT" }, "node_modules/normalize-path": { @@ -3512,9 +3549,9 @@ } }, "node_modules/object-inspect": { - "version": "1.13.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz", - "integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==", + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", "license": "MIT", "engines": { "node": ">= 0.4" @@ -3617,9 +3654,9 @@ "license": "ISC" }, "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", "devOptional": true, "license": "MIT", "engines": { @@ -3639,9 +3676,9 @@ } }, "node_modules/pirates": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", - "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", "dev": true, "license": "MIT", "engines": { @@ -3728,9 +3765,9 @@ } }, "node_modules/qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", + "version": "6.15.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.0.tgz", + "integrity": "sha512-mAZTtNCeetKMH+pSjrb76NAM8V9a05I9aBZOHztWy/UqcJdQYNsf59vrRKWnojAT9Y+GbIvoTBC++CPHqpDBhQ==", "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.1.0" @@ -3787,9 +3824,9 @@ "license": "MIT" }, "node_modules/regenerate-unicode-properties": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.0.tgz", - "integrity": "sha512-DqHn3DwbmmPVzeKj9woBadqmXxLvQoQIwu7nopMc72ztvxVmVk2SBhSnx67zuye5TP+lJsb/TBQsjLKhnDf3MA==", + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.2.tgz", + "integrity": "sha512-m03P+zhBeQd1RGnYxrGyDAPpWX/epKirLrp8e3qevZdVkKtnCrjjWczIbYc8+xd6vcTStVlqfycTx1KR4LOr0g==", "dev": true, "license": "MIT", "dependencies": { @@ -3799,36 +3836,19 @@ "node": ">=4" } }, - "node_modules/regenerator-runtime": { - "version": "0.14.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", - "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", - "dev": true, - "license": "MIT" - }, - "node_modules/regenerator-transform": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", - "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.8.4" - } - }, "node_modules/regexpu-core": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.2.0.tgz", - "integrity": "sha512-H66BPQMrv+V16t8xtmq+UC0CBpiTBA60V8ibS1QVReIp8T1z8hwFxqcGzm9K6lgsN7sB5edVH8a+ze6Fqm4weA==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.4.0.tgz", + "integrity": "sha512-0ghuzq67LI9bLXpOX/ISfve/Mq33a4aFRzoQYhnnok1JOFpmE/A2TBGkNVenOGEeSBCjIiWcc6MVOG5HEQv0sA==", "dev": true, "license": "MIT", "dependencies": { "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.2.0", + "regenerate-unicode-properties": "^10.2.2", "regjsgen": "^0.8.0", - "regjsparser": "^0.12.0", + "regjsparser": "^0.13.0", "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" + "unicode-match-property-value-ecmascript": "^2.2.1" }, "engines": { "node": ">=4" @@ -3842,31 +3862,18 @@ "license": "MIT" }, "node_modules/regjsparser": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.12.0.tgz", - "integrity": "sha512-cnE+y8bz4NhMjISKbgeVJtqNbtf5QpjZP+Bslo+UqkIt9QPnX9q095eiRRASJG1/tz6dlNr6Z5NsBiWYokp6EQ==", + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.1.tgz", + "integrity": "sha512-dLsljMd9sqwRkby8zhO1gSg3PnJIBFid8f4CQj/sXx+7cKx+E7u0PKhZ+U4wmhx7EfmtvnA318oVaIkAB1lRJw==", "dev": true, "license": "BSD-2-Clause", "dependencies": { - "jsesc": "~3.0.2" + "jsesc": "~3.1.0" }, "bin": { "regjsparser": "bin/parser" } }, - "node_modules/regjsparser/node_modules/jsesc": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz", - "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -3878,13 +3885,13 @@ } }, "node_modules/resolve": { - "version": "1.22.10", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", - "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", "dev": true, "license": "MIT", "dependencies": { - "is-core-module": "^2.16.0", + "is-core-module": "^2.16.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, @@ -4040,9 +4047,9 @@ } }, "node_modules/sinon/node_modules/diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.1.tgz", + "integrity": "sha512-Z3u54A8qGyqFOSr2pk0ijYs8mOE9Qz8kTvtKeBI+upoG9j04Sq+oI7W8zAJiQybDcESET8/uIdHzs0p3k4fZlw==", "dev": true, "license": "BSD-3-Clause", "engines": { @@ -4155,7 +4162,7 @@ "version": "5.3.1", "resolved": "https://registry.npmjs.org/superagent/-/superagent-5.3.1.tgz", "integrity": "sha512-wjJ/MoTid2/RuGCOFtlacyGNxN9QLMgcpYLDQlWFIhhdJ93kNscFonGvrpAHSCVjRVj++DGCglocF7Aej1KHvQ==", - "deprecated": "Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net", + "deprecated": "Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net", "license": "MIT", "dependencies": { "component-emitter": "^1.3.0", @@ -4175,9 +4182,9 @@ } }, "node_modules/superagent/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", "license": "ISC", "bin": { "semver": "bin/semver.js" @@ -4263,9 +4270,9 @@ } }, "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.0.tgz", - "integrity": "sha512-4IehN3V/+kkr5YeSSDDQG8QLqO26XpL2XP3GQtqwlT/QYSECAwFztxVHjlbh0+gjJ3XmNLS0zDsbgs9jWKExLg==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.1.tgz", + "integrity": "sha512-JQ84qTuMg4nVkx8ga4A16a1epI9H6uTXAknqxkGF/aFfRLw1xC/Bp24HNLaZhHSkWd3+84t8iXnp1J0kYcZHhg==", "dev": true, "license": "MIT", "engines": { @@ -4273,9 +4280,9 @@ } }, "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.2.0.tgz", + "integrity": "sha512-hpbDzxUY9BFwX+UeBnxv3Sh1q7HFxj48DTmXchNgRa46lO8uj3/1iEn3MiNUYTg1g9ctIqXCCERn8gYZhHC5lQ==", "dev": true, "license": "MIT", "engines": { @@ -4283,9 +4290,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.2.tgz", - "integrity": "sha512-PPypAm5qvlD7XMZC3BujecnaOxwhrtoFR+Dqkk5Aa/6DssiH0ibKoketaj9w8LP7Bont1rYeoV5plxD7RTEPRg==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", "funding": [ { "type": "opencollective", diff --git a/package.json b/package.json index 658a330a..2e29233c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nexgencloud/hyperstack-sdk-javascript", - "version": "v1.25.0-alpha", + "version": "v1.51.1-alpha", "description": "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.", "license": "MIT License", "main": "dist/index.js", diff --git a/src/ApiClient.js b/src/ApiClient.js index c8143e21..7259243c 100644 --- a/src/ApiClient.js +++ b/src/ApiClient.js @@ -16,7 +16,7 @@ import superagent from "superagent"; /** * @module ApiClient -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ /** @@ -45,7 +45,6 @@ class ApiClient { * @type {Array.} */ this.authentications = { - 'accessToken': {type: 'apiKey', 'in': 'header', name: 'Authorization'}, 'apiKey': {type: 'apiKey', 'in': 'header', name: 'api_key'} } @@ -55,7 +54,7 @@ class ApiClient { * @default {} */ this.defaultHeaders = { - 'User-Agent': 'OpenAPI-Generator/v1.25.0-alpha/Javascript' + 'User-Agent': 'OpenAPI-Generator/v1.51.1-alpha/Javascript' }; /** diff --git a/src/api/AccessKeysApi.js b/src/api/AccessKeysApi.js new file mode 100644 index 00000000..eada74f3 --- /dev/null +++ b/src/api/AccessKeysApi.js @@ -0,0 +1,183 @@ +/** + * 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 ObjectStorageAccessKeyCreateRequest from '../model/ObjectStorageAccessKeyCreateRequest'; +import ObjectStorageAccessKeyCreateResponse from '../model/ObjectStorageAccessKeyCreateResponse'; +import ObjectStorageAccessKeyListResponse from '../model/ObjectStorageAccessKeyListResponse'; +import ObjectStorageDeleteResponse from '../model/ObjectStorageDeleteResponse'; +import ObjectStorageErrorResponse from '../model/ObjectStorageErrorResponse'; + +/** +* AccessKeys service. +* @module api/AccessKeysApi +* @version v1.51.1-alpha +*/ +export default class AccessKeysApi { + + /** + * 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. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.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 + */ + createAccessKeyEndpointWithHttpInfo(opts) { + opts = opts || {}; + let postBody = opts['body']; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = ObjectStorageAccessKeyCreateResponse; + 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} + */ + 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 + */ + deleteAccessKeyEndpointWithHttpInfo(accessKeyId) { + let 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"); + } + + let pathParams = { + 'access_key_id': accessKeyId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ObjectStorageDeleteResponse; + 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} + */ + 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 + */ + listAccessKeysEndpointWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'search': opts['search'], + 'page': opts['page'], + 'page_size': opts['pageSize'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ObjectStorageAccessKeyListResponse; + 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} + */ + listAccessKeysEndpoint(opts) { + return this.listAccessKeysEndpointWithHttpInfo(opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/api/AliveApi.js b/src/api/AliveApi.js index 588a0408..73c3c2c0 100644 --- a/src/api/AliveApi.js +++ b/src/api/AliveApi.js @@ -17,7 +17,7 @@ import ApiClient from "../ApiClient"; /** * Alive service. * @module api/AliveApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class AliveApi { @@ -36,6 +36,7 @@ export default class AliveApi { /** * 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 */ getAliveWithHttpInfo() { @@ -50,7 +51,7 @@ export default class AliveApi { let formParams = { }; - let authNames = []; + let authNames = ['apiKey']; let contentTypes = []; let accepts = []; let returnType = null; @@ -63,6 +64,7 @@ export default class AliveApi { /** * 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} */ getAlive() { @@ -73,4 +75,41 @@ export default class AliveApi { } + /** + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + getAliveDocWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = []; + let 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} + */ + getAliveDoc() { + return this.getAliveDocWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + } diff --git a/src/api/ApiKeyApi.js b/src/api/ApiKeyApi.js index 40918683..486c5660 100644 --- a/src/api/ApiKeyApi.js +++ b/src/api/ApiKeyApi.js @@ -22,7 +22,7 @@ import GetApiKeysResponseModel from '../model/GetApiKeysResponseModel'; /** * ApiKey service. * @module api/ApiKeyApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class ApiKeyApi { @@ -45,11 +45,11 @@ export default class ApiKeyApi { * @param {Number} apiKeyId * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CommonResponseModel} and HTTP response */ - deleteApiKeyWithHttpInfo(apiKeyId) { + deleteAPIKeyWithHttpInfo(apiKeyId) { let 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"); } let pathParams = { @@ -62,7 +62,7 @@ export default class ApiKeyApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = CommonResponseModel; @@ -79,8 +79,8 @@ export default class ApiKeyApi { * @param {Number} apiKeyId * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CommonResponseModel} */ - deleteApiKey(apiKeyId) { - return this.deleteApiKeyWithHttpInfo(apiKeyId) + deleteAPIKey(apiKeyId) { + return this.deleteAPIKeyWithHttpInfo(apiKeyId) .then(function(response_and_data) { return response_and_data.data; }); @@ -89,15 +89,15 @@ export default class ApiKeyApi { /** * 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 */ - generateApiKeyWithHttpInfo(payload) { + generateAPIKeyWithHttpInfo(payload) { let 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"); } let pathParams = { @@ -109,7 +109,7 @@ export default class ApiKeyApi { let formParams = { }; - let authNames = ['accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = GenerateUpdateApiKeyResponseModel; @@ -122,12 +122,12 @@ export default class ApiKeyApi { /** * 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} */ - generateApiKey(payload) { - return this.generateApiKeyWithHttpInfo(payload) + generateAPIKey(payload) { + return this.generateAPIKeyWithHttpInfo(payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -136,10 +136,10 @@ export default class ApiKeyApi { /** * 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 */ - retrieveApiKeysWithHttpInfo() { + getAPIKeyWithHttpInfo() { let postBody = null; let pathParams = { @@ -151,7 +151,7 @@ export default class ApiKeyApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = GetApiKeysResponseModel; @@ -164,11 +164,11 @@ export default class ApiKeyApi { /** * 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} */ - retrieveApiKeys() { - return this.retrieveApiKeysWithHttpInfo() + getAPIKey() { + return this.getAPIKeyWithHttpInfo() .then(function(response_and_data) { return response_and_data.data; }); @@ -182,15 +182,15 @@ export default class ApiKeyApi { * @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 */ - updateApiKeyWithHttpInfo(apiKeyId, payload) { + updateAPIKeyWithHttpInfo(apiKeyId, payload) { let 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"); } let pathParams = { @@ -203,7 +203,7 @@ export default class ApiKeyApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = GenerateUpdateApiKeyResponseModel; @@ -221,8 +221,8 @@ export default class ApiKeyApi { * @param {module:model/GenerateUpdateApiKeyPayload} payload * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GenerateUpdateApiKeyResponseModel} */ - updateApiKey(apiKeyId, payload) { - return this.updateApiKeyWithHttpInfo(apiKeyId, payload) + updateAPIKey(apiKeyId, payload) { + return this.updateAPIKeyWithHttpInfo(apiKeyId, payload) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/AssigningMemberRoleApi.js b/src/api/AssigningMemberRoleApi.js index ad33e5a6..e5f45882 100644 --- a/src/api/AssigningMemberRoleApi.js +++ b/src/api/AssigningMemberRoleApi.js @@ -21,7 +21,7 @@ import RbacRoleDetailResponseModel from '../model/RbacRoleDetailResponseModel'; /** * AssigningMemberRole service. * @module api/AssigningMemberRoleApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class AssigningMemberRoleApi { @@ -40,20 +40,20 @@ export default class AssigningMemberRoleApi { /** * 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 */ - assignRbacRoleWithHttpInfo(userId, payload) { + assignRBACRoleToUserWithHttpInfo(userId, payload) { let 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"); } let pathParams = { @@ -66,7 +66,7 @@ export default class AssigningMemberRoleApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = RbacRoleDetailResponseModel; @@ -79,13 +79,13 @@ export default class AssigningMemberRoleApi { /** * 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} */ - assignRbacRole(userId, payload) { - return this.assignRbacRoleWithHttpInfo(userId, payload) + assignRBACRoleToUser(userId, payload) { + return this.assignRBACRoleToUserWithHttpInfo(userId, payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -94,15 +94,15 @@ export default class AssigningMemberRoleApi { /** * 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 */ - removeRbacRoleFromUserWithHttpInfo(userId) { + removeRBACRoleFromUserWithHttpInfo(userId) { let 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"); } let pathParams = { @@ -115,7 +115,7 @@ export default class AssigningMemberRoleApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = CommonResponseModel; @@ -128,12 +128,12 @@ export default class AssigningMemberRoleApi { /** * 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} */ - removeRbacRoleFromUser(userId) { - return this.removeRbacRoleFromUserWithHttpInfo(userId) + removeRBACRoleFromUser(userId) { + return this.removeRBACRoleFromUserWithHttpInfo(userId) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/AuthApi.js b/src/api/AuthApi.js index effaf427..6b224f8c 100644 --- a/src/api/AuthApi.js +++ b/src/api/AuthApi.js @@ -13,13 +13,17 @@ import ApiClient from "../ApiClient"; +import AuthGetTokenResponseModel from '../model/AuthGetTokenResponseModel'; import AuthUserInfoResponseModel from '../model/AuthUserInfoResponseModel'; +import CommonResponseModel from '../model/CommonResponseModel'; import ErrorResponseModel from '../model/ErrorResponseModel'; +import MFAStatusResponse from '../model/MFAStatusResponse'; +import UserOrganizationsResponse from '../model/UserOrganizationsResponse'; /** * Auth service. * @module api/AuthApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class AuthApi { @@ -36,9 +40,176 @@ export default class AuthApi { + /** + * 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 + */ + changeOrganizationForTokenWithHttpInfo(orgId) { + let 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"); + } + + let pathParams = { + 'org_id': orgId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = AuthGetTokenResponseModel; + 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} + */ + 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 + */ + disableMFAWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = CommonResponseModel; + 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} + */ + 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 + */ + getUserMFAStatusWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = MFAStatusResponse; + 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} + */ + 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 + */ + getUserOrganizationsWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = UserOrganizationsResponse; + 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} + */ + 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://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 an object containing data of type {@link module:model/AuthUserInfoResponseModel} and HTTP response */ retrieveAuthenticatedUserDetailsWithHttpInfo() { @@ -53,7 +224,7 @@ export default class AuthApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = AuthUserInfoResponseModel; @@ -66,7 +237,7 @@ export default class AuthApi { /** * 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} */ retrieveAuthenticatedUserDetails() { diff --git a/src/api/BetaAccessApi.js b/src/api/BetaAccessApi.js new file mode 100644 index 00000000..d9bd98b5 --- /dev/null +++ b/src/api/BetaAccessApi.js @@ -0,0 +1,177 @@ +/** + * 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 BetaAccessRequestPayload from '../model/BetaAccessRequestPayload'; +import BetaAccessRequestResponseModel from '../model/BetaAccessRequestResponseModel'; +import BetaAccessStatusResponseModel from '../model/BetaAccessStatusResponseModel'; +import ErrorResponseModel from '../model/ErrorResponseModel'; + +/** +* BetaAccess service. +* @module api/BetaAccessApi +* @version v1.51.1-alpha +*/ +export default class BetaAccessApi { + + /** + * 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. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.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 + */ + createBetaAccessRequestWithHttpInfo(payload) { + let 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"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = BetaAccessRequestResponseModel; + 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} + */ + 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 + */ + getBetaAccessRequestsWithHttpInfo(program) { + let 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"); + } + + let pathParams = { + 'program': program + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = BetaAccessStatusResponseModel; + 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} + */ + 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 + */ + getBetaAccessStatusWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = BetaAccessStatusResponseModel; + 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} + */ + getBetaAccessStatus() { + return this.getBetaAccessStatusWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/api/BillingApi.js b/src/api/BillingApi.js index ac99d094..3154abf3 100644 --- a/src/api/BillingApi.js +++ b/src/api/BillingApi.js @@ -13,27 +13,38 @@ import ApiClient from "../ApiClient"; -import Billingmetricesresponse from '../model/Billingmetricesresponse'; +import BillingMetricesResponse from '../model/BillingMetricesResponse'; +import DataSynthesisBillingHistoryDetailsResponseSchema from '../model/DataSynthesisBillingHistoryDetailsResponseSchema'; import ErrorResponseModel from '../model/ErrorResponseModel'; -import Lastdaycostresponse from '../model/Lastdaycostresponse'; +import LastDayCostResponse from '../model/LastDayCostResponse'; +import ModelEvaluationBillingHistoryDetailsResponseSchema from '../model/ModelEvaluationBillingHistoryDetailsResponseSchema'; import OrganizationLevelBillingHistoryResponseModel from '../model/OrganizationLevelBillingHistoryResponseModel'; -import Organizationthresholdsresponse from '../model/Organizationthresholdsresponse'; -import Organizationthresholdupdateresponse from '../model/Organizationthresholdupdateresponse'; +import OrganizationThresholdUpdateResponse from '../model/OrganizationThresholdUpdateResponse'; +import OrganizationThresholdsResponse from '../model/OrganizationThresholdsResponse'; import ResourceBillingEventsHistoryResponse from '../model/ResourceBillingEventsHistoryResponse'; +import ResourceLevelBucketBillingDetailsResponseModel from '../model/ResourceLevelBucketBillingDetailsResponseModel'; +import ResourceLevelBucketBillingHistoryResponseModel from '../model/ResourceLevelBucketBillingHistoryResponseModel'; +import ResourceLevelClusterBillingDetailsResponseModel from '../model/ResourceLevelClusterBillingDetailsResponseModel'; +import ResourceLevelClusterBillingHistoryResponseModel from '../model/ResourceLevelClusterBillingHistoryResponseModel'; +import ResourceLevelClusterGraphBillingDetailsResponseModel from '../model/ResourceLevelClusterGraphBillingDetailsResponseModel'; +import ResourceLevelGraphBillingDetailsBucket from '../model/ResourceLevelGraphBillingDetailsBucket'; import ResourceLevelVMBillingDetailsResponseModel from '../model/ResourceLevelVMBillingDetailsResponseModel'; import ResourceLevelVmBillingHistoryResponseModel from '../model/ResourceLevelVmBillingHistoryResponseModel'; import ResourceLevelVmGraphBillingDetailsResponseModel from '../model/ResourceLevelVmGraphBillingDetailsResponseModel'; import ResourceLevelVolumeBillingDetailsResponseModel from '../model/ResourceLevelVolumeBillingDetailsResponseModel'; import ResourceLevelVolumeBillingHistoryResponseModel from '../model/ResourceLevelVolumeBillingHistoryResponseModel'; import ResourceLevelVolumeGraphBillingDetailsResponseModel from '../model/ResourceLevelVolumeGraphBillingDetailsResponseModel'; +import ServerlessInferencedBillingHistoryDetailsResponseSchema from '../model/ServerlessInferencedBillingHistoryDetailsResponseSchema'; import SubResourcesCostsResponseModel from '../model/SubResourcesCostsResponseModel'; import SubResourcesGraphResponseModel from '../model/SubResourcesGraphResponseModel'; -import Subscribeorunsubscribeupdatepayload from '../model/Subscribeorunsubscribeupdatepayload'; +import SubscribeOrUnsubscribeUpdatePayload from '../model/SubscribeOrUnsubscribeUpdatePayload'; +import TokenBasedBillingHistoryResponse from '../model/TokenBasedBillingHistoryResponse'; +import WorkloadBillingHistoryResponse from '../model/WorkloadBillingHistoryResponse'; /** * Billing service. * @module api/BillingApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class BillingApi { @@ -51,40 +62,56 @@ export default class BillingApi { /** - * 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 */ - getAllThresholdsForOrganizationWithHttpInfo() { + bucketsBillingHistoryHourlyChartWithHttpInfo(bucketId, opts) { + opts = opts || {}; let postBody = null; + // verify the required parameter 'bucketId' is set + if (bucketId === undefined || bucketId === null) { + throw new Error("Missing the required parameter 'bucketId' when calling bucketsBillingHistoryHourlyChart"); + } let pathParams = { + 'bucket_id': bucketId }; let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = Organizationthresholdsresponse; + let returnType = ResourceLevelGraphBillingDetailsBucket; return this.apiClient.callApi( - '/billing/billing/threshold', 'GET', + '/billing/billing/history/bucket/{bucket_id}/graph', '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} + * 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 + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelGraphBillingDetailsBucket} */ - getAllThresholdsForOrganization() { - return this.getAllThresholdsForOrganizationWithHttpInfo() + bucketsBillingHistoryHourlyChart(bucketId, opts) { + return this.bucketsBillingHistoryHourlyChartWithHttpInfo(bucketId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -92,49 +119,56 @@ export default class BillingApi { /** - * 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) + * Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle + * 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} [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 + * @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/ResourceLevelBucketBillingDetailsResponseModel} and HTTP response */ - getBillingUsageWithHttpInfo(opts) { + getBucketBillingHistoryWithHttpInfo(bucketId, opts) { opts = opts || {}; let postBody = null; + // verify the required parameter 'bucketId' is set + if (bucketId === undefined || bucketId === null) { + throw new Error("Missing the required parameter 'bucketId' when calling getBucketBillingHistory"); + } let pathParams = { + 'bucket_id': bucketId }; let queryParams = { - 'deleted': opts['deleted'], - 'environment': opts['environment'] + 'start_date': opts['startDate'], + 'end_date': opts['endDate'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = Billingmetricesresponse; + let returnType = ResourceLevelBucketBillingDetailsResponseModel; return this.apiClient.callApi( - '/billing/billing/usage', 'GET', + '/billing/billing/history/bucket/{bucket_id}', '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) + * Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle + * 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.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} + * @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/ResourceLevelBucketBillingDetailsResponseModel} */ - getBillingUsage(opts) { - return this.getBillingUsageWithHttpInfo(opts) + getBucketBillingHistory(bucketId, opts) { + return this.getBucketBillingHistoryWithHttpInfo(bucketId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -142,40 +176,56 @@ export default class BillingApi { /** - * 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 + * 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/ResourceLevelClusterBillingDetailsResponseModel} and HTTP response */ - getLastDayCostWithHttpInfo() { + getClusterBillingHistoryWithHttpInfo(clusterId, opts) { + opts = opts || {}; let postBody = null; + // verify the required parameter 'clusterId' is set + if (clusterId === undefined || clusterId === null) { + throw new Error("Missing the required parameter 'clusterId' when calling getClusterBillingHistory"); + } let pathParams = { + 'cluster_id': clusterId }; let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = Lastdaycostresponse; + let returnType = ResourceLevelClusterBillingDetailsResponseModel; return this.apiClient.callApi( - '/billing/billing/last-day-cost', 'GET', + '/billing/billing/history/cluster/{cluster_id}', '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} + * 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/ResourceLevelClusterBillingDetailsResponseModel} */ - getLastDayCost() { - return this.getLastDayCostWithHttpInfo() + getClusterBillingHistory(clusterId, opts) { + return this.getClusterBillingHistoryWithHttpInfo(clusterId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -183,52 +233,56 @@ export default class BillingApi { /** - * 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 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 - * @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 + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelClusterGraphBillingDetailsResponseModel} and HTTP response */ - retrieveBillingHistoryForASpecificBillingCycleWithHttpInfo(opts) { + getClusterBillingHistoryGraphWithHttpInfo(clusterId, opts) { opts = opts || {}; let postBody = null; + // verify the required parameter 'clusterId' is set + if (clusterId === undefined || clusterId === null) { + throw new Error("Missing the required parameter 'clusterId' when calling getClusterBillingHistoryGraph"); + } let pathParams = { + 'cluster_id': clusterId }; let queryParams = { 'start_date': opts['startDate'], - 'end_date': opts['endDate'], - 'graph': opts['graph'] + 'end_date': opts['endDate'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = OrganizationLevelBillingHistoryResponseModel; + let returnType = ResourceLevelClusterGraphBillingDetailsResponseModel; return this.apiClient.callApi( - '/billing/billing/history', 'GET', + '/billing/billing/history/cluster/{cluster_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 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 - * @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/ResourceLevelClusterGraphBillingDetailsResponseModel} */ - retrieveBillingHistoryForASpecificBillingCycle(opts) { - return this.retrieveBillingHistoryForASpecificBillingCycleWithHttpInfo(opts) + getClusterBillingHistoryGraph(clusterId, opts) { + return this.getClusterBillingHistoryGraphWithHttpInfo(clusterId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -236,56 +290,58 @@ export default class BillingApi { /** - * 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 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] 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 + * @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 */ - retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo(snapshotId, opts) { + getDataSynthesisBillingHistoryWithHttpInfo(opts) { opts = opts || {}; let 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"); - } let pathParams = { - 'snapshot_id': snapshotId }; let queryParams = { 'start_date': opts['startDate'], - 'end_date': opts['endDate'] + 'end_date': opts['endDate'], + 'search': opts['search'], + 'per_page': opts['perPage'], + 'page': opts['page'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = ResourceLevelVolumeBillingDetailsResponseModel; + let returnType = TokenBasedBillingHistoryResponse; return this.apiClient.callApi( - '/billing/billing/history/snapshot/{snapshot_id}', 'GET', + '/billing/billing/history/data_synthesis', '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 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 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} + * @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} */ - retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle(snapshotId, opts) { - return this.retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo(snapshotId, opts) + getDataSynthesisBillingHistory(opts) { + return this.getDataSynthesisBillingHistoryWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -293,24 +349,24 @@ export default class BillingApi { /** - * 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 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 - * @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/DataSynthesisBillingHistoryDetailsResponseSchema} and HTTP response */ - retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo(vmId, opts) { + getDataSynthesisBillingHistoryGraphWithHttpInfo(resourceId, opts) { opts = opts || {}; let 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 'resourceId' is set + if (resourceId === undefined || resourceId === null) { + throw new Error("Missing the required parameter 'resourceId' when calling getDataSynthesisBillingHistoryGraph"); } let pathParams = { - 'vm_id': vmId + 'resource_id': resourceId }; let queryParams = { 'start_date': opts['startDate'], @@ -321,28 +377,28 @@ export default class BillingApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = ResourceLevelVMBillingDetailsResponseModel; + let returnType = DataSynthesisBillingHistoryDetailsResponseSchema; return this.apiClient.callApi( - '/billing/billing/history/virtual-machine/{vm_id}', 'GET', + '/billing/billing/history/data_synthesis/{resource_id}/graph', '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 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 - * @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/DataSynthesisBillingHistoryDetailsResponseSchema} */ - retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle(vmId, opts) { - return this.retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo(vmId, opts) + getDataSynthesisBillingHistoryGraph(resourceId, opts) { + return this.getDataSynthesisBillingHistoryGraphWithHttpInfo(resourceId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -350,24 +406,23 @@ export default class BillingApi { /** - * 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 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 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel} 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 */ - retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycleWithHttpInfo(volumeId, opts) { + getDataSynthesisHistoryForResourceWithHttpInfo(resourceId, opts) { opts = opts || {}; let 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 'resourceId' is set + if (resourceId === undefined || resourceId === null) { + throw new Error("Missing the required parameter 'resourceId' when calling getDataSynthesisHistoryForResource"); } let pathParams = { - 'volume_id': volumeId + 'resource_id': resourceId }; let queryParams = { 'start_date': opts['startDate'], @@ -378,28 +433,27 @@ export default class BillingApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = ResourceLevelVolumeBillingDetailsResponseModel; + let returnType = DataSynthesisBillingHistoryDetailsResponseSchema; return this.apiClient.callApi( - '/billing/billing/history/volume/{volume_id}', 'GET', + '/billing/billing/history/data_synthesis/{resource_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 + * 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 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel} + * @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} */ - retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle(volumeId, opts) { - return this.retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycleWithHttpInfo(volumeId, opts) + getDataSynthesisHistoryForResource(resourceId, opts) { + return this.getDataSynthesisHistoryForResourceWithHttpInfo(resourceId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -407,15 +461,17 @@ export default class BillingApi { /** - * 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 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 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/WorkloadBillingHistoryResponse} and HTTP response */ - retrieveBillingHistoryOfContractForASpecificBillingCycleWithHttpInfo(opts) { + getFineTuningBillingHistoryWithHttpInfo(opts) { opts = opts || {}; let postBody = null; @@ -424,35 +480,39 @@ export default class BillingApi { let queryParams = { 'start_date': opts['startDate'], 'end_date': opts['endDate'], - 'search': opts['search'] + 'search': opts['search'], + 'per_page': opts['perPage'], + 'page': opts['page'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = null; + let returnType = WorkloadBillingHistoryResponse; return this.apiClient.callApi( - '/billing/billing/history/contract', 'GET', + '/billing/billing/history/fine_tuning', '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 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 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/WorkloadBillingHistoryResponse} */ - retrieveBillingHistoryOfContractForASpecificBillingCycle(opts) { - return this.retrieveBillingHistoryOfContractForASpecificBillingCycleWithHttpInfo(opts) + getFineTuningBillingHistory(opts) { + return this.getFineTuningBillingHistoryWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -460,58 +520,56 @@ export default class BillingApi { /** - * 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 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 - * @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/ResourceLevelVolumeGraphBillingDetailsResponseModel} and HTTP response */ - retrieveBillingHistoryOfSnapshotForASpecificBillingCycleWithHttpInfo(opts) { + getFineTuningBillingHistoryGraphWithHttpInfo(resourceId, opts) { opts = opts || {}; let postBody = null; + // verify the required parameter 'resourceId' is set + if (resourceId === undefined || resourceId === null) { + throw new Error("Missing the required parameter 'resourceId' when calling getFineTuningBillingHistoryGraph"); + } let pathParams = { + 'resource_id': resourceId }; let queryParams = { 'start_date': opts['startDate'], - 'end_date': opts['endDate'], - 'search': opts['search'], - 'page': opts['page'], - 'per_page': opts['perPage'] + 'end_date': opts['endDate'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = ResourceLevelVolumeBillingHistoryResponseModel; + let returnType = ResourceLevelVolumeGraphBillingDetailsResponseModel; return this.apiClient.callApi( - '/billing/billing/history/snapshot', 'GET', + '/billing/billing/history/fine_tuning/{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 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 - * @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/ResourceLevelVolumeGraphBillingDetailsResponseModel} */ - retrieveBillingHistoryOfSnapshotForASpecificBillingCycle(opts) { - return this.retrieveBillingHistoryOfSnapshotForASpecificBillingCycleWithHttpInfo(opts) + getFineTuningBillingHistoryGraph(resourceId, opts) { + return this.getFineTuningBillingHistoryGraphWithHttpInfo(resourceId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -519,58 +577,40 @@ export default class BillingApi { /** - * 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' - * @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 + * 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 */ - retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycleWithHttpInfo(opts) { - opts = opts || {}; + getLastDayCostWithHttpInfo() { let postBody = null; let pathParams = { }; let queryParams = { - 'start_date': opts['startDate'], - 'end_date': opts['endDate'], - 'search': opts['search'], - 'per_page': opts['perPage'], - 'page': opts['page'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = ResourceLevelVmBillingHistoryResponseModel; + let returnType = LastDayCostResponse; return this.apiClient.callApi( - '/billing/billing/history/virtual-machine', 'GET', + '/billing/billing/last-day-cost', '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' - * @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} + * 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} */ - retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle(opts) { - return this.retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycleWithHttpInfo(opts) + getLastDayCost() { + return this.getLastDayCostWithHttpInfo() .then(function(response_and_data) { return response_and_data.data; }); @@ -578,17 +618,17 @@ export default class BillingApi { /** - * 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 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 - * @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/TokenBasedBillingHistoryResponse} and HTTP response */ - retrieveBillingHistoryOfVolumeForASpecificBillingCycleWithHttpInfo(opts) { + getModelEvaluationBillingHistoryWithHttpInfo(opts) { opts = opts || {}; let postBody = null; @@ -606,30 +646,30 @@ export default class BillingApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = ResourceLevelVolumeBillingHistoryResponseModel; + let returnType = TokenBasedBillingHistoryResponse; return this.apiClient.callApi( - '/billing/billing/history/volume', 'GET', + '/billing/billing/history/model_evaluation', '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 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 - * @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/TokenBasedBillingHistoryResponse} */ - retrieveBillingHistoryOfVolumeForASpecificBillingCycle(opts) { - return this.retrieveBillingHistoryOfVolumeForASpecificBillingCycleWithHttpInfo(opts) + getModelEvaluationBillingHistory(opts) { + return this.getModelEvaluationBillingHistoryWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -637,24 +677,24 @@ export default class BillingApi { /** - * 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 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/ResourceLevelVolumeGraphBillingDetailsResponseModel} 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 */ - retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo(snapshotId, opts) { + getModelEvaluationBillingHistoryGraphWithHttpInfo(resourceId, opts) { opts = opts || {}; let 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 getModelEvaluationBillingHistoryGraph"); } let pathParams = { - 'snapshot_id': snapshotId + 'resource_id': resourceId }; let queryParams = { 'start_date': opts['startDate'], @@ -665,28 +705,28 @@ export default class BillingApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = ResourceLevelVolumeGraphBillingDetailsResponseModel; + let returnType = ModelEvaluationBillingHistoryDetailsResponseSchema; return this.apiClient.callApi( - '/billing/billing/history/snapshot/{snapshot_id}/graph', 'GET', + '/billing/billing/history/model_evaluation/{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 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/ResourceLevelVolumeGraphBillingDetailsResponseModel} + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ModelEvaluationBillingHistoryDetailsResponseSchema} */ - retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle(snapshotId, opts) { - return this.retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo(snapshotId, opts) + getModelEvaluationBillingHistoryGraph(resourceId, opts) { + return this.getModelEvaluationBillingHistoryGraphWithHttpInfo(resourceId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -694,56 +734,53 @@ export default class BillingApi { /** - * 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 + * 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 */ - retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo(vmId, opts) { - opts = opts || {}; - let 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"); + getNotificationThresholdWithHttpInfo(thresholdId, payload) { + let 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"); } let pathParams = { - 'vm_id': vmId + 'threshold_id': thresholdId }; let queryParams = { - 'start_date': opts['startDate'], - 'end_date': opts['endDate'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; - let contentTypes = []; + let authNames = ['apiKey']; + let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = ResourceLevelVmGraphBillingDetailsResponseModel; + let returnType = OrganizationThresholdUpdateResponse; return this.apiClient.callApi( - '/billing/billing/history/virtual-machine/{vm_id}/graph', 'GET', + '/billing/billing/threshold/{threshold_id}', 'PUT', 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} + * 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} */ - retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle(vmId, opts) { - return this.retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo(vmId, opts) + getNotificationThreshold(thresholdId, payload) { + return this.getNotificationThresholdWithHttpInfo(thresholdId, payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -751,24 +788,24 @@ export default class BillingApi { /** - * 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 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] 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} [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 */ - retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycleWithHttpInfo(volumeId, opts) { + getResourceFineTuningBillingHistoryWithHttpInfo(resourceId, opts) { opts = opts || {}; let 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"); + // verify the required parameter 'resourceId' is set + if (resourceId === undefined || resourceId === null) { + throw new Error("Missing the required parameter 'resourceId' when calling getResourceFineTuningBillingHistory"); } let pathParams = { - 'volume_id': volumeId + 'resource_id': resourceId }; let queryParams = { 'start_date': opts['startDate'], @@ -779,28 +816,28 @@ export default class BillingApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = ResourceLevelVolumeGraphBillingDetailsResponseModel; + let returnType = ResourceLevelVolumeBillingDetailsResponseModel; return this.apiClient.callApi( - '/billing/billing/history/volume/{volume_id}/graph', 'GET', + '/billing/billing/history/fine_tuning/{resource_id}', '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 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 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.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} */ - retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle(volumeId, opts) { - return this.retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycleWithHttpInfo(volumeId, opts) + getResourceFineTuningBillingHistory(resourceId, opts) { + return this.getResourceFineTuningBillingHistoryWithHttpInfo(resourceId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -808,24 +845,23 @@ export default class BillingApi { /** - * 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 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] 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 + * @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 */ - retrieveSubResourcesHistoricalCostDatapointsOfAVirtualWithHttpInfo(vmId, opts) { + getResourceModelEvaluationBillingHistoryWithHttpInfo(resourceId, opts) { opts = opts || {}; let 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 getResourceModelEvaluationBillingHistory"); } let pathParams = { - 'vm_id': vmId + 'resource_id': resourceId }; let queryParams = { 'start_date': opts['startDate'], @@ -836,28 +872,27 @@ export default class BillingApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = SubResourcesGraphResponseModel; + let returnType = ModelEvaluationBillingHistoryDetailsResponseSchema; return this.apiClient.callApi( - '/billing/billing/virtual-machine/{vm_id}/sub-resource/graph', 'GET', + '/billing/billing/history/model_evaluation/{resource_id}', '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 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 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} + * @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} */ - retrieveSubResourcesHistoricalCostDatapointsOfAVirtual(vmId, opts) { - return this.retrieveSubResourcesHistoricalCostDatapointsOfAVirtualWithHttpInfo(vmId, opts) + getResourceModelEvaluationBillingHistory(resourceId, opts) { + return this.getResourceModelEvaluationBillingHistoryWithHttpInfo(resourceId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -865,24 +900,24 @@ export default class BillingApi { /** - * 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 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/SubResourcesCostsResponseModel} and HTTP response + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ServerlessInferencedBillingHistoryDetailsResponseSchema} and HTTP response */ - retrieveTotalCostsAndNonDiscountCostsForSubResourcesWithHttpInfo(vmId, opts) { + getServerlessInferenceBillingHistoryGraphWithHttpInfo(resourceId, opts) { opts = opts || {}; let 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 'resourceId' is set + if (resourceId === undefined || resourceId === null) { + throw new Error("Missing the required parameter 'resourceId' when calling getServerlessInferenceBillingHistoryGraph"); } let pathParams = { - 'vm_id': vmId + 'resource_id': resourceId }; let queryParams = { 'start_date': opts['startDate'], @@ -893,28 +928,28 @@ export default class BillingApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = SubResourcesCostsResponseModel; + let returnType = ServerlessInferencedBillingHistoryDetailsResponseSchema; return this.apiClient.callApi( - '/billing/billing/virtual-machine/{vm_id}/sub-resource', 'GET', + '/billing/billing/history/serverless_inference/{resource_id}/graph', '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 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/SubResourcesCostsResponseModel} + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ServerlessInferencedBillingHistoryDetailsResponseSchema} */ - retrieveTotalCostsAndNonDiscountCostsForSubResources(vmId, opts) { - return this.retrieveTotalCostsAndNonDiscountCostsForSubResourcesWithHttpInfo(vmId, opts) + getServerlessInferenceBillingHistoryGraph(resourceId, opts) { + return this.getServerlessInferenceBillingHistoryGraphWithHttpInfo(resourceId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -922,24 +957,136 @@ export default class BillingApi { /** - * Retrieve VM billing events history - * User will receive vm billing events history - * @param {Number} vmId + * 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 + */ + getServerlessInferencesBillingHistoryWithHttpInfo(resourceId, opts) { + opts = opts || {}; + let 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"); + } + + let pathParams = { + 'resource_id': resourceId + }; + let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ServerlessInferencedBillingHistoryDetailsResponseSchema; + 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} + */ + 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 + */ + getSnapshotBillingHistoryWithHttpInfo(snapshotId, opts) { + opts = opts || {}; + let 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"); + } + + let pathParams = { + 'snapshot_id': snapshotId + }; + let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ResourceLevelVolumeBillingDetailsResponseModel; + 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} + */ + 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/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 */ - retrieveVmBillingEventsHistoryWithHttpInfo(vmId, opts) { + getSnapshotBillingHistoryGraphWithHttpInfo(snapshotId, opts) { opts = opts || {}; let 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"); + // verify the required parameter 'snapshotId' is set + if (snapshotId === undefined || snapshotId === null) { + throw new Error("Missing the required parameter 'snapshotId' when calling getSnapshotBillingHistoryGraph"); } let pathParams = { - 'vm_id': vmId + 'snapshot_id': snapshotId }; let queryParams = { 'start_date': opts['startDate'], @@ -950,28 +1097,28 @@ export default class BillingApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = ResourceBillingEventsHistoryResponse; + let returnType = ResourceLevelVolumeGraphBillingDetailsResponseModel; return this.apiClient.callApi( - '/billing/billing/virtual-machine/{vm_id}/billing-events', 'GET', + '/billing/billing/history/snapshot/{snapshot_id}/graph', '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 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/ResourceBillingEventsHistoryResponse} + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel} */ - retrieveVmBillingEventsHistory(vmId, opts) { - return this.retrieveVmBillingEventsHistoryWithHttpInfo(vmId, opts) + getSnapshotBillingHistoryGraph(snapshotId, opts) { + return this.getSnapshotBillingHistoryGraphWithHttpInfo(snapshotId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -979,56 +1126,102 @@ export default class BillingApi { /** - * Retrieve Volume billing events history - * User will receive volume billing events history - * @param {Number} volumeId + * 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 + */ + getUsageWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'deleted': opts['deleted'], + 'environment': opts['environment'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = BillingMetricesResponse; + 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} + */ + 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 - * @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} [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 */ - retrieveVolumeBillingEventsHistoryWithHttpInfo(volumeId, opts) { + getUserBillingHistoryWithHttpInfo(opts) { opts = opts || {}; let 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"); - } let pathParams = { - 'volume_id': volumeId }; let queryParams = { 'start_date': opts['startDate'], - 'end_date': opts['endDate'] + 'end_date': opts['endDate'], + 'graph': opts['graph'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = ResourceBillingEventsHistoryResponse; + let returnType = OrganizationLevelBillingHistoryResponseModel; return this.apiClient.callApi( - '/billing/billing/volume/{volume_id}/billing-events', 'GET', + '/billing/billing/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Retrieve Volume billing events history - * User will receive volume billing events history - * @param {Number} volumeId + * 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 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceBillingEventsHistoryResponse} + * @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} */ - retrieveVolumeBillingEventsHistory(volumeId, opts) { - return this.retrieveVolumeBillingEventsHistoryWithHttpInfo(volumeId, opts) + getUserBillingHistory(opts) { + return this.getUserBillingHistoryWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1036,53 +1229,903 @@ export default class BillingApi { /** - * 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 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 */ - updateSubscribeOrUnsubscribeNotificationThresholdWithHttpInfo(thresholdId, payload) { - let 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"); + getVMBillingDetailsWithHttpInfo(vmId, opts) { + opts = opts || {}; + let 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"); } let pathParams = { - 'threshold_id': thresholdId + 'vm_id': vmId }; let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; - let contentTypes = ['application/json']; + let authNames = ['apiKey']; + let contentTypes = []; let accepts = ['application/json']; - let returnType = Organizationthresholdupdateresponse; + let returnType = ResourceLevelVMBillingDetailsResponseModel; return this.apiClient.callApi( - '/billing/billing/threshold/{threshold_id}', 'PUT', + '/billing/billing/history/virtual-machine/{vm_id}', '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} + * 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} + */ + 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 + */ + getVMBillingEventsWithHttpInfo(vmId, opts) { + opts = opts || {}; + let 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"); + } + + let pathParams = { + 'vm_id': vmId + }; + let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ResourceBillingEventsHistoryResponse; + 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} + */ + 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 + */ + getVMBillingGraphWithHttpInfo(vmId, opts) { + opts = opts || {}; + let 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"); + } + + let pathParams = { + 'vm_id': vmId + }; + let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ResourceLevelVmGraphBillingDetailsResponseModel; + 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} + */ + 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 + */ + getVMBillingHistoryWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'], + 'search': opts['search'], + 'per_page': opts['perPage'], + 'page': opts['page'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ResourceLevelVmBillingHistoryResponseModel; + 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} + */ + getVMBillingHistory(opts) { + return this.getVMBillingHistoryWithHttpInfo(opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * 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} [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/SubResourcesCostsResponseModel} and HTTP response + */ + getVMSubResourceCostsWithHttpInfo(vmId, opts) { + opts = opts || {}; + let 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"); + } + + let pathParams = { + 'vm_id': vmId + }; + let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = SubResourcesCostsResponseModel; + 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} + */ + 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 + */ + getVMSubResourceGraphWithHttpInfo(vmId, opts) { + opts = opts || {}; + let 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"); + } + + let pathParams = { + 'vm_id': vmId + }; + let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = SubResourcesGraphResponseModel; + 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} + */ + 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 + */ + getVolumeBillingDetailsWithHttpInfo(volumeId, opts) { + opts = opts || {}; + let 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"); + } + + let pathParams = { + 'volume_id': volumeId + }; + let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ResourceLevelVolumeBillingDetailsResponseModel; + 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} + */ + 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 + */ + getVolumeBillingEventsWithHttpInfo(volumeId, opts) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'volumeId' is set + if (volumeId === undefined || volumeId === null) { + throw new Error("Missing the required parameter 'volumeId' when calling getVolumeBillingEvents"); + } + + let pathParams = { + 'volume_id': volumeId + }; + let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ResourceBillingEventsHistoryResponse; + return this.apiClient.callApi( + '/billing/billing/volume/{volume_id}/billing-events', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * 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/ResourceBillingEventsHistoryResponse} + */ + getVolumeBillingEvents(volumeId, opts) { + return this.getVolumeBillingEventsWithHttpInfo(volumeId, opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * 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 + * @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 + */ + getVolumeBillingHistoryWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'], + 'search': opts['search'], + 'per_page': opts['perPage'], + 'page': opts['page'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ResourceLevelVolumeBillingHistoryResponseModel; + return this.apiClient.callApi( + '/billing/billing/history/volume', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * 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 + * @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} + */ + getVolumeBillingHistory(opts) { + return this.getVolumeBillingHistoryWithHttpInfo(opts) + .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 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/ResourceLevelVolumeGraphBillingDetailsResponseModel} and HTTP response + */ + getVolumeBillingHistoryGraphWithHttpInfo(volumeId, opts) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'volumeId' is set + if (volumeId === undefined || volumeId === null) { + throw new Error("Missing the required parameter 'volumeId' when calling getVolumeBillingHistoryGraph"); + } + + let pathParams = { + 'volume_id': volumeId + }; + let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ResourceLevelVolumeGraphBillingDetailsResponseModel; + return this.apiClient.callApi( + '/billing/billing/history/volume/{volume_id}/graph', '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 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/ResourceLevelVolumeGraphBillingDetailsResponseModel} + */ + getVolumeBillingHistoryGraph(volumeId, opts) { + return this.getVolumeBillingHistoryGraphWithHttpInfo(volumeId, opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * 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 + */ + listBillingContractHistoryWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'], + 'search': opts['search'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let 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} + */ + 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 + */ + listBucketBillingHistoryWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'], + 'search': opts['search'], + 'per_page': opts['perPage'], + 'page': opts['page'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ResourceLevelBucketBillingHistoryResponseModel; + 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} + */ + 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 + */ + listClustersBillingHistoryWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'], + 'search': opts['search'], + 'per_page': opts['perPage'], + 'page': opts['page'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ResourceLevelClusterBillingHistoryResponseModel; + 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} + */ + 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 + */ + listOrgNotificationThresholdsWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = OrganizationThresholdsResponse; + 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} + */ + 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 + */ + listServerlessInferenceBillingHistoryWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'], + 'search': opts['search'], + 'per_page': opts['perPage'], + 'page': opts['page'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = TokenBasedBillingHistoryResponse; + 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} + */ + 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 + */ + listSnapshotBillingHistoryWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'start_date': opts['startDate'], + 'end_date': opts['endDate'], + 'search': opts['search'], + 'per_page': opts['perPage'], + 'page': opts['page'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ResourceLevelVolumeBillingHistoryResponseModel; + 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} */ - updateSubscribeOrUnsubscribeNotificationThreshold(thresholdId, payload) { - return this.updateSubscribeOrUnsubscribeNotificationThresholdWithHttpInfo(thresholdId, payload) + listSnapshotBillingHistory(opts) { + return this.listSnapshotBillingHistoryWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/BucketsApi.js b/src/api/BucketsApi.js new file mode 100644 index 00000000..61a71ec2 --- /dev/null +++ b/src/api/BucketsApi.js @@ -0,0 +1,192 @@ +/** + * 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 ObjectStorageBucketListResponse from '../model/ObjectStorageBucketListResponse'; +import ObjectStorageBucketResponse from '../model/ObjectStorageBucketResponse'; +import ObjectStorageDeleteResponse from '../model/ObjectStorageDeleteResponse'; +import ObjectStorageErrorResponse from '../model/ObjectStorageErrorResponse'; + +/** +* Buckets service. +* @module api/BucketsApi +* @version v1.51.1-alpha +*/ +export default class BucketsApi { + + /** + * 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. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.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 + */ + deleteBucketEndpointWithHttpInfo(bucketName, region) { + let 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"); + } + + let pathParams = { + 'bucket_name': bucketName + }; + let queryParams = { + 'region': region + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ObjectStorageDeleteResponse; + 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} + */ + 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 + */ + listBucketsEndpointWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'search': opts['search'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ObjectStorageBucketListResponse; + 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} + */ + 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 + */ + retrieveBucketEndpointWithHttpInfo(bucketName, region) { + let 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"); + } + + let pathParams = { + 'bucket_name': bucketName + }; + let queryParams = { + 'region': region + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ObjectStorageBucketResponse; + 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} + */ + retrieveBucketEndpoint(bucketName, region) { + return this.retrieveBucketEndpointWithHttpInfo(bucketName, region) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/api/CalculateApi.js b/src/api/CalculateApi.js index 8958b286..505fd072 100644 --- a/src/api/CalculateApi.js +++ b/src/api/CalculateApi.js @@ -19,7 +19,7 @@ import ResourceBillingResponseForCustomer from '../model/ResourceBillingResponse /** * Calculate service. * @module api/CalculateApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class CalculateApi { @@ -43,15 +43,15 @@ export default class CalculateApi { * @param {Number} id * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceBillingResponseForCustomer} and HTTP response */ - retrieveBillingRateForResourceWithHttpInfo(resourceType, id) { + calculateResourceBillingRateWithHttpInfo(resourceType, id) { let 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"); } let pathParams = { @@ -65,7 +65,7 @@ export default class CalculateApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResourceBillingResponseForCustomer; @@ -83,8 +83,8 @@ export default class CalculateApi { * @param {Number} id * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceBillingResponseForCustomer} */ - retrieveBillingRateForResource(resourceType, id) { - return this.retrieveBillingRateForResourceWithHttpInfo(resourceType, id) + calculateResourceBillingRate(resourceType, id) { + return this.calculateResourceBillingRateWithHttpInfo(resourceType, id) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/CallbacksApi.js b/src/api/CallbacksApi.js index 39a5994c..9bd58bf2 100644 --- a/src/api/CallbacksApi.js +++ b/src/api/CallbacksApi.js @@ -21,7 +21,7 @@ import ResponseModel from '../model/ResponseModel'; /** * Callbacks service. * @module api/CallbacksApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class CallbacksApi { @@ -40,24 +40,24 @@ export default class CallbacksApi { /** * 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 */ - attachCallbackToVirtualMachineWithHttpInfo(id, payload) { + attachCallbackToVMWithHttpInfo(vmId, payload) { let 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"); } let pathParams = { - 'id': id + 'vm_id': vmId }; let queryParams = { }; @@ -66,12 +66,12 @@ export default class CallbacksApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = AttachCallbackResponse; return this.apiClient.callApi( - '/core/virtual-machines/{id}/attach-callback', 'POST', + '/core/virtual-machines/{vm_id}/attach-callback', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -79,13 +79,13 @@ export default class CallbacksApi { /** * 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} */ - attachCallbackToVirtualMachine(id, payload) { - return this.attachCallbackToVirtualMachineWithHttpInfo(id, payload) + attachCallbackToVM(vmId, payload) { + return this.attachCallbackToVMWithHttpInfo(vmId, payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -94,16 +94,16 @@ export default class CallbacksApi { /** * 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 */ - attachCallbackToVolumeWithHttpInfo(id, payload) { + attachCallbackToVolumeWithHttpInfo(volumeId, payload) { let 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) { @@ -111,7 +111,7 @@ export default class CallbacksApi { } let pathParams = { - 'id': id + 'volume_id': volumeId }; let queryParams = { }; @@ -120,12 +120,12 @@ export default class CallbacksApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = AttachCallbackResponse; return this.apiClient.callApi( - '/core/volumes/{id}/attach-callback', 'POST', + '/core/volumes/{volume_id}/attach-callback', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -133,13 +133,13 @@ export default class CallbacksApi { /** * 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} */ - attachCallbackToVolume(id, payload) { - return this.attachCallbackToVolumeWithHttpInfo(id, payload) + attachCallbackToVolume(volumeId, payload) { + return this.attachCallbackToVolumeWithHttpInfo(volumeId, payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -148,19 +148,19 @@ export default class CallbacksApi { /** * 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 */ - deleteVirtualMachineCallbackWithHttpInfo(id) { + deleteVMCallbackWithHttpInfo(vmId) { let 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"); } let pathParams = { - 'id': id + 'vm_id': vmId }; let queryParams = { }; @@ -169,12 +169,12 @@ export default class CallbacksApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; return this.apiClient.callApi( - '/core/virtual-machines/{id}/delete-callback', 'DELETE', + '/core/virtual-machines/{vm_id}/delete-callback', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -182,12 +182,12 @@ export default class CallbacksApi { /** * 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} */ - deleteVirtualMachineCallback(id) { - return this.deleteVirtualMachineCallbackWithHttpInfo(id) + deleteVMCallback(vmId) { + return this.deleteVMCallbackWithHttpInfo(vmId) .then(function(response_and_data) { return response_and_data.data; }); @@ -196,19 +196,19 @@ export default class CallbacksApi { /** * 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 */ - deleteVolumeCallbackWithHttpInfo(id) { + deleteVolumeCallbackWithHttpInfo(volumeId) { let 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"); } let pathParams = { - 'id': id + 'volume_id': volumeId }; let queryParams = { }; @@ -217,12 +217,12 @@ export default class CallbacksApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; return this.apiClient.callApi( - '/core/volumes/{id}/delete-callback', 'DELETE', + '/core/volumes/{volume_id}/delete-callback', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -230,12 +230,12 @@ export default class CallbacksApi { /** * 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} */ - deleteVolumeCallback(id) { - return this.deleteVolumeCallbackWithHttpInfo(id) + deleteVolumeCallback(volumeId) { + return this.deleteVolumeCallbackWithHttpInfo(volumeId) .then(function(response_and_data) { return response_and_data.data; }); @@ -244,24 +244,24 @@ export default class CallbacksApi { /** * 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 */ - updateVirtualMachineCallbackWithHttpInfo(id, payload) { + updateVMCallbackWithHttpInfo(vmId, payload) { let 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"); } let pathParams = { - 'id': id + 'vm_id': vmId }; let queryParams = { }; @@ -270,12 +270,12 @@ export default class CallbacksApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = AttachCallbackResponse; return this.apiClient.callApi( - '/core/virtual-machines/{id}/update-callback', 'PUT', + '/core/virtual-machines/{vm_id}/update-callback', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -283,13 +283,13 @@ export default class CallbacksApi { /** * 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} */ - updateVirtualMachineCallback(id, payload) { - return this.updateVirtualMachineCallbackWithHttpInfo(id, payload) + updateVMCallback(vmId, payload) { + return this.updateVMCallbackWithHttpInfo(vmId, payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -298,16 +298,16 @@ export default class CallbacksApi { /** * 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 */ - updateVolumeCallbackWithHttpInfo(id, payload) { + updateVolumeCallbackWithHttpInfo(volumeId, payload) { let 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) { @@ -315,7 +315,7 @@ export default class CallbacksApi { } let pathParams = { - 'id': id + 'volume_id': volumeId }; let queryParams = { }; @@ -324,12 +324,12 @@ export default class CallbacksApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = AttachCallbackResponse; return this.apiClient.callApi( - '/core/volumes/{id}/update-callback', 'PUT', + '/core/volumes/{volume_id}/update-callback', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -337,13 +337,13 @@ export default class CallbacksApi { /** * 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} */ - updateVolumeCallback(id, payload) { - return this.updateVolumeCallbackWithHttpInfo(id, payload) + updateVolumeCallback(volumeId, payload) { + return this.updateVolumeCallbackWithHttpInfo(volumeId, payload) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/ClusterEventsApi.js b/src/api/ClusterEventsApi.js index 062d8ad0..cb2da2d8 100644 --- a/src/api/ClusterEventsApi.js +++ b/src/api/ClusterEventsApi.js @@ -19,7 +19,7 @@ import ErrorResponseModel from '../model/ErrorResponseModel'; /** * ClusterEvents service. * @module api/ClusterEventsApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class ClusterEventsApi { @@ -41,11 +41,11 @@ export default class ClusterEventsApi { * @param {String} clusterId * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ClusterEvents} and HTTP response */ - fetchAllOfAClusterEventsWithHttpInfo(clusterId) { + listClusterEventsWithHttpInfo(clusterId) { let 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"); } let pathParams = { @@ -58,7 +58,7 @@ export default class ClusterEventsApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ClusterEvents; @@ -74,8 +74,8 @@ export default class ClusterEventsApi { * @param {String} clusterId * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ClusterEvents} */ - fetchAllOfAClusterEvents(clusterId) { - return this.fetchAllOfAClusterEventsWithHttpInfo(clusterId) + listClusterEvents(clusterId) { + return this.listClusterEventsWithHttpInfo(clusterId) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/ClustersApi.js b/src/api/ClustersApi.js index 625cd3df..819b6b43 100644 --- a/src/api/ClustersApi.js +++ b/src/api/ClustersApi.js @@ -14,17 +14,27 @@ import ApiClient from "../ApiClient"; import ClusterListResponse from '../model/ClusterListResponse'; +import ClusterNodeGroupsCreateResponse from '../model/ClusterNodeGroupsCreateResponse'; +import ClusterNodeGroupsGetResponse from '../model/ClusterNodeGroupsGetResponse'; +import ClusterNodeGroupsListResponse from '../model/ClusterNodeGroupsListResponse'; +import ClusterNodesListResponse from '../model/ClusterNodesListResponse'; import ClusterResponse from '../model/ClusterResponse'; import ClusterVersions from '../model/ClusterVersions'; +import CreateClusterNodeFields from '../model/CreateClusterNodeFields'; +import CreateClusterNodeGroupPayload from '../model/CreateClusterNodeGroupPayload'; import CreateClusterPayload from '../model/CreateClusterPayload'; +import DeleteClusterNodesFields from '../model/DeleteClusterNodesFields'; import ErrorResponseModel from '../model/ErrorResponseModel'; +import ManualReconciliationModel from '../model/ManualReconciliationModel'; +import MasterFlavorsResponse from '../model/MasterFlavorsResponse'; import NameAvailableModel from '../model/NameAvailableModel'; import ResponseModel from '../model/ResponseModel'; +import UpdateClusterNodeGroupPayload from '../model/UpdateClusterNodeGroupPayload'; /** * Clusters service. * @module api/ClustersApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class ClustersApi { @@ -62,7 +72,7 @@ export default class ClustersApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = ClusterResponse; @@ -86,16 +96,120 @@ export default class ClustersApi { } + /** + * 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 + */ + createNodeWithHttpInfo(clusterId, payload) { + let 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"); + } + + let pathParams = { + 'cluster_id': clusterId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = ClusterNodesListResponse; + 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} + */ + 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 + */ + createNodeGroupWithHttpInfo(clusterId, payload) { + let 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"); + } + + let pathParams = { + 'cluster_id': clusterId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = ClusterNodeGroupsCreateResponse; + 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} + */ + 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 */ - deleteAClusterWithHttpInfo(id) { + deleteClusterWithHttpInfo(id) { let 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"); } let pathParams = { @@ -108,7 +222,7 @@ export default class ClustersApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; @@ -124,8 +238,166 @@ export default class ClustersApi { * @param {Number} id * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel} */ - deleteACluster(id) { - return this.deleteAClusterWithHttpInfo(id) + 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 + */ + deleteClusterNodeWithHttpInfo(clusterId, nodeId) { + let 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"); + } + + let pathParams = { + 'cluster_id': clusterId, + 'node_id': nodeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ResponseModel; + 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} + */ + 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 + */ + deleteClusterNodesWithHttpInfo(clusterId, payload) { + let 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"); + } + + let pathParams = { + 'cluster_id': clusterId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = ResponseModel; + 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} + */ + 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 + */ + deleteNodeGroupWithHttpInfo(clusterId, nodeGroupId) { + let 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"); + } + + let pathParams = { + 'cluster_id': clusterId, + 'node_group_id': nodeGroupId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ResponseModel; + 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} + */ + deleteNodeGroup(clusterId, nodeGroupId) { + return this.deleteNodeGroupWithHttpInfo(clusterId, nodeGroupId) .then(function(response_and_data) { return response_and_data.data; }); @@ -155,7 +427,7 @@ export default class ClustersApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = NameAvailableModel; @@ -181,22 +453,112 @@ export default class ClustersApi { /** - * 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 + */ + getClusterMasterFlavorsWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = MasterFlavorsResponse; + 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} + */ + 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 + */ + getClusterNodesWithHttpInfo(clusterId) { + let 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"); + } + + let pathParams = { + 'cluster_id': clusterId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ClusterNodesListResponse; + 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} + */ + 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 */ - getClusterVersionsWithHttpInfo() { + getClusterVersionsWithHttpInfo(opts) { + opts = opts || {}; let postBody = null; let pathParams = { }; let queryParams = { + 'region': opts['region'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ClusterVersions; @@ -208,11 +570,67 @@ export default class ClustersApi { } /** - * 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} */ - getClusterVersions() { - return this.getClusterVersionsWithHttpInfo() + 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 + */ + getNodeGroupWithHttpInfo(clusterId, nodeGroupId) { + let 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"); + } + + let pathParams = { + 'cluster_id': clusterId, + 'node_group_id': nodeGroupId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ClusterNodeGroupsGetResponse; + 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} + */ + getNodeGroup(clusterId, nodeGroupId) { + return this.getNodeGroupWithHttpInfo(clusterId, nodeGroupId) .then(function(response_and_data) { return response_and_data.data; }); @@ -241,7 +659,7 @@ export default class ClustersApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ClusterResponse; @@ -267,21 +685,31 @@ export default class ClustersApi { /** * 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 */ - listClustersWithHttpInfo() { + listClustersWithHttpInfo(opts) { + opts = opts || {}; let postBody = null; let pathParams = { }; let queryParams = { + 'page': opts['page'], + 'pageSize': opts['pageSize'], + 'environment': opts['environment'], + 'search': opts['search'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ClusterListResponse; @@ -294,10 +722,166 @@ export default class ClustersApi { /** * 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} */ - listClusters() { - return this.listClustersWithHttpInfo() + 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 + */ + listNodeGroupsWithHttpInfo(clusterId) { + let 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"); + } + + let pathParams = { + 'cluster_id': clusterId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ClusterNodeGroupsListResponse; + 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} + */ + 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 + */ + reconcileClusterWithHttpInfo(clusterId) { + let 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"); + } + + let pathParams = { + 'cluster_id': clusterId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ManualReconciliationModel; + 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} + */ + 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 + */ + updateNodeGroupWithHttpInfo(clusterId, nodeGroupId, payload) { + let 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"); + } + + let pathParams = { + 'cluster_id': clusterId, + 'node_group_id': nodeGroupId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = ClusterNodeGroupsCreateResponse; + 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} + */ + updateNodeGroup(clusterId, nodeGroupId, payload) { + return this.updateNodeGroupWithHttpInfo(clusterId, nodeGroupId, payload) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/ComplianceApi.js b/src/api/ComplianceApi.js index c5264f11..ef7f7c19 100644 --- a/src/api/ComplianceApi.js +++ b/src/api/ComplianceApi.js @@ -22,7 +22,7 @@ import ResponseModel from '../model/ResponseModel'; /** * Compliance service. * @module api/ComplianceApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class ComplianceApi { @@ -60,7 +60,7 @@ export default class ComplianceApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = CreateUpdateComplianceResponse; @@ -89,11 +89,11 @@ export default class ComplianceApi { * @param {String} gpuModel * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response */ - deleteAComplianceWithHttpInfo(gpuModel) { + deleteComplianceWithHttpInfo(gpuModel) { let 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"); } let pathParams = { @@ -106,7 +106,7 @@ export default class ComplianceApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; @@ -122,8 +122,8 @@ export default class ComplianceApi { * @param {String} gpuModel * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel} */ - deleteACompliance(gpuModel) { - return this.deleteAComplianceWithHttpInfo(gpuModel) + deleteCompliance(gpuModel) { + return this.deleteComplianceWithHttpInfo(gpuModel) .then(function(response_and_data) { return response_and_data.data; }); @@ -132,12 +132,12 @@ export default class ComplianceApi { /** * 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 */ - retrieveGpuComplianceWithHttpInfo(opts) { + getComplianceWithHttpInfo(opts) { opts = opts || {}; let postBody = null; @@ -151,7 +151,7 @@ export default class ComplianceApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ComplianceResponse; @@ -164,13 +164,13 @@ export default class ComplianceApi { /** * 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} */ - retrieveGpuCompliance(opts) { - return this.retrieveGpuComplianceWithHttpInfo(opts) + getCompliance(opts) { + return this.getComplianceWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -182,11 +182,11 @@ export default class ComplianceApi { * @param {module:model/CompliancePayload} payload * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateUpdateComplianceResponse} and HTTP response */ - updateAComplianceWithHttpInfo(payload) { + updateComplianceWithHttpInfo(payload) { let 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"); } let pathParams = { @@ -198,7 +198,7 @@ export default class ComplianceApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = CreateUpdateComplianceResponse; @@ -214,8 +214,8 @@ export default class ComplianceApi { * @param {module:model/CompliancePayload} payload * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateUpdateComplianceResponse} */ - updateACompliance(payload) { - return this.updateAComplianceWithHttpInfo(payload) + updateCompliance(payload) { + return this.updateComplianceWithHttpInfo(payload) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/CreditApi.js b/src/api/CreditApi.js index 049ddb4b..5593ed32 100644 --- a/src/api/CreditApi.js +++ b/src/api/CreditApi.js @@ -14,12 +14,12 @@ import ApiClient from "../ApiClient"; import ErrorResponseModel from '../model/ErrorResponseModel'; -import Getcreditandthresholdinfoinresponse from '../model/Getcreditandthresholdinfoinresponse'; +import GetCreditAndThresholdInfoInResponse from '../model/GetCreditAndThresholdInfoInResponse'; /** * Credit service. * @module api/CreditApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class CreditApi { @@ -38,9 +38,10 @@ export default class CreditApi { /** * 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 */ - getViewCreditAndThresholdWithHttpInfo() { + getUserCreditWithHttpInfo() { let postBody = null; let pathParams = { @@ -52,10 +53,10 @@ export default class CreditApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = Getcreditandthresholdinfoinresponse; + let returnType = GetCreditAndThresholdInfoInResponse; return this.apiClient.callApi( '/billing/user-credit/credit', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -65,10 +66,11 @@ export default class CreditApi { /** * 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} */ - getViewCreditAndThreshold() { - return this.getViewCreditAndThresholdWithHttpInfo() + getUserCredit() { + return this.getUserCreditWithHttpInfo() .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/CustomerContractApi.js b/src/api/CustomerContractApi.js index b7974a93..40b56bbd 100644 --- a/src/api/CustomerContractApi.js +++ b/src/api/CustomerContractApi.js @@ -21,7 +21,7 @@ import GetCustomerContractsListResponseModel from '../model/GetCustomerContracts /** * CustomerContract service. * @module api/CustomerContractApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class CustomerContractApi { @@ -39,49 +39,56 @@ export default class CustomerContractApi { /** - * 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 */ - listContractsWithHttpInfo(opts) { + getContractGPUAllocationGraphWithHttpInfo(contractId, opts) { opts = opts || {}; let postBody = null; + // verify the required parameter 'contractId' is set + if (contractId === undefined || contractId === null) { + throw new Error("Missing the required parameter 'contractId' when calling getContractGPUAllocationGraph"); + } let pathParams = { + 'contract_id': contractId }; let queryParams = { - 'page': opts['page'], - 'per_page': opts['perPage'] + 'start_date': opts['startDate'], + 'end_date': opts['endDate'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = GetCustomerContractsListResponseModel; + let returnType = ContractGPUAllocationGraphResponse; return this.apiClient.callApi( - '/pricebook/contracts', 'GET', + '/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} */ - listContracts(opts) { - return this.listContractsWithHttpInfo(opts) + getContractGPUAllocationGraph(contractId, opts) { + return this.getContractGPUAllocationGraphWithHttpInfo(contractId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -89,47 +96,49 @@ export default class CustomerContractApi { /** - * 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 */ - retrieveContractDetailsWithHttpInfo(contractId) { + listCustomerContractsWithHttpInfo(opts) { + opts = opts || {}; let 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"); - } let pathParams = { - 'contract_id': contractId }; let queryParams = { + 'page': opts['page'], + 'per_page': opts['perPage'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = CustomerContractDetailResponseModel; + let returnType = GetCustomerContractsListResponseModel; return this.apiClient.callApi( - '/pricebook/contracts/{contract_id}', 'GET', + '/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} */ - retrieveContractDetails(contractId) { - return this.retrieveContractDetailsWithHttpInfo(contractId) + listCustomerContracts(opts) { + return this.listCustomerContractsWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -137,56 +146,47 @@ export default class CustomerContractApi { /** - * 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 */ - retrieveGpuAllocationGraphForContractWithHttpInfo(contractId, opts) { - opts = opts || {}; + retrieveContractWithHttpInfo(contractId) { let 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"); } let pathParams = { 'contract_id': contractId }; let queryParams = { - 'start_date': opts['startDate'], - 'end_date': opts['endDate'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = ContractGPUAllocationGraphResponse; + let returnType = CustomerContractDetailResponseModel; return this.apiClient.callApi( - '/pricebook/contracts/{contract_id}/gpu_allocation_graph', 'GET', + '/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} */ - retrieveGpuAllocationGraphForContract(contractId, opts) { - return this.retrieveGpuAllocationGraphForContractWithHttpInfo(contractId, opts) + retrieveContract(contractId) { + return this.retrieveContractWithHttpInfo(contractId) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/DashboardApi.js b/src/api/DashboardApi.js index 61e3da89..5b632d8c 100644 --- a/src/api/DashboardApi.js +++ b/src/api/DashboardApi.js @@ -19,7 +19,7 @@ import ErrorResponseModel from '../model/ErrorResponseModel'; /** * Dashboard service. * @module api/DashboardApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class DashboardApi { @@ -38,10 +38,10 @@ export default class DashboardApi { /** * 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 */ - retrieveDashboardWithHttpInfo() { + getDashboardWithHttpInfo() { let postBody = null; let pathParams = { @@ -53,7 +53,7 @@ export default class DashboardApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = DashboardInfoResponse; @@ -66,11 +66,11 @@ export default class DashboardApi { /** * 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} */ - retrieveDashboard() { - return this.retrieveDashboardWithHttpInfo() + getDashboard() { + return this.getDashboardWithHttpInfo() .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/DeploymentApi.js b/src/api/DeploymentApi.js index 6152402c..2de2faaf 100644 --- a/src/api/DeploymentApi.js +++ b/src/api/DeploymentApi.js @@ -22,7 +22,7 @@ import StartDeploymentPayload from '../model/StartDeploymentPayload'; /** * Deployment service. * @module api/DeploymentApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class DeploymentApi { @@ -61,7 +61,7 @@ export default class DeploymentApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; @@ -90,11 +90,11 @@ export default class DeploymentApi { * @param {Number} id * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/StartDeployment} and HTTP response */ - detailsOfDeploymentByIdWithHttpInfo(id) { + getDeploymentWithHttpInfo(id) { let 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"); } let pathParams = { @@ -107,7 +107,7 @@ export default class DeploymentApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = StartDeployment; @@ -123,8 +123,8 @@ export default class DeploymentApi { * @param {Number} id * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/StartDeployment} */ - detailsOfDeploymentById(id) { - return this.detailsOfDeploymentByIdWithHttpInfo(id) + getDeployment(id) { + return this.getDeploymentWithHttpInfo(id) .then(function(response_and_data) { return response_and_data.data; }); @@ -147,7 +147,7 @@ export default class DeploymentApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = Deployments; @@ -191,7 +191,7 @@ export default class DeploymentApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = StartDeployment; diff --git a/src/api/EnvironmentApi.js b/src/api/EnvironmentApi.js index ee7f5369..cab2576b 100644 --- a/src/api/EnvironmentApi.js +++ b/src/api/EnvironmentApi.js @@ -17,13 +17,15 @@ import CreateEnvironment from '../model/CreateEnvironment'; import Environment from '../model/Environment'; import Environments from '../model/Environments'; import ErrorResponseModel from '../model/ErrorResponseModel'; +import NameAvailableModel from '../model/NameAvailableModel'; import ResponseModel from '../model/ResponseModel'; import UpdateEnvironment from '../model/UpdateEnvironment'; +import VMQuota from '../model/VMQuota'; /** * Environment service. * @module api/EnvironmentApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class EnvironmentApi { @@ -42,7 +44,7 @@ export default class EnvironmentApi { /** * 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 */ @@ -62,7 +64,7 @@ export default class EnvironmentApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Environment; @@ -75,7 +77,7 @@ export default class EnvironmentApi { /** * 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} */ @@ -110,7 +112,7 @@ export default class EnvironmentApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; @@ -136,52 +138,47 @@ export default class EnvironmentApi { /** - * 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 */ - listEnvironmentsWithHttpInfo(opts) { - opts = opts || {}; + fetchEnvironmentNameAvailabilityWithHttpInfo(name) { let postBody = null; + // verify the required parameter 'name' is set + if (name === undefined || name === null) { + throw new Error("Missing the required parameter 'name' when calling fetchEnvironmentNameAvailability"); + } let pathParams = { + 'name': name }; let queryParams = { - 'page': opts['page'], - 'pageSize': opts['pageSize'], - 'search': opts['search'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = Environments; + let returnType = NameAvailableModel; return this.apiClient.callApi( - '/core/environments', 'GET', + '/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} */ - listEnvironments(opts) { - return this.listEnvironmentsWithHttpInfo(opts) + fetchEnvironmentNameAvailability(name) { + return this.fetchEnvironmentNameAvailabilityWithHttpInfo(name) .then(function(response_and_data) { return response_and_data.data; }); @@ -194,11 +191,11 @@ export default class EnvironmentApi { * @param {Number} id * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Environment} and HTTP response */ - retrieveEnvironmentWithHttpInfo(id) { + getEnvironmentWithHttpInfo(id) { let 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"); } let pathParams = { @@ -211,7 +208,7 @@ export default class EnvironmentApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = Environment; @@ -228,8 +225,109 @@ export default class EnvironmentApi { * @param {Number} id * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Environment} */ - retrieveEnvironment(id) { - return this.retrieveEnvironmentWithHttpInfo(id) + 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 + */ + getEnvironmentVMQuotaWithHttpInfo(id) { + let 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"); + } + + let pathParams = { + 'id': id + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = VMQuota; + 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} + */ + 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 + */ + listEnvironmentsWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'page': opts['page'], + 'pageSize': opts['pageSize'], + 'search': opts['search'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = Environments; + 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} + */ + listEnvironments(opts) { + return this.listEnvironmentsWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -264,7 +362,7 @@ export default class EnvironmentApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Environment; diff --git a/src/api/FIPExclusionsApi.js b/src/api/FIPExclusionsApi.js new file mode 100644 index 00000000..1f4cfcc3 --- /dev/null +++ b/src/api/FIPExclusionsApi.js @@ -0,0 +1,85 @@ +/** + * 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 ErrorResponseModel from '../model/ErrorResponseModel'; +import ResponseModel from '../model/ResponseModel'; + +/** +* FIPExclusions service. +* @module api/FIPExclusionsApi +* @version v1.51.1-alpha +*/ +export default class FIPExclusionsApi { + + /** + * 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. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.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 + */ + checkIfOrgIsExcludedFromFloatingIPDetachmentWithHttpInfo(orgId) { + let 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"); + } + + let pathParams = { + 'org_id': orgId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ResponseModel; + 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} + */ + checkIfOrgIsExcludedFromFloatingIPDetachment(orgId) { + return this.checkIfOrgIsExcludedFromFloatingIPDetachmentWithHttpInfo(orgId) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/api/FirewallAttachmentApi.js b/src/api/FirewallAttachmentApi.js index c6ff9d8c..b5924c7b 100644 --- a/src/api/FirewallAttachmentApi.js +++ b/src/api/FirewallAttachmentApi.js @@ -20,7 +20,7 @@ import ResponseModel from '../model/ResponseModel'; /** * FirewallAttachment service. * @module api/FirewallAttachmentApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class FirewallAttachmentApi { @@ -39,19 +39,20 @@ export default class FirewallAttachmentApi { /** * 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 */ - attachFirewallsToVmsWithHttpInfo(firewallId, payload) { + attachFirewallToVMsWithHttpInfo(firewallId, payload) { let 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"); } let pathParams = { @@ -64,7 +65,7 @@ export default class FirewallAttachmentApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = ResponseModel; @@ -77,12 +78,13 @@ export default class FirewallAttachmentApi { /** * 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} */ - attachFirewallsToVms(firewallId, payload) { - return this.attachFirewallsToVmsWithHttpInfo(firewallId, payload) + attachFirewallToVMs(firewallId, payload) { + return this.attachFirewallToVMsWithHttpInfo(firewallId, payload) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/FirewallsApi.js b/src/api/FirewallsApi.js index 8590b91c..b827089d 100644 --- a/src/api/FirewallsApi.js +++ b/src/api/FirewallsApi.js @@ -25,7 +25,7 @@ import ResponseModel from '../model/ResponseModel'; /** * Firewalls service. * @module api/FirewallsApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class FirewallsApi { @@ -44,20 +44,20 @@ export default class FirewallsApi { /** * 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 */ - addFirewallRuleToFirewallWithHttpInfo(firewallId, payload) { + addRuleToFirewallWithHttpInfo(firewallId, payload) { let 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"); } let pathParams = { @@ -70,7 +70,7 @@ export default class FirewallsApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = FirewallRule; @@ -83,13 +83,13 @@ export default class FirewallsApi { /** * 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} */ - addFirewallRuleToFirewall(firewallId, payload) { - return this.addFirewallRuleToFirewallWithHttpInfo(firewallId, payload) + addRuleToFirewall(firewallId, payload) { + return this.addRuleToFirewallWithHttpInfo(firewallId, payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -98,7 +98,7 @@ export default class FirewallsApi { /** * 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 */ @@ -118,7 +118,7 @@ export default class FirewallsApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = FirewallResponse; @@ -131,7 +131,7 @@ export default class FirewallsApi { /** * 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} */ @@ -145,15 +145,15 @@ export default class FirewallsApi { /** * 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 */ - deleteFirewallWithHttpInfo(id) { + deleteExistingFirewallWithHttpInfo(id) { let 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"); } let pathParams = { @@ -166,7 +166,7 @@ export default class FirewallsApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; @@ -179,12 +179,12 @@ export default class FirewallsApi { /** * 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} */ - deleteFirewall(id) { - return this.deleteFirewallWithHttpInfo(id) + deleteExistingFirewall(id) { + return this.deleteExistingFirewallWithHttpInfo(id) .then(function(response_and_data) { return response_and_data.data; }); @@ -193,20 +193,20 @@ export default class FirewallsApi { /** * 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 */ - deleteFirewallRulesFromFirewallWithHttpInfo(firewallId, firewallRuleId) { + deleteRuleFromFirewallWithHttpInfo(firewallId, firewallRuleId) { let 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"); } let pathParams = { @@ -220,7 +220,7 @@ export default class FirewallsApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; @@ -233,13 +233,13 @@ export default class FirewallsApi { /** * 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} */ - deleteFirewallRulesFromFirewall(firewallId, firewallRuleId) { - return this.deleteFirewallRulesFromFirewallWithHttpInfo(firewallId, firewallRuleId) + deleteRuleFromFirewall(firewallId, firewallRuleId) { + return this.deleteRuleFromFirewallWithHttpInfo(firewallId, firewallRuleId) .then(function(response_and_data) { return response_and_data.data; }); @@ -247,55 +247,47 @@ export default class FirewallsApi { /** - * 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). - * @param {Object} opts Optional parameters - * @param {Number} [page] - * @param {Number} [pageSize] - * @param {String} [search] - * @param {String} [environment] Filter Environment ID or Name - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FirewallsListResponse} and HTTP response + * 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 */ - listFirewallsWithHttpInfo(opts) { - opts = opts || {}; + getFirewallWithHttpInfo(id) { let 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"); + } let pathParams = { + 'id': id }; let queryParams = { - 'page': opts['page'], - 'pageSize': opts['pageSize'], - 'search': opts['search'], - 'environment': opts['environment'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = FirewallsListResponse; + let returnType = FirewallDetailResponse; return this.apiClient.callApi( - '/core/firewalls', 'GET', + '/core/firewalls/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * 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). - * @param {Object} opts Optional parameters - * @param {Number} opts.page - * @param {Number} opts.pageSize - * @param {String} opts.search - * @param {String} opts.environment Filter Environment ID or Name - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FirewallsListResponse} + * 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} */ - listFirewalls(opts) { - return this.listFirewallsWithHttpInfo(opts) + getFirewall(id) { + return this.getFirewallWithHttpInfo(id) .then(function(response_and_data) { return response_and_data.data; }); @@ -303,47 +295,55 @@ export default class FirewallsApi { /** - * 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 + * 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://docs.hyperstack.cloud/docs/network-security/security-groups). + * @param {Object} opts Optional parameters + * @param {Number} [page] + * @param {Number} [pageSize] + * @param {String} [search] + * @param {String} [environment] Filter Environment ID or Name + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FirewallsListResponse} and HTTP response */ - retrieveFirewallDetailsWithHttpInfo(id) { + listExistingFirewallsWithHttpInfo(opts) { + opts = opts || {}; let 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"); - } let pathParams = { - 'id': id }; let queryParams = { + 'page': opts['page'], + 'pageSize': opts['pageSize'], + 'search': opts['search'], + 'environment': opts['environment'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = FirewallDetailResponse; + let returnType = FirewallsListResponse; return this.apiClient.callApi( - '/core/firewalls/{id}', 'GET', + '/core/firewalls', '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} + * 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://docs.hyperstack.cloud/docs/network-security/security-groups). + * @param {Object} opts Optional parameters + * @param {Number} opts.page + * @param {Number} opts.pageSize + * @param {String} opts.search + * @param {String} opts.environment Filter Environment ID or Name + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FirewallsListResponse} */ - retrieveFirewallDetails(id) { - return this.retrieveFirewallDetailsWithHttpInfo(id) + listExistingFirewalls(opts) { + return this.listExistingFirewallsWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/FlavorApi.js b/src/api/FlavorApi.js index 4c3febd3..30b153b7 100644 --- a/src/api/FlavorApi.js +++ b/src/api/FlavorApi.js @@ -19,7 +19,7 @@ import FlavorListResponse from '../model/FlavorListResponse'; /** * Flavor service. * @module api/FlavorApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class FlavorApi { @@ -38,7 +38,7 @@ export default class FlavorApi { /** * 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 @@ -57,7 +57,7 @@ export default class FlavorApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = FlavorListResponse; @@ -70,7 +70,7 @@ export default class FlavorApi { /** * 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/src/api/FloatingIpApi.js b/src/api/FloatingIpApi.js index 181b8e5c..0249f54c 100644 --- a/src/api/FloatingIpApi.js +++ b/src/api/FloatingIpApi.js @@ -19,7 +19,7 @@ import ResponseModel from '../model/ResponseModel'; /** * FloatingIp service. * @module api/FloatingIpApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class FloatingIpApi { @@ -38,19 +38,19 @@ export default class FloatingIpApi { /** * 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 */ - attachPublicIpToVirtualMachineWithHttpInfo(id) { + attachPublicIPToVMWithHttpInfo(vmId) { let 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"); } let pathParams = { - 'id': id + 'vm_id': vmId }; let queryParams = { }; @@ -59,12 +59,12 @@ export default class FloatingIpApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; return this.apiClient.callApi( - '/core/virtual-machines/{id}/attach-floatingip', 'POST', + '/core/virtual-machines/{vm_id}/attach-floatingip', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -72,12 +72,12 @@ export default class FloatingIpApi { /** * 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} */ - attachPublicIpToVirtualMachine(id) { - return this.attachPublicIpToVirtualMachineWithHttpInfo(id) + attachPublicIPToVM(vmId) { + return this.attachPublicIPToVMWithHttpInfo(vmId) .then(function(response_and_data) { return response_and_data.data; }); @@ -86,19 +86,19 @@ export default class FloatingIpApi { /** * 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 */ - detachPublicIpFromVirtualMachineWithHttpInfo(id) { + detachPublicIPFromVMWithHttpInfo(vmId) { let 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"); } let pathParams = { - 'id': id + 'vm_id': vmId }; let queryParams = { }; @@ -107,12 +107,12 @@ export default class FloatingIpApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; return this.apiClient.callApi( - '/core/virtual-machines/{id}/detach-floatingip', 'POST', + '/core/virtual-machines/{vm_id}/detach-floatingip', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -120,12 +120,12 @@ export default class FloatingIpApi { /** * 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} */ - detachPublicIpFromVirtualMachine(id) { - return this.detachPublicIpFromVirtualMachineWithHttpInfo(id) + detachPublicIPFromVM(vmId) { + return this.detachPublicIPFromVMWithHttpInfo(vmId) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/GpuApi.js b/src/api/GpuApi.js index 440c1e35..4229c6ec 100644 --- a/src/api/GpuApi.js +++ b/src/api/GpuApi.js @@ -19,7 +19,7 @@ import GPUList from '../model/GPUList'; /** * Gpu service. * @module api/GpuApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class GpuApi { @@ -41,7 +41,7 @@ export default class GpuApi { * Returns a list of all available GPUs that can be utilized in the creation of custom virtual machine configurations. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GPUList} and HTTP response */ - listGpusWithHttpInfo() { + listGPUsWithHttpInfo() { let postBody = null; let pathParams = { @@ -53,7 +53,7 @@ export default class GpuApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = GPUList; @@ -69,8 +69,8 @@ export default class GpuApi { * Returns a list of all available GPUs that can be utilized in the creation of custom virtual machine configurations. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GPUList} */ - listGpus() { - return this.listGpusWithHttpInfo() + listGPUs() { + return this.listGPUsWithHttpInfo() .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/HealthApi.js b/src/api/HealthApi.js new file mode 100644 index 00000000..4547e5d3 --- /dev/null +++ b/src/api/HealthApi.js @@ -0,0 +1,77 @@ +/** + * 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 ObjectStorageHealthResponse from '../model/ObjectStorageHealthResponse'; + +/** +* Health service. +* @module api/HealthApi +* @version v1.51.1-alpha +*/ +export default class HealthApi { + + /** + * 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. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.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 + */ + healthzEndpointWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ObjectStorageHealthResponse; + 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} + */ + healthzEndpoint() { + return this.healthzEndpointWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/api/ImageApi.js b/src/api/ImageApi.js index a1c87e8b..e262699e 100644 --- a/src/api/ImageApi.js +++ b/src/api/ImageApi.js @@ -22,7 +22,7 @@ import ResponseModel from '../model/ResponseModel'; /** * Image service. * @module api/ImageApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class ImageApi { @@ -45,11 +45,11 @@ export default class ImageApi { * @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 */ - deleteAnImageWithHttpInfo(id) { + deleteImageWithHttpInfo(id) { let 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"); } let pathParams = { @@ -62,7 +62,7 @@ export default class ImageApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; @@ -79,8 +79,8 @@ export default class ImageApi { * @param {Number} id * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel} */ - deleteAnImage(id) { - return this.deleteAnImageWithHttpInfo(id) + deleteImage(id) { + return this.deleteImageWithHttpInfo(id) .then(function(response_and_data) { return response_and_data.data; }); @@ -93,11 +93,11 @@ export default class ImageApi { * @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 */ - fetchNameAvailabilityForImagesWithHttpInfo(name) { + fetchImageNameAvailabilityWithHttpInfo(name) { let 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"); } let pathParams = { @@ -110,7 +110,7 @@ export default class ImageApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = NameAvailableModel; @@ -127,8 +127,8 @@ export default class ImageApi { * @param {String} name * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NameAvailableModel} */ - fetchNameAvailabilityForImages(name) { - return this.fetchNameAvailabilityForImagesWithHttpInfo(name) + fetchImageNameAvailability(name) { + return this.fetchImageNameAvailabilityWithHttpInfo(name) .then(function(response_and_data) { return response_and_data.data; }); @@ -143,12 +143,12 @@ export default class ImageApi { * @param {Boolean} [includeRelatedVms] * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Image} and HTTP response */ - getPrivateImageDetailsWithHttpInfo(id, opts) { + getImageWithHttpInfo(id, opts) { opts = opts || {}; let 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"); } let pathParams = { @@ -162,7 +162,7 @@ export default class ImageApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = Image; @@ -181,8 +181,8 @@ export default class ImageApi { * @param {Boolean} opts.includeRelatedVms * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Image} */ - getPrivateImageDetails(id, opts) { - return this.getPrivateImageDetailsWithHttpInfo(id, opts) + getImage(id, opts) { + return this.getImageWithHttpInfo(id, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -191,7 +191,7 @@ export default class ImageApi { /** * 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. @@ -218,7 +218,7 @@ export default class ImageApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = Images; @@ -231,7 +231,7 @@ export default class ImageApi { /** * 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/src/api/InviteApi.js b/src/api/InviteApi.js index 8cd5f033..c4462bfa 100644 --- a/src/api/InviteApi.js +++ b/src/api/InviteApi.js @@ -22,7 +22,7 @@ import InviteUserResponseModel from '../model/InviteUserResponseModel'; /** * Invite service. * @module api/InviteApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class InviteApi { @@ -40,8 +40,56 @@ export default class InviteApi { /** - * 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 + */ + acceptInviteWithHttpInfo(id) { + let 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"); + } + + let pathParams = { + 'id': id + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = CommonResponseModel; + 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} + */ + 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 */ @@ -62,7 +110,7 @@ export default class InviteApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = CommonResponseModel; @@ -74,8 +122,8 @@ export default class InviteApi { } /** - * 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 +137,7 @@ export default class InviteApi { /** * 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 */ @@ -109,7 +157,7 @@ export default class InviteApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = InviteUserResponseModel; @@ -122,7 +170,7 @@ export default class InviteApi { /** * 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} */ @@ -136,7 +184,7 @@ export default class InviteApi { /** * 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 */ listInvitesWithHttpInfo() { @@ -151,7 +199,7 @@ export default class InviteApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = GetInvitesResponseModel; @@ -164,7 +212,7 @@ export default class InviteApi { /** * 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} */ listInvites() { diff --git a/src/api/KeypairApi.js b/src/api/KeypairApi.js index 68b1f6f4..540410c8 100644 --- a/src/api/KeypairApi.js +++ b/src/api/KeypairApi.js @@ -19,12 +19,12 @@ import ImportKeypairResponse from '../model/ImportKeypairResponse'; import Keypairs from '../model/Keypairs'; import ResponseModel from '../model/ResponseModel'; import UpdateKeypairName from '../model/UpdateKeypairName'; -import UpdateKeypairnameresponse from '../model/UpdateKeypairnameresponse'; +import UpdateKeypairNameResponse from '../model/UpdateKeypairNameResponse'; /** * Keypair service. * @module api/KeypairApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class KeypairApi { @@ -43,7 +43,7 @@ export default class KeypairApi { /** * 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 */ @@ -64,7 +64,7 @@ export default class KeypairApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; @@ -77,7 +77,7 @@ export default class KeypairApi { /** * 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 @@ export default class KeypairApi { /** * 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 */ @@ -111,7 +111,7 @@ export default class KeypairApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = ImportKeypairResponse; @@ -124,7 +124,7 @@ export default class KeypairApi { /** * 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} */ @@ -138,7 +138,7 @@ export default class KeypairApi { /** * 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 @@ -161,7 +161,7 @@ export default class KeypairApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = Keypairs; @@ -174,7 +174,7 @@ export default class KeypairApi { /** * 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 @@ -191,10 +191,10 @@ export default class KeypairApi { /** * 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 */ updateKeyPairNameWithHttpInfo(id, payload) { let postBody = payload; @@ -217,10 +217,10 @@ export default class KeypairApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = UpdateKeypairnameresponse; + let returnType = UpdateKeypairNameResponse; return this.apiClient.callApi( '/core/keypair/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, @@ -230,10 +230,10 @@ export default class KeypairApi { /** * 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} */ updateKeyPairName(id, payload) { return this.updateKeyPairNameWithHttpInfo(id, payload) diff --git a/src/api/OrganizationApi.js b/src/api/OrganizationApi.js index fbe36c91..733b530c 100644 --- a/src/api/OrganizationApi.js +++ b/src/api/OrganizationApi.js @@ -23,7 +23,7 @@ import UpdateOrganizationResponseModel from '../model/UpdateOrganizationResponse /** * Organization service. * @module api/OrganizationApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class OrganizationApi { @@ -42,7 +42,7 @@ export default class OrganizationApi { /** * 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 */ @@ -62,7 +62,7 @@ export default class OrganizationApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = RemoveMemberFromOrganizationResponseModel; @@ -75,7 +75,7 @@ export default class OrganizationApi { /** * 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} */ @@ -89,7 +89,7 @@ export default class OrganizationApi { /** * 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 */ retrieveOrganizationInformationWithHttpInfo() { @@ -104,7 +104,7 @@ export default class OrganizationApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = GetOrganizationResponseModel; @@ -117,7 +117,7 @@ export default class OrganizationApi { /** * 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} */ retrieveOrganizationInformation() { @@ -130,7 +130,7 @@ export default class OrganizationApi { /** * 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 */ @@ -150,7 +150,7 @@ export default class OrganizationApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = UpdateOrganizationResponseModel; @@ -163,7 +163,7 @@ export default class OrganizationApi { /** * 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/src/api/PartnerConfigApi.js b/src/api/PartnerConfigApi.js new file mode 100644 index 00000000..d16261f4 --- /dev/null +++ b/src/api/PartnerConfigApi.js @@ -0,0 +1,125 @@ +/** + * 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 ErrorResponseModel from '../model/ErrorResponseModel'; +import PartnerConfig from '../model/PartnerConfig'; + +/** +* PartnerConfig service. +* @module api/PartnerConfigApi +* @version v1.51.1-alpha +*/ +export default class PartnerConfigApi { + + /** + * 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. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.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 + */ + getPartnerConfigWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = PartnerConfig; + 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} + */ + 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 + */ + getPartnerConfigByDomainWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'domain': opts['domain'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = PartnerConfig; + 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} + */ + getPartnerConfigByDomain(opts) { + return this.getPartnerConfigByDomainWithHttpInfo(opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/api/PaymentApi.js b/src/api/PaymentApi.js index 16f40c0f..cbba783b 100644 --- a/src/api/PaymentApi.js +++ b/src/api/PaymentApi.js @@ -21,7 +21,7 @@ import PaymentInitiateResponse from '../model/PaymentInitiateResponse'; /** * Payment service. * @module api/PaymentApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class PaymentApi { @@ -39,13 +39,20 @@ export default class PaymentApi { /** - * 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 */ - getViewPaymentDetailsWithHttpInfo() { + getPaymentReceiptWithHttpInfo(paymentId) { let postBody = null; + // verify the required parameter 'paymentId' is set + if (paymentId === undefined || paymentId === null) { + throw new Error("Missing the required parameter 'paymentId' when calling getPaymentReceipt"); + } let pathParams = { + 'payment_id': paymentId }; let queryParams = { }; @@ -54,23 +61,25 @@ export default class PaymentApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = PaymentDetailsResponse; + let returnType = null; return this.apiClient.callApi( - '/billing/payment/payment-details', 'GET', + '/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} */ - getViewPaymentDetails() { - return this.getViewPaymentDetailsWithHttpInfo() + getPaymentReceipt(paymentId) { + return this.getPaymentReceiptWithHttpInfo(paymentId) .then(function(response_and_data) { return response_and_data.data; }); @@ -79,14 +88,15 @@ export default class PaymentApi { /** * 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 */ - postInitiatePaymentWithHttpInfo(payload) { + initiatePaymentWithHttpInfo(payload) { let 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"); } let pathParams = { @@ -98,7 +108,7 @@ export default class PaymentApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = PaymentInitiateResponse; @@ -111,11 +121,53 @@ export default class PaymentApi { /** * 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} */ - postInitiatePayment(payload) { - return this.postInitiatePaymentWithHttpInfo(payload) + 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 + */ + listPaymentDetailsWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = PaymentDetailsResponse; + 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} + */ + listPaymentDetails() { + return this.listPaymentDetailsWithHttpInfo() .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/PermissionApi.js b/src/api/PermissionApi.js index 4906d043..48e24ae5 100644 --- a/src/api/PermissionApi.js +++ b/src/api/PermissionApi.js @@ -19,7 +19,7 @@ import GetPermissionsResponseModel from '../model/GetPermissionsResponseModel'; /** * Permission service. * @module api/PermissionApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class PermissionApi { @@ -38,7 +38,7 @@ export default class PermissionApi { /** * 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 */ listPermissionsWithHttpInfo() { @@ -53,7 +53,7 @@ export default class PermissionApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = GetPermissionsResponseModel; @@ -66,7 +66,7 @@ export default class PermissionApi { /** * 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} */ listPermissions() { diff --git a/src/api/PolicyApi.js b/src/api/PolicyApi.js index a7a9dce1..e9201f3a 100644 --- a/src/api/PolicyApi.js +++ b/src/api/PolicyApi.js @@ -19,7 +19,7 @@ import GetPoliciesResponseModel from '../model/GetPoliciesResponseModel'; /** * Policy service. * @module api/PolicyApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class PolicyApi { @@ -38,7 +38,7 @@ export default class PolicyApi { /** * 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 */ listPoliciesWithHttpInfo() { @@ -53,7 +53,7 @@ export default class PolicyApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = GetPoliciesResponseModel; @@ -66,7 +66,7 @@ export default class PolicyApi { /** * 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} */ listPolicies() { diff --git a/src/api/PricebookApi.js b/src/api/PricebookApi.js index 4b7e7d08..553b4e1f 100644 --- a/src/api/PricebookApi.js +++ b/src/api/PricebookApi.js @@ -19,7 +19,7 @@ import PricebookModel from '../model/PricebookModel'; /** * Pricebook service. * @module api/PricebookApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class PricebookApi { @@ -37,9 +37,10 @@ export default class PricebookApi { /** + * 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 */ - retrivePricebookWithHttpInfo() { + getPricebookWithHttpInfo() { let postBody = null; let pathParams = { @@ -51,7 +52,7 @@ export default class PricebookApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = [PricebookModel]; @@ -63,10 +64,11 @@ export default class PricebookApi { } /** + * 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.} */ - retrivePricebook() { - return this.retrivePricebookWithHttpInfo() + getPricebook() { + return this.getPricebookWithHttpInfo() .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/ProfileApi.js b/src/api/ProfileApi.js index 6e3d30e5..224bbeb8 100644 --- a/src/api/ProfileApi.js +++ b/src/api/ProfileApi.js @@ -22,7 +22,7 @@ import ResponseModel from '../model/ResponseModel'; /** * Profile service. * @module api/ProfileApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class ProfileApi { @@ -41,7 +41,7 @@ export default class ProfileApi { /** * 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 */ @@ -61,7 +61,7 @@ export default class ProfileApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = CreateProfileResponse; @@ -74,7 +74,7 @@ export default class ProfileApi { /** * 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} */ @@ -109,7 +109,7 @@ export default class ProfileApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; @@ -135,14 +135,20 @@ export default class ProfileApi { /** - * 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 */ - listProfilesWithHttpInfo() { + getProfileWithHttpInfo(id) { let postBody = null; + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling getProfile"); + } let pathParams = { + 'id': id }; let queryParams = { }; @@ -151,24 +157,25 @@ export default class ProfileApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = ProfileListResponse; + let returnType = CreateProfileResponse; return this.apiClient.callApi( - '/core/profiles', 'GET', + '/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} */ - listProfiles() { - return this.listProfilesWithHttpInfo() + getProfile(id) { + return this.getProfileWithHttpInfo(id) .then(function(response_and_data) { return response_and_data.data; }); @@ -176,20 +183,14 @@ export default class ProfileApi { /** - * 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 */ - retrieveProfileDetailsWithHttpInfo(id) { + listProfilesWithHttpInfo() { let 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"); - } let pathParams = { - 'id': id }; let queryParams = { }; @@ -198,25 +199,24 @@ export default class ProfileApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = CreateProfileResponse; + let returnType = ProfileListResponse; return this.apiClient.callApi( - '/core/profiles/{id}', 'GET', + '/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} */ - retrieveProfileDetails(id) { - return this.retrieveProfileDetailsWithHttpInfo(id) + listProfiles() { + return this.listProfilesWithHttpInfo() .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/RbacRoleApi.js b/src/api/RbacRoleApi.js index 063bf468..1c90568b 100644 --- a/src/api/RbacRoleApi.js +++ b/src/api/RbacRoleApi.js @@ -23,7 +23,7 @@ import RbacRoleDetailResponseModelFixed from '../model/RbacRoleDetailResponseMod /** * RbacRole service. * @module api/RbacRoleApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class RbacRoleApi { @@ -42,15 +42,15 @@ export default class RbacRoleApi { /** * 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 */ - createRbacRoleWithHttpInfo(payload) { + createRBACRoleWithHttpInfo(payload) { let 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"); } let pathParams = { @@ -62,7 +62,7 @@ export default class RbacRoleApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = RbacRoleDetailResponseModel; @@ -75,12 +75,12 @@ export default class RbacRoleApi { /** * 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} */ - createRbacRole(payload) { - return this.createRbacRoleWithHttpInfo(payload) + createRBACRole(payload) { + return this.createRBACRoleWithHttpInfo(payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -89,15 +89,15 @@ export default class RbacRoleApi { /** * 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 */ - deleteRbacRoleWithHttpInfo(id) { + deleteRBACRoleWithHttpInfo(id) { let 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"); } let pathParams = { @@ -110,7 +110,7 @@ export default class RbacRoleApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = CommonResponseModel; @@ -123,12 +123,12 @@ export default class RbacRoleApi { /** * 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} */ - deleteRbacRole(id) { - return this.deleteRbacRoleWithHttpInfo(id) + deleteRBACRole(id) { + return this.deleteRBACRoleWithHttpInfo(id) .then(function(response_and_data) { return response_and_data.data; }); @@ -137,10 +137,10 @@ export default class RbacRoleApi { /** * 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 */ - listRbacRolesWithHttpInfo() { + listRBACRolesWithHttpInfo() { let postBody = null; let pathParams = { @@ -152,7 +152,7 @@ export default class RbacRoleApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = GetRbacRolesResponseModel; @@ -165,11 +165,11 @@ export default class RbacRoleApi { /** * 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} */ - listRbacRoles() { - return this.listRbacRolesWithHttpInfo() + listRBACRoles() { + return this.listRBACRolesWithHttpInfo() .then(function(response_and_data) { return response_and_data.data; }); @@ -178,15 +178,15 @@ export default class RbacRoleApi { /** * 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 */ - retrieveRbacRoleDetailsWithHttpInfo(id) { + retrieveRBACRoleDetailsWithHttpInfo(id) { let 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"); } let pathParams = { @@ -199,7 +199,7 @@ export default class RbacRoleApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = RbacRoleDetailResponseModelFixed; @@ -212,12 +212,12 @@ export default class RbacRoleApi { /** * 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} */ - retrieveRbacRoleDetails(id) { - return this.retrieveRbacRoleDetailsWithHttpInfo(id) + retrieveRBACRoleDetails(id) { + return this.retrieveRBACRoleDetailsWithHttpInfo(id) .then(function(response_and_data) { return response_and_data.data; }); @@ -226,20 +226,20 @@ export default class RbacRoleApi { /** * 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 */ - updateRbacRoleWithHttpInfo(id, payload) { + updateRBACRoleWithHttpInfo(id, payload) { let 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"); } let pathParams = { @@ -252,7 +252,7 @@ export default class RbacRoleApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = RbacRoleDetailResponseModel; @@ -265,13 +265,13 @@ export default class RbacRoleApi { /** * 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} */ - updateRbacRole(id, payload) { - return this.updateRbacRoleWithHttpInfo(id, payload) + updateRBACRole(id, payload) { + return this.updateRBACRoleWithHttpInfo(id, payload) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/RegionApi.js b/src/api/RegionApi.js index dadd87a8..d6c74e0e 100644 --- a/src/api/RegionApi.js +++ b/src/api/RegionApi.js @@ -19,7 +19,7 @@ import Regions from '../model/Regions'; /** * Region service. * @module api/RegionApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class RegionApi { @@ -37,8 +37,8 @@ export default class RegionApi { /** - * 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 */ listRegionsWithHttpInfo() { @@ -53,7 +53,7 @@ export default class RegionApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = Regions; @@ -65,8 +65,8 @@ export default class RegionApi { } /** - * 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} */ listRegions() { diff --git a/src/api/RegionsApi.js b/src/api/RegionsApi.js new file mode 100644 index 00000000..98353014 --- /dev/null +++ b/src/api/RegionsApi.js @@ -0,0 +1,77 @@ +/** + * 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 ObjectStorageRegionListResponse from '../model/ObjectStorageRegionListResponse'; + +/** +* Regions service. +* @module api/RegionsApi +* @version v1.51.1-alpha +*/ +export default class RegionsApi { + + /** + * 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. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.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 + */ + listRegionsEndpointWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ObjectStorageRegionListResponse; + 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} + */ + listRegionsEndpoint() { + return this.listRegionsEndpointWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/api/SecurityRulesApi.js b/src/api/SecurityRulesApi.js index ba72f07f..042db06e 100644 --- a/src/api/SecurityRulesApi.js +++ b/src/api/SecurityRulesApi.js @@ -19,7 +19,7 @@ import SecurityRulesProtocolFields from '../model/SecurityRulesProtocolFields'; /** * SecurityRules service. * @module api/SecurityRulesApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class SecurityRulesApi { @@ -53,7 +53,7 @@ export default class SecurityRulesApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = SecurityRulesProtocolFields; diff --git a/src/api/SnapshotEventsApi.js b/src/api/SnapshotEventsApi.js index 164782f4..fea4b79e 100644 --- a/src/api/SnapshotEventsApi.js +++ b/src/api/SnapshotEventsApi.js @@ -17,7 +17,7 @@ import ApiClient from "../ApiClient"; /** * SnapshotEvents service. * @module api/SnapshotEventsApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class SnapshotEventsApi { @@ -40,11 +40,11 @@ export default class SnapshotEventsApi { * @param {Number} snapshotId * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ - fetchAllEventsForASnapshotWithHttpInfo(snapshotId) { + listSnapshotEventsWithHttpInfo(snapshotId) { let 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"); } let pathParams = { @@ -57,7 +57,7 @@ export default class SnapshotEventsApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = []; let returnType = null; @@ -74,8 +74,8 @@ export default class SnapshotEventsApi { * @param {Number} snapshotId * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ - fetchAllEventsForASnapshot(snapshotId) { - return this.fetchAllEventsForASnapshotWithHttpInfo(snapshotId) + listSnapshotEvents(snapshotId) { + return this.listSnapshotEventsWithHttpInfo(snapshotId) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/SnapshotsApi.js b/src/api/SnapshotsApi.js index 44cdc1bd..99cb1cbb 100644 --- a/src/api/SnapshotsApi.js +++ b/src/api/SnapshotsApi.js @@ -26,7 +26,7 @@ import Snapshots from '../model/Snapshots'; /** * Snapshots service. * @module api/SnapshotsApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class SnapshotsApi { @@ -50,15 +50,15 @@ export default class SnapshotsApi { * @param {module:model/CreateImagePayload} payload * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateImage} and HTTP response */ - createAnImageFromASnapshotWithHttpInfo(snapshotId, payload) { + createCustomImageWithHttpInfo(snapshotId, payload) { let 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"); } let pathParams = { @@ -71,7 +71,7 @@ export default class SnapshotsApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = CreateImage; @@ -89,8 +89,8 @@ export default class SnapshotsApi { * @param {module:model/CreateImagePayload} payload * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateImage} */ - createAnImageFromASnapshot(snapshotId, payload) { - return this.createAnImageFromASnapshotWithHttpInfo(snapshotId, payload) + createCustomImage(snapshotId, payload) { + return this.createCustomImageWithHttpInfo(snapshotId, payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -120,7 +120,7 @@ export default class SnapshotsApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; @@ -168,7 +168,7 @@ export default class SnapshotsApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = NameAvailableModel; @@ -193,71 +193,17 @@ export default class SnapshotsApi { } - /** - * 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 - */ - restoreASnapshotWithHttpInfo(id, payload) { - let 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"); - } - - let pathParams = { - 'id': id - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let authNames = ['apiKey', 'accessToken']; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = Instance; - 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} - */ - restoreASnapshot(id, payload) { - return this.restoreASnapshotWithHttpInfo(id, payload) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - /** * Retrieve a snapshot * Retrieve a snapshot. * @param {Number} id * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SnapshotRetrieve} and HTTP response */ - retrieveASnapshotWithHttpInfo(id) { + getSnapshotWithHttpInfo(id) { let 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"); } let pathParams = { @@ -270,7 +216,7 @@ export default class SnapshotsApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = SnapshotRetrieve; @@ -287,8 +233,8 @@ export default class SnapshotsApi { * @param {Number} id * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SnapshotRetrieve} */ - retrieveASnapshot(id) { - return this.retrieveASnapshotWithHttpInfo(id) + getSnapshot(id) { + return this.getSnapshotWithHttpInfo(id) .then(function(response_and_data) { return response_and_data.data; }); @@ -297,14 +243,14 @@ export default class SnapshotsApi { /** * 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 * @param {String} [search] Search By Snapshot ID or Name * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Snapshots} and HTTP response */ - retrieveListOfSnapshotsWithPaginationWithHttpInfo(opts) { + listSnapshotsWithHttpInfo(opts) { opts = opts || {}; let postBody = null; @@ -320,7 +266,7 @@ export default class SnapshotsApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = Snapshots; @@ -333,15 +279,69 @@ export default class SnapshotsApi { /** * 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 * @param {String} opts.search Search By Snapshot ID or Name * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Snapshots} */ - retrieveListOfSnapshotsWithPagination(opts) { - return this.retrieveListOfSnapshotsWithPaginationWithHttpInfo(opts) + 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 + */ + restoreSnapshotWithHttpInfo(id, payload) { + let 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"); + } + + let pathParams = { + 'id': id + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = Instance; + 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} + */ + restoreSnapshot(id, payload) { + return this.restoreSnapshotWithHttpInfo(id, payload) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/StockApi.js b/src/api/StockApi.js index 229c8b12..ba73dc26 100644 --- a/src/api/StockApi.js +++ b/src/api/StockApi.js @@ -19,7 +19,7 @@ import NewStockRetriveResponse from '../model/NewStockRetriveResponse'; /** * Stock service. * @module api/StockApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class StockApi { @@ -38,10 +38,10 @@ export default class StockApi { /** * 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 */ - retrieveGpuStocksWithHttpInfo() { + getGPUStockWithHttpInfo() { let postBody = null; let pathParams = { @@ -53,7 +53,7 @@ export default class StockApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = NewStockRetriveResponse; @@ -66,11 +66,11 @@ export default class StockApi { /** * 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} */ - retrieveGpuStocks() { - return this.retrieveGpuStocksWithHttpInfo() + getGPUStock() { + return this.getGPUStockWithHttpInfo() .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/TemplateApi.js b/src/api/TemplateApi.js index a17377d3..f4a7b20f 100644 --- a/src/api/TemplateApi.js +++ b/src/api/TemplateApi.js @@ -22,7 +22,7 @@ import UpdateTemplate from '../model/UpdateTemplate'; /** * Template service. * @module api/TemplateApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class TemplateApi { @@ -80,7 +80,7 @@ export default class TemplateApi { 'name': name }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['multipart/form-data']; let accepts = ['application/json']; let returnType = Template; @@ -131,7 +131,7 @@ export default class TemplateApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; @@ -157,46 +157,47 @@ export default class TemplateApi { /** - * 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). - * @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 + * 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 */ - listTemplatesWithHttpInfo(opts) { - opts = opts || {}; + getTemplateWithHttpInfo(id) { let 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"); + } let pathParams = { + 'id': id }; let queryParams = { - 'visibility': opts['visibility'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = Templates; + let returnType = Template; return this.apiClient.callApi( - '/core/marketplace/templates', 'GET', + '/core/marketplace/templates/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * 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). - * @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} + * 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} */ - listTemplates(opts) { - return this.listTemplatesWithHttpInfo(opts) + getTemplate(id) { + return this.getTemplateWithHttpInfo(id) .then(function(response_and_data) { return response_and_data.data; }); @@ -204,47 +205,46 @@ export default class TemplateApi { /** - * 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 + * 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://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 */ - retrieveTemplateDetailsWithHttpInfo(id) { + listTemplatesWithHttpInfo(opts) { + opts = opts || {}; let 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"); - } let pathParams = { - 'id': id }; let queryParams = { + 'visibility': opts['visibility'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = Template; + let returnType = Templates; return this.apiClient.callApi( - '/core/marketplace/templates/{id}', 'GET', + '/core/marketplace/templates', '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} + * 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://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} */ - retrieveTemplateDetails(id) { - return this.retrieveTemplateDetailsWithHttpInfo(id) + listTemplates(opts) { + return this.listTemplatesWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -253,7 +253,7 @@ export default class TemplateApi { /** * 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 @@ -279,7 +279,7 @@ export default class TemplateApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Template; @@ -292,7 +292,7 @@ export default class TemplateApi { /** * 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/src/api/UserApi.js b/src/api/UserApi.js index 300764f7..b4c0633e 100644 --- a/src/api/UserApi.js +++ b/src/api/UserApi.js @@ -15,13 +15,13 @@ import ApiClient from "../ApiClient"; import AddUserInfoSuccessResponseModel from '../model/AddUserInfoSuccessResponseModel'; import ErrorResponseModel from '../model/ErrorResponseModel'; -import Userinfopostpayload from '../model/Userinfopostpayload'; +import UserInfoPostPayload from '../model/UserInfoPostPayload'; import UsersInfoListResponse from '../model/UsersInfoListResponse'; /** * User service. * @module api/UserApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class UserApi { @@ -39,11 +39,17 @@ export default class UserApi { /** - * 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 */ - getFetchUserInfoWithHttpInfo() { - let postBody = null; + addUserBillingInfoWithHttpInfo(payload) { + let 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"); + } let pathParams = { }; @@ -54,23 +60,25 @@ export default class UserApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; - let contentTypes = []; + let authNames = ['apiKey']; + let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = UsersInfoListResponse; + let returnType = AddUserInfoSuccessResponseModel; return this.apiClient.callApi( - '/billing/user/info', 'GET', + '/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} */ - getFetchUserInfo() { - return this.getFetchUserInfoWithHttpInfo() + addUserBillingInfo(payload) { + return this.addUserBillingInfoWithHttpInfo(payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -78,16 +86,12 @@ export default class UserApi { /** - * 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 */ - postInsertUserInfoWithHttpInfo(payload) { - let 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"); - } + getUserBillingInfoWithHttpInfo() { + let postBody = null; let pathParams = { }; @@ -98,24 +102,24 @@ export default class UserApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; - let contentTypes = ['application/json']; + let authNames = ['apiKey']; + let contentTypes = []; let accepts = ['application/json']; - let returnType = AddUserInfoSuccessResponseModel; + let returnType = UsersInfoListResponse; return this.apiClient.callApi( - '/billing/user/info', 'POST', + '/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} */ - postInsertUserInfo(payload) { - return this.postInsertUserInfoWithHttpInfo(payload) + getUserBillingInfo() { + return this.getUserBillingInfoWithHttpInfo() .then(function(response_and_data) { return response_and_data.data; }); @@ -123,15 +127,16 @@ export default class UserApi { /** - * 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 */ - putUpdateUserInfoWithHttpInfo(payload) { + updateUserBillingInfoWithHttpInfo(payload) { let 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"); } let pathParams = { @@ -143,7 +148,7 @@ export default class UserApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = AddUserInfoSuccessResponseModel; @@ -155,12 +160,13 @@ export default class UserApi { } /** - * 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} */ - putUpdateUserInfo(payload) { - return this.putUpdateUserInfoWithHttpInfo(payload) + updateUserBillingInfo(payload) { + return this.updateUserBillingInfoWithHttpInfo(payload) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/UserDetailChoiceApi.js b/src/api/UserDetailChoiceApi.js index e25c8795..acdc8777 100644 --- a/src/api/UserDetailChoiceApi.js +++ b/src/api/UserDetailChoiceApi.js @@ -19,7 +19,7 @@ import UserDefaultChoicesForUserResponse from '../model/UserDefaultChoicesForUse /** * UserDetailChoice service. * @module api/UserDetailChoiceApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class UserDetailChoiceApi { @@ -38,10 +38,10 @@ export default class UserDetailChoiceApi { /** * 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 */ - retrieveDefaultFlavorsAndImagesWithHttpInfo() { + listDefaultFlavorsAndImagesWithHttpInfo() { let postBody = null; let pathParams = { @@ -53,7 +53,7 @@ export default class UserDetailChoiceApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = UserDefaultChoicesForUserResponse; @@ -66,11 +66,11 @@ export default class UserDetailChoiceApi { /** * 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} */ - retrieveDefaultFlavorsAndImages() { - return this.retrieveDefaultFlavorsAndImagesWithHttpInfo() + listDefaultFlavorsAndImages() { + return this.listDefaultFlavorsAndImagesWithHttpInfo() .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/UserPermissionApi.js b/src/api/UserPermissionApi.js index da7015d6..b5d477c2 100644 --- a/src/api/UserPermissionApi.js +++ b/src/api/UserPermissionApi.js @@ -19,7 +19,7 @@ import GetUserPermissionsResponseModel from '../model/GetUserPermissionsResponse /** * UserPermission service. * @module api/UserPermissionApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class UserPermissionApi { @@ -38,7 +38,7 @@ export default class UserPermissionApi { /** * 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 */ listMyUserPermissionsWithHttpInfo() { @@ -53,7 +53,7 @@ export default class UserPermissionApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = GetUserPermissionsResponseModel; @@ -66,7 +66,7 @@ export default class UserPermissionApi { /** * 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} */ listMyUserPermissions() { @@ -79,7 +79,7 @@ export default class UserPermissionApi { /** * 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 */ @@ -100,7 +100,7 @@ export default class UserPermissionApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = GetUserPermissionsResponseModel; @@ -113,7 +113,7 @@ export default class UserPermissionApi { /** * 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/src/api/VirtualMachineApi.js b/src/api/VirtualMachineApi.js index e9c28e0b..a894c034 100644 --- a/src/api/VirtualMachineApi.js +++ b/src/api/VirtualMachineApi.js @@ -20,20 +20,23 @@ import CreateInstancesResponse from '../model/CreateInstancesResponse'; import CreateSecurityRulePayload from '../model/CreateSecurityRulePayload'; import CreateSnapshotPayload from '../model/CreateSnapshotPayload'; import CreateSnapshotResponse from '../model/CreateSnapshotResponse'; -import EditlabelofanexistingVMPayload from '../model/EditlabelofanexistingVMPayload'; +import EditLabelOfAnExistingVMPayload from '../model/EditLabelOfAnExistingVMPayload'; import ErrorResponseModel from '../model/ErrorResponseModel'; +import GetInstanceLogsResponse from '../model/GetInstanceLogsResponse'; import Instance from '../model/Instance'; import InstanceResizePayload from '../model/InstanceResizePayload'; import Instances from '../model/Instances'; import MetricsFields from '../model/MetricsFields'; import NameAvailableModel from '../model/NameAvailableModel'; +import RequestInstanceLogsPayload from '../model/RequestInstanceLogsPayload'; +import RequestInstanceLogsResponse from '../model/RequestInstanceLogsResponse'; import ResponseModel from '../model/ResponseModel'; import SecurityGroupRule from '../model/SecurityGroupRule'; /** * VirtualMachine service. * @module api/VirtualMachineApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class VirtualMachineApi { @@ -51,25 +54,25 @@ export default class VirtualMachineApi { /** - * 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 */ - addFirewallRuleToVirtualMachineWithHttpInfo(id, payload) { + addVMLabelWithHttpInfo(vmId, payload) { let 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"); } let pathParams = { - 'id': id + 'vm_id': vmId }; let queryParams = { }; @@ -78,26 +81,26 @@ export default class VirtualMachineApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = SecurityGroupRule; + let returnType = ResponseModel; return this.apiClient.callApi( - '/core/virtual-machines/{id}/sg-rules', 'POST', + '/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} */ - addFirewallRuleToVirtualMachine(id, payload) { - return this.addFirewallRuleToVirtualMachineWithHttpInfo(id, payload) + addVMLabel(vmId, payload) { + return this.addVMLabelWithHttpInfo(vmId, payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -111,15 +114,15 @@ export default class VirtualMachineApi { * @param {module:model/AttachFirewallsToVMPayload} payload * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response */ - attachFirewallsToAVirtualMachineWithHttpInfo(vmId, payload) { + attachFirewallsToVMWithHttpInfo(vmId, payload) { let 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"); } let pathParams = { @@ -132,7 +135,7 @@ export default class VirtualMachineApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = ResponseModel; @@ -150,8 +153,116 @@ export default class VirtualMachineApi { * @param {module:model/AttachFirewallsToVMPayload} payload * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel} */ - attachFirewallsToAVirtualMachine(vmId, payload) { - return this.attachFirewallsToAVirtualMachineWithHttpInfo(vmId, payload) + 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 + */ + checkVMNameAvailabilityWithHttpInfo(name, opts) { + opts = opts || {}; + let 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"); + } + + let pathParams = { + 'name': name + }; + let queryParams = { + 'count': opts['count'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = NameAvailableModel; + 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} + */ + 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 + */ + createFirewallRuleForVMWithHttpInfo(vmId, payload) { + let 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"); + } + + let pathParams = { + 'vm_id': vmId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = SecurityGroupRule; + 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} + */ + createFirewallRuleForVM(vmId, payload) { + return this.createFirewallRuleForVMWithHttpInfo(vmId, payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -165,15 +276,15 @@ export default class VirtualMachineApi { * @param {module:model/CreateSnapshotPayload} payload * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateSnapshotResponse} and HTTP response */ - createSnapshotFromAVirtualMachineWithHttpInfo(vmId, payload) { + createSnapshotForVMWithHttpInfo(vmId, payload) { let 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"); } let pathParams = { @@ -186,7 +297,7 @@ export default class VirtualMachineApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = CreateSnapshotResponse; @@ -204,8 +315,8 @@ export default class VirtualMachineApi { * @param {module:model/CreateSnapshotPayload} payload * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateSnapshotResponse} */ - createSnapshotFromAVirtualMachine(vmId, payload) { - return this.createSnapshotFromAVirtualMachineWithHttpInfo(vmId, payload) + createSnapshotForVM(vmId, payload) { + return this.createSnapshotForVMWithHttpInfo(vmId, payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -214,15 +325,15 @@ export default class VirtualMachineApi { /** * 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 */ - createVirtualMachinesWithHttpInfo(payload) { + createVMsWithHttpInfo(payload) { let 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"); } let pathParams = { @@ -234,7 +345,7 @@ export default class VirtualMachineApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = CreateInstancesResponse; @@ -247,12 +358,12 @@ export default class VirtualMachineApi { /** * 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} */ - createVirtualMachines(payload) { - return this.createVirtualMachinesWithHttpInfo(payload) + createVMs(payload) { + return this.createVMsWithHttpInfo(payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -262,23 +373,23 @@ export default class VirtualMachineApi { /** * 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 */ - deleteFirewallRuleFromVirtualMachineWithHttpInfo(virtualMachineId, sgRuleId) { + deleteFirewallRuleForVMWithHttpInfo(vmId, sgRuleId) { let 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"); } let pathParams = { - 'virtual_machine_id': virtualMachineId, + 'vm_id': vmId, 'sg_rule_id': sgRuleId }; let queryParams = { @@ -288,12 +399,12 @@ export default class VirtualMachineApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; return this.apiClient.callApi( - '/core/virtual-machines/{virtual_machine_id}/sg-rules/{sg_rule_id}', 'DELETE', + '/core/virtual-machines/{vm_id}/sg-rules/{sg_rule_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -302,12 +413,12 @@ export default class VirtualMachineApi { /** * 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} */ - deleteFirewallRuleFromVirtualMachine(virtualMachineId, sgRuleId) { - return this.deleteFirewallRuleFromVirtualMachineWithHttpInfo(virtualMachineId, sgRuleId) + deleteFirewallRuleForVM(vmId, sgRuleId) { + return this.deleteFirewallRuleForVMWithHttpInfo(vmId, sgRuleId) .then(function(response_and_data) { return response_and_data.data; }); @@ -317,18 +428,18 @@ export default class VirtualMachineApi { /** * 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 */ - deleteVirtualMachineWithHttpInfo(id) { + deleteVMWithHttpInfo(vmId) { let 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"); } let pathParams = { - 'id': id + 'vm_id': vmId }; let queryParams = { }; @@ -337,12 +448,12 @@ export default class VirtualMachineApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; return this.apiClient.callApi( - '/core/virtual-machines/{id}', 'DELETE', + '/core/virtual-machines/{vm_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -351,11 +462,11 @@ export default class VirtualMachineApi { /** * 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} */ - deleteVirtualMachine(id) { - return this.deleteVirtualMachineWithHttpInfo(id) + deleteVM(vmId) { + return this.deleteVMWithHttpInfo(vmId) .then(function(response_and_data) { return response_and_data.data; }); @@ -363,53 +474,59 @@ export default class VirtualMachineApi { /** - * 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 */ - editVirtualMachineLabelsWithHttpInfo(virtualMachineId, payload) { - let 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"); - } - // verify the required parameter 'payload' is set - if (payload === undefined || payload === null) { - throw new Error("Missing the required parameter 'payload' when calling editVirtualMachineLabels"); + getContractVMsWithHttpInfo(contractId, opts) { + opts = opts || {}; + let 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"); } let pathParams = { - 'virtual_machine_id': virtualMachineId + 'contract_id': contractId }; let queryParams = { + 'page': opts['page'], + 'pageSize': opts['pageSize'], + 'search': opts['search'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; - let contentTypes = ['application/json']; + let authNames = ['apiKey']; + let contentTypes = []; let accepts = ['application/json']; - let returnType = ResponseModel; + let returnType = ContractInstancesResponse; return this.apiClient.callApi( - '/core/virtual-machines/{virtual_machine_id}/label', 'PUT', + '/core/virtual-machines/contract/{contract_id}/virtual-machines', '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 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} */ - editVirtualMachineLabels(virtualMachineId, payload) { - return this.editVirtualMachineLabelsWithHttpInfo(virtualMachineId, payload) + getContractVMs(contractId, opts) { + return this.getContractVMsWithHttpInfo(contractId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -417,20 +534,20 @@ export default class VirtualMachineApi { /** - * 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 + * 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 */ - fetchVirtualMachineNameAvailabilityWithHttpInfo(name) { + getVMWithHttpInfo(vmId) { let 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 getVM"); } let pathParams = { - 'name': name + 'vm_id': vmId }; let queryParams = { }; @@ -439,25 +556,25 @@ export default class VirtualMachineApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = NameAvailableModel; + let returnType = Instance; return this.apiClient.callApi( - '/core/virtual-machines/name-availability/{name}', 'GET', + '/core/virtual-machines/{vm_id}', '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} + * 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} */ - fetchVirtualMachineNameAvailability(name) { - return this.fetchVirtualMachineNameAvailabilityWithHttpInfo(name) + getVM(vmId) { + return this.getVMWithHttpInfo(vmId) .then(function(response_and_data) { return response_and_data.data; }); @@ -465,47 +582,54 @@ export default class VirtualMachineApi { /** - * 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 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} 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 */ - hardRebootVirtualMachineWithHttpInfo(id) { + getVMLogsWithHttpInfo(vmId, requestId) { let 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 getVMLogs"); + } + // verify the required parameter 'requestId' is set + if (requestId === undefined || requestId === null) { + throw new Error("Missing the required parameter 'requestId' when calling getVMLogs"); } let pathParams = { - 'id': id + 'vm_id': vmId }; let queryParams = { + 'request_id': requestId }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = ResponseModel; + let returnType = GetInstanceLogsResponse; return this.apiClient.callApi( - '/core/virtual-machines/{id}/hard-reboot', 'GET', + '/core/virtual-machines/{vm_id}/logs', '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 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel} + * 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} */ - hardRebootVirtualMachine(id) { - return this.hardRebootVirtualMachineWithHttpInfo(id) + getVMLogs(vmId, requestId) { + return this.getVMLogsWithHttpInfo(vmId, requestId) .then(function(response_and_data) { return response_and_data.data; }); @@ -513,47 +637,53 @@ export default class VirtualMachineApi { /** - * 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 - * @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 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 */ - hibernateVirtualMachineWithHttpInfo(virtualMachineId) { + getVMMetricsWithHttpInfo(vmId, opts) { + opts = opts || {}; let 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 getVMMetrics"); } let pathParams = { - 'virtual_machine_id': virtualMachineId + 'vm_id': vmId }; let queryParams = { + 'duration': opts['duration'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = ResponseModel; + let returnType = MetricsFields; return this.apiClient.callApi( - '/core/virtual-machines/{virtual_machine_id}/hibernate', 'GET', + '/core/virtual-machines/{vm_id}/metrics', '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 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel} + * 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} */ - hibernateVirtualMachine(virtualMachineId) { - return this.hibernateVirtualMachineWithHttpInfo(virtualMachineId) + getVMMetrics(vmId, opts) { + return this.getVMMetricsWithHttpInfo(vmId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -561,55 +691,47 @@ export default class VirtualMachineApi { /** - * 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 {String} [search] - * @param {String} [environment] Filter Environment ID or Name - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Instances} and HTTP response + * 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} vmId + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response */ - listVirtualMachinesWithHttpInfo(opts) { - opts = opts || {}; + hardRebootVMWithHttpInfo(vmId) { let postBody = null; + // verify the required parameter 'vmId' is set + if (vmId === undefined || vmId === null) { + throw new Error("Missing the required parameter 'vmId' when calling hardRebootVM"); + } let pathParams = { + 'vm_id': vmId }; let queryParams = { - 'page': opts['page'], - 'pageSize': opts['pageSize'], - 'search': opts['search'], - 'environment': opts['environment'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = Instances; + let returnType = ResponseModel; return this.apiClient.callApi( - '/core/virtual-machines', 'GET', + '/core/virtual-machines/{vm_id}/hard-reboot', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * 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 {String} opts.search - * @param {String} opts.environment Filter Environment ID or Name - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Instances} + * 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} vmId + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel} */ - listVirtualMachines(opts) { - return this.listVirtualMachinesWithHttpInfo(opts) + hardRebootVM(vmId) { + return this.hardRebootVMWithHttpInfo(vmId) .then(function(response_and_data) { return response_and_data.data; }); @@ -617,53 +739,53 @@ export default class VirtualMachineApi { /** - * 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 + * 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} 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 */ - resizeVirtualMachineWithHttpInfo(virtualMachineId, payload) { - let 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 'payload' is set - if (payload === undefined || payload === null) { - throw new Error("Missing the required parameter 'payload' when calling resizeVirtualMachine"); + hibernateVMWithHttpInfo(vmId, opts) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'vmId' is set + if (vmId === undefined || vmId === null) { + throw new Error("Missing the required parameter 'vmId' when calling hibernateVM"); } let pathParams = { - 'virtual_machine_id': virtualMachineId + 'vm_id': vmId }; let queryParams = { + 'retain_ip': opts['retainIp'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; - let contentTypes = ['application/json']; + let authNames = ['apiKey']; + let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; return this.apiClient.callApi( - '/core/virtual-machines/{virtual_machine_id}/resize', 'POST', + '/core/virtual-machines/{vm_id}/hibernate', 'GET', 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 + * 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} 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} */ - resizeVirtualMachine(virtualMachineId, payload) { - return this.resizeVirtualMachineWithHttpInfo(virtualMachineId, payload) + hibernateVM(vmId, opts) { + return this.hibernateVMWithHttpInfo(vmId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -671,47 +793,61 @@ export default class VirtualMachineApi { /** - * 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 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResponseModel} and HTTP response + * 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 {Number} [page] + * @param {Number} [pageSize] + * @param {String} [search] + * @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 */ - restoreVirtualMachineFromHibernationWithHttpInfo(virtualMachineId) { + listVMsWithHttpInfo(opts) { + opts = opts || {}; let 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"); - } let pathParams = { - 'virtual_machine_id': virtualMachineId }; let queryParams = { + 'page': opts['page'], + 'pageSize': opts['pageSize'], + 'search': opts['search'], + 'environment': opts['environment'], + 'exclude_firewalls': this.apiClient.buildCollectionParam(opts['excludeFirewalls'], 'multi'), + 'exact_environment_match': opts['exactEnvironmentMatch'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = ResponseModel; + let returnType = Instances; return this.apiClient.callApi( - '/core/virtual-machines/{virtual_machine_id}/hibernate-restore', 'GET', + '/core/virtual-machines', 'GET', 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 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResponseModel} + * 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 {Number} opts.page + * @param {Number} opts.pageSize + * @param {String} opts.search + * @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} */ - restoreVirtualMachineFromHibernation(virtualMachineId) { - return this.restoreVirtualMachineFromHibernationWithHttpInfo(virtualMachineId) + listVMs(opts) { + return this.listVMsWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -719,20 +855,25 @@ export default class VirtualMachineApi { /** - * 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 + * 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 */ - retrieveVirtualMachineDetailsWithHttpInfo(id) { - let 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"); + requestVMLogsWithHttpInfo(vmId, payload) { + let postBody = payload; + // 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 requestVMLogs"); } let pathParams = { - 'id': id + 'vm_id': vmId }; let queryParams = { }; @@ -741,25 +882,26 @@ export default class VirtualMachineApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; - let contentTypes = []; + let authNames = ['apiKey']; + let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = Instance; + let returnType = RequestInstanceLogsResponse; return this.apiClient.callApi( - '/core/virtual-machines/{id}', 'GET', + '/core/virtual-machines/{vm_id}/logs', 'POST', 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} + * 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} */ - retrieveVirtualMachineDetails(id) { - return this.retrieveVirtualMachineDetailsWithHttpInfo(id) + requestVMLogs(vmId, payload) { + return this.requestVMLogsWithHttpInfo(vmId, payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -767,53 +909,53 @@ export default class VirtualMachineApi { /** - * 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 + * 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 */ - retrieveVirtualMachinePerformanceMetricsWithHttpInfo(virtualMachineId, opts) { - opts = opts || {}; - let 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"); + resizeVMWithHttpInfo(vmId, payload) { + let 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"); } let pathParams = { - 'virtual_machine_id': virtualMachineId + 'vm_id': vmId }; let queryParams = { - 'duration': opts['duration'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; - let contentTypes = []; + let authNames = ['apiKey']; + let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = MetricsFields; + let returnType = ResponseModel; return this.apiClient.callApi( - '/core/virtual-machines/{virtual_machine_id}/metrics', 'GET', + '/core/virtual-machines/{vm_id}/resize', 'POST', 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} + * 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} */ - retrieveVirtualMachinePerformanceMetrics(virtualMachineId, opts) { - return this.retrieveVirtualMachinePerformanceMetricsWithHttpInfo(virtualMachineId, opts) + resizeVM(vmId, payload) { + return this.resizeVMWithHttpInfo(vmId, payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -821,59 +963,47 @@ export default class VirtualMachineApi { /** - * 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 + * 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 */ - retrieveVirtualMachinesAssociatedWithAContractWithHttpInfo(contractId, opts) { - opts = opts || {}; + restoreVMFromHibernationWithHttpInfo(vmId) { let 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"); + // verify the required parameter 'vmId' is set + if (vmId === undefined || vmId === null) { + throw new Error("Missing the required parameter 'vmId' when calling restoreVMFromHibernation"); } let pathParams = { - 'contract_id': contractId + 'vm_id': vmId }; let queryParams = { - 'page': opts['page'], - 'pageSize': opts['pageSize'], - 'search': opts['search'] }; let headerParams = { }; let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = ContractInstancesResponse; + let returnType = ResponseModel; return this.apiClient.callApi( - '/core/virtual-machines/contract/{contract_id}/virtual-machines', 'GET', + '/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} */ - retrieveVirtualMachinesAssociatedWithAContract(contractId, opts) { - return this.retrieveVirtualMachinesAssociatedWithAContractWithHttpInfo(contractId, opts) + restoreVMFromHibernation(vmId) { + return this.restoreVMFromHibernationWithHttpInfo(vmId) .then(function(response_and_data) { return response_and_data.data; }); @@ -883,18 +1013,18 @@ export default class VirtualMachineApi { /** * 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 */ - startVirtualMachineWithHttpInfo(id) { + startVMWithHttpInfo(vmId) { let 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"); } let pathParams = { - 'id': id + 'vm_id': vmId }; let queryParams = { }; @@ -903,12 +1033,12 @@ export default class VirtualMachineApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; return this.apiClient.callApi( - '/core/virtual-machines/{id}/start', 'GET', + '/core/virtual-machines/{vm_id}/start', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -917,11 +1047,11 @@ export default class VirtualMachineApi { /** * 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} */ - startVirtualMachine(id) { - return this.startVirtualMachineWithHttpInfo(id) + startVM(vmId) { + return this.startVMWithHttpInfo(vmId) .then(function(response_and_data) { return response_and_data.data; }); @@ -931,18 +1061,18 @@ export default class VirtualMachineApi { /** * 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 */ - stopVirtualMachineWithHttpInfo(id) { + stopVMWithHttpInfo(vmId) { let 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"); } let pathParams = { - 'id': id + 'vm_id': vmId }; let queryParams = { }; @@ -951,12 +1081,12 @@ export default class VirtualMachineApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; return this.apiClient.callApi( - '/core/virtual-machines/{id}/stop', 'GET', + '/core/virtual-machines/{vm_id}/stop', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -965,11 +1095,11 @@ export default class VirtualMachineApi { /** * 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} */ - stopVirtualMachine(id) { - return this.stopVirtualMachineWithHttpInfo(id) + stopVM(vmId) { + return this.stopVMWithHttpInfo(vmId) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/VirtualMachineEventsApi.js b/src/api/VirtualMachineEventsApi.js index 1e0e5066..9d9b1302 100644 --- a/src/api/VirtualMachineEventsApi.js +++ b/src/api/VirtualMachineEventsApi.js @@ -19,7 +19,7 @@ import InstanceEvents from '../model/InstanceEvents'; /** * VirtualMachineEvents service. * @module api/VirtualMachineEventsApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class VirtualMachineEventsApi { @@ -38,19 +38,19 @@ export default class VirtualMachineEventsApi { /** * 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 */ - listVirtualMachineEventsWithHttpInfo(virtualMachineId) { + listVMEventsWithHttpInfo(vmId) { let 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"); } let pathParams = { - 'virtual_machine_id': virtualMachineId + 'vm_id': vmId }; let queryParams = { }; @@ -59,12 +59,12 @@ export default class VirtualMachineEventsApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = InstanceEvents; return this.apiClient.callApi( - '/core/virtual-machines/{virtual_machine_id}/events', 'GET', + '/core/virtual-machines/{vm_id}/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -72,12 +72,12 @@ export default class VirtualMachineEventsApi { /** * 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} */ - listVirtualMachineEvents(virtualMachineId) { - return this.listVirtualMachineEventsWithHttpInfo(virtualMachineId) + listVMEvents(vmId) { + return this.listVMEventsWithHttpInfo(vmId) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/VncUrlApi.js b/src/api/VncUrlApi.js index c552790b..ddb3366f 100644 --- a/src/api/VncUrlApi.js +++ b/src/api/VncUrlApi.js @@ -20,7 +20,7 @@ import VNCURL from '../model/VNCURL'; /** * VncUrl service. * @module api/VncUrlApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class VncUrlApi { @@ -39,23 +39,24 @@ export default class VncUrlApi { /** * 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 */ - getVncConsoleLinkWithHttpInfo(virtualMachineId, jobId) { + getVNCURLWithHttpInfo(vmId, jobId) { let 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"); } let pathParams = { - 'virtual_machine_id': virtualMachineId, + 'vm_id': vmId, 'job_id': jobId }; let queryParams = { @@ -65,12 +66,12 @@ export default class VncUrlApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = VNCURL; return this.apiClient.callApi( - '/core/virtual-machines/{virtual_machine_id}/console/{job_id}', 'GET', + '/core/virtual-machines/{vm_id}/console/{job_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -78,12 +79,13 @@ export default class VncUrlApi { /** * 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} */ - getVncConsoleLink(virtualMachineId, jobId) { - return this.getVncConsoleLinkWithHttpInfo(virtualMachineId, jobId) + getVNCURL(vmId, jobId) { + return this.getVNCURLWithHttpInfo(vmId, jobId) .then(function(response_and_data) { return response_and_data.data; }); @@ -92,18 +94,19 @@ export default class VncUrlApi { /** * 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 */ - requestInstanceConsoleWithHttpInfo(id) { + requestVMConsoleWithHttpInfo(vmId) { let 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"); } let pathParams = { - 'id': id + 'vm_id': vmId }; let queryParams = { }; @@ -112,12 +115,12 @@ export default class VncUrlApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = RequestConsole; return this.apiClient.callApi( - '/core/virtual-machines/{id}/request-console', 'GET', + '/core/virtual-machines/{vm_id}/request-console', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -125,11 +128,12 @@ export default class VncUrlApi { /** * 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} */ - requestInstanceConsole(id) { - return this.requestInstanceConsoleWithHttpInfo(id) + requestVMConsole(vmId) { + return this.requestVMConsoleWithHttpInfo(vmId) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/VolumeApi.js b/src/api/VolumeApi.js index 3f06a88c..ffb135a9 100644 --- a/src/api/VolumeApi.js +++ b/src/api/VolumeApi.js @@ -17,6 +17,8 @@ import CreateVolumePayload from '../model/CreateVolumePayload'; import ErrorResponseModel from '../model/ErrorResponseModel'; import NameAvailableModel from '../model/NameAvailableModel'; import ResponseModel from '../model/ResponseModel'; +import UpdateVolumePayload from '../model/UpdateVolumePayload'; +import UpdateVolumeResponse from '../model/UpdateVolumeResponse'; import Volume from '../model/Volume'; import VolumeTypes from '../model/VolumeTypes'; import Volumes from '../model/Volumes'; @@ -24,7 +26,7 @@ import Volumes from '../model/Volumes'; /** * Volume service. * @module api/VolumeApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class VolumeApi { @@ -43,7 +45,7 @@ export default class VolumeApi { /** * 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 */ @@ -63,7 +65,7 @@ export default class VolumeApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Volume; @@ -76,7 +78,7 @@ export default class VolumeApi { /** * 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} */ @@ -91,18 +93,18 @@ export default class VolumeApi { /** * 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 */ - deleteVolumeWithHttpInfo(id) { + deleteVolumeWithHttpInfo(volumeId) { let 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"); } let pathParams = { - 'id': id + 'volume_id': volumeId }; let queryParams = { }; @@ -111,12 +113,12 @@ export default class VolumeApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = ResponseModel; return this.apiClient.callApi( - '/core/volumes/{id}', 'DELETE', + '/core/volumes/{volume_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -125,11 +127,11 @@ export default class VolumeApi { /** * 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} */ - deleteVolume(id) { - return this.deleteVolumeWithHttpInfo(id) + deleteVolume(volumeId) { + return this.deleteVolumeWithHttpInfo(volumeId) .then(function(response_and_data) { return response_and_data.data; }); @@ -137,20 +139,20 @@ export default class VolumeApi { /** - * 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 */ - fetchVolumeDetailsWithHttpInfo(volumeId) { + fetchVolumeNameAvailabilityWithHttpInfo(name) { let 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"); } let pathParams = { - 'volume_id': volumeId + 'name': name }; let queryParams = { }; @@ -159,25 +161,25 @@ export default class VolumeApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = Volumes; + let returnType = NameAvailableModel; return this.apiClient.callApi( - '/core/volume/{volume_id}', 'GET', + '/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} */ - fetchVolumeDetails(volumeId) { - return this.fetchVolumeDetailsWithHttpInfo(volumeId) + fetchVolumeNameAvailability(name) { + return this.fetchVolumeNameAvailabilityWithHttpInfo(name) .then(function(response_and_data) { return response_and_data.data; }); @@ -185,20 +187,20 @@ export default class VolumeApi { /** - * 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 */ - fetchVolumeNameAvailabilityWithHttpInfo(name) { + getVolumeWithHttpInfo(volumeId) { let 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"); } let pathParams = { - 'name': name + 'volume_id': volumeId }; let queryParams = { }; @@ -207,25 +209,25 @@ export default class VolumeApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; - let returnType = NameAvailableModel; + let returnType = Volume; return this.apiClient.callApi( - '/core/volume/name-availability/{name}', 'GET', + '/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} */ - fetchVolumeNameAvailability(name) { - return this.fetchVolumeNameAvailabilityWithHttpInfo(name) + getVolume(volumeId) { + return this.getVolumeWithHttpInfo(volumeId) .then(function(response_and_data) { return response_and_data.data; }); @@ -249,7 +251,7 @@ export default class VolumeApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = VolumeTypes; @@ -275,7 +277,7 @@ export default class VolumeApi { /** * 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 @@ -300,7 +302,7 @@ export default class VolumeApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = []; let accepts = ['application/json']; let returnType = Volumes; @@ -313,7 +315,7 @@ export default class VolumeApi { /** * 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 @@ -329,4 +331,58 @@ export default class VolumeApi { } + /** + * 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 + */ + updateVolumeWithHttpInfo(volumeId, payload) { + let 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"); + } + + let pathParams = { + 'volume_id': volumeId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = UpdateVolumeResponse; + 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} + */ + updateVolume(volumeId, payload) { + return this.updateVolumeWithHttpInfo(volumeId, payload) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + } diff --git a/src/api/VolumeAttachmentApi.js b/src/api/VolumeAttachmentApi.js index 7fcb55c9..53e14026 100644 --- a/src/api/VolumeAttachmentApi.js +++ b/src/api/VolumeAttachmentApi.js @@ -18,11 +18,12 @@ import AttachVolumesPayload from '../model/AttachVolumesPayload'; import DetachVolumes from '../model/DetachVolumes'; import DetachVolumesPayload from '../model/DetachVolumesPayload'; import ErrorResponseModel from '../model/ErrorResponseModel'; +import UpdateVolumeAttachmentPayload from '../model/UpdateVolumeAttachmentPayload'; /** * VolumeAttachment service. * @module api/VolumeAttachmentApi -* @version v1.25.0-alpha +* @version v1.51.1-alpha */ export default class VolumeAttachmentApi { @@ -41,24 +42,24 @@ export default class VolumeAttachmentApi { /** * 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 */ - attachVolumesToVirtualMachineWithHttpInfo(virtualMachineId, payload) { + attachVolumesToVMWithHttpInfo(vmId, payload) { let 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"); } let pathParams = { - 'virtual_machine_id': virtualMachineId + 'vm_id': vmId }; let queryParams = { }; @@ -67,12 +68,12 @@ export default class VolumeAttachmentApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = AttachVolumes; return this.apiClient.callApi( - '/core/virtual-machines/{virtual_machine_id}/attach-volumes', 'POST', + '/core/virtual-machines/{vm_id}/attach-volumes', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -80,13 +81,13 @@ export default class VolumeAttachmentApi { /** * 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} */ - attachVolumesToVirtualMachine(virtualMachineId, payload) { - return this.attachVolumesToVirtualMachineWithHttpInfo(virtualMachineId, payload) + attachVolumesToVM(vmId, payload) { + return this.attachVolumesToVMWithHttpInfo(vmId, payload) .then(function(response_and_data) { return response_and_data.data; }); @@ -95,24 +96,24 @@ export default class VolumeAttachmentApi { /** * 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 */ - detachVolumesFromVirtualMachineWithHttpInfo(virtualMachineId, payload) { + detachVolumesFromVMWithHttpInfo(vmId, payload) { let 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"); } let pathParams = { - 'virtual_machine_id': virtualMachineId + 'vm_id': vmId }; let queryParams = { }; @@ -121,12 +122,12 @@ export default class VolumeAttachmentApi { let formParams = { }; - let authNames = ['apiKey', 'accessToken']; + let authNames = ['apiKey']; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = DetachVolumes; return this.apiClient.callApi( - '/core/virtual-machines/{virtual_machine_id}/detach-volumes', 'POST', + '/core/virtual-machines/{vm_id}/detach-volumes', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); @@ -134,13 +135,65 @@ export default class VolumeAttachmentApi { /** * 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} */ - detachVolumesFromVirtualMachine(virtualMachineId, payload) { - return this.detachVolumesFromVirtualMachineWithHttpInfo(virtualMachineId, payload) + 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 + */ + updateVolumeAttachmentWithHttpInfo(volumeAttachmentId, payload) { + let 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"); + } + + let pathParams = { + 'volume_attachment_id': volumeAttachmentId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = AttachVolumes; + 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} + */ + updateVolumeAttachment(volumeAttachmentId, payload) { + return this.updateVolumeAttachmentWithHttpInfo(volumeAttachmentId, payload) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/VouchersApi.js b/src/api/VouchersApi.js new file mode 100644 index 00000000..2b98f73a --- /dev/null +++ b/src/api/VouchersApi.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"; +import ErrorResponseModel from '../model/ErrorResponseModel'; +import RedeemVoucherPayload from '../model/RedeemVoucherPayload'; +import VoucherRedeemResponseSchema from '../model/VoucherRedeemResponseSchema'; + +/** +* Vouchers service. +* @module api/VouchersApi +* @version v1.51.1-alpha +*/ +export default class VouchersApi { + + /** + * 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. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.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 + */ + redeemAVoucherWithHttpInfo(payload) { + let 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"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['apiKey']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = VoucherRedeemResponseSchema; + 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} + */ + redeemAVoucher(payload) { + return this.redeemAVoucherWithHttpInfo(payload) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + +} diff --git a/src/index.js b/src/index.js index 6c455d9a..5e09b34b 100644 --- a/src/index.js +++ b/src/index.js @@ -13,11 +13,10 @@ import ApiClient from './ApiClient'; -import AddUpdateFlavorOrganizationPayload from './model/AddUpdateFlavorOrganizationPayload'; +import AccessTokenField from './model/AccessTokenField'; import AddUserInfoSuccessResponseModel from './model/AddUserInfoSuccessResponseModel'; import AllocatedGPUCountGraph from './model/AllocatedGPUCountGraph'; import ApiKeyFields from './model/ApiKeyFields'; -import ApiKeyVerifyFields from './model/ApiKeyVerifyFields'; import AssignRbacRolePayload from './model/AssignRbacRolePayload'; import AttachCallbackPayload from './model/AttachCallbackPayload'; import AttachCallbackResponse from './model/AttachCallbackResponse'; @@ -26,50 +25,59 @@ import AttachFirewallsToVMPayload from './model/AttachFirewallsToVMPayload'; import AttachVolumeFields from './model/AttachVolumeFields'; import AttachVolumes from './model/AttachVolumes'; import AttachVolumesPayload from './model/AttachVolumesPayload'; +import AttachmentsFieldsForVolume from './model/AttachmentsFieldsForVolume'; +import Attributes from './model/Attributes'; import AuthGetTokenResponseModel from './model/AuthGetTokenResponseModel'; -import AuthRequestLoginFields from './model/AuthRequestLoginFields'; -import AuthRequestLoginResponseModel from './model/AuthRequestLoginResponseModel'; import AuthUserFields from './model/AuthUserFields'; import AuthUserInfoResponseModel from './model/AuthUserInfoResponseModel'; -import BillingImmuneResourcesResponse from './model/BillingImmuneResourcesResponse'; -import BillingResponse from './model/BillingResponse'; -import Billingmetricesfields from './model/Billingmetricesfields'; -import Billingmetricesresponse from './model/Billingmetricesresponse'; +import BetaAccessRequestFields from './model/BetaAccessRequestFields'; +import BetaAccessRequestPayload from './model/BetaAccessRequestPayload'; +import BetaAccessRequestResponseModel from './model/BetaAccessRequestResponseModel'; +import BetaAccessStatusItem from './model/BetaAccessStatusItem'; +import BetaAccessStatusResponseModel from './model/BetaAccessStatusResponseModel'; +import BillingHistory from './model/BillingHistory'; +import BillingHistoryDataSynthesisDetails from './model/BillingHistoryDataSynthesisDetails'; +import BillingHistoryFineTuning from './model/BillingHistoryFineTuning'; +import BillingHistoryModelEvalutationDetails from './model/BillingHistoryModelEvalutationDetails'; +import BillingHistoryServerlessInference from './model/BillingHistoryServerlessInference'; +import BillingHistoryServerlessInferenceDetails from './model/BillingHistoryServerlessInferenceDetails'; +import BillingMetricesFields from './model/BillingMetricesFields'; +import BillingMetricesResponse from './model/BillingMetricesResponse'; import ClusterEvents from './model/ClusterEvents'; import ClusterEventsFields from './model/ClusterEventsFields'; import ClusterFields from './model/ClusterFields'; +import ClusterFlavorFields from './model/ClusterFlavorFields'; import ClusterListResponse from './model/ClusterListResponse'; +import ClusterNodeFields from './model/ClusterNodeFields'; +import ClusterNodeGroupFields from './model/ClusterNodeGroupFields'; +import ClusterNodeGroupFirewallFields from './model/ClusterNodeGroupFirewallFields'; +import ClusterNodeGroupsCreateResponse from './model/ClusterNodeGroupsCreateResponse'; +import ClusterNodeGroupsGetResponse from './model/ClusterNodeGroupsGetResponse'; +import ClusterNodeGroupsListResponse from './model/ClusterNodeGroupsListResponse'; +import ClusterNodeInstanceFields from './model/ClusterNodeInstanceFields'; +import ClusterNodesListResponse from './model/ClusterNodesListResponse'; import ClusterResponse from './model/ClusterResponse'; +import ClusterVersion from './model/ClusterVersion'; import ClusterVersions from './model/ClusterVersions'; +import Colors from './model/Colors'; import CommonResponseModel from './model/CommonResponseModel'; +import CompatibleFlavor from './model/CompatibleFlavor'; import ComplianceFields from './model/ComplianceFields'; import ComplianceModelFields from './model/ComplianceModelFields'; import CompliancePayload from './model/CompliancePayload'; import ComplianceResponse from './model/ComplianceResponse'; import ContainerOverviewFields from './model/ContainerOverviewFields'; import Contract from './model/Contract'; -import ContractBillingHistory from './model/ContractBillingHistory'; -import ContractBillingHistoryResponseAttributes from './model/ContractBillingHistoryResponseAttributes'; -import ContractBillingHistoryResponseModel from './model/ContractBillingHistoryResponseModel'; -import ContractChangePayload from './model/ContractChangePayload'; import ContractDiscountPlanFields from './model/ContractDiscountPlanFields'; -import ContractEligibleInstanceFields from './model/ContractEligibleInstanceFields'; -import ContractEligibleInstancesResponse from './model/ContractEligibleInstancesResponse'; -import ContractEventCreateModel from './model/ContractEventCreateModel'; import ContractGPUAllocationGraphResponse from './model/ContractGPUAllocationGraphResponse'; import ContractInstanceFields from './model/ContractInstanceFields'; import ContractInstancesResponse from './model/ContractInstancesResponse'; -import ContractResourcePayload from './model/ContractResourcePayload'; -import ContractlBillingHistoryResponseMetrics from './model/ContractlBillingHistoryResponseMetrics'; +import CreateClusterNodeFields from './model/CreateClusterNodeFields'; +import CreateClusterNodeGroupPayload from './model/CreateClusterNodeGroupPayload'; import CreateClusterPayload from './model/CreateClusterPayload'; -import CreateContractFields from './model/CreateContractFields'; -import CreateContractPayload from './model/CreateContractPayload'; -import CreateDiscountResponse from './model/CreateDiscountResponse'; -import CreateDiscountsPayload from './model/CreateDiscountsPayload'; import CreateEnvironment from './model/CreateEnvironment'; import CreateFirewallPayload from './model/CreateFirewallPayload'; import CreateFirewallRulePayload from './model/CreateFirewallRulePayload'; -import CreateGPU from './model/CreateGPU'; import CreateImage from './model/CreateImage'; import CreateImagePayload from './model/CreateImagePayload'; import CreateInstancesPayload from './model/CreateInstancesPayload'; @@ -80,44 +88,25 @@ import CreateSecurityRulePayload from './model/CreateSecurityRulePayload'; import CreateSnapshotPayload from './model/CreateSnapshotPayload'; import CreateSnapshotResponse from './model/CreateSnapshotResponse'; import CreateUpdateComplianceResponse from './model/CreateUpdateComplianceResponse'; -import CreateUpdatePermissionPayload from './model/CreateUpdatePermissionPayload'; -import CreateUpdatePermissionResponseModel from './model/CreateUpdatePermissionResponseModel'; -import CreateUpdatePolicyPayload from './model/CreateUpdatePolicyPayload'; -import CreateUpdatePolicyResponseModel from './model/CreateUpdatePolicyResponseModel'; import CreateUpdateRbacRolePayload from './model/CreateUpdateRbacRolePayload'; import CreateVolumePayload from './model/CreateVolumePayload'; -import Creditrechargelimitfield from './model/Creditrechargelimitfield'; -import Creditrechargelimitresponse from './model/Creditrechargelimitresponse'; -import Creditrequestresponse from './model/Creditrequestresponse'; -import Creditrequests from './model/Creditrequests'; import CustomerContractDetailResponseModel from './model/CustomerContractDetailResponseModel'; import CustomerContractFields from './model/CustomerContractFields'; -import CustomerFields from './model/CustomerFields'; -import CustomerPayload from './model/CustomerPayload'; import DashboardInfoResponse from './model/DashboardInfoResponse'; -import Data from './model/Data'; +import DataSynthesisBillingHistoryDetailsResponseSchema from './model/DataSynthesisBillingHistoryDetailsResponseSchema'; +import DeleteClusterNodesFields from './model/DeleteClusterNodesFields'; import DeploymentFields from './model/DeploymentFields'; -import DeploymentFieldsforstartdeployments from './model/DeploymentFieldsforstartdeployments'; +import DeploymentFieldsForStartDeployments from './model/DeploymentFieldsForStartDeployments'; import Deployments from './model/Deployments'; import DetachVolumes from './model/DetachVolumes'; import DetachVolumesPayload from './model/DetachVolumesPayload'; -import DiscountEntityModel from './model/DiscountEntityModel'; -import DiscountFields from './model/DiscountFields'; -import DiscountPlanFields from './model/DiscountPlanFields'; -import DiscountResourceFields from './model/DiscountResourceFields'; -import DiscountResourcePayload from './model/DiscountResourcePayload'; -import EditlabelofanexistingVMPayload from './model/EditlabelofanexistingVMPayload'; +import EditLabelOfAnExistingVMPayload from './model/EditLabelOfAnExistingVMPayload'; import Environment from './model/Environment'; import EnvironmentFeatures from './model/EnvironmentFeatures'; import EnvironmentFields from './model/EnvironmentFields'; -import EnvironmentFieldsforVolume from './model/EnvironmentFieldsforVolume'; +import EnvironmentFieldsForVolume from './model/EnvironmentFieldsForVolume'; import Environments from './model/Environments'; import ErrorResponseModel from './model/ErrorResponseModel'; -import ExcludeBillingPostPayload from './model/ExcludeBillingPostPayload'; -import ExcludeBillingPostResponse from './model/ExcludeBillingPostResponse'; -import ExportBillingDataRequest from './model/ExportBillingDataRequest'; -import ExportBillingDataResponse from './model/ExportBillingDataResponse'; -import FieldChange from './model/FieldChange'; import FirewallAttachmentModel from './model/FirewallAttachmentModel'; import FirewallAttachmentVMModel from './model/FirewallAttachmentVMModel'; import FirewallDetailFields from './model/FirewallDetailFields'; @@ -129,55 +118,34 @@ import FirewallRule from './model/FirewallRule'; import FirewallsListResponse from './model/FirewallsListResponse'; import FlavorFields from './model/FlavorFields'; import FlavorItemGetResponse from './model/FlavorItemGetResponse'; +import FlavorLabelFields from './model/FlavorLabelFields'; import FlavorListResponse from './model/FlavorListResponse'; import FlavorObjectFields from './model/FlavorObjectFields'; -import FlavorPayload from './model/FlavorPayload'; -import FlavorResponse from './model/FlavorResponse'; -import FlavorVMFields from './model/FlavorVMFields'; -import FlavorVMsResponse from './model/FlavorVMsResponse'; -import FutureNodeModel from './model/FutureNodeModel'; -import FutureNodeResponseModel from './model/FutureNodeResponseModel'; -import FutureNodeStockModel from './model/FutureNodeStockModel'; -import FutureNodeUpdateModel from './model/FutureNodeUpdateModel'; -import FutureNodesStockModel from './model/FutureNodesStockModel'; -import GPU from './model/GPU'; +import FlavorRestrictions from './model/FlavorRestrictions'; import GPUFields from './model/GPUFields'; import GPUList from './model/GPUList'; import GPURegionFields from './model/GPURegionFields'; import GenerateUpdateApiKeyPayload from './model/GenerateUpdateApiKeyPayload'; import GenerateUpdateApiKeyResponseModel from './model/GenerateUpdateApiKeyResponseModel'; -import GetAllContractFields from './model/GetAllContractFields'; -import GetAllContractsResponseModel from './model/GetAllContractsResponseModel'; -import GetAllDiscountForAllOrganizationResponse from './model/GetAllDiscountForAllOrganizationResponse'; -import GetAllDiscountsFields from './model/GetAllDiscountsFields'; import GetApiKeysResponseModel from './model/GetApiKeysResponseModel'; +import GetCreditAndThresholdInfo from './model/GetCreditAndThresholdInfo'; +import GetCreditAndThresholdInfoInResponse from './model/GetCreditAndThresholdInfoInResponse'; import GetCustomerContractsListResponseModel from './model/GetCustomerContractsListResponseModel'; -import GetDiscountDetailResponse from './model/GetDiscountDetailResponse'; -import GetDiscountResponse from './model/GetDiscountResponse'; -import GetEntityDiscountDetailResponse from './model/GetEntityDiscountDetailResponse'; +import GetInstanceLogsResponse from './model/GetInstanceLogsResponse'; import GetInvitesResponseModel from './model/GetInvitesResponseModel'; import GetOrganizationResponseModel from './model/GetOrganizationResponseModel'; import GetPermissionsResponseModel from './model/GetPermissionsResponseModel'; import GetPoliciesResponseModel from './model/GetPoliciesResponseModel'; import GetRbacRolesResponseModel from './model/GetRbacRolesResponseModel'; -import GetTokenPayload from './model/GetTokenPayload'; import GetUserPermissionsResponseModel from './model/GetUserPermissionsResponseModel'; -import GetVersionResponse from './model/GetVersionResponse'; -import Getcreditandthresholdinfo from './model/Getcreditandthresholdinfo'; -import Getcreditandthresholdinfoinresponse from './model/Getcreditandthresholdinfoinresponse'; import GraphDatetimeValueModel from './model/GraphDatetimeValueModel'; -import HistoricalInstance from './model/HistoricalInstance'; -import HistoricalInstancesFields from './model/HistoricalInstancesFields'; import Image from './model/Image'; import ImageFields from './model/ImageFields'; import ImageGetResponse from './model/ImageGetResponse'; -import ImageLogos from './model/ImageLogos'; import Images from './model/Images'; import ImportKeypairPayload from './model/ImportKeypairPayload'; import ImportKeypairResponse from './model/ImportKeypairResponse'; -import InfrahubResourceObjectResponse from './model/InfrahubResourceObjectResponse'; import InfrahubResourceObjectResponseForCustomer from './model/InfrahubResourceObjectResponseForCustomer'; -import InsertDiscountPlanFields from './model/InsertDiscountPlanFields'; import Instance from './model/Instance'; import InstanceEnvironmentFields from './model/InstanceEnvironmentFields'; import InstanceEvents from './model/InstanceEvents'; @@ -189,56 +157,56 @@ import InstanceKeypairFields from './model/InstanceKeypairFields'; import InstanceOverviewFields from './model/InstanceOverviewFields'; import InstanceResizePayload from './model/InstanceResizePayload'; import Instances from './model/Instances'; -import InstancesSummaryFields from './model/InstancesSummaryFields'; -import InternalEnvironmentFields from './model/InternalEnvironmentFields'; -import InternalInstanceFields from './model/InternalInstanceFields'; -import InternalInstanceFlavorFields from './model/InternalInstanceFlavorFields'; -import InternalInstanceImageFields from './model/InternalInstanceImageFields'; -import InternalInstanceKeypairFields from './model/InternalInstanceKeypairFields'; -import InternalInstancesResponse from './model/InternalInstancesResponse'; -import InternalSecurityRulesFieldsForInstance from './model/InternalSecurityRulesFieldsForInstance'; -import InternalVolumeAttachmentFields from './model/InternalVolumeAttachmentFields'; -import InternalVolumeFields from './model/InternalVolumeFields'; -import InternalVolumesResponse from './model/InternalVolumesResponse'; import InviteFields from './model/InviteFields'; import InviteUserPayload from './model/InviteUserPayload'; import InviteUserResponseModel from './model/InviteUserResponseModel'; +import KeypairEnvironmentFeatures from './model/KeypairEnvironmentFeatures'; +import KeypairEnvironmentFields from './model/KeypairEnvironmentFields'; import KeypairFields from './model/KeypairFields'; import Keypairs from './model/Keypairs'; import LableResonse from './model/LableResonse'; -import Lastdaycostfields from './model/Lastdaycostfields'; -import Lastdaycostresponse from './model/Lastdaycostresponse'; -import LogoGetResponse from './model/LogoGetResponse'; -import LogoutPayload from './model/LogoutPayload'; +import LastDayCostFields from './model/LastDayCostFields'; +import LastDayCostResponse from './model/LastDayCostResponse'; +import Logos from './model/Logos'; +import MFAStatusFields from './model/MFAStatusFields'; +import MFAStatusResponse from './model/MFAStatusResponse'; +import ManualReconciliationModel from './model/ManualReconciliationModel'; +import MasterFlavorsResponse from './model/MasterFlavorsResponse'; import MetricItemFields from './model/MetricItemFields'; import MetricsFields from './model/MetricsFields'; +import ModelEvaluationBillingHistoryDetailsResponseSchema from './model/ModelEvaluationBillingHistoryDetailsResponseSchema'; import NameAvailableModel from './model/NameAvailableModel'; import NewConfigurationsResponse from './model/NewConfigurationsResponse'; import NewModelResponse from './model/NewModelResponse'; import NewStockResponse from './model/NewStockResponse'; import NewStockRetriveResponse from './model/NewStockRetriveResponse'; -import NewStockUpdateResponseModel from './model/NewStockUpdateResponseModel'; -import NodeModel from './model/NodeModel'; -import NodePayloadModel from './model/NodePayloadModel'; -import NodePowerUsageModel from './model/NodePowerUsageModel'; -import NodeResponseModel from './model/NodeResponseModel'; -import NodeStockPayloadModel from './model/NodeStockPayloadModel'; -import NodeStockResponseModel from './model/NodeStockResponseModel'; -import NodeStocksPayload from './model/NodeStocksPayload'; +import ObjectStorageAccessKeyCreateRequest from './model/ObjectStorageAccessKeyCreateRequest'; +import ObjectStorageAccessKeyCreateResponse from './model/ObjectStorageAccessKeyCreateResponse'; +import ObjectStorageAccessKeyListResponse from './model/ObjectStorageAccessKeyListResponse'; +import ObjectStorageAccessKeyResponse from './model/ObjectStorageAccessKeyResponse'; +import ObjectStorageBucketListResponse from './model/ObjectStorageBucketListResponse'; +import ObjectStorageBucketResponse from './model/ObjectStorageBucketResponse'; +import ObjectStorageDeleteResponse from './model/ObjectStorageDeleteResponse'; +import ObjectStorageErrorResponse from './model/ObjectStorageErrorResponse'; +import ObjectStorageHealthResponse from './model/ObjectStorageHealthResponse'; +import ObjectStoragePaginationMeta from './model/ObjectStoragePaginationMeta'; +import ObjectStorageRegionListResponse from './model/ObjectStorageRegionListResponse'; +import ObjectStorageRegionResponse from './model/ObjectStorageRegionResponse'; +import ObjectStorageRegionsEnum from './model/ObjectStorageRegionsEnum'; import OrganizationFields from './model/OrganizationFields'; import OrganizationLevelBillingHistory from './model/OrganizationLevelBillingHistory'; import OrganizationLevelBillingHistoryResources from './model/OrganizationLevelBillingHistoryResources'; import OrganizationLevelBillingHistoryResponseAttributes from './model/OrganizationLevelBillingHistoryResponseAttributes'; import OrganizationLevelBillingHistoryResponseMetrics from './model/OrganizationLevelBillingHistoryResponseMetrics'; import OrganizationLevelBillingHistoryResponseModel from './model/OrganizationLevelBillingHistoryResponseModel'; -import OrganizationObjectResponse from './model/OrganizationObjectResponse'; -import OrganizationThresholdfields from './model/OrganizationThresholdfields'; +import OrganizationThresholdFields from './model/OrganizationThresholdFields'; +import OrganizationThresholdUpdateResponse from './model/OrganizationThresholdUpdateResponse'; +import OrganizationThresholdsResponse from './model/OrganizationThresholdsResponse'; import OrganizationUserResponseModel from './model/OrganizationUserResponseModel'; -import Organizationcreditrechargelimitresponse from './model/Organizationcreditrechargelimitresponse'; -import Organizationthresholdsresponse from './model/Organizationthresholdsresponse'; -import Organizationthresholdupdateresponse from './model/Organizationthresholdupdateresponse'; import OverviewInfo from './model/OverviewInfo'; +import Pagination from './model/Pagination'; import PaginationData from './model/PaginationData'; +import PartnerConfig from './model/PartnerConfig'; import PaymentDetailsFields from './model/PaymentDetailsFields'; import PaymentDetailsResponse from './model/PaymentDetailsResponse'; import PaymentInitiateFields from './model/PaymentInitiateFields'; @@ -247,10 +215,9 @@ import PaymentInitiateResponse from './model/PaymentInitiateResponse'; import PermissionFields from './model/PermissionFields'; import PolicyFields from './model/PolicyFields'; import PolicyPermissionFields from './model/PolicyPermissionFields'; -import PowerUsageModel from './model/PowerUsageModel'; import PricebookModel from './model/PricebookModel'; -import PricebookResourceObjectResponse from './model/PricebookResourceObjectResponse'; import PricebookResourceObjectResponseForCustomer from './model/PricebookResourceObjectResponseForCustomer'; +import PrimaryColor from './model/PrimaryColor'; import ProfileFields from './model/ProfileFields'; import ProfileListResponse from './model/ProfileListResponse'; import ProfileObjectFields from './model/ProfileObjectFields'; @@ -258,17 +225,18 @@ import RbacRoleDetailResponseModel from './model/RbacRoleDetailResponseModel'; import RbacRoleDetailResponseModelFixed from './model/RbacRoleDetailResponseModelFixed'; import RbacRoleField from './model/RbacRoleField'; import RbacRoleFields from './model/RbacRoleFields'; -import RefreshTokenPayload from './model/RefreshTokenPayload'; +import RedeemVoucherPayload from './model/RedeemVoucherPayload'; import RegionFields from './model/RegionFields'; -import RegionPayload from './model/RegionPayload'; -import RegionResponse from './model/RegionResponse'; import Regions from './model/Regions'; import RemoveMemberFromOrganizationResponseModel from './model/RemoveMemberFromOrganizationResponseModel'; import RemoveMemberPayload from './model/RemoveMemberPayload'; import RequestConsole from './model/RequestConsole'; +import RequestInstanceLogsPayload from './model/RequestInstanceLogsPayload'; +import RequestInstanceLogsResponse from './model/RequestInstanceLogsResponse'; import ResourceBillingEventsHistoryMetrics from './model/ResourceBillingEventsHistoryMetrics'; import ResourceBillingEventsHistoryResponse from './model/ResourceBillingEventsHistoryResponse'; import ResourceBillingResponseForCustomer from './model/ResourceBillingResponseForCustomer'; +import ResourceLevelBillingBucketDetailsResources from './model/ResourceLevelBillingBucketDetailsResources'; import ResourceLevelBillingDetailsAttributes from './model/ResourceLevelBillingDetailsAttributes'; import ResourceLevelBillingDetailsMetrics from './model/ResourceLevelBillingDetailsMetrics'; import ResourceLevelBillingDetailsVM from './model/ResourceLevelBillingDetailsVM'; @@ -277,12 +245,19 @@ import ResourceLevelBillingDetailsVolumeAttributes from './model/ResourceLevelBi import ResourceLevelBillingDetailsVolumeMetrics from './model/ResourceLevelBillingDetailsVolumeMetrics'; import ResourceLevelBillingHistory from './model/ResourceLevelBillingHistory'; import ResourceLevelBillingHistoryResources from './model/ResourceLevelBillingHistoryResources'; +import ResourceLevelBillingHistoryResourcesCluster from './model/ResourceLevelBillingHistoryResourcesCluster'; import ResourceLevelBillingHistoryResponseAttributes from './model/ResourceLevelBillingHistoryResponseAttributes'; import ResourceLevelBillingHistoryResponseMetrics from './model/ResourceLevelBillingHistoryResponseMetrics'; import ResourceLevelBillingVMDetailsResources from './model/ResourceLevelBillingVMDetailsResources'; import ResourceLevelBillingVolumeDetailsResources from './model/ResourceLevelBillingVolumeDetailsResources'; +import ResourceLevelBucketBillingDetailsResponseModel from './model/ResourceLevelBucketBillingDetailsResponseModel'; +import ResourceLevelBucketBillingHistoryResponseModel from './model/ResourceLevelBucketBillingHistoryResponseModel'; +import ResourceLevelClusterBillingDetailsResponseModel from './model/ResourceLevelClusterBillingDetailsResponseModel'; +import ResourceLevelClusterBillingHistoryResponseModel from './model/ResourceLevelClusterBillingHistoryResponseModel'; +import ResourceLevelClusterGraphBillingDetailsResponseModel from './model/ResourceLevelClusterGraphBillingDetailsResponseModel'; import ResourceLevelGraphBillingDetailVolume from './model/ResourceLevelGraphBillingDetailVolume'; import ResourceLevelGraphBillingDetailsAttributes from './model/ResourceLevelGraphBillingDetailsAttributes'; +import ResourceLevelGraphBillingDetailsBucket from './model/ResourceLevelGraphBillingDetailsBucket'; import ResourceLevelGraphBillingDetailsMetrics from './model/ResourceLevelGraphBillingDetailsMetrics'; import ResourceLevelGraphBillingDetailsVM from './model/ResourceLevelGraphBillingDetailsVM'; import ResourceLevelGraphBillingVMDetailsResources from './model/ResourceLevelGraphBillingVMDetailsResources'; @@ -297,12 +272,12 @@ import ResourceObjectResponseForCustomer from './model/ResourceObjectResponseFor import ResponseModel from './model/ResponseModel'; import RolePermissionFields from './model/RolePermissionFields'; import RolePolicyFields from './model/RolePolicyFields'; +import SecondaryColor from './model/SecondaryColor'; import SecurityGroupRule from './model/SecurityGroupRule'; import SecurityGroupRuleFields from './model/SecurityGroupRuleFields'; -import SecurityRulesFieldsforInstance from './model/SecurityRulesFieldsforInstance'; +import SecurityRulesFieldsForInstance from './model/SecurityRulesFieldsForInstance'; import SecurityRulesProtocolFields from './model/SecurityRulesProtocolFields'; -import SetDefaultsPayload from './model/SetDefaultsPayload'; -import SingleVisibilityUserResponse from './model/SingleVisibilityUserResponse'; +import ServerlessInferencedBillingHistoryDetailsResponseSchema from './model/ServerlessInferencedBillingHistoryDetailsResponseSchema'; import SnapshotFields from './model/SnapshotFields'; import SnapshotRestoreRequest from './model/SnapshotRestoreRequest'; import SnapshotRetrieve from './model/SnapshotRetrieve'; @@ -310,58 +285,55 @@ import SnapshotRetrieveFields from './model/SnapshotRetrieveFields'; import Snapshots from './model/Snapshots'; import StartDeployment from './model/StartDeployment'; import StartDeploymentPayload from './model/StartDeploymentPayload'; -import StockVisibilityUserListResponse from './model/StockVisibilityUserListResponse'; -import StockVisibilityUserPayload from './model/StockVisibilityUserPayload'; import SubResourceGraphBillingDetailsMetrics from './model/SubResourceGraphBillingDetailsMetrics'; import SubResourcesCostsResponseModel from './model/SubResourcesCostsResponseModel'; import SubResourcesGraphBillingHistoryFields from './model/SubResourcesGraphBillingHistoryFields'; import SubResourcesGraphResponseModel from './model/SubResourcesGraphResponseModel'; -import Subscribeorunsubscribeupdatepayload from './model/Subscribeorunsubscribeupdatepayload'; -import SuccessResponseModel from './model/SuccessResponseModel'; +import SubscribeOrUnsubscribeUpdatePayload from './model/SubscribeOrUnsubscribeUpdatePayload'; import Template from './model/Template'; import TemplateFields from './model/TemplateFields'; import Templates from './model/Templates'; -import TokenFields from './model/TokenFields'; -import UpdateContractPayload from './model/UpdateContractPayload'; -import UpdateDiscountsPayload from './model/UpdateDiscountsPayload'; -import UpdateDiscountsStatusPayload from './model/UpdateDiscountsStatusPayload'; +import TokenBasedBillingHistoryResponse from './model/TokenBasedBillingHistoryResponse'; +import URIs from './model/URIs'; +import UpdateClusterNodeGroupPayload from './model/UpdateClusterNodeGroupPayload'; import UpdateEnvironment from './model/UpdateEnvironment'; -import UpdateGPU from './model/UpdateGPU'; import UpdateKeypairName from './model/UpdateKeypairName'; -import UpdateKeypairnameresponse from './model/UpdateKeypairnameresponse'; +import UpdateKeypairNameResponse from './model/UpdateKeypairNameResponse'; import UpdateOrganizationPayload from './model/UpdateOrganizationPayload'; import UpdateOrganizationResponseModel from './model/UpdateOrganizationResponseModel'; import UpdateTemplate from './model/UpdateTemplate'; +import UpdateVolumeAttachmentPayload from './model/UpdateVolumeAttachmentPayload'; +import UpdateVolumePayload from './model/UpdateVolumePayload'; +import UpdateVolumeResponse from './model/UpdateVolumeResponse'; import UserDefaultChoiceForUserFields from './model/UserDefaultChoiceForUserFields'; import UserDefaultChoicesForUserResponse from './model/UserDefaultChoicesForUserResponse'; +import UserInfoPostPayload from './model/UserInfoPostPayload'; +import UserOrganizationsResponse from './model/UserOrganizationsResponse'; import UserPermissionFields from './model/UserPermissionFields'; -import UserTransferPayload from './model/UserTransferPayload'; -import Userinfopostpayload from './model/Userinfopostpayload'; import UsersInfoFields from './model/UsersInfoFields'; import UsersInfoListResponse from './model/UsersInfoListResponse'; -import VMUsageRequestPayload from './model/VMUsageRequestPayload'; -import VMUsageResponse from './model/VMUsageResponse'; +import VMQuota from './model/VMQuota'; import VNCURL from './model/VNCURL'; import VNCURLFields from './model/VNCURLFields'; -import VerifyApiKeyPayload from './model/VerifyApiKeyPayload'; -import VerifyApiKeyResponseModel from './model/VerifyApiKeyResponseModel'; -import VirtualMachineUsage from './model/VirtualMachineUsage'; import Volume from './model/Volume'; import VolumeAttachmentFields from './model/VolumeAttachmentFields'; import VolumeFields from './model/VolumeFields'; -import VolumeFieldsforInstance from './model/VolumeFieldsforInstance'; +import VolumeFieldsForInstance from './model/VolumeFieldsForInstance'; import VolumeOverviewFields from './model/VolumeOverviewFields'; -import VolumeStatusChangeFields from './model/VolumeStatusChangeFields'; import VolumeTypes from './model/VolumeTypes'; import Volumes from './model/Volumes'; -import VolumesLastStatusChangeResponse from './model/VolumesLastStatusChangeResponse'; -import WarningMailLogFields from './model/WarningMailLogFields'; -import WarningMailLogResponse from './model/WarningMailLogResponse'; +import VolumesFields from './model/VolumesFields'; +import Voucher from './model/Voucher'; +import VoucherRedeemResponseSchema from './model/VoucherRedeemResponseSchema'; +import WorkloadBillingHistoryResponse from './model/WorkloadBillingHistoryResponse'; +import AccessKeysApi from './api/AccessKeysApi'; import AliveApi from './api/AliveApi'; import ApiKeyApi from './api/ApiKeyApi'; import AssigningMemberRoleApi from './api/AssigningMemberRoleApi'; import AuthApi from './api/AuthApi'; +import BetaAccessApi from './api/BetaAccessApi'; import BillingApi from './api/BillingApi'; +import BucketsApi from './api/BucketsApi'; import CalculateApi from './api/CalculateApi'; import CallbacksApi from './api/CallbacksApi'; import ClusterEventsApi from './api/ClusterEventsApi'; @@ -372,15 +344,18 @@ import CustomerContractApi from './api/CustomerContractApi'; import DashboardApi from './api/DashboardApi'; import DeploymentApi from './api/DeploymentApi'; import EnvironmentApi from './api/EnvironmentApi'; +import FIPExclusionsApi from './api/FIPExclusionsApi'; import FirewallAttachmentApi from './api/FirewallAttachmentApi'; import FirewallsApi from './api/FirewallsApi'; import FlavorApi from './api/FlavorApi'; import FloatingIpApi from './api/FloatingIpApi'; import GpuApi from './api/GpuApi'; +import HealthApi from './api/HealthApi'; import ImageApi from './api/ImageApi'; import InviteApi from './api/InviteApi'; import KeypairApi from './api/KeypairApi'; import OrganizationApi from './api/OrganizationApi'; +import PartnerConfigApi from './api/PartnerConfigApi'; import PaymentApi from './api/PaymentApi'; import PermissionApi from './api/PermissionApi'; import PolicyApi from './api/PolicyApi'; @@ -388,6 +363,7 @@ import PricebookApi from './api/PricebookApi'; import ProfileApi from './api/ProfileApi'; import RbacRoleApi from './api/RbacRoleApi'; import RegionApi from './api/RegionApi'; +import RegionsApi from './api/RegionsApi'; import SecurityRulesApi from './api/SecurityRulesApi'; import SnapshotEventsApi from './api/SnapshotEventsApi'; import SnapshotsApi from './api/SnapshotsApi'; @@ -401,6 +377,7 @@ import VirtualMachineEventsApi from './api/VirtualMachineEventsApi'; import VncUrlApi from './api/VncUrlApi'; import VolumeApi from './api/VolumeApi'; import VolumeAttachmentApi from './api/VolumeAttachmentApi'; +import VouchersApi from './api/VouchersApi'; /** @@ -432,7 +409,7 @@ import VolumeAttachmentApi from './api/VolumeAttachmentApi'; * *

* @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.} measures - */ -ExportBillingDataResponse.prototype['measures'] = undefined; - -/** - * @member {String} message - */ -ExportBillingDataResponse.prototype['message'] = undefined; - - - - - - -export default ExportBillingDataResponse; - diff --git a/src/model/FieldChange.js b/src/model/FieldChange.js deleted file mode 100644 index 37ce4313..00000000 --- a/src/model/FieldChange.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'; - -/** - * The FieldChange model module. - * @module model/FieldChange - * @version v1.25.0-alpha - */ -class FieldChange { - /** - * Constructs a new FieldChange. - * @alias module:model/FieldChange - */ - constructor() { - - FieldChange.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 FieldChange 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/FieldChange} obj Optional instance to populate. - * @return {module:model/FieldChange} The populated FieldChange instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FieldChange(); - - if (data.hasOwnProperty('field_name')) { - obj['field_name'] = ApiClient.convertToType(data['field_name'], 'String'); - } - if (data.hasOwnProperty('new_value')) { - obj['new_value'] = ApiClient.convertToType(data['new_value'], 'String'); - } - if (data.hasOwnProperty('old_value')) { - obj['old_value'] = ApiClient.convertToType(data['old_value'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to FieldChange. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FieldChange. - */ - static validateJSON(data) { - // ensure the json data is a string - if (data['field_name'] && !(typeof data['field_name'] === 'string' || data['field_name'] instanceof String)) { - throw new Error("Expected the field `field_name` to be a primitive type in the JSON string but got " + data['field_name']); - } - // ensure the json data is a string - if (data['new_value'] && !(typeof data['new_value'] === 'string' || data['new_value'] instanceof String)) { - throw new Error("Expected the field `new_value` to be a primitive type in the JSON string but got " + data['new_value']); - } - // ensure the json data is a string - if (data['old_value'] && !(typeof data['old_value'] === 'string' || data['old_value'] instanceof String)) { - throw new Error("Expected the field `old_value` to be a primitive type in the JSON string but got " + data['old_value']); - } - - return true; - } - - -} - - - -/** - * The name of the field that was changed - * @member {String} field_name - */ -FieldChange.prototype['field_name'] = undefined; - -/** - * The new value of the field - * @member {String} new_value - */ -FieldChange.prototype['new_value'] = undefined; - -/** - * The old value of the field - * @member {String} old_value - */ -FieldChange.prototype['old_value'] = undefined; - - - - - - -export default FieldChange; - diff --git a/src/model/FirewallAttachmentModel.js b/src/model/FirewallAttachmentModel.js index ad0302b7..bd5162cf 100644 --- a/src/model/FirewallAttachmentModel.js +++ b/src/model/FirewallAttachmentModel.js @@ -17,7 +17,7 @@ import FirewallAttachmentVMModel from './FirewallAttachmentVMModel'; /** * The FirewallAttachmentModel model module. * @module model/FirewallAttachmentModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class FirewallAttachmentModel { /** diff --git a/src/model/FirewallAttachmentVMModel.js b/src/model/FirewallAttachmentVMModel.js index 009da0f1..36bb9575 100644 --- a/src/model/FirewallAttachmentVMModel.js +++ b/src/model/FirewallAttachmentVMModel.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The FirewallAttachmentVMModel model module. * @module model/FirewallAttachmentVMModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class FirewallAttachmentVMModel { /** diff --git a/src/model/FirewallDetailFields.js b/src/model/FirewallDetailFields.js index 22dd019a..afe166b1 100644 --- a/src/model/FirewallDetailFields.js +++ b/src/model/FirewallDetailFields.js @@ -19,7 +19,7 @@ import SecurityGroupRuleFields from './SecurityGroupRuleFields'; /** * The FirewallDetailFields model module. * @module model/FirewallDetailFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class FirewallDetailFields { /** diff --git a/src/model/FirewallDetailResponse.js b/src/model/FirewallDetailResponse.js index ad3a1ddf..9920e28e 100644 --- a/src/model/FirewallDetailResponse.js +++ b/src/model/FirewallDetailResponse.js @@ -17,7 +17,7 @@ import FirewallDetailFields from './FirewallDetailFields'; /** * The FirewallDetailResponse model module. * @module model/FirewallDetailResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class FirewallDetailResponse { /** diff --git a/src/model/FirewallEnvironmentFields.js b/src/model/FirewallEnvironmentFields.js index 43ea3a70..2ef08bca 100644 --- a/src/model/FirewallEnvironmentFields.js +++ b/src/model/FirewallEnvironmentFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The FirewallEnvironmentFields model module. * @module model/FirewallEnvironmentFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class FirewallEnvironmentFields { /** diff --git a/src/model/FirewallFields.js b/src/model/FirewallFields.js index c90a1d35..d79fb8fb 100644 --- a/src/model/FirewallFields.js +++ b/src/model/FirewallFields.js @@ -17,7 +17,7 @@ import FirewallEnvironmentFields from './FirewallEnvironmentFields'; /** * The FirewallFields model module. * @module model/FirewallFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class FirewallFields { /** diff --git a/src/model/FirewallResponse.js b/src/model/FirewallResponse.js index 80efeb61..0bf52891 100644 --- a/src/model/FirewallResponse.js +++ b/src/model/FirewallResponse.js @@ -17,7 +17,7 @@ import FirewallFields from './FirewallFields'; /** * The FirewallResponse model module. * @module model/FirewallResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class FirewallResponse { /** diff --git a/src/model/FirewallRule.js b/src/model/FirewallRule.js index d118e47c..48816591 100644 --- a/src/model/FirewallRule.js +++ b/src/model/FirewallRule.js @@ -17,7 +17,7 @@ import SecurityGroupRuleFields from './SecurityGroupRuleFields'; /** * The FirewallRule model module. * @module model/FirewallRule - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class FirewallRule { /** diff --git a/src/model/FirewallsListResponse.js b/src/model/FirewallsListResponse.js index 79ee9a77..ceb1e593 100644 --- a/src/model/FirewallsListResponse.js +++ b/src/model/FirewallsListResponse.js @@ -17,7 +17,7 @@ import FirewallDetailFields from './FirewallDetailFields'; /** * The FirewallsListResponse model module. * @module model/FirewallsListResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class FirewallsListResponse { /** diff --git a/src/model/FlavorFields.js b/src/model/FlavorFields.js index deca658b..07b69df2 100644 --- a/src/model/FlavorFields.js +++ b/src/model/FlavorFields.js @@ -17,7 +17,7 @@ import LableResonse from './LableResonse'; /** * The FlavorFields model module. * @module model/FlavorFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class FlavorFields { /** @@ -63,6 +63,9 @@ class FlavorFields { 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'); } @@ -157,6 +160,11 @@ FlavorFields.prototype['display_name'] = undefined; */ FlavorFields.prototype['ephemeral'] = undefined; +/** + * @member {Object} features + */ +FlavorFields.prototype['features'] = undefined; + /** * @member {String} gpu */ diff --git a/src/model/FlavorItemGetResponse.js b/src/model/FlavorItemGetResponse.js index 78af136d..38a5bbae 100644 --- a/src/model/FlavorItemGetResponse.js +++ b/src/model/FlavorItemGetResponse.js @@ -17,7 +17,7 @@ import FlavorFields from './FlavorFields'; /** * The FlavorItemGetResponse model module. * @module model/FlavorItemGetResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class FlavorItemGetResponse { /** diff --git a/src/model/FlavorLabelFields.js b/src/model/FlavorLabelFields.js new file mode 100644 index 00000000..6a8a37e2 --- /dev/null +++ b/src/model/FlavorLabelFields.js @@ -0,0 +1,97 @@ +/** + * 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 FlavorLabelFields model module. + * @module model/FlavorLabelFields + * @version v1.51.1-alpha + */ +class FlavorLabelFields { + /** + * Constructs a new FlavorLabelFields. + * @alias module:model/FlavorLabelFields + */ + constructor() { + + FlavorLabelFields.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 FlavorLabelFields 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/FlavorLabelFields} obj Optional instance to populate. + * @return {module:model/FlavorLabelFields} The populated FlavorLabelFields instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FlavorLabelFields(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('label')) { + obj['label'] = ApiClient.convertToType(data['label'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to FlavorLabelFields. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to FlavorLabelFields. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) { + throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']); + } + + return true; + } + + +} + + + +/** + * + * @member {Number} id + */ +FlavorLabelFields.prototype['id'] = undefined; + +/** + * + * @member {String} label + */ +FlavorLabelFields.prototype['label'] = undefined; + + + + + + +export default FlavorLabelFields; + diff --git a/src/model/FlavorListResponse.js b/src/model/FlavorListResponse.js index 96cc0430..7cbc1e8f 100644 --- a/src/model/FlavorListResponse.js +++ b/src/model/FlavorListResponse.js @@ -17,7 +17,7 @@ import FlavorItemGetResponse from './FlavorItemGetResponse'; /** * The FlavorListResponse model module. * @module model/FlavorListResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class FlavorListResponse { /** diff --git a/src/model/FlavorObjectFields.js b/src/model/FlavorObjectFields.js index 828c3a01..974b9bee 100644 --- a/src/model/FlavorObjectFields.js +++ b/src/model/FlavorObjectFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The FlavorObjectFields model module. * @module model/FlavorObjectFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class FlavorObjectFields { /** diff --git a/src/model/FlavorPayload.js b/src/model/FlavorPayload.js deleted file mode 100644 index 97cdb33b..00000000 --- a/src/model/FlavorPayload.js +++ /dev/null @@ -1,173 +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 FlavorPayload model module. - * @module model/FlavorPayload - * @version v1.25.0-alpha - */ -class FlavorPayload { - /** - * Constructs a new FlavorPayload. - * @alias module:model/FlavorPayload - * @param cpu {Number} - * @param disk {Number} - * @param gpu {String} - * @param gpuCount {Number} - * @param isPublic {Boolean} - * @param name {String} - * @param ram {Number} - * @param regionName {String} - */ - constructor(cpu, disk, gpu, gpuCount, isPublic, name, ram, regionName) { - - FlavorPayload.initialize(this, cpu, disk, gpu, gpuCount, isPublic, name, ram, regionName); - } - - /** - * 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, gpu, gpuCount, isPublic, name, ram, regionName) { - obj['cpu'] = cpu; - obj['disk'] = disk; - obj['gpu'] = gpu; - obj['gpu_count'] = gpuCount; - obj['is_public'] = isPublic; - obj['name'] = name; - obj['ram'] = ram; - obj['region_name'] = regionName; - } - - /** - * Constructs a FlavorPayload 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/FlavorPayload} obj Optional instance to populate. - * @return {module:model/FlavorPayload} The populated FlavorPayload instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FlavorPayload(); - - 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('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('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('ram')) { - obj['ram'] = ApiClient.convertToType(data['ram'], 'Number'); - } - if (data.hasOwnProperty('region_name')) { - obj['region_name'] = ApiClient.convertToType(data['region_name'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to FlavorPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FlavorPayload. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of FlavorPayload.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['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']); - } - // 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_name'] && !(typeof data['region_name'] === 'string' || data['region_name'] instanceof String)) { - throw new Error("Expected the field `region_name` to be a primitive type in the JSON string but got " + data['region_name']); - } - - return true; - } - - -} - -FlavorPayload.RequiredProperties = ["cpu", "disk", "gpu", "gpu_count", "is_public", "name", "ram", "region_name"]; - -/** - * @member {Number} cpu - */ -FlavorPayload.prototype['cpu'] = undefined; - -/** - * @member {Number} disk - */ -FlavorPayload.prototype['disk'] = undefined; - -/** - * @member {String} gpu - */ -FlavorPayload.prototype['gpu'] = undefined; - -/** - * @member {Number} gpu_count - */ -FlavorPayload.prototype['gpu_count'] = undefined; - -/** - * @member {Boolean} is_public - */ -FlavorPayload.prototype['is_public'] = undefined; - -/** - * @member {String} name - */ -FlavorPayload.prototype['name'] = undefined; - -/** - * @member {Number} ram - */ -FlavorPayload.prototype['ram'] = undefined; - -/** - * @member {String} region_name - */ -FlavorPayload.prototype['region_name'] = undefined; - - - - - - -export default FlavorPayload; - diff --git a/src/model/FlavorResponse.js b/src/model/FlavorResponse.js deleted file mode 100644 index c4e436bc..00000000 --- a/src/model/FlavorResponse.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 FlavorFields from './FlavorFields'; - -/** - * The FlavorResponse model module. - * @module model/FlavorResponse - * @version v1.25.0-alpha - */ -class FlavorResponse { - /** - * Constructs a new FlavorResponse. - * @alias module:model/FlavorResponse - */ - constructor() { - - FlavorResponse.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 FlavorResponse 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/FlavorResponse} obj Optional instance to populate. - * @return {module:model/FlavorResponse} The populated FlavorResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FlavorResponse(); - - if (data.hasOwnProperty('flavor')) { - obj['flavor'] = FlavorFields.constructFromObject(data['flavor']); - } - 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 FlavorResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FlavorResponse. - */ - static validateJSON(data) { - // validate the optional field `flavor` - if (data['flavor']) { // data not null - FlavorFields.validateJSON(data['flavor']); - } - // 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/FlavorFields} flavor - */ -FlavorResponse.prototype['flavor'] = undefined; - -/** - * @member {String} message - */ -FlavorResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -FlavorResponse.prototype['status'] = undefined; - - - - - - -export default FlavorResponse; - diff --git a/src/model/FlavorRestrictions.js b/src/model/FlavorRestrictions.js new file mode 100644 index 00000000..609163c7 --- /dev/null +++ b/src/model/FlavorRestrictions.js @@ -0,0 +1,117 @@ +/** + * 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 CompatibleFlavor from './CompatibleFlavor'; + +/** + * The FlavorRestrictions model module. + * @module model/FlavorRestrictions + * @version v1.51.1-alpha + */ +class FlavorRestrictions { + /** + * Constructs a new FlavorRestrictions. + * @alias module:model/FlavorRestrictions + */ + constructor() { + + FlavorRestrictions.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 FlavorRestrictions 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/FlavorRestrictions} obj Optional instance to populate. + * @return {module:model/FlavorRestrictions} The populated FlavorRestrictions instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FlavorRestrictions(); + + if (data.hasOwnProperty('compatible_flavors')) { + obj['compatible_flavors'] = ApiClient.convertToType(data['compatible_flavors'], [CompatibleFlavor]); + } + if (data.hasOwnProperty('has_flavor_restrictions')) { + obj['has_flavor_restrictions'] = ApiClient.convertToType(data['has_flavor_restrictions'], 'Boolean'); + } + if (data.hasOwnProperty('restriction_type')) { + obj['restriction_type'] = ApiClient.convertToType(data['restriction_type'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to FlavorRestrictions. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to FlavorRestrictions. + */ + static validateJSON(data) { + if (data['compatible_flavors']) { // data not null + // ensure the json data is an array + if (!Array.isArray(data['compatible_flavors'])) { + throw new Error("Expected the field `compatible_flavors` to be an array in the JSON data but got " + data['compatible_flavors']); + } + // validate the optional field `compatible_flavors` (array) + for (const item of data['compatible_flavors']) { + CompatibleFlavor.validateJSON(item); + }; + } + // ensure the json data is a string + if (data['restriction_type'] && !(typeof data['restriction_type'] === 'string' || data['restriction_type'] instanceof String)) { + throw new Error("Expected the field `restriction_type` to be a primitive type in the JSON string but got " + data['restriction_type']); + } + + return true; + } + + +} + + + +/** + * List of compatible flavors with their link metadata + * @member {Array.} compatible_flavors + */ +FlavorRestrictions.prototype['compatible_flavors'] = undefined; + +/** + * Whether the image has any flavor restrictions + * @member {Boolean} has_flavor_restrictions + */ +FlavorRestrictions.prototype['has_flavor_restrictions'] = undefined; + +/** + * Either 'hard', 'soft', or null if no restrictions + * @member {String} restriction_type + */ +FlavorRestrictions.prototype['restriction_type'] = undefined; + + + + + + +export default FlavorRestrictions; + diff --git a/src/model/FlavorVMFields.js b/src/model/FlavorVMFields.js deleted file mode 100644 index ba781752..00000000 --- a/src/model/FlavorVMFields.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 FlavorVMFields model module. - * @module model/FlavorVMFields - * @version v1.25.0-alpha - */ -class FlavorVMFields { - /** - * Constructs a new FlavorVMFields. - * @alias module:model/FlavorVMFields - */ - constructor() { - - FlavorVMFields.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 FlavorVMFields 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/FlavorVMFields} obj Optional instance to populate. - * @return {module:model/FlavorVMFields} The populated FlavorVMFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FlavorVMFields(); - - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); - } - 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('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to FlavorVMFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FlavorVMFields. - */ - 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['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 {Date} created_at - */ -FlavorVMFields.prototype['created_at'] = undefined; - -/** - * @member {String} host - */ -FlavorVMFields.prototype['host'] = undefined; - -/** - * @member {Number} id - */ -FlavorVMFields.prototype['id'] = undefined; - -/** - * @member {String} name - */ -FlavorVMFields.prototype['name'] = undefined; - -/** - * @member {String} openstack_id - */ -FlavorVMFields.prototype['openstack_id'] = undefined; - -/** - * @member {Number} org_id - */ -FlavorVMFields.prototype['org_id'] = undefined; - -/** - * @member {String} status - */ -FlavorVMFields.prototype['status'] = undefined; - - - - - - -export default FlavorVMFields; - diff --git a/src/model/FlavorVMsResponse.js b/src/model/FlavorVMsResponse.js deleted file mode 100644 index 3e29eba7..00000000 --- a/src/model/FlavorVMsResponse.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 FlavorVMFields from './FlavorVMFields'; - -/** - * The FlavorVMsResponse model module. - * @module model/FlavorVMsResponse - * @version v1.25.0-alpha - */ -class FlavorVMsResponse { - /** - * Constructs a new FlavorVMsResponse. - * @alias module:model/FlavorVMsResponse - */ - constructor() { - - FlavorVMsResponse.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 FlavorVMsResponse 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/FlavorVMsResponse} obj Optional instance to populate. - * @return {module:model/FlavorVMsResponse} The populated FlavorVMsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FlavorVMsResponse(); - - if (data.hasOwnProperty('flavor_vms')) { - obj['flavor_vms'] = ApiClient.convertToType(data['flavor_vms'], [FlavorVMFields]); - } - 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 FlavorVMsResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FlavorVMsResponse. - */ - static validateJSON(data) { - if (data['flavor_vms']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['flavor_vms'])) { - throw new Error("Expected the field `flavor_vms` to be an array in the JSON data but got " + data['flavor_vms']); - } - // validate the optional field `flavor_vms` (array) - for (const item of data['flavor_vms']) { - FlavorVMFields.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.} flavor_vms - */ -FlavorVMsResponse.prototype['flavor_vms'] = undefined; - -/** - * @member {String} message - */ -FlavorVMsResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -FlavorVMsResponse.prototype['status'] = undefined; - - - - - - -export default FlavorVMsResponse; - diff --git a/src/model/FutureNodeModel.js b/src/model/FutureNodeModel.js deleted file mode 100644 index 590d95e6..00000000 --- a/src/model/FutureNodeModel.js +++ /dev/null @@ -1,143 +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 FutureNodeStockModel from './FutureNodeStockModel'; - -/** - * The FutureNodeModel model module. - * @module model/FutureNodeModel - * @version v1.25.0-alpha - */ -class FutureNodeModel { - /** - * Constructs a new FutureNodeModel. - * @alias module:model/FutureNodeModel - * @param expectedProvisionDate {Date} Date and time in the format YYYY-MM-DD HH:mm:ss - */ - constructor(expectedProvisionDate) { - - FutureNodeModel.initialize(this, expectedProvisionDate); - } - - /** - * 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, expectedProvisionDate) { - obj['expected_provision_date'] = expectedProvisionDate; - } - - /** - * Constructs a FutureNodeModel 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/FutureNodeModel} obj Optional instance to populate. - * @return {module:model/FutureNodeModel} The populated FutureNodeModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FutureNodeModel(); - - if (data.hasOwnProperty('expected_provision_date')) { - obj['expected_provision_date'] = ApiClient.convertToType(data['expected_provision_date'], 'Date'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('nexgen_name')) { - obj['nexgen_name'] = ApiClient.convertToType(data['nexgen_name'], 'String'); - } - if (data.hasOwnProperty('openstack_name')) { - obj['openstack_name'] = ApiClient.convertToType(data['openstack_name'], 'String'); - } - if (data.hasOwnProperty('stocks')) { - obj['stocks'] = ApiClient.convertToType(data['stocks'], [FutureNodeStockModel]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to FutureNodeModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FutureNodeModel. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of FutureNodeModel.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['nexgen_name'] && !(typeof data['nexgen_name'] === 'string' || data['nexgen_name'] instanceof String)) { - throw new Error("Expected the field `nexgen_name` to be a primitive type in the JSON string but got " + data['nexgen_name']); - } - // ensure the json data is a string - if (data['openstack_name'] && !(typeof data['openstack_name'] === 'string' || data['openstack_name'] instanceof String)) { - throw new Error("Expected the field `openstack_name` to be a primitive type in the JSON string but got " + data['openstack_name']); - } - if (data['stocks']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['stocks'])) { - throw new Error("Expected the field `stocks` to be an array in the JSON data but got " + data['stocks']); - } - // validate the optional field `stocks` (array) - for (const item of data['stocks']) { - FutureNodeStockModel.validateJSON(item); - }; - } - - return true; - } - - -} - -FutureNodeModel.RequiredProperties = ["expected_provision_date"]; - -/** - * Date and time in the format YYYY-MM-DD HH:mm:ss - * @member {Date} expected_provision_date - */ -FutureNodeModel.prototype['expected_provision_date'] = undefined; - -/** - * @member {Number} id - */ -FutureNodeModel.prototype['id'] = undefined; - -/** - * @member {String} nexgen_name - */ -FutureNodeModel.prototype['nexgen_name'] = undefined; - -/** - * @member {String} openstack_name - */ -FutureNodeModel.prototype['openstack_name'] = undefined; - -/** - * @member {Array.} stocks - */ -FutureNodeModel.prototype['stocks'] = undefined; - - - - - - -export default FutureNodeModel; - diff --git a/src/model/FutureNodeResponseModel.js b/src/model/FutureNodeResponseModel.js deleted file mode 100644 index 42b6f8bf..00000000 --- a/src/model/FutureNodeResponseModel.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 FutureNodeModel from './FutureNodeModel'; - -/** - * The FutureNodeResponseModel model module. - * @module model/FutureNodeResponseModel - * @version v1.25.0-alpha - */ -class FutureNodeResponseModel { - /** - * Constructs a new FutureNodeResponseModel. - * @alias module:model/FutureNodeResponseModel - */ - constructor() { - - FutureNodeResponseModel.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 FutureNodeResponseModel 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/FutureNodeResponseModel} obj Optional instance to populate. - * @return {module:model/FutureNodeResponseModel} The populated FutureNodeResponseModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FutureNodeResponseModel(); - - if (data.hasOwnProperty('nodes')) { - obj['nodes'] = ApiClient.convertToType(data['nodes'], [FutureNodeModel]); - } - if (data.hasOwnProperty('region')) { - obj['region'] = ApiClient.convertToType(data['region'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to FutureNodeResponseModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FutureNodeResponseModel. - */ - static validateJSON(data) { - 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']) { - FutureNodeModel.validateJSON(item); - }; - } - // 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 {Array.} nodes - */ -FutureNodeResponseModel.prototype['nodes'] = undefined; - -/** - * @member {String} region - */ -FutureNodeResponseModel.prototype['region'] = undefined; - - - - - - -export default FutureNodeResponseModel; - diff --git a/src/model/FutureNodeStockModel.js b/src/model/FutureNodeStockModel.js deleted file mode 100644 index 84bbab51..00000000 --- a/src/model/FutureNodeStockModel.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 FutureNodeStockModel model module. - * @module model/FutureNodeStockModel - * @version v1.25.0-alpha - */ -class FutureNodeStockModel { - /** - * Constructs a new FutureNodeStockModel. - * @alias module:model/FutureNodeStockModel - * @param expectedAmount {Number} - */ - constructor(expectedAmount) { - - FutureNodeStockModel.initialize(this, expectedAmount); - } - - /** - * 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, expectedAmount) { - obj['expected_amount'] = expectedAmount; - } - - /** - * Constructs a FutureNodeStockModel 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/FutureNodeStockModel} obj Optional instance to populate. - * @return {module:model/FutureNodeStockModel} The populated FutureNodeStockModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FutureNodeStockModel(); - - if (data.hasOwnProperty('expected_amount')) { - obj['expected_amount'] = ApiClient.convertToType(data['expected_amount'], 'Number'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to FutureNodeStockModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FutureNodeStockModel. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of FutureNodeStockModel.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['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; - } - - -} - -FutureNodeStockModel.RequiredProperties = ["expected_amount"]; - -/** - * @member {Number} expected_amount - */ -FutureNodeStockModel.prototype['expected_amount'] = undefined; - -/** - * @member {Number} id - */ -FutureNodeStockModel.prototype['id'] = undefined; - -/** - * @member {String} name - */ -FutureNodeStockModel.prototype['name'] = undefined; - - - - - - -export default FutureNodeStockModel; - diff --git a/src/model/FutureNodeUpdateModel.js b/src/model/FutureNodeUpdateModel.js deleted file mode 100644 index 48e55ec2..00000000 --- a/src/model/FutureNodeUpdateModel.js +++ /dev/null @@ -1,135 +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 FutureNodeUpdateModel model module. - * @module model/FutureNodeUpdateModel - * @version v1.25.0-alpha - */ -class FutureNodeUpdateModel { - /** - * Constructs a new FutureNodeUpdateModel. - * @alias module:model/FutureNodeUpdateModel - * @param expectedProvisionDate {Date} - * @param nexgenName {String} - * @param openstackName {String} - */ - constructor(expectedProvisionDate, nexgenName, openstackName) { - - FutureNodeUpdateModel.initialize(this, expectedProvisionDate, nexgenName, openstackName); - } - - /** - * 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, expectedProvisionDate, nexgenName, openstackName) { - obj['expected_provision_date'] = expectedProvisionDate; - obj['nexgen_name'] = nexgenName; - obj['openstack_name'] = openstackName; - } - - /** - * Constructs a FutureNodeUpdateModel 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/FutureNodeUpdateModel} obj Optional instance to populate. - * @return {module:model/FutureNodeUpdateModel} The populated FutureNodeUpdateModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FutureNodeUpdateModel(); - - if (data.hasOwnProperty('expected_provision_date')) { - obj['expected_provision_date'] = ApiClient.convertToType(data['expected_provision_date'], 'Date'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('nexgen_name')) { - obj['nexgen_name'] = ApiClient.convertToType(data['nexgen_name'], 'String'); - } - if (data.hasOwnProperty('openstack_name')) { - obj['openstack_name'] = ApiClient.convertToType(data['openstack_name'], 'String'); - } - if (data.hasOwnProperty('region_id')) { - obj['region_id'] = ApiClient.convertToType(data['region_id'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to FutureNodeUpdateModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FutureNodeUpdateModel. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of FutureNodeUpdateModel.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['nexgen_name'] && !(typeof data['nexgen_name'] === 'string' || data['nexgen_name'] instanceof String)) { - throw new Error("Expected the field `nexgen_name` to be a primitive type in the JSON string but got " + data['nexgen_name']); - } - // ensure the json data is a string - if (data['openstack_name'] && !(typeof data['openstack_name'] === 'string' || data['openstack_name'] instanceof String)) { - throw new Error("Expected the field `openstack_name` to be a primitive type in the JSON string but got " + data['openstack_name']); - } - - return true; - } - - -} - -FutureNodeUpdateModel.RequiredProperties = ["expected_provision_date", "nexgen_name", "openstack_name"]; - -/** - * @member {Date} expected_provision_date - */ -FutureNodeUpdateModel.prototype['expected_provision_date'] = undefined; - -/** - * @member {Number} id - */ -FutureNodeUpdateModel.prototype['id'] = undefined; - -/** - * @member {String} nexgen_name - */ -FutureNodeUpdateModel.prototype['nexgen_name'] = undefined; - -/** - * @member {String} openstack_name - */ -FutureNodeUpdateModel.prototype['openstack_name'] = undefined; - -/** - * @member {Number} region_id - */ -FutureNodeUpdateModel.prototype['region_id'] = undefined; - - - - - - -export default FutureNodeUpdateModel; - diff --git a/src/model/FutureNodesStockModel.js b/src/model/FutureNodesStockModel.js deleted file mode 100644 index 57d45d0c..00000000 --- a/src/model/FutureNodesStockModel.js +++ /dev/null @@ -1,94 +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 FutureNodeResponseModel from './FutureNodeResponseModel'; - -/** - * The FutureNodesStockModel model module. - * @module model/FutureNodesStockModel - * @version v1.25.0-alpha - */ -class FutureNodesStockModel { - /** - * Constructs a new FutureNodesStockModel. - * @alias module:model/FutureNodesStockModel - */ - constructor() { - - FutureNodesStockModel.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 FutureNodesStockModel 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/FutureNodesStockModel} obj Optional instance to populate. - * @return {module:model/FutureNodesStockModel} The populated FutureNodesStockModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FutureNodesStockModel(); - - if (data.hasOwnProperty('future_stocks')) { - obj['future_stocks'] = ApiClient.convertToType(data['future_stocks'], [FutureNodeResponseModel]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to FutureNodesStockModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to FutureNodesStockModel. - */ - static validateJSON(data) { - if (data['future_stocks']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['future_stocks'])) { - throw new Error("Expected the field `future_stocks` to be an array in the JSON data but got " + data['future_stocks']); - } - // validate the optional field `future_stocks` (array) - for (const item of data['future_stocks']) { - FutureNodeResponseModel.validateJSON(item); - }; - } - - return true; - } - - -} - - - -/** - * @member {Array.} future_stocks - */ -FutureNodesStockModel.prototype['future_stocks'] = undefined; - - - - - - -export default FutureNodesStockModel; - diff --git a/src/model/GPU.js b/src/model/GPU.js deleted file mode 100644 index a89001b7..00000000 --- a/src/model/GPU.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 GPUFields from './GPUFields'; - -/** - * The GPU model module. - * @module model/GPU - * @version v1.25.0-alpha - */ -class GPU { - /** - * Constructs a new GPU. - * @alias module:model/GPU - */ - constructor() { - - GPU.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 GPU 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/GPU} obj Optional instance to populate. - * @return {module:model/GPU} The populated GPU instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GPU(); - - if (data.hasOwnProperty('gpu')) { - obj['gpu'] = GPUFields.constructFromObject(data['gpu']); - } - 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 GPU. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GPU. - */ - static validateJSON(data) { - // validate the optional field `gpu` - if (data['gpu']) { // data not null - GPUFields.validateJSON(data['gpu']); - } - // 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/GPUFields} gpu - */ -GPU.prototype['gpu'] = undefined; - -/** - * @member {String} message - */ -GPU.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -GPU.prototype['status'] = undefined; - - - - - - -export default GPU; - diff --git a/src/model/GPUFields.js b/src/model/GPUFields.js index f6074e81..830e883d 100644 --- a/src/model/GPUFields.js +++ b/src/model/GPUFields.js @@ -17,7 +17,7 @@ import GPURegionFields from './GPURegionFields'; /** * The GPUFields model module. * @module model/GPUFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class GPUFields { /** diff --git a/src/model/GPUList.js b/src/model/GPUList.js index 033da225..a614b3d7 100644 --- a/src/model/GPUList.js +++ b/src/model/GPUList.js @@ -17,7 +17,7 @@ import GPUFields from './GPUFields'; /** * The GPUList model module. * @module model/GPUList - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class GPUList { /** diff --git a/src/model/GPURegionFields.js b/src/model/GPURegionFields.js index a92d27a0..95dcd80d 100644 --- a/src/model/GPURegionFields.js +++ b/src/model/GPURegionFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The GPURegionFields model module. * @module model/GPURegionFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class GPURegionFields { /** diff --git a/src/model/GenerateUpdateApiKeyPayload.js b/src/model/GenerateUpdateApiKeyPayload.js index fa1e4e5d..b9f240c7 100644 --- a/src/model/GenerateUpdateApiKeyPayload.js +++ b/src/model/GenerateUpdateApiKeyPayload.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The GenerateUpdateApiKeyPayload model module. * @module model/GenerateUpdateApiKeyPayload - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class GenerateUpdateApiKeyPayload { /** diff --git a/src/model/GenerateUpdateApiKeyResponseModel.js b/src/model/GenerateUpdateApiKeyResponseModel.js index fb1fbe4f..ec3b80fc 100644 --- a/src/model/GenerateUpdateApiKeyResponseModel.js +++ b/src/model/GenerateUpdateApiKeyResponseModel.js @@ -17,7 +17,7 @@ import ApiKeyFields from './ApiKeyFields'; /** * The GenerateUpdateApiKeyResponseModel model module. * @module model/GenerateUpdateApiKeyResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class GenerateUpdateApiKeyResponseModel { /** diff --git a/src/model/GetAllContractFields.js b/src/model/GetAllContractFields.js deleted file mode 100644 index 951b8d77..00000000 --- a/src/model/GetAllContractFields.js +++ /dev/null @@ -1,135 +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 GetAllContractFields model module. - * @module model/GetAllContractFields - * @version v1.25.0-alpha - */ -class GetAllContractFields { - /** - * Constructs a new GetAllContractFields. - * @alias module:model/GetAllContractFields - */ - constructor() { - - GetAllContractFields.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 GetAllContractFields 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/GetAllContractFields} obj Optional instance to populate. - * @return {module:model/GetAllContractFields} The populated GetAllContractFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAllContractFields(); - - 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('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 GetAllContractFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetAllContractFields. - */ - 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']); - } - - return true; - } - - -} - - - -/** - * @member {Date} created_at - */ -GetAllContractFields.prototype['created_at'] = undefined; - -/** - * @member {String} description - */ -GetAllContractFields.prototype['description'] = undefined; - -/** - * @member {Date} end_date - */ -GetAllContractFields.prototype['end_date'] = undefined; - -/** - * @member {Number} expiration_policy - */ -GetAllContractFields.prototype['expiration_policy'] = undefined; - -/** - * @member {Number} id - */ -GetAllContractFields.prototype['id'] = undefined; - -/** - * @member {Number} org_id - */ -GetAllContractFields.prototype['org_id'] = undefined; - -/** - * @member {Date} start_date - */ -GetAllContractFields.prototype['start_date'] = undefined; - - - - - - -export default GetAllContractFields; - diff --git a/src/model/GetAllContractsResponseModel.js b/src/model/GetAllContractsResponseModel.js deleted file mode 100644 index dbd94e96..00000000 --- a/src/model/GetAllContractsResponseModel.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 GetAllContractFields from './GetAllContractFields'; - -/** - * The GetAllContractsResponseModel model module. - * @module model/GetAllContractsResponseModel - * @version v1.25.0-alpha - */ -class GetAllContractsResponseModel { - /** - * Constructs a new GetAllContractsResponseModel. - * @alias module:model/GetAllContractsResponseModel - */ - constructor() { - - GetAllContractsResponseModel.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 GetAllContractsResponseModel 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/GetAllContractsResponseModel} obj Optional instance to populate. - * @return {module:model/GetAllContractsResponseModel} The populated GetAllContractsResponseModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAllContractsResponseModel(); - - if (data.hasOwnProperty('contracts')) { - obj['contracts'] = ApiClient.convertToType(data['contracts'], [GetAllContractFields]); - } - 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 GetAllContractsResponseModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetAllContractsResponseModel. - */ - static validateJSON(data) { - if (data['contracts']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['contracts'])) { - throw new Error("Expected the field `contracts` to be an array in the JSON data but got " + data['contracts']); - } - // validate the optional field `contracts` (array) - for (const item of data['contracts']) { - GetAllContractFields.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.} contracts - */ -GetAllContractsResponseModel.prototype['contracts'] = undefined; - -/** - * @member {String} message - */ -GetAllContractsResponseModel.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -GetAllContractsResponseModel.prototype['status'] = undefined; - - - - - - -export default GetAllContractsResponseModel; - diff --git a/src/model/GetAllDiscountForAllOrganizationResponse.js b/src/model/GetAllDiscountForAllOrganizationResponse.js deleted file mode 100644 index 071dc8a7..00000000 --- a/src/model/GetAllDiscountForAllOrganizationResponse.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 GetAllDiscountsFields from './GetAllDiscountsFields'; - -/** - * The GetAllDiscountForAllOrganizationResponse model module. - * @module model/GetAllDiscountForAllOrganizationResponse - * @version v1.25.0-alpha - */ -class GetAllDiscountForAllOrganizationResponse { - /** - * Constructs a new GetAllDiscountForAllOrganizationResponse. - * @alias module:model/GetAllDiscountForAllOrganizationResponse - */ - constructor() { - - GetAllDiscountForAllOrganizationResponse.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 GetAllDiscountForAllOrganizationResponse 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/GetAllDiscountForAllOrganizationResponse} obj Optional instance to populate. - * @return {module:model/GetAllDiscountForAllOrganizationResponse} The populated GetAllDiscountForAllOrganizationResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAllDiscountForAllOrganizationResponse(); - - if (data.hasOwnProperty('discount_plans')) { - obj['discount_plans'] = ApiClient.convertToType(data['discount_plans'], [GetAllDiscountsFields]); - } - 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 GetAllDiscountForAllOrganizationResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetAllDiscountForAllOrganizationResponse. - */ - static validateJSON(data) { - 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']) { - GetAllDiscountsFields.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.} discount_plans - */ -GetAllDiscountForAllOrganizationResponse.prototype['discount_plans'] = undefined; - -/** - * @member {String} message - */ -GetAllDiscountForAllOrganizationResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -GetAllDiscountForAllOrganizationResponse.prototype['status'] = undefined; - - - - - - -export default GetAllDiscountForAllOrganizationResponse; - diff --git a/src/model/GetAllDiscountsFields.js b/src/model/GetAllDiscountsFields.js deleted file mode 100644 index 2d4eb491..00000000 --- a/src/model/GetAllDiscountsFields.js +++ /dev/null @@ -1,142 +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 DiscountResourceFields from './DiscountResourceFields'; - -/** - * The GetAllDiscountsFields model module. - * @module model/GetAllDiscountsFields - * @version v1.25.0-alpha - */ -class GetAllDiscountsFields { - /** - * Constructs a new GetAllDiscountsFields. - * @alias module:model/GetAllDiscountsFields - */ - constructor() { - - GetAllDiscountsFields.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 GetAllDiscountsFields 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/GetAllDiscountsFields} obj Optional instance to populate. - * @return {module:model/GetAllDiscountsFields} The populated GetAllDiscountsFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAllDiscountsFields(); - - if (data.hasOwnProperty('discount_resources')) { - obj['discount_resources'] = ApiClient.convertToType(data['discount_resources'], [DiscountResourceFields]); - } - 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('start_date')) { - obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to GetAllDiscountsFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetAllDiscountsFields. - */ - static validateJSON(data) { - 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']) { - DiscountResourceFields.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']); - } - // 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']); - } - - return true; - } - - -} - - - -/** - * @member {Array.} discount_resources - */ -GetAllDiscountsFields.prototype['discount_resources'] = undefined; - -/** - * @member {String} discount_status - */ -GetAllDiscountsFields.prototype['discount_status'] = undefined; - -/** - * @member {Date} end_date - */ -GetAllDiscountsFields.prototype['end_date'] = undefined; - -/** - * @member {Number} org_id - */ -GetAllDiscountsFields.prototype['org_id'] = undefined; - -/** - * @member {String} org_name - */ -GetAllDiscountsFields.prototype['org_name'] = undefined; - -/** - * @member {Date} start_date - */ -GetAllDiscountsFields.prototype['start_date'] = undefined; - - - - - - -export default GetAllDiscountsFields; - diff --git a/src/model/GetApiKeysResponseModel.js b/src/model/GetApiKeysResponseModel.js index f49717e8..e49356c7 100644 --- a/src/model/GetApiKeysResponseModel.js +++ b/src/model/GetApiKeysResponseModel.js @@ -17,7 +17,7 @@ import ApiKeyFields from './ApiKeyFields'; /** * The GetApiKeysResponseModel model module. * @module model/GetApiKeysResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class GetApiKeysResponseModel { /** diff --git a/src/model/GetCreditAndThresholdInfo.js b/src/model/GetCreditAndThresholdInfo.js new file mode 100644 index 00000000..b66efaae --- /dev/null +++ b/src/model/GetCreditAndThresholdInfo.js @@ -0,0 +1,99 @@ +/** + * 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 GetCreditAndThresholdInfo model module. + * @module model/GetCreditAndThresholdInfo + * @version v1.51.1-alpha + */ +class GetCreditAndThresholdInfo { + /** + * Constructs a new GetCreditAndThresholdInfo. + * @alias module:model/GetCreditAndThresholdInfo + */ + constructor() { + + GetCreditAndThresholdInfo.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 GetCreditAndThresholdInfo 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/GetCreditAndThresholdInfo} obj Optional instance to populate. + * @return {module:model/GetCreditAndThresholdInfo} The populated GetCreditAndThresholdInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetCreditAndThresholdInfo(); + + if (data.hasOwnProperty('can_create_instance')) { + obj['can_create_instance'] = ApiClient.convertToType(data['can_create_instance'], 'Boolean'); + } + if (data.hasOwnProperty('credit')) { + obj['credit'] = ApiClient.convertToType(data['credit'], 'Number'); + } + if (data.hasOwnProperty('threshold')) { + obj['threshold'] = ApiClient.convertToType(data['threshold'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to GetCreditAndThresholdInfo. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to GetCreditAndThresholdInfo. + */ + static validateJSON(data) { + + return true; + } + + +} + + + +/** + * @member {Boolean} can_create_instance + */ +GetCreditAndThresholdInfo.prototype['can_create_instance'] = undefined; + +/** + * @member {Number} credit + */ +GetCreditAndThresholdInfo.prototype['credit'] = undefined; + +/** + * @member {Number} threshold + */ +GetCreditAndThresholdInfo.prototype['threshold'] = undefined; + + + + + + +export default GetCreditAndThresholdInfo; + diff --git a/src/model/GetCreditAndThresholdInfoInResponse.js b/src/model/GetCreditAndThresholdInfoInResponse.js new file mode 100644 index 00000000..531a1613 --- /dev/null +++ b/src/model/GetCreditAndThresholdInfoInResponse.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 GetCreditAndThresholdInfo from './GetCreditAndThresholdInfo'; + +/** + * The GetCreditAndThresholdInfoInResponse model module. + * @module model/GetCreditAndThresholdInfoInResponse + * @version v1.51.1-alpha + */ +class GetCreditAndThresholdInfoInResponse { + /** + * Constructs a new GetCreditAndThresholdInfoInResponse. + * @alias module:model/GetCreditAndThresholdInfoInResponse + */ + constructor() { + + GetCreditAndThresholdInfoInResponse.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 GetCreditAndThresholdInfoInResponse 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/GetCreditAndThresholdInfoInResponse} obj Optional instance to populate. + * @return {module:model/GetCreditAndThresholdInfoInResponse} The populated GetCreditAndThresholdInfoInResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetCreditAndThresholdInfoInResponse(); + + if (data.hasOwnProperty('data')) { + obj['data'] = GetCreditAndThresholdInfo.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 GetCreditAndThresholdInfoInResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to GetCreditAndThresholdInfoInResponse. + */ + static validateJSON(data) { + // validate the optional field `data` + if (data['data']) { // data not null + GetCreditAndThresholdInfo.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/GetCreditAndThresholdInfo} data + */ +GetCreditAndThresholdInfoInResponse.prototype['data'] = undefined; + +/** + * @member {String} message + */ +GetCreditAndThresholdInfoInResponse.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +GetCreditAndThresholdInfoInResponse.prototype['status'] = undefined; + + + + + + +export default GetCreditAndThresholdInfoInResponse; + diff --git a/src/model/GetCustomerContractsListResponseModel.js b/src/model/GetCustomerContractsListResponseModel.js index 7d095d0e..a5222a7d 100644 --- a/src/model/GetCustomerContractsListResponseModel.js +++ b/src/model/GetCustomerContractsListResponseModel.js @@ -17,7 +17,7 @@ import CustomerContractFields from './CustomerContractFields'; /** * The GetCustomerContractsListResponseModel model module. * @module model/GetCustomerContractsListResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class GetCustomerContractsListResponseModel { /** diff --git a/src/model/GetDiscountDetailResponse.js b/src/model/GetDiscountDetailResponse.js deleted file mode 100644 index a604ee99..00000000 --- a/src/model/GetDiscountDetailResponse.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 DiscountEntityModel from './DiscountEntityModel'; - -/** - * The GetDiscountDetailResponse model module. - * @module model/GetDiscountDetailResponse - * @version v1.25.0-alpha - */ -class GetDiscountDetailResponse { - /** - * Constructs a new GetDiscountDetailResponse. - * @alias module:model/GetDiscountDetailResponse - */ - constructor() { - - GetDiscountDetailResponse.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 GetDiscountDetailResponse 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/GetDiscountDetailResponse} obj Optional instance to populate. - * @return {module:model/GetDiscountDetailResponse} The populated GetDiscountDetailResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDiscountDetailResponse(); - - if (data.hasOwnProperty('discounts_entity')) { - obj['discounts_entity'] = DiscountEntityModel.constructFromObject(data['discounts_entity']); - } - 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 GetDiscountDetailResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetDiscountDetailResponse. - */ - static validateJSON(data) { - // validate the optional field `discounts_entity` - if (data['discounts_entity']) { // data not null - DiscountEntityModel.validateJSON(data['discounts_entity']); - } - // 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/DiscountEntityModel} discounts_entity - */ -GetDiscountDetailResponse.prototype['discounts_entity'] = undefined; - -/** - * @member {String} message - */ -GetDiscountDetailResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -GetDiscountDetailResponse.prototype['status'] = undefined; - - - - - - -export default GetDiscountDetailResponse; - diff --git a/src/model/GetDiscountResponse.js b/src/model/GetDiscountResponse.js deleted file mode 100644 index 004d13cb..00000000 --- a/src/model/GetDiscountResponse.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 DiscountFields from './DiscountFields'; - -/** - * The GetDiscountResponse model module. - * @module model/GetDiscountResponse - * @version v1.25.0-alpha - */ -class GetDiscountResponse { - /** - * Constructs a new GetDiscountResponse. - * @alias module:model/GetDiscountResponse - */ - constructor() { - - GetDiscountResponse.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 GetDiscountResponse 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/GetDiscountResponse} obj Optional instance to populate. - * @return {module:model/GetDiscountResponse} The populated GetDiscountResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDiscountResponse(); - - if (data.hasOwnProperty('discount_entites')) { - obj['discount_entites'] = ApiClient.convertToType(data['discount_entites'], [DiscountFields]); - } - 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 GetDiscountResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetDiscountResponse. - */ - static validateJSON(data) { - if (data['discount_entites']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['discount_entites'])) { - throw new Error("Expected the field `discount_entites` to be an array in the JSON data but got " + data['discount_entites']); - } - // validate the optional field `discount_entites` (array) - for (const item of data['discount_entites']) { - DiscountFields.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.} discount_entites - */ -GetDiscountResponse.prototype['discount_entites'] = undefined; - -/** - * @member {String} message - */ -GetDiscountResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -GetDiscountResponse.prototype['status'] = undefined; - - - - - - -export default GetDiscountResponse; - diff --git a/src/model/GetEntityDiscountDetailResponse.js b/src/model/GetEntityDiscountDetailResponse.js deleted file mode 100644 index efa8c870..00000000 --- a/src/model/GetEntityDiscountDetailResponse.js +++ /dev/null @@ -1,132 +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 GetEntityDiscountDetailResponse model module. - * @module model/GetEntityDiscountDetailResponse - * @version v1.25.0-alpha - */ -class GetEntityDiscountDetailResponse { - /** - * Constructs a new GetEntityDiscountDetailResponse. - * @alias module:model/GetEntityDiscountDetailResponse - */ - constructor() { - - GetEntityDiscountDetailResponse.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 GetEntityDiscountDetailResponse 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/GetEntityDiscountDetailResponse} obj Optional instance to populate. - * @return {module:model/GetEntityDiscountDetailResponse} The populated GetEntityDiscountDetailResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetEntityDiscountDetailResponse(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('organization')) { - obj['organization'] = ApiClient.convertToType(data['organization'], [DiscountPlanFields]); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('virtual-machine')) { - obj['virtual-machine'] = ApiClient.convertToType(data['virtual-machine'], [DiscountPlanFields]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to GetEntityDiscountDetailResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetEntityDiscountDetailResponse. - */ - 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['organization']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['organization'])) { - throw new Error("Expected the field `organization` to be an array in the JSON data but got " + data['organization']); - } - // validate the optional field `organization` (array) - for (const item of data['organization']) { - DiscountPlanFields.validateJSON(item); - }; - } - if (data['virtual-machine']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['virtual-machine'])) { - throw new Error("Expected the field `virtual-machine` to be an array in the JSON data but got " + data['virtual-machine']); - } - // validate the optional field `virtual-machine` (array) - for (const item of data['virtual-machine']) { - DiscountPlanFields.validateJSON(item); - }; - } - - return true; - } - - -} - - - -/** - * @member {String} message - */ -GetEntityDiscountDetailResponse.prototype['message'] = undefined; - -/** - * @member {Array.} organization - */ -GetEntityDiscountDetailResponse.prototype['organization'] = undefined; - -/** - * @member {Boolean} status - */ -GetEntityDiscountDetailResponse.prototype['status'] = undefined; - -/** - * @member {Array.} virtual-machine - */ -GetEntityDiscountDetailResponse.prototype['virtual-machine'] = undefined; - - - - - - -export default GetEntityDiscountDetailResponse; - diff --git a/src/model/GetInstanceLogsResponse.js b/src/model/GetInstanceLogsResponse.js new file mode 100644 index 00000000..e64a77a5 --- /dev/null +++ b/src/model/GetInstanceLogsResponse.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 GetInstanceLogsResponse model module. + * @module model/GetInstanceLogsResponse + * @version v1.51.1-alpha + */ +class GetInstanceLogsResponse { + /** + * Constructs a new GetInstanceLogsResponse. + * @alias module:model/GetInstanceLogsResponse + */ + constructor() { + + GetInstanceLogsResponse.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 GetInstanceLogsResponse 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/GetInstanceLogsResponse} obj Optional instance to populate. + * @return {module:model/GetInstanceLogsResponse} The populated GetInstanceLogsResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetInstanceLogsResponse(); + + if (data.hasOwnProperty('logs')) { + obj['logs'] = ApiClient.convertToType(data['logs'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to GetInstanceLogsResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to GetInstanceLogsResponse. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['logs'] && !(typeof data['logs'] === 'string' || data['logs'] instanceof String)) { + throw new Error("Expected the field `logs` to be a primitive type in the JSON string but got " + data['logs']); + } + + return true; + } + + +} + + + +/** + * @member {String} logs + */ +GetInstanceLogsResponse.prototype['logs'] = undefined; + + + + + + +export default GetInstanceLogsResponse; + diff --git a/src/model/GetInvitesResponseModel.js b/src/model/GetInvitesResponseModel.js index 6e837cb5..9a5e06e8 100644 --- a/src/model/GetInvitesResponseModel.js +++ b/src/model/GetInvitesResponseModel.js @@ -17,7 +17,7 @@ import InviteFields from './InviteFields'; /** * The GetInvitesResponseModel model module. * @module model/GetInvitesResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class GetInvitesResponseModel { /** diff --git a/src/model/GetOrganizationResponseModel.js b/src/model/GetOrganizationResponseModel.js index 20e6f67d..55e5152f 100644 --- a/src/model/GetOrganizationResponseModel.js +++ b/src/model/GetOrganizationResponseModel.js @@ -17,7 +17,7 @@ import OrganizationFields from './OrganizationFields'; /** * The GetOrganizationResponseModel model module. * @module model/GetOrganizationResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class GetOrganizationResponseModel { /** diff --git a/src/model/GetPermissionsResponseModel.js b/src/model/GetPermissionsResponseModel.js index 656560c9..4a148c0b 100644 --- a/src/model/GetPermissionsResponseModel.js +++ b/src/model/GetPermissionsResponseModel.js @@ -17,7 +17,7 @@ import PermissionFields from './PermissionFields'; /** * The GetPermissionsResponseModel model module. * @module model/GetPermissionsResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class GetPermissionsResponseModel { /** diff --git a/src/model/GetPoliciesResponseModel.js b/src/model/GetPoliciesResponseModel.js index f04bfe19..5b470091 100644 --- a/src/model/GetPoliciesResponseModel.js +++ b/src/model/GetPoliciesResponseModel.js @@ -17,7 +17,7 @@ import PolicyFields from './PolicyFields'; /** * The GetPoliciesResponseModel model module. * @module model/GetPoliciesResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class GetPoliciesResponseModel { /** diff --git a/src/model/GetRbacRolesResponseModel.js b/src/model/GetRbacRolesResponseModel.js index 87943b33..7f4ca216 100644 --- a/src/model/GetRbacRolesResponseModel.js +++ b/src/model/GetRbacRolesResponseModel.js @@ -17,7 +17,7 @@ import RbacRoleFields from './RbacRoleFields'; /** * The GetRbacRolesResponseModel model module. * @module model/GetRbacRolesResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class GetRbacRolesResponseModel { /** diff --git a/src/model/GetTokenPayload.js b/src/model/GetTokenPayload.js deleted file mode 100644 index cc60be8e..00000000 --- a/src/model/GetTokenPayload.js +++ /dev/null @@ -1,109 +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 GetTokenPayload model module. - * @module model/GetTokenPayload - * @version v1.25.0-alpha - */ -class GetTokenPayload { - /** - * Constructs a new GetTokenPayload. - * @alias module:model/GetTokenPayload - * @param callbackCode {String} - * @param sessionId {String} - */ - constructor(callbackCode, sessionId) { - - GetTokenPayload.initialize(this, callbackCode, sessionId); - } - - /** - * 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, callbackCode, sessionId) { - obj['callback_code'] = callbackCode; - obj['session_id'] = sessionId; - } - - /** - * Constructs a GetTokenPayload 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/GetTokenPayload} obj Optional instance to populate. - * @return {module:model/GetTokenPayload} The populated GetTokenPayload instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetTokenPayload(); - - if (data.hasOwnProperty('callback_code')) { - obj['callback_code'] = ApiClient.convertToType(data['callback_code'], 'String'); - } - if (data.hasOwnProperty('session_id')) { - obj['session_id'] = ApiClient.convertToType(data['session_id'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to GetTokenPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetTokenPayload. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of GetTokenPayload.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['callback_code'] && !(typeof data['callback_code'] === 'string' || data['callback_code'] instanceof String)) { - throw new Error("Expected the field `callback_code` to be a primitive type in the JSON string but got " + data['callback_code']); - } - // 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; - } - - -} - -GetTokenPayload.RequiredProperties = ["callback_code", "session_id"]; - -/** - * @member {String} callback_code - */ -GetTokenPayload.prototype['callback_code'] = undefined; - -/** - * @member {String} session_id - */ -GetTokenPayload.prototype['session_id'] = undefined; - - - - - - -export default GetTokenPayload; - diff --git a/src/model/GetUserPermissionsResponseModel.js b/src/model/GetUserPermissionsResponseModel.js index f8e75659..3fda37ec 100644 --- a/src/model/GetUserPermissionsResponseModel.js +++ b/src/model/GetUserPermissionsResponseModel.js @@ -17,7 +17,7 @@ import UserPermissionFields from './UserPermissionFields'; /** * The GetUserPermissionsResponseModel model module. * @module model/GetUserPermissionsResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class GetUserPermissionsResponseModel { /** diff --git a/src/model/GetVersionResponse.js b/src/model/GetVersionResponse.js deleted file mode 100644 index 07ebee9c..00000000 --- a/src/model/GetVersionResponse.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 GetVersionResponse model module. - * @module model/GetVersionResponse - * @version v1.25.0-alpha - */ -class GetVersionResponse { - /** - * Constructs a new GetVersionResponse. - * @alias module:model/GetVersionResponse - */ - constructor() { - - GetVersionResponse.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 GetVersionResponse 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/GetVersionResponse} obj Optional instance to populate. - * @return {module:model/GetVersionResponse} The populated GetVersionResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetVersionResponse(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('version')) { - obj['version'] = ApiClient.convertToType(data['version'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to GetVersionResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to GetVersionResponse. - */ - 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']); - } - // 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 {String} message - */ -GetVersionResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -GetVersionResponse.prototype['status'] = undefined; - -/** - * @member {String} version - */ -GetVersionResponse.prototype['version'] = undefined; - - - - - - -export default GetVersionResponse; - diff --git a/src/model/Getcreditandthresholdinfo.js b/src/model/Getcreditandthresholdinfo.js deleted file mode 100644 index 5d3c5523..00000000 --- a/src/model/Getcreditandthresholdinfo.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 Getcreditandthresholdinfo model module. - * @module model/Getcreditandthresholdinfo - * @version v1.25.0-alpha - */ -class Getcreditandthresholdinfo { - /** - * Constructs a new Getcreditandthresholdinfo. - * @alias module:model/Getcreditandthresholdinfo - */ - constructor() { - - Getcreditandthresholdinfo.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 Getcreditandthresholdinfo 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/Getcreditandthresholdinfo} obj Optional instance to populate. - * @return {module:model/Getcreditandthresholdinfo} The populated Getcreditandthresholdinfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Getcreditandthresholdinfo(); - - if (data.hasOwnProperty('can_create_instance')) { - obj['can_create_instance'] = ApiClient.convertToType(data['can_create_instance'], 'Boolean'); - } - if (data.hasOwnProperty('credit')) { - obj['credit'] = ApiClient.convertToType(data['credit'], 'Number'); - } - if (data.hasOwnProperty('threshold')) { - obj['threshold'] = ApiClient.convertToType(data['threshold'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to Getcreditandthresholdinfo. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Getcreditandthresholdinfo. - */ - static validateJSON(data) { - - return true; - } - - -} - - - -/** - * @member {Boolean} can_create_instance - */ -Getcreditandthresholdinfo.prototype['can_create_instance'] = undefined; - -/** - * @member {Number} credit - */ -Getcreditandthresholdinfo.prototype['credit'] = undefined; - -/** - * @member {Number} threshold - */ -Getcreditandthresholdinfo.prototype['threshold'] = undefined; - - - - - - -export default Getcreditandthresholdinfo; - diff --git a/src/model/Getcreditandthresholdinfoinresponse.js b/src/model/Getcreditandthresholdinfoinresponse.js deleted file mode 100644 index 32836e18..00000000 --- a/src/model/Getcreditandthresholdinfoinresponse.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 Getcreditandthresholdinfo from './Getcreditandthresholdinfo'; - -/** - * The Getcreditandthresholdinfoinresponse model module. - * @module model/Getcreditandthresholdinfoinresponse - * @version v1.25.0-alpha - */ -class Getcreditandthresholdinfoinresponse { - /** - * Constructs a new Getcreditandthresholdinfoinresponse. - * @alias module:model/Getcreditandthresholdinfoinresponse - */ - constructor() { - - Getcreditandthresholdinfoinresponse.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 Getcreditandthresholdinfoinresponse 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/Getcreditandthresholdinfoinresponse} obj Optional instance to populate. - * @return {module:model/Getcreditandthresholdinfoinresponse} The populated Getcreditandthresholdinfoinresponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Getcreditandthresholdinfoinresponse(); - - if (data.hasOwnProperty('data')) { - obj['data'] = Getcreditandthresholdinfo.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 Getcreditandthresholdinfoinresponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Getcreditandthresholdinfoinresponse. - */ - static validateJSON(data) { - // validate the optional field `data` - if (data['data']) { // data not null - Getcreditandthresholdinfo.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/Getcreditandthresholdinfo} data - */ -Getcreditandthresholdinfoinresponse.prototype['data'] = undefined; - -/** - * @member {String} message - */ -Getcreditandthresholdinfoinresponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -Getcreditandthresholdinfoinresponse.prototype['status'] = undefined; - - - - - - -export default Getcreditandthresholdinfoinresponse; - diff --git a/src/model/GraphDatetimeValueModel.js b/src/model/GraphDatetimeValueModel.js index f81faa44..8e2756b7 100644 --- a/src/model/GraphDatetimeValueModel.js +++ b/src/model/GraphDatetimeValueModel.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The GraphDatetimeValueModel model module. * @module model/GraphDatetimeValueModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class GraphDatetimeValueModel { /** diff --git a/src/model/HistoricalInstance.js b/src/model/HistoricalInstance.js deleted file mode 100644 index fca6b046..00000000 --- a/src/model/HistoricalInstance.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 HistoricalInstancesFields from './HistoricalInstancesFields'; - -/** - * The HistoricalInstance model module. - * @module model/HistoricalInstance - * @version v1.25.0-alpha - */ -class HistoricalInstance { - /** - * Constructs a new HistoricalInstance. - * @alias module:model/HistoricalInstance - */ - constructor() { - - HistoricalInstance.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 HistoricalInstance 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/HistoricalInstance} obj Optional instance to populate. - * @return {module:model/HistoricalInstance} The populated HistoricalInstance instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new HistoricalInstance(); - - if (data.hasOwnProperty('instance_count')) { - obj['instance_count'] = ApiClient.convertToType(data['instance_count'], 'Number'); - } - if (data.hasOwnProperty('instances')) { - obj['instances'] = ApiClient.convertToType(data['instances'], [HistoricalInstancesFields]); - } - 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 HistoricalInstance. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to HistoricalInstance. - */ - 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']) { - HistoricalInstancesFields.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 - */ -HistoricalInstance.prototype['instance_count'] = undefined; - -/** - * @member {Array.} instances - */ -HistoricalInstance.prototype['instances'] = undefined; - -/** - * @member {String} message - */ -HistoricalInstance.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -HistoricalInstance.prototype['status'] = undefined; - - - - - - -export default HistoricalInstance; - diff --git a/src/model/HistoricalInstancesFields.js b/src/model/HistoricalInstancesFields.js deleted file mode 100644 index a7572cd9..00000000 --- a/src/model/HistoricalInstancesFields.js +++ /dev/null @@ -1,199 +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 HistoricalInstancesFields model module. - * @module model/HistoricalInstancesFields - * @version v1.25.0-alpha - */ -class HistoricalInstancesFields { - /** - * Constructs a new HistoricalInstancesFields. - * @alias module:model/HistoricalInstancesFields - */ - constructor() { - - HistoricalInstancesFields.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 HistoricalInstancesFields 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/HistoricalInstancesFields} obj Optional instance to populate. - * @return {module:model/HistoricalInstancesFields} The populated HistoricalInstancesFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new HistoricalInstancesFields(); - - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('environment')) { - obj['environment'] = ApiClient.convertToType(data['environment'], 'String'); - } - if (data.hasOwnProperty('environment_id')) { - obj['environment_id'] = ApiClient.convertToType(data['environment_id'], 'Number'); - } - if (data.hasOwnProperty('flavor')) { - obj['flavor'] = ApiClient.convertToType(data['flavor'], 'String'); - } - if (data.hasOwnProperty('flavor_id')) { - obj['flavor_id'] = ApiClient.convertToType(data['flavor_id'], 'Number'); - } - if (data.hasOwnProperty('floating_ip')) { - obj['floating_ip'] = ApiClient.convertToType(data['floating_ip'], 'String'); - } - 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('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 HistoricalInstancesFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to HistoricalInstancesFields. - */ - static validateJSON(data) { - // ensure the json data is a string - if (data['environment'] && !(typeof data['environment'] === 'string' || data['environment'] instanceof String)) { - throw new Error("Expected the field `environment` to be a primitive type in the JSON string but got " + data['environment']); - } - // ensure the json data is a string - if (data['flavor'] && !(typeof data['flavor'] === 'string' || data['flavor'] instanceof String)) { - throw new Error("Expected the field `flavor` to be a primitive type in the JSON string but got " + data['flavor']); - } - // 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['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['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 {Date} created_at - */ -HistoricalInstancesFields.prototype['created_at'] = undefined; - -/** - * @member {String} environment - */ -HistoricalInstancesFields.prototype['environment'] = undefined; - -/** - * @member {Number} environment_id - */ -HistoricalInstancesFields.prototype['environment_id'] = undefined; - -/** - * @member {String} flavor - */ -HistoricalInstancesFields.prototype['flavor'] = undefined; - -/** - * @member {Number} flavor_id - */ -HistoricalInstancesFields.prototype['flavor_id'] = undefined; - -/** - * @member {String} floating_ip - */ -HistoricalInstancesFields.prototype['floating_ip'] = undefined; - -/** - * @member {String} host - */ -HistoricalInstancesFields.prototype['host'] = undefined; - -/** - * @member {Number} id - */ -HistoricalInstancesFields.prototype['id'] = undefined; - -/** - * @member {String} name - */ -HistoricalInstancesFields.prototype['name'] = undefined; - -/** - * @member {String} openstack_id - */ -HistoricalInstancesFields.prototype['openstack_id'] = undefined; - -/** - * @member {String} status - */ -HistoricalInstancesFields.prototype['status'] = undefined; - -/** - * @member {Date} updated_at - */ -HistoricalInstancesFields.prototype['updated_at'] = undefined; - - - - - - -export default HistoricalInstancesFields; - diff --git a/src/model/Image.js b/src/model/Image.js index 1f0aaff0..bb9655eb 100644 --- a/src/model/Image.js +++ b/src/model/Image.js @@ -17,7 +17,7 @@ import ImageFields from './ImageFields'; /** * The Image model module. * @module model/Image - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class Image { /** diff --git a/src/model/ImageFields.js b/src/model/ImageFields.js index 91f84222..c7842046 100644 --- a/src/model/ImageFields.js +++ b/src/model/ImageFields.js @@ -12,12 +12,13 @@ */ import ApiClient from '../ApiClient'; +import FlavorRestrictions from './FlavorRestrictions'; import LableResonse from './LableResonse'; /** * The ImageFields model module. * @module model/ImageFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ImageFields { /** @@ -54,6 +55,9 @@ class ImageFields { if (data.hasOwnProperty('display_size')) { obj['display_size'] = ApiClient.convertToType(data['display_size'], 'String'); } + if (data.hasOwnProperty('flavor_restrictions')) { + obj['flavor_restrictions'] = ApiClient.convertToType(data['flavor_restrictions'], FlavorRestrictions); + } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } @@ -96,6 +100,10 @@ class ImageFields { if (data['display_size'] && !(typeof data['display_size'] === 'string' || data['display_size'] instanceof String)) { throw new Error("Expected the field `display_size` to be a primitive type in the JSON string but got " + data['display_size']); } + // validate the optional field `flavor_restrictions` + if (data['flavor_restrictions']) { // data not null + FlavorRestrictions.validateJSON(data['flavor_restrictions']); + } if (data['labels']) { // data not null // ensure the json data is an array if (!Array.isArray(data['labels'])) { @@ -141,6 +149,12 @@ ImageFields.prototype['description'] = undefined; */ ImageFields.prototype['display_size'] = undefined; +/** + * Flavor compatibility restrictions for this image + * @member {module:model/FlavorRestrictions} flavor_restrictions + */ +ImageFields.prototype['flavor_restrictions'] = undefined; + /** * @member {Number} id */ diff --git a/src/model/ImageGetResponse.js b/src/model/ImageGetResponse.js index b33e6c5c..9a3e0ddb 100644 --- a/src/model/ImageGetResponse.js +++ b/src/model/ImageGetResponse.js @@ -17,7 +17,7 @@ import ImageFields from './ImageFields'; /** * The ImageGetResponse model module. * @module model/ImageGetResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ImageGetResponse { /** diff --git a/src/model/ImageLogos.js b/src/model/ImageLogos.js deleted file mode 100644 index 47487a05..00000000 --- a/src/model/ImageLogos.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 LogoGetResponse from './LogoGetResponse'; - -/** - * The ImageLogos model module. - * @module model/ImageLogos - * @version v1.25.0-alpha - */ -class ImageLogos { - /** - * Constructs a new ImageLogos. - * @alias module:model/ImageLogos - */ - constructor() { - - ImageLogos.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 ImageLogos 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/ImageLogos} obj Optional instance to populate. - * @return {module:model/ImageLogos} The populated ImageLogos instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ImageLogos(); - - if (data.hasOwnProperty('logos')) { - obj['logos'] = ApiClient.convertToType(data['logos'], [LogoGetResponse]); - } - 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 ImageLogos. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to ImageLogos. - */ - static validateJSON(data) { - if (data['logos']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['logos'])) { - throw new Error("Expected the field `logos` to be an array in the JSON data but got " + data['logos']); - } - // validate the optional field `logos` (array) - for (const item of data['logos']) { - LogoGetResponse.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.} logos - */ -ImageLogos.prototype['logos'] = undefined; - -/** - * @member {String} message - */ -ImageLogos.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -ImageLogos.prototype['status'] = undefined; - - - - - - -export default ImageLogos; - diff --git a/src/model/Images.js b/src/model/Images.js index 8a66e76b..37fd5992 100644 --- a/src/model/Images.js +++ b/src/model/Images.js @@ -17,7 +17,7 @@ import ImageGetResponse from './ImageGetResponse'; /** * The Images model module. * @module model/Images - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class Images { /** diff --git a/src/model/ImportKeypairPayload.js b/src/model/ImportKeypairPayload.js index 16c5e915..bbda6c97 100644 --- a/src/model/ImportKeypairPayload.js +++ b/src/model/ImportKeypairPayload.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ImportKeypairPayload model module. * @module model/ImportKeypairPayload - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ImportKeypairPayload { /** diff --git a/src/model/ImportKeypairResponse.js b/src/model/ImportKeypairResponse.js index 10eccc9e..521b794e 100644 --- a/src/model/ImportKeypairResponse.js +++ b/src/model/ImportKeypairResponse.js @@ -17,7 +17,7 @@ import KeypairFields from './KeypairFields'; /** * The ImportKeypairResponse model module. * @module model/ImportKeypairResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ImportKeypairResponse { /** diff --git a/src/model/InfrahubResourceObjectResponse.js b/src/model/InfrahubResourceObjectResponse.js deleted file mode 100644 index 2bb892a5..00000000 --- a/src/model/InfrahubResourceObjectResponse.js +++ /dev/null @@ -1,206 +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 PricebookResourceObjectResponse from './PricebookResourceObjectResponse'; - -/** - * The InfrahubResourceObjectResponse model module. - * @module model/InfrahubResourceObjectResponse - * @version v1.25.0-alpha - */ -class InfrahubResourceObjectResponse { - /** - * Constructs a new InfrahubResourceObjectResponse. - * @alias module:model/InfrahubResourceObjectResponse - */ - constructor() { - - InfrahubResourceObjectResponse.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 InfrahubResourceObjectResponse 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/InfrahubResourceObjectResponse} obj Optional instance to populate. - * @return {module:model/InfrahubResourceObjectResponse} The populated InfrahubResourceObjectResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InfrahubResourceObjectResponse(); - - if (data.hasOwnProperty('actual_host_price')) { - obj['actual_host_price'] = ApiClient.convertToType(data['actual_host_price'], 'Number'); - } - if (data.hasOwnProperty('actual_price')) { - obj['actual_price'] = ApiClient.convertToType(data['actual_price'], 'Number'); - } - 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('host_price')) { - obj['host_price'] = ApiClient.convertToType(data['host_price'], 'Number'); - } - if (data.hasOwnProperty('infrahub_id')) { - obj['infrahub_id'] = ApiClient.convertToType(data['infrahub_id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('nexgen_actual_price')) { - obj['nexgen_actual_price'] = ApiClient.convertToType(data['nexgen_actual_price'], 'Number'); - } - if (data.hasOwnProperty('nexgen_price')) { - obj['nexgen_price'] = ApiClient.convertToType(data['nexgen_price'], 'Number'); - } - if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number'); - } - if (data.hasOwnProperty('resources')) { - obj['resources'] = ApiClient.convertToType(data['resources'], [PricebookResourceObjectResponse]); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InfrahubResourceObjectResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InfrahubResourceObjectResponse. - */ - 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']); - } - if (data['resources']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['resources'])) { - throw new Error("Expected the field `resources` to be an array in the JSON data but got " + data['resources']); - } - // validate the optional field `resources` (array) - for (const item of data['resources']) { - PricebookResourceObjectResponse.validateJSON(item); - }; - } - // 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['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 {Number} actual_host_price - */ -InfrahubResourceObjectResponse.prototype['actual_host_price'] = undefined; - -/** - * @member {Number} actual_price - */ -InfrahubResourceObjectResponse.prototype['actual_price'] = undefined; - -/** - * @member {Number} contract_id - */ -InfrahubResourceObjectResponse.prototype['contract_id'] = undefined; - -/** - * @member {String} host - */ -InfrahubResourceObjectResponse.prototype['host'] = undefined; - -/** - * @member {Number} host_price - */ -InfrahubResourceObjectResponse.prototype['host_price'] = undefined; - -/** - * @member {Number} infrahub_id - */ -InfrahubResourceObjectResponse.prototype['infrahub_id'] = undefined; - -/** - * @member {String} name - */ -InfrahubResourceObjectResponse.prototype['name'] = undefined; - -/** - * @member {Number} nexgen_actual_price - */ -InfrahubResourceObjectResponse.prototype['nexgen_actual_price'] = undefined; - -/** - * @member {Number} nexgen_price - */ -InfrahubResourceObjectResponse.prototype['nexgen_price'] = undefined; - -/** - * @member {Number} price - */ -InfrahubResourceObjectResponse.prototype['price'] = undefined; - -/** - * @member {Array.} resources - */ -InfrahubResourceObjectResponse.prototype['resources'] = undefined; - -/** - * @member {String} status - */ -InfrahubResourceObjectResponse.prototype['status'] = undefined; - -/** - * @member {String} type - */ -InfrahubResourceObjectResponse.prototype['type'] = undefined; - - - - - - -export default InfrahubResourceObjectResponse; - diff --git a/src/model/InfrahubResourceObjectResponseForCustomer.js b/src/model/InfrahubResourceObjectResponseForCustomer.js index 74768129..bbb669e8 100644 --- a/src/model/InfrahubResourceObjectResponseForCustomer.js +++ b/src/model/InfrahubResourceObjectResponseForCustomer.js @@ -17,7 +17,7 @@ import PricebookResourceObjectResponseForCustomer from './PricebookResourceObjec /** * The InfrahubResourceObjectResponseForCustomer model module. * @module model/InfrahubResourceObjectResponseForCustomer - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class InfrahubResourceObjectResponseForCustomer { /** diff --git a/src/model/InsertDiscountPlanFields.js b/src/model/InsertDiscountPlanFields.js deleted file mode 100644 index 9687654d..00000000 --- a/src/model/InsertDiscountPlanFields.js +++ /dev/null @@ -1,141 +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 CustomerFields from './CustomerFields'; -import DiscountResourceFields from './DiscountResourceFields'; - -/** - * The InsertDiscountPlanFields model module. - * @module model/InsertDiscountPlanFields - * @version v1.25.0-alpha - */ -class InsertDiscountPlanFields { - /** - * Constructs a new InsertDiscountPlanFields. - * @alias module:model/InsertDiscountPlanFields - */ - constructor() { - - InsertDiscountPlanFields.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 InsertDiscountPlanFields 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/InsertDiscountPlanFields} obj Optional instance to populate. - * @return {module:model/InsertDiscountPlanFields} The populated InsertDiscountPlanFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InsertDiscountPlanFields(); - - if (data.hasOwnProperty('customers')) { - obj['customers'] = ApiClient.convertToType(data['customers'], [CustomerFields]); - } - if (data.hasOwnProperty('discount_resources')) { - obj['discount_resources'] = ApiClient.convertToType(data['discount_resources'], [DiscountResourceFields]); - } - 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 InsertDiscountPlanFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InsertDiscountPlanFields. - */ - static validateJSON(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']) { - CustomerFields.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']) { - DiscountResourceFields.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; - } - - -} - - - -/** - * @member {Array.} customers - */ -InsertDiscountPlanFields.prototype['customers'] = undefined; - -/** - * @member {Array.} discount_resources - */ -InsertDiscountPlanFields.prototype['discount_resources'] = undefined; - -/** - * @member {String} discount_status - */ -InsertDiscountPlanFields.prototype['discount_status'] = undefined; - -/** - * @member {Date} end_date - */ -InsertDiscountPlanFields.prototype['end_date'] = undefined; - -/** - * @member {Date} start_date - */ -InsertDiscountPlanFields.prototype['start_date'] = undefined; - - - - - - -export default InsertDiscountPlanFields; - diff --git a/src/model/Instance.js b/src/model/Instance.js index 952cf853..ae2110eb 100644 --- a/src/model/Instance.js +++ b/src/model/Instance.js @@ -17,7 +17,7 @@ import InstanceFields from './InstanceFields'; /** * The Instance model module. * @module model/Instance - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class Instance { /** diff --git a/src/model/InstanceEnvironmentFields.js b/src/model/InstanceEnvironmentFields.js index 470190cc..bfb31a23 100644 --- a/src/model/InstanceEnvironmentFields.js +++ b/src/model/InstanceEnvironmentFields.js @@ -17,7 +17,7 @@ import EnvironmentFeatures from './EnvironmentFeatures'; /** * The InstanceEnvironmentFields model module. * @module model/InstanceEnvironmentFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class InstanceEnvironmentFields { /** diff --git a/src/model/InstanceEvents.js b/src/model/InstanceEvents.js index 8ab9b7b0..885315f4 100644 --- a/src/model/InstanceEvents.js +++ b/src/model/InstanceEvents.js @@ -17,7 +17,7 @@ import InstanceEventsFields from './InstanceEventsFields'; /** * The InstanceEvents model module. * @module model/InstanceEvents - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class InstanceEvents { /** diff --git a/src/model/InstanceEventsFields.js b/src/model/InstanceEventsFields.js index 9c6dba95..09ec7de4 100644 --- a/src/model/InstanceEventsFields.js +++ b/src/model/InstanceEventsFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InstanceEventsFields model module. * @module model/InstanceEventsFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class InstanceEventsFields { /** diff --git a/src/model/InstanceFields.js b/src/model/InstanceFields.js index 826d19d1..86587c7f 100644 --- a/src/model/InstanceFields.js +++ b/src/model/InstanceFields.js @@ -16,13 +16,13 @@ import InstanceEnvironmentFields from './InstanceEnvironmentFields'; import InstanceFlavorFields from './InstanceFlavorFields'; import InstanceImageFields from './InstanceImageFields'; import InstanceKeypairFields from './InstanceKeypairFields'; -import SecurityRulesFieldsforInstance from './SecurityRulesFieldsforInstance'; +import SecurityRulesFieldsForInstance from './SecurityRulesFieldsForInstance'; import VolumeAttachmentFields from './VolumeAttachmentFields'; /** * The InstanceFields model module. * @module model/InstanceFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class InstanceFields { /** @@ -65,6 +65,9 @@ class InstanceFields { if (data.hasOwnProperty('environment')) { obj['environment'] = InstanceEnvironmentFields.constructFromObject(data['environment']); } + if (data.hasOwnProperty('features')) { + obj['features'] = ApiClient.convertToType(data['features'], Object); + } if (data.hasOwnProperty('fixed_ip')) { obj['fixed_ip'] = ApiClient.convertToType(data['fixed_ip'], 'String'); } @@ -107,8 +110,11 @@ class InstanceFields { if (data.hasOwnProperty('power_state')) { obj['power_state'] = ApiClient.convertToType(data['power_state'], 'String'); } + if (data.hasOwnProperty('requires_public_ip')) { + obj['requires_public_ip'] = ApiClient.convertToType(data['requires_public_ip'], 'Boolean'); + } if (data.hasOwnProperty('security_rules')) { - obj['security_rules'] = ApiClient.convertToType(data['security_rules'], [SecurityRulesFieldsforInstance]); + obj['security_rules'] = ApiClient.convertToType(data['security_rules'], [SecurityRulesFieldsForInstance]); } if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'String'); @@ -188,7 +194,7 @@ class InstanceFields { } // validate the optional field `security_rules` (array) for (const item of data['security_rules']) { - SecurityRulesFieldsforInstance.validateJSON(item); + SecurityRulesFieldsForInstance.validateJSON(item); }; } // ensure the json data is a string @@ -238,6 +244,11 @@ InstanceFields.prototype['created_at'] = undefined; */ InstanceFields.prototype['environment'] = undefined; +/** + * @member {Object} features + */ +InstanceFields.prototype['features'] = undefined; + /** * @member {String} fixed_ip */ @@ -309,7 +320,12 @@ InstanceFields.prototype['port_randomization_status'] = undefined; InstanceFields.prototype['power_state'] = undefined; /** - * @member {Array.} security_rules + * @member {Boolean} requires_public_ip + */ +InstanceFields.prototype['requires_public_ip'] = undefined; + +/** + * @member {Array.} security_rules */ InstanceFields.prototype['security_rules'] = undefined; diff --git a/src/model/InstanceFlavorFields.js b/src/model/InstanceFlavorFields.js index b42c75be..b20eaabb 100644 --- a/src/model/InstanceFlavorFields.js +++ b/src/model/InstanceFlavorFields.js @@ -12,11 +12,12 @@ */ import ApiClient from '../ApiClient'; +import FlavorLabelFields from './FlavorLabelFields'; /** * The InstanceFlavorFields model module. * @module model/InstanceFlavorFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class InstanceFlavorFields { /** @@ -56,6 +57,9 @@ class InstanceFlavorFields { 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'); } @@ -65,6 +69,9 @@ class InstanceFlavorFields { if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } + if (data.hasOwnProperty('labels')) { + obj['labels'] = ApiClient.convertToType(data['labels'], [FlavorLabelFields]); + } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } @@ -85,6 +92,16 @@ class InstanceFlavorFields { 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']) { + FlavorLabelFields.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']); @@ -113,6 +130,11 @@ InstanceFlavorFields.prototype['disk'] = undefined; */ InstanceFlavorFields.prototype['ephemeral'] = undefined; +/** + * @member {Object} features + */ +InstanceFlavorFields.prototype['features'] = undefined; + /** * @member {String} gpu */ @@ -128,6 +150,11 @@ InstanceFlavorFields.prototype['gpu_count'] = undefined; */ InstanceFlavorFields.prototype['id'] = undefined; +/** + * @member {Array.} labels + */ +InstanceFlavorFields.prototype['labels'] = undefined; + /** * @member {String} name */ diff --git a/src/model/InstanceImageFields.js b/src/model/InstanceImageFields.js index 890f83d4..019169f5 100644 --- a/src/model/InstanceImageFields.js +++ b/src/model/InstanceImageFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InstanceImageFields model module. * @module model/InstanceImageFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class InstanceImageFields { /** diff --git a/src/model/InstanceKeypairFields.js b/src/model/InstanceKeypairFields.js index 4067ba70..35819e70 100644 --- a/src/model/InstanceKeypairFields.js +++ b/src/model/InstanceKeypairFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InstanceKeypairFields model module. * @module model/InstanceKeypairFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class InstanceKeypairFields { /** diff --git a/src/model/InstanceOverviewFields.js b/src/model/InstanceOverviewFields.js index c897a457..209cd1ff 100644 --- a/src/model/InstanceOverviewFields.js +++ b/src/model/InstanceOverviewFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InstanceOverviewFields model module. * @module model/InstanceOverviewFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class InstanceOverviewFields { /** diff --git a/src/model/InstanceResizePayload.js b/src/model/InstanceResizePayload.js index 3285410b..0ef55706 100644 --- a/src/model/InstanceResizePayload.js +++ b/src/model/InstanceResizePayload.js @@ -17,7 +17,7 @@ import FlavorObjectFields from './FlavorObjectFields'; /** * The InstanceResizePayload model module. * @module model/InstanceResizePayload - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class InstanceResizePayload { /** diff --git a/src/model/Instances.js b/src/model/Instances.js index cc269781..e0dd6107 100644 --- a/src/model/Instances.js +++ b/src/model/Instances.js @@ -17,7 +17,7 @@ import InstanceFields from './InstanceFields'; /** * The Instances model module. * @module model/Instances - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class Instances { /** diff --git a/src/model/InstancesSummaryFields.js b/src/model/InstancesSummaryFields.js deleted file mode 100644 index c4128f70..00000000 --- a/src/model/InstancesSummaryFields.js +++ /dev/null @@ -1,247 +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 InstancesSummaryFields model module. - * @module model/InstancesSummaryFields - * @version v1.25.0-alpha - */ -class InstancesSummaryFields { - /** - * Constructs a new InstancesSummaryFields. - * @alias module:model/InstancesSummaryFields - */ - constructor() { - - InstancesSummaryFields.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 InstancesSummaryFields 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/InstancesSummaryFields} obj Optional instance to populate. - * @return {module:model/InstancesSummaryFields} The populated InstancesSummaryFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InstancesSummaryFields(); - - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('environment')) { - obj['environment'] = ApiClient.convertToType(data['environment'], 'String'); - } - if (data.hasOwnProperty('environment_id')) { - obj['environment_id'] = ApiClient.convertToType(data['environment_id'], 'Number'); - } - if (data.hasOwnProperty('fixed_ip')) { - obj['fixed_ip'] = ApiClient.convertToType(data['fixed_ip'], 'String'); - } - if (data.hasOwnProperty('flavor')) { - obj['flavor'] = ApiClient.convertToType(data['flavor'], 'String'); - } - if (data.hasOwnProperty('flavor_id')) { - obj['flavor_id'] = ApiClient.convertToType(data['flavor_id'], 'Number'); - } - 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')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String'); - } - if (data.hasOwnProperty('image_id')) { - obj['image_id'] = ApiClient.convertToType(data['image_id'], 'Number'); - } - if (data.hasOwnProperty('keypair')) { - obj['keypair'] = ApiClient.convertToType(data['keypair'], 'String'); - } - if (data.hasOwnProperty('keypair_id')) { - obj['keypair_id'] = ApiClient.convertToType(data['keypair_id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - } - 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 InstancesSummaryFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InstancesSummaryFields. - */ - static validateJSON(data) { - // ensure the json data is a string - if (data['environment'] && !(typeof data['environment'] === 'string' || data['environment'] instanceof String)) { - throw new Error("Expected the field `environment` to be a primitive type in the JSON string but got " + data['environment']); - } - // 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['flavor'] && !(typeof data['flavor'] === 'string' || data['flavor'] instanceof String)) { - throw new Error("Expected the field `flavor` to be a primitive type in the JSON string but got " + data['flavor']); - } - // 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['image'] && !(typeof data['image'] === 'string' || data['image'] instanceof String)) { - throw new Error("Expected the field `image` to be a primitive type in the JSON string but got " + data['image']); - } - // ensure the json data is a string - if (data['keypair'] && !(typeof data['keypair'] === 'string' || data['keypair'] instanceof String)) { - throw new Error("Expected the field `keypair` to be a primitive type in the JSON string but got " + data['keypair']); - } - // 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 {Date} created_at - */ -InstancesSummaryFields.prototype['created_at'] = undefined; - -/** - * @member {String} environment - */ -InstancesSummaryFields.prototype['environment'] = undefined; - -/** - * @member {Number} environment_id - */ -InstancesSummaryFields.prototype['environment_id'] = undefined; - -/** - * @member {String} fixed_ip - */ -InstancesSummaryFields.prototype['fixed_ip'] = undefined; - -/** - * @member {String} flavor - */ -InstancesSummaryFields.prototype['flavor'] = undefined; - -/** - * @member {Number} flavor_id - */ -InstancesSummaryFields.prototype['flavor_id'] = undefined; - -/** - * @member {String} floating_ip - */ -InstancesSummaryFields.prototype['floating_ip'] = undefined; - -/** - * @member {String} floating_ip_status - */ -InstancesSummaryFields.prototype['floating_ip_status'] = undefined; - -/** - * @member {Number} id - */ -InstancesSummaryFields.prototype['id'] = undefined; - -/** - * @member {String} image - */ -InstancesSummaryFields.prototype['image'] = undefined; - -/** - * @member {Number} image_id - */ -InstancesSummaryFields.prototype['image_id'] = undefined; - -/** - * @member {String} keypair - */ -InstancesSummaryFields.prototype['keypair'] = undefined; - -/** - * @member {Number} keypair_id - */ -InstancesSummaryFields.prototype['keypair_id'] = undefined; - -/** - * @member {String} name - */ -InstancesSummaryFields.prototype['name'] = undefined; - -/** - * @member {Number} org_id - */ -InstancesSummaryFields.prototype['org_id'] = undefined; - -/** - * @member {String} status - */ -InstancesSummaryFields.prototype['status'] = undefined; - -/** - * @member {Date} updated_at - */ -InstancesSummaryFields.prototype['updated_at'] = undefined; - - - - - - -export default InstancesSummaryFields; - diff --git a/src/model/InternalEnvironmentFields.js b/src/model/InternalEnvironmentFields.js deleted file mode 100644 index 0c79ad10..00000000 --- a/src/model/InternalEnvironmentFields.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 InternalEnvironmentFields model module. - * @module model/InternalEnvironmentFields - * @version v1.25.0-alpha - */ -class InternalEnvironmentFields { - /** - * Constructs a new InternalEnvironmentFields. - * @alias module:model/InternalEnvironmentFields - */ - constructor() { - - InternalEnvironmentFields.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 InternalEnvironmentFields 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/InternalEnvironmentFields} obj Optional instance to populate. - * @return {module:model/InternalEnvironmentFields} The populated InternalEnvironmentFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalEnvironmentFields(); - - 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('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 InternalEnvironmentFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalEnvironmentFields. - */ - 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 {Date} created_at - */ -InternalEnvironmentFields.prototype['created_at'] = undefined; - -/** - * @member {Number} id - */ -InternalEnvironmentFields.prototype['id'] = undefined; - -/** - * @member {String} name - */ -InternalEnvironmentFields.prototype['name'] = undefined; - -/** - * @member {String} region - */ -InternalEnvironmentFields.prototype['region'] = undefined; - - - - - - -export default InternalEnvironmentFields; - diff --git a/src/model/InternalInstanceFields.js b/src/model/InternalInstanceFields.js deleted file mode 100644 index c433716e..00000000 --- a/src/model/InternalInstanceFields.js +++ /dev/null @@ -1,313 +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 InternalEnvironmentFields from './InternalEnvironmentFields'; -import InternalInstanceFlavorFields from './InternalInstanceFlavorFields'; -import InternalInstanceImageFields from './InternalInstanceImageFields'; -import InternalInstanceKeypairFields from './InternalInstanceKeypairFields'; -import InternalSecurityRulesFieldsForInstance from './InternalSecurityRulesFieldsForInstance'; -import InternalVolumeAttachmentFields from './InternalVolumeAttachmentFields'; - -/** - * The InternalInstanceFields model module. - * @module model/InternalInstanceFields - * @version v1.25.0-alpha - */ -class InternalInstanceFields { - /** - * Constructs a new InternalInstanceFields. - * @alias module:model/InternalInstanceFields - */ - constructor() { - - InternalInstanceFields.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 InternalInstanceFields 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/InternalInstanceFields} obj Optional instance to populate. - * @return {module:model/InternalInstanceFields} The populated InternalInstanceFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalInstanceFields(); - - if (data.hasOwnProperty('boot_source')) { - obj['boot_source'] = ApiClient.convertToType(data['boot_source'], 'String'); - } - if (data.hasOwnProperty('callback_url')) { - obj['callback_url'] = ApiClient.convertToType(data['callback_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('environment')) { - obj['environment'] = InternalEnvironmentFields.constructFromObject(data['environment']); - } - if (data.hasOwnProperty('fixed_ip')) { - obj['fixed_ip'] = ApiClient.convertToType(data['fixed_ip'], 'String'); - } - if (data.hasOwnProperty('flavor')) { - obj['flavor'] = InternalInstanceFlavorFields.constructFromObject(data['flavor']); - } - 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')) { - obj['image'] = InternalInstanceImageFields.constructFromObject(data['image']); - } - if (data.hasOwnProperty('keypair')) { - obj['keypair'] = InternalInstanceKeypairFields.constructFromObject(data['keypair']); - } - 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('power_state')) { - obj['power_state'] = ApiClient.convertToType(data['power_state'], 'String'); - } - if (data.hasOwnProperty('security_rules')) { - obj['security_rules'] = ApiClient.convertToType(data['security_rules'], [InternalSecurityRulesFieldsForInstance]); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('user_data')) { - obj['user_data'] = ApiClient.convertToType(data['user_data'], 'String'); - } - if (data.hasOwnProperty('vm_state')) { - obj['vm_state'] = ApiClient.convertToType(data['vm_state'], 'String'); - } - if (data.hasOwnProperty('volume_attachments')) { - obj['volume_attachments'] = ApiClient.convertToType(data['volume_attachments'], [InternalVolumeAttachmentFields]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InternalInstanceFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalInstanceFields. - */ - static validateJSON(data) { - // ensure the json data is a string - if (data['boot_source'] && !(typeof data['boot_source'] === 'string' || data['boot_source'] instanceof String)) { - throw new Error("Expected the field `boot_source` to be a primitive type in the JSON string but got " + data['boot_source']); - } - // ensure the json data is a string - if (data['callback_url'] && !(typeof data['callback_url'] === 'string' || data['callback_url'] instanceof String)) { - throw new Error("Expected the field `callback_url` to be a primitive type in the JSON string but got " + data['callback_url']); - } - // validate the optional field `environment` - if (data['environment']) { // data not null - InternalEnvironmentFields.validateJSON(data['environment']); - } - // 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']); - } - // validate the optional field `flavor` - if (data['flavor']) { // data not null - InternalInstanceFlavorFields.validateJSON(data['flavor']); - } - // 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']); - } - // validate the optional field `image` - if (data['image']) { // data not null - InternalInstanceImageFields.validateJSON(data['image']); - } - // validate the optional field `keypair` - if (data['keypair']) { // data not null - InternalInstanceKeypairFields.validateJSON(data['keypair']); - } - // 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['power_state'] && !(typeof data['power_state'] === 'string' || data['power_state'] instanceof String)) { - throw new Error("Expected the field `power_state` to be a primitive type in the JSON string but got " + data['power_state']); - } - if (data['security_rules']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['security_rules'])) { - throw new Error("Expected the field `security_rules` to be an array in the JSON data but got " + data['security_rules']); - } - // validate the optional field `security_rules` (array) - for (const item of data['security_rules']) { - InternalSecurityRulesFieldsForInstance.validateJSON(item); - }; - } - // 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['user_data'] && !(typeof data['user_data'] === 'string' || data['user_data'] instanceof String)) { - throw new Error("Expected the field `user_data` to be a primitive type in the JSON string but got " + data['user_data']); - } - // ensure the json data is a string - if (data['vm_state'] && !(typeof data['vm_state'] === 'string' || data['vm_state'] instanceof String)) { - throw new Error("Expected the field `vm_state` to be a primitive type in the JSON string but got " + data['vm_state']); - } - if (data['volume_attachments']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['volume_attachments'])) { - throw new Error("Expected the field `volume_attachments` to be an array in the JSON data but got " + data['volume_attachments']); - } - // validate the optional field `volume_attachments` (array) - for (const item of data['volume_attachments']) { - InternalVolumeAttachmentFields.validateJSON(item); - }; - } - - return true; - } - - -} - - - -/** - * @member {String} boot_source - */ -InternalInstanceFields.prototype['boot_source'] = undefined; - -/** - * @member {String} callback_url - */ -InternalInstanceFields.prototype['callback_url'] = undefined; - -/** - * @member {Date} created_at - */ -InternalInstanceFields.prototype['created_at'] = undefined; - -/** - * @member {module:model/InternalEnvironmentFields} environment - */ -InternalInstanceFields.prototype['environment'] = undefined; - -/** - * @member {String} fixed_ip - */ -InternalInstanceFields.prototype['fixed_ip'] = undefined; - -/** - * @member {module:model/InternalInstanceFlavorFields} flavor - */ -InternalInstanceFields.prototype['flavor'] = undefined; - -/** - * @member {String} floating_ip - */ -InternalInstanceFields.prototype['floating_ip'] = undefined; - -/** - * @member {String} floating_ip_status - */ -InternalInstanceFields.prototype['floating_ip_status'] = undefined; - -/** - * @member {Number} id - */ -InternalInstanceFields.prototype['id'] = undefined; - -/** - * @member {module:model/InternalInstanceImageFields} image - */ -InternalInstanceFields.prototype['image'] = undefined; - -/** - * @member {module:model/InternalInstanceKeypairFields} keypair - */ -InternalInstanceFields.prototype['keypair'] = undefined; - -/** - * @member {String} name - */ -InternalInstanceFields.prototype['name'] = undefined; - -/** - * @member {String} openstack_id - */ -InternalInstanceFields.prototype['openstack_id'] = undefined; - -/** - * @member {String} power_state - */ -InternalInstanceFields.prototype['power_state'] = undefined; - -/** - * @member {Array.} security_rules - */ -InternalInstanceFields.prototype['security_rules'] = undefined; - -/** - * @member {String} status - */ -InternalInstanceFields.prototype['status'] = undefined; - -/** - * @member {String} user_data - */ -InternalInstanceFields.prototype['user_data'] = undefined; - -/** - * @member {String} vm_state - */ -InternalInstanceFields.prototype['vm_state'] = undefined; - -/** - * @member {Array.} volume_attachments - */ -InternalInstanceFields.prototype['volume_attachments'] = undefined; - - - - - - -export default InternalInstanceFields; - diff --git a/src/model/InternalInstanceFlavorFields.js b/src/model/InternalInstanceFlavorFields.js deleted file mode 100644 index 88f2ef31..00000000 --- a/src/model/InternalInstanceFlavorFields.js +++ /dev/null @@ -1,159 +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 InternalInstanceFlavorFields model module. - * @module model/InternalInstanceFlavorFields - * @version v1.25.0-alpha - */ -class InternalInstanceFlavorFields { - /** - * Constructs a new InternalInstanceFlavorFields. - * @alias module:model/InternalInstanceFlavorFields - */ - constructor() { - - InternalInstanceFlavorFields.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 InternalInstanceFlavorFields 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/InternalInstanceFlavorFields} obj Optional instance to populate. - * @return {module:model/InternalInstanceFlavorFields} The populated InternalInstanceFlavorFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalInstanceFlavorFields(); - - if (data.hasOwnProperty('cpu')) { - obj['cpu'] = ApiClient.convertToType(data['cpu'], 'Number'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('disk')) { - obj['disk'] = ApiClient.convertToType(data['disk'], 'Number'); - } - 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('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('ram')) { - obj['ram'] = ApiClient.convertToType(data['ram'], 'Number'); - } - if (data.hasOwnProperty('region_name')) { - obj['region_name'] = ApiClient.convertToType(data['region_name'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InternalInstanceFlavorFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalInstanceFlavorFields. - */ - 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']); - } - // 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_name'] && !(typeof data['region_name'] === 'string' || data['region_name'] instanceof String)) { - throw new Error("Expected the field `region_name` to be a primitive type in the JSON string but got " + data['region_name']); - } - - return true; - } - - -} - - - -/** - * @member {Number} cpu - */ -InternalInstanceFlavorFields.prototype['cpu'] = undefined; - -/** - * @member {Date} created_at - */ -InternalInstanceFlavorFields.prototype['created_at'] = undefined; - -/** - * @member {Number} disk - */ -InternalInstanceFlavorFields.prototype['disk'] = undefined; - -/** - * @member {String} gpu - */ -InternalInstanceFlavorFields.prototype['gpu'] = undefined; - -/** - * @member {Number} gpu_count - */ -InternalInstanceFlavorFields.prototype['gpu_count'] = undefined; - -/** - * @member {Number} id - */ -InternalInstanceFlavorFields.prototype['id'] = undefined; - -/** - * @member {String} name - */ -InternalInstanceFlavorFields.prototype['name'] = undefined; - -/** - * @member {Number} ram - */ -InternalInstanceFlavorFields.prototype['ram'] = undefined; - -/** - * @member {String} region_name - */ -InternalInstanceFlavorFields.prototype['region_name'] = undefined; - - - - - - -export default InternalInstanceFlavorFields; - diff --git a/src/model/InternalInstanceImageFields.js b/src/model/InternalInstanceImageFields.js deleted file mode 100644 index 8c2cd17e..00000000 --- a/src/model/InternalInstanceImageFields.js +++ /dev/null @@ -1,131 +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 InternalInstanceImageFields model module. - * @module model/InternalInstanceImageFields - * @version v1.25.0-alpha - */ -class InternalInstanceImageFields { - /** - * Constructs a new InternalInstanceImageFields. - * @alias module:model/InternalInstanceImageFields - */ - constructor() { - - InternalInstanceImageFields.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 InternalInstanceImageFields 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/InternalInstanceImageFields} obj Optional instance to populate. - * @return {module:model/InternalInstanceImageFields} The populated InternalInstanceImageFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalInstanceImageFields(); - - 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('region_name')) { - obj['region_name'] = ApiClient.convertToType(data['region_name'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('version')) { - obj['version'] = ApiClient.convertToType(data['version'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InternalInstanceImageFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalInstanceImageFields. - */ - 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_name'] && !(typeof data['region_name'] === 'string' || data['region_name'] instanceof String)) { - throw new Error("Expected the field `region_name` to be a primitive type in the JSON string but got " + data['region_name']); - } - // 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']); - } - // 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 {Number} id - */ -InternalInstanceImageFields.prototype['id'] = undefined; - -/** - * @member {String} name - */ -InternalInstanceImageFields.prototype['name'] = undefined; - -/** - * @member {String} region_name - */ -InternalInstanceImageFields.prototype['region_name'] = undefined; - -/** - * @member {String} type - */ -InternalInstanceImageFields.prototype['type'] = undefined; - -/** - * @member {String} version - */ -InternalInstanceImageFields.prototype['version'] = undefined; - - - - - - -export default InternalInstanceImageFields; - diff --git a/src/model/InternalInstanceKeypairFields.js b/src/model/InternalInstanceKeypairFields.js deleted file mode 100644 index 20c952b3..00000000 --- a/src/model/InternalInstanceKeypairFields.js +++ /dev/null @@ -1,139 +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 InternalInstanceKeypairFields model module. - * @module model/InternalInstanceKeypairFields - * @version v1.25.0-alpha - */ -class InternalInstanceKeypairFields { - /** - * Constructs a new InternalInstanceKeypairFields. - * @alias module:model/InternalInstanceKeypairFields - */ - constructor() { - - InternalInstanceKeypairFields.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 InternalInstanceKeypairFields 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/InternalInstanceKeypairFields} obj Optional instance to populate. - * @return {module:model/InternalInstanceKeypairFields} The populated InternalInstanceKeypairFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalInstanceKeypairFields(); - - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('environment')) { - obj['environment'] = ApiClient.convertToType(data['environment'], 'String'); - } - if (data.hasOwnProperty('fingerprint')) { - obj['fingerprint'] = ApiClient.convertToType(data['fingerprint'], '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('public_key')) { - obj['public_key'] = ApiClient.convertToType(data['public_key'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InternalInstanceKeypairFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalInstanceKeypairFields. - */ - static validateJSON(data) { - // ensure the json data is a string - if (data['environment'] && !(typeof data['environment'] === 'string' || data['environment'] instanceof String)) { - throw new Error("Expected the field `environment` to be a primitive type in the JSON string but got " + data['environment']); - } - // ensure the json data is a string - if (data['fingerprint'] && !(typeof data['fingerprint'] === 'string' || data['fingerprint'] instanceof String)) { - throw new Error("Expected the field `fingerprint` to be a primitive type in the JSON string but got " + data['fingerprint']); - } - // 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['public_key'] && !(typeof data['public_key'] === 'string' || data['public_key'] instanceof String)) { - throw new Error("Expected the field `public_key` to be a primitive type in the JSON string but got " + data['public_key']); - } - - return true; - } - - -} - - - -/** - * @member {Date} created_at - */ -InternalInstanceKeypairFields.prototype['created_at'] = undefined; - -/** - * @member {String} environment - */ -InternalInstanceKeypairFields.prototype['environment'] = undefined; - -/** - * @member {String} fingerprint - */ -InternalInstanceKeypairFields.prototype['fingerprint'] = undefined; - -/** - * @member {Number} id - */ -InternalInstanceKeypairFields.prototype['id'] = undefined; - -/** - * @member {String} name - */ -InternalInstanceKeypairFields.prototype['name'] = undefined; - -/** - * @member {String} public_key - */ -InternalInstanceKeypairFields.prototype['public_key'] = undefined; - - - - - - -export default InternalInstanceKeypairFields; - diff --git a/src/model/InternalInstancesResponse.js b/src/model/InternalInstancesResponse.js deleted file mode 100644 index 778f6e25..00000000 --- a/src/model/InternalInstancesResponse.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 InternalInstanceFields from './InternalInstanceFields'; - -/** - * The InternalInstancesResponse model module. - * @module model/InternalInstancesResponse - * @version v1.25.0-alpha - */ -class InternalInstancesResponse { - /** - * Constructs a new InternalInstancesResponse. - * @alias module:model/InternalInstancesResponse - */ - constructor() { - - InternalInstancesResponse.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 InternalInstancesResponse 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/InternalInstancesResponse} obj Optional instance to populate. - * @return {module:model/InternalInstancesResponse} The populated InternalInstancesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalInstancesResponse(); - - if (data.hasOwnProperty('instances')) { - obj['instances'] = ApiClient.convertToType(data['instances'], [InternalInstanceFields]); - } - 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 InternalInstancesResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalInstancesResponse. - */ - 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']) { - InternalInstanceFields.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.} instances - */ -InternalInstancesResponse.prototype['instances'] = undefined; - -/** - * @member {String} message - */ -InternalInstancesResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -InternalInstancesResponse.prototype['status'] = undefined; - - - - - - -export default InternalInstancesResponse; - diff --git a/src/model/InternalSecurityRulesFieldsForInstance.js b/src/model/InternalSecurityRulesFieldsForInstance.js deleted file mode 100644 index 74c6a944..00000000 --- a/src/model/InternalSecurityRulesFieldsForInstance.js +++ /dev/null @@ -1,167 +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 InternalSecurityRulesFieldsForInstance model module. - * @module model/InternalSecurityRulesFieldsForInstance - * @version v1.25.0-alpha - */ -class InternalSecurityRulesFieldsForInstance { - /** - * Constructs a new InternalSecurityRulesFieldsForInstance. - * @alias module:model/InternalSecurityRulesFieldsForInstance - */ - constructor() { - - InternalSecurityRulesFieldsForInstance.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 InternalSecurityRulesFieldsForInstance 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/InternalSecurityRulesFieldsForInstance} obj Optional instance to populate. - * @return {module:model/InternalSecurityRulesFieldsForInstance} The populated InternalSecurityRulesFieldsForInstance instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalSecurityRulesFieldsForInstance(); - - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('direction')) { - obj['direction'] = ApiClient.convertToType(data['direction'], 'String'); - } - if (data.hasOwnProperty('ethertype')) { - obj['ethertype'] = ApiClient.convertToType(data['ethertype'], 'String'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('port_range_max')) { - obj['port_range_max'] = ApiClient.convertToType(data['port_range_max'], 'Number'); - } - if (data.hasOwnProperty('port_range_min')) { - obj['port_range_min'] = ApiClient.convertToType(data['port_range_min'], 'Number'); - } - if (data.hasOwnProperty('protocol')) { - obj['protocol'] = ApiClient.convertToType(data['protocol'], 'String'); - } - if (data.hasOwnProperty('remote_ip_prefix')) { - obj['remote_ip_prefix'] = ApiClient.convertToType(data['remote_ip_prefix'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InternalSecurityRulesFieldsForInstance. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalSecurityRulesFieldsForInstance. - */ - static validateJSON(data) { - // ensure the json data is a string - if (data['direction'] && !(typeof data['direction'] === 'string' || data['direction'] instanceof String)) { - throw new Error("Expected the field `direction` to be a primitive type in the JSON string but got " + data['direction']); - } - // ensure the json data is a string - if (data['ethertype'] && !(typeof data['ethertype'] === 'string' || data['ethertype'] instanceof String)) { - throw new Error("Expected the field `ethertype` to be a primitive type in the JSON string but got " + data['ethertype']); - } - // ensure the json data is a string - if (data['protocol'] && !(typeof data['protocol'] === 'string' || data['protocol'] instanceof String)) { - throw new Error("Expected the field `protocol` to be a primitive type in the JSON string but got " + data['protocol']); - } - // ensure the json data is a string - if (data['remote_ip_prefix'] && !(typeof data['remote_ip_prefix'] === 'string' || data['remote_ip_prefix'] instanceof String)) { - throw new Error("Expected the field `remote_ip_prefix` to be a primitive type in the JSON string but got " + data['remote_ip_prefix']); - } - // 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 {Date} created_at - */ -InternalSecurityRulesFieldsForInstance.prototype['created_at'] = undefined; - -/** - * @member {String} direction - */ -InternalSecurityRulesFieldsForInstance.prototype['direction'] = undefined; - -/** - * @member {String} ethertype - */ -InternalSecurityRulesFieldsForInstance.prototype['ethertype'] = undefined; - -/** - * @member {Number} id - */ -InternalSecurityRulesFieldsForInstance.prototype['id'] = undefined; - -/** - * @member {Number} port_range_max - */ -InternalSecurityRulesFieldsForInstance.prototype['port_range_max'] = undefined; - -/** - * @member {Number} port_range_min - */ -InternalSecurityRulesFieldsForInstance.prototype['port_range_min'] = undefined; - -/** - * @member {String} protocol - */ -InternalSecurityRulesFieldsForInstance.prototype['protocol'] = undefined; - -/** - * @member {String} remote_ip_prefix - */ -InternalSecurityRulesFieldsForInstance.prototype['remote_ip_prefix'] = undefined; - -/** - * @member {String} status - */ -InternalSecurityRulesFieldsForInstance.prototype['status'] = undefined; - - - - - - -export default InternalSecurityRulesFieldsForInstance; - diff --git a/src/model/InternalVolumeAttachmentFields.js b/src/model/InternalVolumeAttachmentFields.js deleted file mode 100644 index 4f426d41..00000000 --- a/src/model/InternalVolumeAttachmentFields.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'; -import InternalVolumeFields from './InternalVolumeFields'; - -/** - * The InternalVolumeAttachmentFields model module. - * @module model/InternalVolumeAttachmentFields - * @version v1.25.0-alpha - */ -class InternalVolumeAttachmentFields { - /** - * Constructs a new InternalVolumeAttachmentFields. - * @alias module:model/InternalVolumeAttachmentFields - */ - constructor() { - - InternalVolumeAttachmentFields.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 InternalVolumeAttachmentFields 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/InternalVolumeAttachmentFields} obj Optional instance to populate. - * @return {module:model/InternalVolumeAttachmentFields} The populated InternalVolumeAttachmentFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalVolumeAttachmentFields(); - - 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('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('volume')) { - obj['volume'] = InternalVolumeFields.constructFromObject(data['volume']); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InternalVolumeAttachmentFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalVolumeAttachmentFields. - */ - 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']); - } - // validate the optional field `volume` - if (data['volume']) { // data not null - InternalVolumeFields.validateJSON(data['volume']); - } - - return true; - } - - -} - - - -/** - * @member {Date} created_at - */ -InternalVolumeAttachmentFields.prototype['created_at'] = undefined; - -/** - * @member {String} device - */ -InternalVolumeAttachmentFields.prototype['device'] = undefined; - -/** - * @member {String} status - */ -InternalVolumeAttachmentFields.prototype['status'] = undefined; - -/** - * @member {module:model/InternalVolumeFields} volume - */ -InternalVolumeAttachmentFields.prototype['volume'] = undefined; - - - - - - -export default InternalVolumeAttachmentFields; - diff --git a/src/model/InternalVolumeFields.js b/src/model/InternalVolumeFields.js deleted file mode 100644 index 03763c4c..00000000 --- a/src/model/InternalVolumeFields.js +++ /dev/null @@ -1,127 +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 InternalVolumeFields model module. - * @module model/InternalVolumeFields - * @version v1.25.0-alpha - */ -class InternalVolumeFields { - /** - * Constructs a new InternalVolumeFields. - * @alias module:model/InternalVolumeFields - */ - constructor() { - - InternalVolumeFields.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 InternalVolumeFields 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/InternalVolumeFields} obj Optional instance to populate. - * @return {module:model/InternalVolumeFields} The populated InternalVolumeFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalVolumeFields(); - - 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('size')) { - obj['size'] = ApiClient.convertToType(data['size'], 'Number'); - } - if (data.hasOwnProperty('volume_type')) { - obj['volume_type'] = ApiClient.convertToType(data['volume_type'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InternalVolumeFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalVolumeFields. - */ - 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['volume_type'] && !(typeof data['volume_type'] === 'string' || data['volume_type'] instanceof String)) { - throw new Error("Expected the field `volume_type` to be a primitive type in the JSON string but got " + data['volume_type']); - } - - return true; - } - - -} - - - -/** - * @member {String} description - */ -InternalVolumeFields.prototype['description'] = undefined; - -/** - * @member {Number} id - */ -InternalVolumeFields.prototype['id'] = undefined; - -/** - * @member {String} name - */ -InternalVolumeFields.prototype['name'] = undefined; - -/** - * @member {Number} size - */ -InternalVolumeFields.prototype['size'] = undefined; - -/** - * @member {String} volume_type - */ -InternalVolumeFields.prototype['volume_type'] = undefined; - - - - - - -export default InternalVolumeFields; - diff --git a/src/model/InternalVolumesResponse.js b/src/model/InternalVolumesResponse.js deleted file mode 100644 index 102d47aa..00000000 --- a/src/model/InternalVolumesResponse.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 InternalVolumeFields from './InternalVolumeFields'; - -/** - * The InternalVolumesResponse model module. - * @module model/InternalVolumesResponse - * @version v1.25.0-alpha - */ -class InternalVolumesResponse { - /** - * Constructs a new InternalVolumesResponse. - * @alias module:model/InternalVolumesResponse - */ - constructor() { - - InternalVolumesResponse.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 InternalVolumesResponse 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/InternalVolumesResponse} obj Optional instance to populate. - * @return {module:model/InternalVolumesResponse} The populated InternalVolumesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InternalVolumesResponse(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('volumes')) { - obj['volumes'] = ApiClient.convertToType(data['volumes'], [InternalVolumeFields]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to InternalVolumesResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to InternalVolumesResponse. - */ - 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['volumes']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['volumes'])) { - throw new Error("Expected the field `volumes` to be an array in the JSON data but got " + data['volumes']); - } - // validate the optional field `volumes` (array) - for (const item of data['volumes']) { - InternalVolumeFields.validateJSON(item); - }; - } - - return true; - } - - -} - - - -/** - * @member {String} message - */ -InternalVolumesResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -InternalVolumesResponse.prototype['status'] = undefined; - -/** - * @member {Array.} volumes - */ -InternalVolumesResponse.prototype['volumes'] = undefined; - - - - - - -export default InternalVolumesResponse; - diff --git a/src/model/InviteFields.js b/src/model/InviteFields.js index b06409ab..ecb0d28e 100644 --- a/src/model/InviteFields.js +++ b/src/model/InviteFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InviteFields model module. * @module model/InviteFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class InviteFields { /** diff --git a/src/model/InviteUserPayload.js b/src/model/InviteUserPayload.js index bc734c4c..f5f8eb35 100644 --- a/src/model/InviteUserPayload.js +++ b/src/model/InviteUserPayload.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InviteUserPayload model module. * @module model/InviteUserPayload - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class InviteUserPayload { /** diff --git a/src/model/InviteUserResponseModel.js b/src/model/InviteUserResponseModel.js index e2f9697c..5fdfffa4 100644 --- a/src/model/InviteUserResponseModel.js +++ b/src/model/InviteUserResponseModel.js @@ -17,7 +17,7 @@ import InviteFields from './InviteFields'; /** * The InviteUserResponseModel model module. * @module model/InviteUserResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class InviteUserResponseModel { /** diff --git a/src/model/KeypairEnvironmentFeatures.js b/src/model/KeypairEnvironmentFeatures.js new file mode 100644 index 00000000..b516e723 --- /dev/null +++ b/src/model/KeypairEnvironmentFeatures.js @@ -0,0 +1,122 @@ +/** + * 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 KeypairEnvironmentFeatures model module. + * @module model/KeypairEnvironmentFeatures + * @version v1.51.1-alpha + */ +class KeypairEnvironmentFeatures { + /** + * Constructs a new KeypairEnvironmentFeatures. + * @alias module:model/KeypairEnvironmentFeatures + */ + constructor() { + + KeypairEnvironmentFeatures.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 KeypairEnvironmentFeatures 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/KeypairEnvironmentFeatures} obj Optional instance to populate. + * @return {module:model/KeypairEnvironmentFeatures} The populated KeypairEnvironmentFeatures instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new KeypairEnvironmentFeatures(); + + 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'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to KeypairEnvironmentFeatures. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to KeypairEnvironmentFeatures. + */ + 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; + } + + +} + + + +/** + * @member {module:model/KeypairEnvironmentFeatures.GreenStatusEnum} green_status + */ +KeypairEnvironmentFeatures.prototype['green_status'] = undefined; + +/** + * @member {Boolean} network_optimised + */ +KeypairEnvironmentFeatures.prototype['network_optimised'] = undefined; + + + + + +/** + * Allowed values for the green_status property. + * @enum {String} + * @readonly + */ +KeypairEnvironmentFeatures['GreenStatusEnum'] = { + + /** + * value: "GREEN" + * @const + */ + "GREEN": "GREEN", + + /** + * value: "PARTIALLY_GREEN" + * @const + */ + "PARTIALLY_GREEN": "PARTIALLY_GREEN", + + /** + * value: "NOT_GREEN" + * @const + */ + "NOT_GREEN": "NOT_GREEN" +}; + + + +export default KeypairEnvironmentFeatures; + diff --git a/src/model/KeypairEnvironmentFields.js b/src/model/KeypairEnvironmentFields.js new file mode 100644 index 00000000..88526181 --- /dev/null +++ b/src/model/KeypairEnvironmentFields.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'; +import KeypairEnvironmentFeatures from './KeypairEnvironmentFeatures'; + +/** + * The KeypairEnvironmentFields model module. + * @module model/KeypairEnvironmentFields + * @version v1.51.1-alpha + */ +class KeypairEnvironmentFields { + /** + * Constructs a new KeypairEnvironmentFields. + * @alias module:model/KeypairEnvironmentFields + */ + constructor() { + + KeypairEnvironmentFields.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 KeypairEnvironmentFields 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/KeypairEnvironmentFields} obj Optional instance to populate. + * @return {module:model/KeypairEnvironmentFields} The populated KeypairEnvironmentFields instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new KeypairEnvironmentFields(); + + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); + } + if (data.hasOwnProperty('features')) { + obj['features'] = KeypairEnvironmentFeatures.constructFromObject(data['features']); + } + 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('region')) { + obj['region'] = ApiClient.convertToType(data['region'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to KeypairEnvironmentFields. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to KeypairEnvironmentFields. + */ + static validateJSON(data) { + // validate the optional field `features` + if (data['features']) { // data not null + KeypairEnvironmentFeatures.validateJSON(data['features']); + } + // 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 {Date} created_at + */ +KeypairEnvironmentFields.prototype['created_at'] = undefined; + +/** + * @member {module:model/KeypairEnvironmentFeatures} features + */ +KeypairEnvironmentFields.prototype['features'] = undefined; + +/** + * @member {Number} id + */ +KeypairEnvironmentFields.prototype['id'] = undefined; + +/** + * @member {String} name + */ +KeypairEnvironmentFields.prototype['name'] = undefined; + +/** + * @member {String} region + */ +KeypairEnvironmentFields.prototype['region'] = undefined; + + + + + + +export default KeypairEnvironmentFields; + diff --git a/src/model/KeypairFields.js b/src/model/KeypairFields.js index 95bc4fb7..3f21141b 100644 --- a/src/model/KeypairFields.js +++ b/src/model/KeypairFields.js @@ -12,11 +12,12 @@ */ import ApiClient from '../ApiClient'; +import KeypairEnvironmentFields from './KeypairEnvironmentFields'; /** * The KeypairFields model module. * @module model/KeypairFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class KeypairFields { /** @@ -51,7 +52,7 @@ class KeypairFields { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('environment')) { - obj['environment'] = ApiClient.convertToType(data['environment'], 'String'); + obj['environment'] = KeypairEnvironmentFields.constructFromObject(data['environment']); } if (data.hasOwnProperty('fingerprint')) { obj['fingerprint'] = ApiClient.convertToType(data['fingerprint'], 'String'); @@ -75,9 +76,9 @@ class KeypairFields { * @return {boolean} to indicate whether the JSON data is valid with respect to KeypairFields. */ static validateJSON(data) { - // ensure the json data is a string - if (data['environment'] && !(typeof data['environment'] === 'string' || data['environment'] instanceof String)) { - throw new Error("Expected the field `environment` to be a primitive type in the JSON string but got " + data['environment']); + // validate the optional field `environment` + if (data['environment']) { // data not null + KeypairEnvironmentFields.validateJSON(data['environment']); } // ensure the json data is a string if (data['fingerprint'] && !(typeof data['fingerprint'] === 'string' || data['fingerprint'] instanceof String)) { @@ -106,7 +107,7 @@ class KeypairFields { KeypairFields.prototype['created_at'] = undefined; /** - * @member {String} environment + * @member {module:model/KeypairEnvironmentFields} environment */ KeypairFields.prototype['environment'] = undefined; diff --git a/src/model/Keypairs.js b/src/model/Keypairs.js index 53d3dfd6..6d197e91 100644 --- a/src/model/Keypairs.js +++ b/src/model/Keypairs.js @@ -17,7 +17,7 @@ import KeypairFields from './KeypairFields'; /** * The Keypairs model module. * @module model/Keypairs - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class Keypairs { /** diff --git a/src/model/LableResonse.js b/src/model/LableResonse.js index 6bfed105..1b436df6 100644 --- a/src/model/LableResonse.js +++ b/src/model/LableResonse.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The LableResonse model module. * @module model/LableResonse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class LableResonse { /** diff --git a/src/model/LastDayCostFields.js b/src/model/LastDayCostFields.js new file mode 100644 index 00000000..826b9978 --- /dev/null +++ b/src/model/LastDayCostFields.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 LastDayCostFields model module. + * @module model/LastDayCostFields + * @version v1.51.1-alpha + */ +class LastDayCostFields { + /** + * Constructs a new LastDayCostFields. + * @alias module:model/LastDayCostFields + */ + constructor() { + + LastDayCostFields.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 LastDayCostFields 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/LastDayCostFields} obj Optional instance to populate. + * @return {module:model/LastDayCostFields} The populated LastDayCostFields instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LastDayCostFields(); + + if (data.hasOwnProperty('clusters_cost')) { + obj['clusters_cost'] = ApiClient.convertToType(data['clusters_cost'], 'Number'); + } + if (data.hasOwnProperty('instances_cost')) { + obj['instances_cost'] = ApiClient.convertToType(data['instances_cost'], 'Number'); + } + if (data.hasOwnProperty('total_cost')) { + obj['total_cost'] = ApiClient.convertToType(data['total_cost'], 'Number'); + } + if (data.hasOwnProperty('volumes_cost')) { + obj['volumes_cost'] = ApiClient.convertToType(data['volumes_cost'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to LastDayCostFields. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to LastDayCostFields. + */ + static validateJSON(data) { + + return true; + } + + +} + + + +/** + * @member {Number} clusters_cost + */ +LastDayCostFields.prototype['clusters_cost'] = undefined; + +/** + * @member {Number} instances_cost + */ +LastDayCostFields.prototype['instances_cost'] = undefined; + +/** + * @member {Number} total_cost + */ +LastDayCostFields.prototype['total_cost'] = undefined; + +/** + * @member {Number} volumes_cost + */ +LastDayCostFields.prototype['volumes_cost'] = undefined; + + + + + + +export default LastDayCostFields; + diff --git a/src/model/LastDayCostResponse.js b/src/model/LastDayCostResponse.js new file mode 100644 index 00000000..31b3f3e4 --- /dev/null +++ b/src/model/LastDayCostResponse.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 LastDayCostFields from './LastDayCostFields'; + +/** + * The LastDayCostResponse model module. + * @module model/LastDayCostResponse + * @version v1.51.1-alpha + */ +class LastDayCostResponse { + /** + * Constructs a new LastDayCostResponse. + * @alias module:model/LastDayCostResponse + */ + constructor() { + + LastDayCostResponse.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 LastDayCostResponse 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/LastDayCostResponse} obj Optional instance to populate. + * @return {module:model/LastDayCostResponse} The populated LastDayCostResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LastDayCostResponse(); + + if (data.hasOwnProperty('data')) { + obj['data'] = LastDayCostFields.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 LastDayCostResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to LastDayCostResponse. + */ + static validateJSON(data) { + // validate the optional field `data` + if (data['data']) { // data not null + LastDayCostFields.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/LastDayCostFields} data + */ +LastDayCostResponse.prototype['data'] = undefined; + +/** + * @member {String} message + */ +LastDayCostResponse.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +LastDayCostResponse.prototype['status'] = undefined; + + + + + + +export default LastDayCostResponse; + diff --git a/src/model/Lastdaycostfields.js b/src/model/Lastdaycostfields.js deleted file mode 100644 index 853ed870..00000000 --- a/src/model/Lastdaycostfields.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 Lastdaycostfields model module. - * @module model/Lastdaycostfields - * @version v1.25.0-alpha - */ -class Lastdaycostfields { - /** - * Constructs a new Lastdaycostfields. - * @alias module:model/Lastdaycostfields - */ - constructor() { - - Lastdaycostfields.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 Lastdaycostfields 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/Lastdaycostfields} obj Optional instance to populate. - * @return {module:model/Lastdaycostfields} The populated Lastdaycostfields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Lastdaycostfields(); - - if (data.hasOwnProperty('clusters_cost')) { - obj['clusters_cost'] = ApiClient.convertToType(data['clusters_cost'], 'Number'); - } - if (data.hasOwnProperty('instances_cost')) { - obj['instances_cost'] = ApiClient.convertToType(data['instances_cost'], 'Number'); - } - if (data.hasOwnProperty('total_cost')) { - obj['total_cost'] = ApiClient.convertToType(data['total_cost'], 'Number'); - } - if (data.hasOwnProperty('volumes_cost')) { - obj['volumes_cost'] = ApiClient.convertToType(data['volumes_cost'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to Lastdaycostfields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Lastdaycostfields. - */ - static validateJSON(data) { - - return true; - } - - -} - - - -/** - * @member {Number} clusters_cost - */ -Lastdaycostfields.prototype['clusters_cost'] = undefined; - -/** - * @member {Number} instances_cost - */ -Lastdaycostfields.prototype['instances_cost'] = undefined; - -/** - * @member {Number} total_cost - */ -Lastdaycostfields.prototype['total_cost'] = undefined; - -/** - * @member {Number} volumes_cost - */ -Lastdaycostfields.prototype['volumes_cost'] = undefined; - - - - - - -export default Lastdaycostfields; - diff --git a/src/model/Lastdaycostresponse.js b/src/model/Lastdaycostresponse.js deleted file mode 100644 index c060c086..00000000 --- a/src/model/Lastdaycostresponse.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 Lastdaycostfields from './Lastdaycostfields'; - -/** - * The Lastdaycostresponse model module. - * @module model/Lastdaycostresponse - * @version v1.25.0-alpha - */ -class Lastdaycostresponse { - /** - * Constructs a new Lastdaycostresponse. - * @alias module:model/Lastdaycostresponse - */ - constructor() { - - Lastdaycostresponse.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 Lastdaycostresponse 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/Lastdaycostresponse} obj Optional instance to populate. - * @return {module:model/Lastdaycostresponse} The populated Lastdaycostresponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Lastdaycostresponse(); - - if (data.hasOwnProperty('data')) { - obj['data'] = Lastdaycostfields.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 Lastdaycostresponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Lastdaycostresponse. - */ - static validateJSON(data) { - // validate the optional field `data` - if (data['data']) { // data not null - Lastdaycostfields.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/Lastdaycostfields} data - */ -Lastdaycostresponse.prototype['data'] = undefined; - -/** - * @member {String} message - */ -Lastdaycostresponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -Lastdaycostresponse.prototype['status'] = undefined; - - - - - - -export default Lastdaycostresponse; - diff --git a/src/model/LogoGetResponse.js b/src/model/LogoGetResponse.js deleted file mode 100644 index 770f0305..00000000 --- a/src/model/LogoGetResponse.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 LogoGetResponse model module. - * @module model/LogoGetResponse - * @version v1.25.0-alpha - */ -class LogoGetResponse { - /** - * Constructs a new LogoGetResponse. - * @alias module:model/LogoGetResponse - */ - constructor() { - - LogoGetResponse.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 LogoGetResponse 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/LogoGetResponse} obj Optional instance to populate. - * @return {module:model/LogoGetResponse} The populated LogoGetResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LogoGetResponse(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to LogoGetResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to LogoGetResponse. - */ - static validateJSON(data) { - // 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']); - } - // ensure the json data is a string - if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) { - throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']); - } - - return true; - } - - -} - - - -/** - * @member {Number} id - */ -LogoGetResponse.prototype['id'] = undefined; - -/** - * @member {String} type - */ -LogoGetResponse.prototype['type'] = undefined; - -/** - * @member {String} url - */ -LogoGetResponse.prototype['url'] = undefined; - - - - - - -export default LogoGetResponse; - diff --git a/src/model/Logos.js b/src/model/Logos.js new file mode 100644 index 00000000..4259ab22 --- /dev/null +++ b/src/model/Logos.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 Logos model module. + * @module model/Logos + * @version v1.51.1-alpha + */ +class Logos { + /** + * Constructs a new Logos. + * @alias module:model/Logos + */ + constructor() { + + Logos.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 Logos 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/Logos} obj Optional instance to populate. + * @return {module:model/Logos} The populated Logos instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Logos(); + + if (data.hasOwnProperty('dark')) { + obj['dark'] = ApiClient.convertToType(data['dark'], 'String'); + } + if (data.hasOwnProperty('email')) { + obj['email'] = ApiClient.convertToType(data['email'], 'String'); + } + if (data.hasOwnProperty('favicon')) { + obj['favicon'] = ApiClient.convertToType(data['favicon'], 'String'); + } + if (data.hasOwnProperty('light')) { + obj['light'] = ApiClient.convertToType(data['light'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to Logos. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to Logos. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['dark'] && !(typeof data['dark'] === 'string' || data['dark'] instanceof String)) { + throw new Error("Expected the field `dark` to be a primitive type in the JSON string but got " + data['dark']); + } + // ensure the json data is a string + if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) { + throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']); + } + // ensure the json data is a string + if (data['favicon'] && !(typeof data['favicon'] === 'string' || data['favicon'] instanceof String)) { + throw new Error("Expected the field `favicon` to be a primitive type in the JSON string but got " + data['favicon']); + } + // ensure the json data is a string + if (data['light'] && !(typeof data['light'] === 'string' || data['light'] instanceof String)) { + throw new Error("Expected the field `light` to be a primitive type in the JSON string but got " + data['light']); + } + + return true; + } + + +} + + + +/** + * @member {String} dark + */ +Logos.prototype['dark'] = undefined; + +/** + * @member {String} email + */ +Logos.prototype['email'] = undefined; + +/** + * @member {String} favicon + */ +Logos.prototype['favicon'] = undefined; + +/** + * @member {String} light + */ +Logos.prototype['light'] = undefined; + + + + + + +export default Logos; + diff --git a/src/model/LogoutPayload.js b/src/model/LogoutPayload.js deleted file mode 100644 index 149b5507..00000000 --- a/src/model/LogoutPayload.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 LogoutPayload model module. - * @module model/LogoutPayload - * @version v1.25.0-alpha - */ -class LogoutPayload { - /** - * Constructs a new LogoutPayload. - * @alias module:model/LogoutPayload - * @param refreshToken {String} - */ - constructor(refreshToken) { - - LogoutPayload.initialize(this, refreshToken); - } - - /** - * 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, refreshToken) { - obj['refresh_token'] = refreshToken; - } - - /** - * Constructs a LogoutPayload 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/LogoutPayload} obj Optional instance to populate. - * @return {module:model/LogoutPayload} The populated LogoutPayload instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LogoutPayload(); - - if (data.hasOwnProperty('refresh_token')) { - obj['refresh_token'] = ApiClient.convertToType(data['refresh_token'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to LogoutPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to LogoutPayload. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of LogoutPayload.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['refresh_token'] && !(typeof data['refresh_token'] === 'string' || data['refresh_token'] instanceof String)) { - throw new Error("Expected the field `refresh_token` to be a primitive type in the JSON string but got " + data['refresh_token']); - } - - return true; - } - - -} - -LogoutPayload.RequiredProperties = ["refresh_token"]; - -/** - * @member {String} refresh_token - */ -LogoutPayload.prototype['refresh_token'] = undefined; - - - - - - -export default LogoutPayload; - diff --git a/src/model/MFAStatusFields.js b/src/model/MFAStatusFields.js new file mode 100644 index 00000000..2720d11c --- /dev/null +++ b/src/model/MFAStatusFields.js @@ -0,0 +1,92 @@ +/** + * 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 MFAStatusFields model module. + * @module model/MFAStatusFields + * @version v1.51.1-alpha + */ +class MFAStatusFields { + /** + * Constructs a new MFAStatusFields. + * @alias module:model/MFAStatusFields + * @param mfaEnabled {Boolean} Whether MFA is enabled for the user + */ + constructor(mfaEnabled) { + + MFAStatusFields.initialize(this, mfaEnabled); + } + + /** + * 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, mfaEnabled) { + obj['mfa_enabled'] = mfaEnabled; + } + + /** + * Constructs a MFAStatusFields 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/MFAStatusFields} obj Optional instance to populate. + * @return {module:model/MFAStatusFields} The populated MFAStatusFields instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MFAStatusFields(); + + if (data.hasOwnProperty('mfa_enabled')) { + obj['mfa_enabled'] = ApiClient.convertToType(data['mfa_enabled'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to MFAStatusFields. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to MFAStatusFields. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of MFAStatusFields.RequiredProperties) { + if (!data.hasOwnProperty(property)) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + + return true; + } + + +} + +MFAStatusFields.RequiredProperties = ["mfa_enabled"]; + +/** + * Whether MFA is enabled for the user + * @member {Boolean} mfa_enabled + */ +MFAStatusFields.prototype['mfa_enabled'] = undefined; + + + + + + +export default MFAStatusFields; + diff --git a/src/model/MFAStatusResponse.js b/src/model/MFAStatusResponse.js new file mode 100644 index 00000000..a469c12f --- /dev/null +++ b/src/model/MFAStatusResponse.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 MFAStatusFields from './MFAStatusFields'; + +/** + * The MFAStatusResponse model module. + * @module model/MFAStatusResponse + * @version v1.51.1-alpha + */ +class MFAStatusResponse { + /** + * Constructs a new MFAStatusResponse. + * @alias module:model/MFAStatusResponse + */ + constructor() { + + MFAStatusResponse.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 MFAStatusResponse 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/MFAStatusResponse} obj Optional instance to populate. + * @return {module:model/MFAStatusResponse} The populated MFAStatusResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MFAStatusResponse(); + + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('mfa')) { + obj['mfa'] = MFAStatusFields.constructFromObject(data['mfa']); + } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to MFAStatusResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to MFAStatusResponse. + */ + 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 `mfa` + if (data['mfa']) { // data not null + MFAStatusFields.validateJSON(data['mfa']); + } + + return true; + } + + +} + + + +/** + * @member {String} message + */ +MFAStatusResponse.prototype['message'] = undefined; + +/** + * @member {module:model/MFAStatusFields} mfa + */ +MFAStatusResponse.prototype['mfa'] = undefined; + +/** + * @member {Boolean} status + */ +MFAStatusResponse.prototype['status'] = undefined; + + + + + + +export default MFAStatusResponse; + diff --git a/src/model/ManualReconciliationModel.js b/src/model/ManualReconciliationModel.js new file mode 100644 index 00000000..c9ae24c9 --- /dev/null +++ b/src/model/ManualReconciliationModel.js @@ -0,0 +1,112 @@ +/** + * 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 ClusterFields from './ClusterFields'; + +/** + * The ManualReconciliationModel model module. + * @module model/ManualReconciliationModel + * @version v1.51.1-alpha + */ +class ManualReconciliationModel { + /** + * Constructs a new ManualReconciliationModel. + * @alias module:model/ManualReconciliationModel + */ + constructor() { + + ManualReconciliationModel.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 ManualReconciliationModel 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/ManualReconciliationModel} obj Optional instance to populate. + * @return {module:model/ManualReconciliationModel} The populated ManualReconciliationModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ManualReconciliationModel(); + + if (data.hasOwnProperty('cluster')) { + obj['cluster'] = ClusterFields.constructFromObject(data['cluster']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ManualReconciliationModel. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ManualReconciliationModel. + */ + 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['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['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 {module:model/ClusterFields} cluster + */ +ManualReconciliationModel.prototype['cluster'] = undefined; + +/** + * @member {String} message + */ +ManualReconciliationModel.prototype['message'] = undefined; + +/** + * @member {String} status + */ +ManualReconciliationModel.prototype['status'] = undefined; + + + + + + +export default ManualReconciliationModel; + diff --git a/src/model/MasterFlavorsResponse.js b/src/model/MasterFlavorsResponse.js new file mode 100644 index 00000000..69f6a0ed --- /dev/null +++ b/src/model/MasterFlavorsResponse.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 ClusterFlavorFields from './ClusterFlavorFields'; + +/** + * The MasterFlavorsResponse model module. + * @module model/MasterFlavorsResponse + * @version v1.51.1-alpha + */ +class MasterFlavorsResponse { + /** + * Constructs a new MasterFlavorsResponse. + * @alias module:model/MasterFlavorsResponse + */ + constructor() { + + MasterFlavorsResponse.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 MasterFlavorsResponse 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/MasterFlavorsResponse} obj Optional instance to populate. + * @return {module:model/MasterFlavorsResponse} The populated MasterFlavorsResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MasterFlavorsResponse(); + + if (data.hasOwnProperty('flavors')) { + obj['flavors'] = ApiClient.convertToType(data['flavors'], [ClusterFlavorFields]); + } + 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 MasterFlavorsResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to MasterFlavorsResponse. + */ + static validateJSON(data) { + if (data['flavors']) { // data not null + // ensure the json data is an array + if (!Array.isArray(data['flavors'])) { + throw new Error("Expected the field `flavors` to be an array in the JSON data but got " + data['flavors']); + } + // validate the optional field `flavors` (array) + for (const item of data['flavors']) { + ClusterFlavorFields.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.} flavors + */ +MasterFlavorsResponse.prototype['flavors'] = undefined; + +/** + * @member {String} message + */ +MasterFlavorsResponse.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +MasterFlavorsResponse.prototype['status'] = undefined; + + + + + + +export default MasterFlavorsResponse; + diff --git a/src/model/MetricItemFields.js b/src/model/MetricItemFields.js index 6fba0d07..9033af79 100644 --- a/src/model/MetricItemFields.js +++ b/src/model/MetricItemFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The MetricItemFields model module. * @module model/MetricItemFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class MetricItemFields { /** diff --git a/src/model/MetricsFields.js b/src/model/MetricsFields.js index b59e3b4a..da29cdd3 100644 --- a/src/model/MetricsFields.js +++ b/src/model/MetricsFields.js @@ -17,7 +17,7 @@ import MetricItemFields from './MetricItemFields'; /** * The MetricsFields model module. * @module model/MetricsFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class MetricsFields { /** diff --git a/src/model/ModelEvaluationBillingHistoryDetailsResponseSchema.js b/src/model/ModelEvaluationBillingHistoryDetailsResponseSchema.js new file mode 100644 index 00000000..9b0c0877 --- /dev/null +++ b/src/model/ModelEvaluationBillingHistoryDetailsResponseSchema.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 BillingHistoryModelEvalutationDetails from './BillingHistoryModelEvalutationDetails'; + +/** + * The ModelEvaluationBillingHistoryDetailsResponseSchema model module. + * @module model/ModelEvaluationBillingHistoryDetailsResponseSchema + * @version v1.51.1-alpha + */ +class ModelEvaluationBillingHistoryDetailsResponseSchema { + /** + * Constructs a new ModelEvaluationBillingHistoryDetailsResponseSchema. + * @alias module:model/ModelEvaluationBillingHistoryDetailsResponseSchema + */ + constructor() { + + ModelEvaluationBillingHistoryDetailsResponseSchema.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 ModelEvaluationBillingHistoryDetailsResponseSchema 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/ModelEvaluationBillingHistoryDetailsResponseSchema} obj Optional instance to populate. + * @return {module:model/ModelEvaluationBillingHistoryDetailsResponseSchema} The populated ModelEvaluationBillingHistoryDetailsResponseSchema instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ModelEvaluationBillingHistoryDetailsResponseSchema(); + + if (data.hasOwnProperty('billing_history_model_evalutation_details')) { + obj['billing_history_model_evalutation_details'] = BillingHistoryModelEvalutationDetails.constructFromObject(data['billing_history_model_evalutation_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 ModelEvaluationBillingHistoryDetailsResponseSchema. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ModelEvaluationBillingHistoryDetailsResponseSchema. + */ + static validateJSON(data) { + // validate the optional field `billing_history_model_evalutation_details` + if (data['billing_history_model_evalutation_details']) { // data not null + BillingHistoryModelEvalutationDetails.validateJSON(data['billing_history_model_evalutation_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/BillingHistoryModelEvalutationDetails} billing_history_model_evalutation_details + */ +ModelEvaluationBillingHistoryDetailsResponseSchema.prototype['billing_history_model_evalutation_details'] = undefined; + +/** + * + * @member {String} message + */ +ModelEvaluationBillingHistoryDetailsResponseSchema.prototype['message'] = undefined; + +/** + * + * @member {Boolean} status + */ +ModelEvaluationBillingHistoryDetailsResponseSchema.prototype['status'] = undefined; + + + + + + +export default ModelEvaluationBillingHistoryDetailsResponseSchema; + diff --git a/src/model/NameAvailableModel.js b/src/model/NameAvailableModel.js index 51165e82..2efe1990 100644 --- a/src/model/NameAvailableModel.js +++ b/src/model/NameAvailableModel.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NameAvailableModel model module. * @module model/NameAvailableModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class NameAvailableModel { /** diff --git a/src/model/NewConfigurationsResponse.js b/src/model/NewConfigurationsResponse.js index 8bc2fa9e..d05f7547 100644 --- a/src/model/NewConfigurationsResponse.js +++ b/src/model/NewConfigurationsResponse.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NewConfigurationsResponse model module. * @module model/NewConfigurationsResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class NewConfigurationsResponse { /** diff --git a/src/model/NewModelResponse.js b/src/model/NewModelResponse.js index 0c7c7531..22c8a6fd 100644 --- a/src/model/NewModelResponse.js +++ b/src/model/NewModelResponse.js @@ -17,7 +17,7 @@ import NewConfigurationsResponse from './NewConfigurationsResponse'; /** * The NewModelResponse model module. * @module model/NewModelResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class NewModelResponse { /** diff --git a/src/model/NewStockResponse.js b/src/model/NewStockResponse.js index 3dd707e3..fa117ce3 100644 --- a/src/model/NewStockResponse.js +++ b/src/model/NewStockResponse.js @@ -17,7 +17,7 @@ import NewModelResponse from './NewModelResponse'; /** * The NewStockResponse model module. * @module model/NewStockResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class NewStockResponse { /** diff --git a/src/model/NewStockRetriveResponse.js b/src/model/NewStockRetriveResponse.js index 86131587..e7f110bd 100644 --- a/src/model/NewStockRetriveResponse.js +++ b/src/model/NewStockRetriveResponse.js @@ -17,7 +17,7 @@ import NewStockResponse from './NewStockResponse'; /** * The NewStockRetriveResponse model module. * @module model/NewStockRetriveResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class NewStockRetriveResponse { /** diff --git a/src/model/NewStockUpdateResponseModel.js b/src/model/NewStockUpdateResponseModel.js deleted file mode 100644 index a13117e0..00000000 --- a/src/model/NewStockUpdateResponseModel.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 NewStockUpdateResponseModel model module. - * @module model/NewStockUpdateResponseModel - * @version v1.25.0-alpha - */ -class NewStockUpdateResponseModel { - /** - * Constructs a new NewStockUpdateResponseModel. - * @alias module:model/NewStockUpdateResponseModel - */ - constructor() { - - NewStockUpdateResponseModel.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 NewStockUpdateResponseModel 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/NewStockUpdateResponseModel} obj Optional instance to populate. - * @return {module:model/NewStockUpdateResponseModel} The populated NewStockUpdateResponseModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewStockUpdateResponseModel(); - - 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 NewStockUpdateResponseModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to NewStockUpdateResponseModel. - */ - 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']); - } - - return true; - } - - -} - - - -/** - * @member {String} message - */ -NewStockUpdateResponseModel.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -NewStockUpdateResponseModel.prototype['status'] = undefined; - - - - - - -export default NewStockUpdateResponseModel; - diff --git a/src/model/NodeModel.js b/src/model/NodeModel.js deleted file mode 100644 index 94765dba..00000000 --- a/src/model/NodeModel.js +++ /dev/null @@ -1,202 +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 NodeStocksPayload from './NodeStocksPayload'; - -/** - * The NodeModel model module. - * @module model/NodeModel - * @version v1.25.0-alpha - */ -class NodeModel { - /** - * Constructs a new NodeModel. - * @alias module:model/NodeModel - * @param openstackId {String} - */ - constructor(openstackId) { - - NodeModel.initialize(this, openstackId); - } - - /** - * 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, openstackId) { - obj['openstack_id'] = openstackId; - } - - /** - * Constructs a NodeModel 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/NodeModel} obj Optional instance to populate. - * @return {module:model/NodeModel} The populated NodeModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NodeModel(); - - if (data.hasOwnProperty('flavors')) { - obj['flavors'] = ApiClient.convertToType(data['flavors'], ['String']); - } - if (data.hasOwnProperty('nexgen_name')) { - obj['nexgen_name'] = ApiClient.convertToType(data['nexgen_name'], 'String'); - } - if (data.hasOwnProperty('openstack_id')) { - obj['openstack_id'] = ApiClient.convertToType(data['openstack_id'], 'String'); - } - if (data.hasOwnProperty('openstack_name')) { - obj['openstack_name'] = ApiClient.convertToType(data['openstack_name'], 'String'); - } - if (data.hasOwnProperty('organizations')) { - obj['organizations'] = ApiClient.convertToType(data['organizations'], ['Number']); - } - if (data.hasOwnProperty('projects')) { - obj['projects'] = ApiClient.convertToType(data['projects'], ['String']); - } - if (data.hasOwnProperty('provision_date')) { - obj['provision_date'] = ApiClient.convertToType(data['provision_date'], 'Date'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('stocks')) { - obj['stocks'] = ApiClient.convertToType(data['stocks'], [NodeStocksPayload]); - } - if (data.hasOwnProperty('sunset_date')) { - obj['sunset_date'] = ApiClient.convertToType(data['sunset_date'], 'Date'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to NodeModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to NodeModel. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of NodeModel.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['flavors'])) { - throw new Error("Expected the field `flavors` to be an array in the JSON data but got " + data['flavors']); - } - // ensure the json data is a string - if (data['nexgen_name'] && !(typeof data['nexgen_name'] === 'string' || data['nexgen_name'] instanceof String)) { - throw new Error("Expected the field `nexgen_name` to be a primitive type in the JSON string but got " + data['nexgen_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['openstack_name'] && !(typeof data['openstack_name'] === 'string' || data['openstack_name'] instanceof String)) { - throw new Error("Expected the field `openstack_name` to be a primitive type in the JSON string but got " + data['openstack_name']); - } - // 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']); - } - // ensure the json data is an array - if (!Array.isArray(data['projects'])) { - throw new Error("Expected the field `projects` to be an array in the JSON data but got " + data['projects']); - } - // 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']); - } - if (data['stocks']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['stocks'])) { - throw new Error("Expected the field `stocks` to be an array in the JSON data but got " + data['stocks']); - } - // validate the optional field `stocks` (array) - for (const item of data['stocks']) { - NodeStocksPayload.validateJSON(item); - }; - } - - return true; - } - - -} - -NodeModel.RequiredProperties = ["openstack_id"]; - -/** - * @member {Array.} flavors - */ -NodeModel.prototype['flavors'] = undefined; - -/** - * @member {String} nexgen_name - */ -NodeModel.prototype['nexgen_name'] = undefined; - -/** - * @member {String} openstack_id - */ -NodeModel.prototype['openstack_id'] = undefined; - -/** - * @member {String} openstack_name - */ -NodeModel.prototype['openstack_name'] = undefined; - -/** - * @member {Array.} organizations - */ -NodeModel.prototype['organizations'] = undefined; - -/** - * @member {Array.} projects - */ -NodeModel.prototype['projects'] = undefined; - -/** - * @member {Date} provision_date - */ -NodeModel.prototype['provision_date'] = undefined; - -/** - * @member {String} status - */ -NodeModel.prototype['status'] = undefined; - -/** - * @member {Array.} stocks - */ -NodeModel.prototype['stocks'] = undefined; - -/** - * @member {Date} sunset_date - */ -NodeModel.prototype['sunset_date'] = undefined; - - - - - - -export default NodeModel; - diff --git a/src/model/NodePayloadModel.js b/src/model/NodePayloadModel.js deleted file mode 100644 index 099095a8..00000000 --- a/src/model/NodePayloadModel.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 NodePowerUsageModel from './NodePowerUsageModel'; - -/** - * The NodePayloadModel model module. - * @module model/NodePayloadModel - * @version v1.25.0-alpha - */ -class NodePayloadModel { - /** - * Constructs a new NodePayloadModel. - * @alias module:model/NodePayloadModel - */ - constructor() { - - NodePayloadModel.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 NodePayloadModel 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/NodePayloadModel} obj Optional instance to populate. - * @return {module:model/NodePayloadModel} The populated NodePayloadModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NodePayloadModel(); - - if (data.hasOwnProperty('nodes')) { - obj['nodes'] = ApiClient.convertToType(data['nodes'], [NodePowerUsageModel]); - } - if (data.hasOwnProperty('region')) { - obj['region'] = ApiClient.convertToType(data['region'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to NodePayloadModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to NodePayloadModel. - */ - static validateJSON(data) { - 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']) { - NodePowerUsageModel.validateJSON(item); - }; - } - // 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 {Array.} nodes - */ -NodePayloadModel.prototype['nodes'] = undefined; - -/** - * @member {String} region - */ -NodePayloadModel.prototype['region'] = undefined; - - - - - - -export default NodePayloadModel; - diff --git a/src/model/NodePowerUsageModel.js b/src/model/NodePowerUsageModel.js deleted file mode 100644 index ab12c43f..00000000 --- a/src/model/NodePowerUsageModel.js +++ /dev/null @@ -1,215 +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 NodeStocksPayload from './NodeStocksPayload'; -import PowerUsageModel from './PowerUsageModel'; - -/** - * The NodePowerUsageModel model module. - * @module model/NodePowerUsageModel - * @version v1.25.0-alpha - */ -class NodePowerUsageModel { - /** - * Constructs a new NodePowerUsageModel. - * @alias module:model/NodePowerUsageModel - * @param openstackId {String} - */ - constructor(openstackId) { - - NodePowerUsageModel.initialize(this, openstackId); - } - - /** - * 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, openstackId) { - obj['openstack_id'] = openstackId; - } - - /** - * Constructs a NodePowerUsageModel 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/NodePowerUsageModel} obj Optional instance to populate. - * @return {module:model/NodePowerUsageModel} The populated NodePowerUsageModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NodePowerUsageModel(); - - if (data.hasOwnProperty('flavors')) { - obj['flavors'] = ApiClient.convertToType(data['flavors'], ['String']); - } - if (data.hasOwnProperty('nexgen_name')) { - obj['nexgen_name'] = ApiClient.convertToType(data['nexgen_name'], 'String'); - } - if (data.hasOwnProperty('openstack_id')) { - obj['openstack_id'] = ApiClient.convertToType(data['openstack_id'], 'String'); - } - if (data.hasOwnProperty('openstack_name')) { - obj['openstack_name'] = ApiClient.convertToType(data['openstack_name'], 'String'); - } - if (data.hasOwnProperty('organizations')) { - obj['organizations'] = ApiClient.convertToType(data['organizations'], ['Number']); - } - if (data.hasOwnProperty('power_usages')) { - obj['power_usages'] = PowerUsageModel.constructFromObject(data['power_usages']); - } - if (data.hasOwnProperty('projects')) { - obj['projects'] = ApiClient.convertToType(data['projects'], ['String']); - } - if (data.hasOwnProperty('provision_date')) { - obj['provision_date'] = ApiClient.convertToType(data['provision_date'], 'Date'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('stocks')) { - obj['stocks'] = ApiClient.convertToType(data['stocks'], [NodeStocksPayload]); - } - if (data.hasOwnProperty('sunset_date')) { - obj['sunset_date'] = ApiClient.convertToType(data['sunset_date'], 'Date'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to NodePowerUsageModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to NodePowerUsageModel. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of NodePowerUsageModel.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['flavors'])) { - throw new Error("Expected the field `flavors` to be an array in the JSON data but got " + data['flavors']); - } - // ensure the json data is a string - if (data['nexgen_name'] && !(typeof data['nexgen_name'] === 'string' || data['nexgen_name'] instanceof String)) { - throw new Error("Expected the field `nexgen_name` to be a primitive type in the JSON string but got " + data['nexgen_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['openstack_name'] && !(typeof data['openstack_name'] === 'string' || data['openstack_name'] instanceof String)) { - throw new Error("Expected the field `openstack_name` to be a primitive type in the JSON string but got " + data['openstack_name']); - } - // 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']); - } - // validate the optional field `power_usages` - if (data['power_usages']) { // data not null - PowerUsageModel.validateJSON(data['power_usages']); - } - // ensure the json data is an array - if (!Array.isArray(data['projects'])) { - throw new Error("Expected the field `projects` to be an array in the JSON data but got " + data['projects']); - } - // 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']); - } - if (data['stocks']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['stocks'])) { - throw new Error("Expected the field `stocks` to be an array in the JSON data but got " + data['stocks']); - } - // validate the optional field `stocks` (array) - for (const item of data['stocks']) { - NodeStocksPayload.validateJSON(item); - }; - } - - return true; - } - - -} - -NodePowerUsageModel.RequiredProperties = ["openstack_id"]; - -/** - * @member {Array.} flavors - */ -NodePowerUsageModel.prototype['flavors'] = undefined; - -/** - * @member {String} nexgen_name - */ -NodePowerUsageModel.prototype['nexgen_name'] = undefined; - -/** - * @member {String} openstack_id - */ -NodePowerUsageModel.prototype['openstack_id'] = undefined; - -/** - * @member {String} openstack_name - */ -NodePowerUsageModel.prototype['openstack_name'] = undefined; - -/** - * @member {Array.} organizations - */ -NodePowerUsageModel.prototype['organizations'] = undefined; - -/** - * @member {module:model/PowerUsageModel} power_usages - */ -NodePowerUsageModel.prototype['power_usages'] = undefined; - -/** - * @member {Array.} projects - */ -NodePowerUsageModel.prototype['projects'] = undefined; - -/** - * @member {Date} provision_date - */ -NodePowerUsageModel.prototype['provision_date'] = undefined; - -/** - * @member {String} status - */ -NodePowerUsageModel.prototype['status'] = undefined; - -/** - * @member {Array.} stocks - */ -NodePowerUsageModel.prototype['stocks'] = undefined; - -/** - * @member {Date} sunset_date - */ -NodePowerUsageModel.prototype['sunset_date'] = undefined; - - - - - - -export default NodePowerUsageModel; - diff --git a/src/model/NodeResponseModel.js b/src/model/NodeResponseModel.js deleted file mode 100644 index e12d9e75..00000000 --- a/src/model/NodeResponseModel.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 NodeModel from './NodeModel'; - -/** - * The NodeResponseModel model module. - * @module model/NodeResponseModel - * @version v1.25.0-alpha - */ -class NodeResponseModel { - /** - * Constructs a new NodeResponseModel. - * @alias module:model/NodeResponseModel - */ - constructor() { - - NodeResponseModel.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 NodeResponseModel 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/NodeResponseModel} obj Optional instance to populate. - * @return {module:model/NodeResponseModel} The populated NodeResponseModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NodeResponseModel(); - - if (data.hasOwnProperty('nodes')) { - obj['nodes'] = ApiClient.convertToType(data['nodes'], [NodeModel]); - } - if (data.hasOwnProperty('region')) { - obj['region'] = ApiClient.convertToType(data['region'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to NodeResponseModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to NodeResponseModel. - */ - static validateJSON(data) { - 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']) { - NodeModel.validateJSON(item); - }; - } - // 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 {Array.} nodes - */ -NodeResponseModel.prototype['nodes'] = undefined; - -/** - * @member {String} region - */ -NodeResponseModel.prototype['region'] = undefined; - - - - - - -export default NodeResponseModel; - diff --git a/src/model/NodeStockPayloadModel.js b/src/model/NodeStockPayloadModel.js deleted file mode 100644 index c3ae71be..00000000 --- a/src/model/NodeStockPayloadModel.js +++ /dev/null @@ -1,94 +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 NodePayloadModel from './NodePayloadModel'; - -/** - * The NodeStockPayloadModel model module. - * @module model/NodeStockPayloadModel - * @version v1.25.0-alpha - */ -class NodeStockPayloadModel { - /** - * Constructs a new NodeStockPayloadModel. - * @alias module:model/NodeStockPayloadModel - */ - constructor() { - - NodeStockPayloadModel.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 NodeStockPayloadModel 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/NodeStockPayloadModel} obj Optional instance to populate. - * @return {module:model/NodeStockPayloadModel} The populated NodeStockPayloadModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NodeStockPayloadModel(); - - if (data.hasOwnProperty('stocks')) { - obj['stocks'] = ApiClient.convertToType(data['stocks'], [NodePayloadModel]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to NodeStockPayloadModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to NodeStockPayloadModel. - */ - static validateJSON(data) { - if (data['stocks']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['stocks'])) { - throw new Error("Expected the field `stocks` to be an array in the JSON data but got " + data['stocks']); - } - // validate the optional field `stocks` (array) - for (const item of data['stocks']) { - NodePayloadModel.validateJSON(item); - }; - } - - return true; - } - - -} - - - -/** - * @member {Array.} stocks - */ -NodeStockPayloadModel.prototype['stocks'] = undefined; - - - - - - -export default NodeStockPayloadModel; - diff --git a/src/model/NodeStockResponseModel.js b/src/model/NodeStockResponseModel.js deleted file mode 100644 index 2df1e49e..00000000 --- a/src/model/NodeStockResponseModel.js +++ /dev/null @@ -1,94 +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 NodeResponseModel from './NodeResponseModel'; - -/** - * The NodeStockResponseModel model module. - * @module model/NodeStockResponseModel - * @version v1.25.0-alpha - */ -class NodeStockResponseModel { - /** - * Constructs a new NodeStockResponseModel. - * @alias module:model/NodeStockResponseModel - */ - constructor() { - - NodeStockResponseModel.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 NodeStockResponseModel 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/NodeStockResponseModel} obj Optional instance to populate. - * @return {module:model/NodeStockResponseModel} The populated NodeStockResponseModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NodeStockResponseModel(); - - if (data.hasOwnProperty('stocks')) { - obj['stocks'] = ApiClient.convertToType(data['stocks'], [NodeResponseModel]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to NodeStockResponseModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to NodeStockResponseModel. - */ - static validateJSON(data) { - if (data['stocks']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['stocks'])) { - throw new Error("Expected the field `stocks` to be an array in the JSON data but got " + data['stocks']); - } - // validate the optional field `stocks` (array) - for (const item of data['stocks']) { - NodeResponseModel.validateJSON(item); - }; - } - - return true; - } - - -} - - - -/** - * @member {Array.} stocks - */ -NodeStockResponseModel.prototype['stocks'] = undefined; - - - - - - -export default NodeStockResponseModel; - diff --git a/src/model/NodeStocksPayload.js b/src/model/NodeStocksPayload.js deleted file mode 100644 index 6edb58ba..00000000 --- a/src/model/NodeStocksPayload.js +++ /dev/null @@ -1,127 +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 NodeStocksPayload model module. - * @module model/NodeStocksPayload - * @version v1.25.0-alpha - */ -class NodeStocksPayload { - /** - * Constructs a new NodeStocksPayload. - * @alias module:model/NodeStocksPayload - * @param inUse {Number} - * @param total {Number} - * @param type {String} - */ - constructor(inUse, total, type) { - - NodeStocksPayload.initialize(this, inUse, total, 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, inUse, total, type) { - obj['in_use'] = inUse; - obj['total'] = total; - obj['type'] = type; - } - - /** - * Constructs a NodeStocksPayload 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/NodeStocksPayload} obj Optional instance to populate. - * @return {module:model/NodeStocksPayload} The populated NodeStocksPayload instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NodeStocksPayload(); - - if (data.hasOwnProperty('in_use')) { - obj['in_use'] = ApiClient.convertToType(data['in_use'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to NodeStocksPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to NodeStocksPayload. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of NodeStocksPayload.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['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['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; - } - - -} - -NodeStocksPayload.RequiredProperties = ["in_use", "total", "type"]; - -/** - * @member {Number} in_use - */ -NodeStocksPayload.prototype['in_use'] = undefined; - -/** - * @member {String} name - */ -NodeStocksPayload.prototype['name'] = undefined; - -/** - * @member {Number} total - */ -NodeStocksPayload.prototype['total'] = undefined; - -/** - * @member {String} type - */ -NodeStocksPayload.prototype['type'] = undefined; - - - - - - -export default NodeStocksPayload; - diff --git a/src/model/ObjectStorageAccessKeyCreateRequest.js b/src/model/ObjectStorageAccessKeyCreateRequest.js new file mode 100644 index 00000000..43490c96 --- /dev/null +++ b/src/model/ObjectStorageAccessKeyCreateRequest.js @@ -0,0 +1,100 @@ +/** + * 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 ObjectStorageRegionsEnum from './ObjectStorageRegionsEnum'; + +/** + * The ObjectStorageAccessKeyCreateRequest model module. + * @module model/ObjectStorageAccessKeyCreateRequest + * @version v1.51.1-alpha + */ +class ObjectStorageAccessKeyCreateRequest { + /** + * Constructs a new ObjectStorageAccessKeyCreateRequest. + * @alias module:model/ObjectStorageAccessKeyCreateRequest + * @param region {module:model/ObjectStorageRegionsEnum} + */ + constructor(region) { + + ObjectStorageAccessKeyCreateRequest.initialize(this, region); + } + + /** + * 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, region) { + obj['region'] = region; + } + + /** + * Constructs a ObjectStorageAccessKeyCreateRequest 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/ObjectStorageAccessKeyCreateRequest} obj Optional instance to populate. + * @return {module:model/ObjectStorageAccessKeyCreateRequest} The populated ObjectStorageAccessKeyCreateRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageAccessKeyCreateRequest(); + + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], Object); + } + if (data.hasOwnProperty('region')) { + obj['region'] = ObjectStorageRegionsEnum.constructFromObject(data['region']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageAccessKeyCreateRequest. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageAccessKeyCreateRequest. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of ObjectStorageAccessKeyCreateRequest.RequiredProperties) { + if (!data.hasOwnProperty(property)) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + + return true; + } + + +} + +ObjectStorageAccessKeyCreateRequest.RequiredProperties = ["region"]; + +/** + * @member {Object} description + */ +ObjectStorageAccessKeyCreateRequest.prototype['description'] = undefined; + +/** + * @member {module:model/ObjectStorageRegionsEnum} region + */ +ObjectStorageAccessKeyCreateRequest.prototype['region'] = undefined; + + + + + + +export default ObjectStorageAccessKeyCreateRequest; + diff --git a/src/model/ObjectStorageAccessKeyCreateResponse.js b/src/model/ObjectStorageAccessKeyCreateResponse.js new file mode 100644 index 00000000..04d439a9 --- /dev/null +++ b/src/model/ObjectStorageAccessKeyCreateResponse.js @@ -0,0 +1,158 @@ +/** + * 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 ObjectStorageRegionsEnum from './ObjectStorageRegionsEnum'; + +/** + * The ObjectStorageAccessKeyCreateResponse model module. + * @module model/ObjectStorageAccessKeyCreateResponse + * @version v1.51.1-alpha + */ +class ObjectStorageAccessKeyCreateResponse { + /** + * Constructs a new ObjectStorageAccessKeyCreateResponse. + * @alias module:model/ObjectStorageAccessKeyCreateResponse + * @param accessKey {String} + * @param createdAt {Date} + * @param id {Number} + * @param region {module:model/ObjectStorageRegionsEnum} + * @param secretKey {String} + * @param userId {Number} + */ + constructor(accessKey, createdAt, id, region, secretKey, userId) { + + ObjectStorageAccessKeyCreateResponse.initialize(this, accessKey, createdAt, id, region, secretKey, userId); + } + + /** + * 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, accessKey, createdAt, id, region, secretKey, userId) { + obj['access_key'] = accessKey; + obj['created_at'] = createdAt; + obj['id'] = id; + obj['region'] = region; + obj['secret_key'] = secretKey; + obj['user_id'] = userId; + } + + /** + * Constructs a ObjectStorageAccessKeyCreateResponse 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/ObjectStorageAccessKeyCreateResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageAccessKeyCreateResponse} The populated ObjectStorageAccessKeyCreateResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageAccessKeyCreateResponse(); + + if (data.hasOwnProperty('access_key')) { + obj['access_key'] = ApiClient.convertToType(data['access_key'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); + } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], Object); + } + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('region')) { + obj['region'] = ObjectStorageRegionsEnum.constructFromObject(data['region']); + } + if (data.hasOwnProperty('secret_key')) { + obj['secret_key'] = ApiClient.convertToType(data['secret_key'], 'String'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageAccessKeyCreateResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageAccessKeyCreateResponse. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of ObjectStorageAccessKeyCreateResponse.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['access_key'] && !(typeof data['access_key'] === 'string' || data['access_key'] instanceof String)) { + throw new Error("Expected the field `access_key` to be a primitive type in the JSON string but got " + data['access_key']); + } + // ensure the json data is a string + if (data['secret_key'] && !(typeof data['secret_key'] === 'string' || data['secret_key'] instanceof String)) { + throw new Error("Expected the field `secret_key` to be a primitive type in the JSON string but got " + data['secret_key']); + } + + return true; + } + + +} + +ObjectStorageAccessKeyCreateResponse.RequiredProperties = ["access_key", "created_at", "id", "region", "secret_key", "user_id"]; + +/** + * @member {String} access_key + */ +ObjectStorageAccessKeyCreateResponse.prototype['access_key'] = undefined; + +/** + * @member {Date} created_at + */ +ObjectStorageAccessKeyCreateResponse.prototype['created_at'] = undefined; + +/** + * @member {Object} description + */ +ObjectStorageAccessKeyCreateResponse.prototype['description'] = undefined; + +/** + * @member {Number} id + */ +ObjectStorageAccessKeyCreateResponse.prototype['id'] = undefined; + +/** + * @member {module:model/ObjectStorageRegionsEnum} region + */ +ObjectStorageAccessKeyCreateResponse.prototype['region'] = undefined; + +/** + * @member {String} secret_key + */ +ObjectStorageAccessKeyCreateResponse.prototype['secret_key'] = undefined; + +/** + * @member {Number} user_id + */ +ObjectStorageAccessKeyCreateResponse.prototype['user_id'] = undefined; + + + + + + +export default ObjectStorageAccessKeyCreateResponse; + diff --git a/src/model/ObjectStorageAccessKeyListResponse.js b/src/model/ObjectStorageAccessKeyListResponse.js new file mode 100644 index 00000000..9b348b59 --- /dev/null +++ b/src/model/ObjectStorageAccessKeyListResponse.js @@ -0,0 +1,117 @@ +/** + * 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 ObjectStorageAccessKeyResponse from './ObjectStorageAccessKeyResponse'; +import ObjectStoragePaginationMeta from './ObjectStoragePaginationMeta'; + +/** + * The ObjectStorageAccessKeyListResponse model module. + * @module model/ObjectStorageAccessKeyListResponse + * @version v1.51.1-alpha + */ +class ObjectStorageAccessKeyListResponse { + /** + * Constructs a new ObjectStorageAccessKeyListResponse. + * @alias module:model/ObjectStorageAccessKeyListResponse + * @param accessKeys {Array.} + * @param meta {module:model/ObjectStoragePaginationMeta} + */ + constructor(accessKeys, meta) { + + ObjectStorageAccessKeyListResponse.initialize(this, accessKeys, meta); + } + + /** + * 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, accessKeys, meta) { + obj['access_keys'] = accessKeys; + obj['meta'] = meta; + } + + /** + * Constructs a ObjectStorageAccessKeyListResponse 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/ObjectStorageAccessKeyListResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageAccessKeyListResponse} The populated ObjectStorageAccessKeyListResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageAccessKeyListResponse(); + + if (data.hasOwnProperty('access_keys')) { + obj['access_keys'] = ApiClient.convertToType(data['access_keys'], [ObjectStorageAccessKeyResponse]); + } + if (data.hasOwnProperty('meta')) { + obj['meta'] = ObjectStoragePaginationMeta.constructFromObject(data['meta']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageAccessKeyListResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageAccessKeyListResponse. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of ObjectStorageAccessKeyListResponse.RequiredProperties) { + if (!data.hasOwnProperty(property)) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + if (data['access_keys']) { // data not null + // ensure the json data is an array + if (!Array.isArray(data['access_keys'])) { + throw new Error("Expected the field `access_keys` to be an array in the JSON data but got " + data['access_keys']); + } + // validate the optional field `access_keys` (array) + for (const item of data['access_keys']) { + ObjectStorageAccessKeyResponse.validateJSON(item); + }; + } + // validate the optional field `meta` + if (data['meta']) { // data not null + ObjectStoragePaginationMeta.validateJSON(data['meta']); + } + + return true; + } + + +} + +ObjectStorageAccessKeyListResponse.RequiredProperties = ["access_keys", "meta"]; + +/** + * @member {Array.} access_keys + */ +ObjectStorageAccessKeyListResponse.prototype['access_keys'] = undefined; + +/** + * @member {module:model/ObjectStoragePaginationMeta} meta + */ +ObjectStorageAccessKeyListResponse.prototype['meta'] = undefined; + + + + + + +export default ObjectStorageAccessKeyListResponse; + diff --git a/src/model/ObjectStorageAccessKeyResponse.js b/src/model/ObjectStorageAccessKeyResponse.js new file mode 100644 index 00000000..b1edc3cd --- /dev/null +++ b/src/model/ObjectStorageAccessKeyResponse.js @@ -0,0 +1,144 @@ +/** + * 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 ObjectStorageRegionsEnum from './ObjectStorageRegionsEnum'; + +/** + * The ObjectStorageAccessKeyResponse model module. + * @module model/ObjectStorageAccessKeyResponse + * @version v1.51.1-alpha + */ +class ObjectStorageAccessKeyResponse { + /** + * Constructs a new ObjectStorageAccessKeyResponse. + * @alias module:model/ObjectStorageAccessKeyResponse + * @param accessKey {String} + * @param createdAt {Date} + * @param id {Number} + * @param region {module:model/ObjectStorageRegionsEnum} + * @param userId {Number} + */ + constructor(accessKey, createdAt, id, region, userId) { + + ObjectStorageAccessKeyResponse.initialize(this, accessKey, createdAt, id, region, userId); + } + + /** + * 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, accessKey, createdAt, id, region, userId) { + obj['access_key'] = accessKey; + obj['created_at'] = createdAt; + obj['id'] = id; + obj['region'] = region; + obj['user_id'] = userId; + } + + /** + * Constructs a ObjectStorageAccessKeyResponse 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/ObjectStorageAccessKeyResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageAccessKeyResponse} The populated ObjectStorageAccessKeyResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageAccessKeyResponse(); + + if (data.hasOwnProperty('access_key')) { + obj['access_key'] = ApiClient.convertToType(data['access_key'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); + } + if (data.hasOwnProperty('description')) { + obj['description'] = ApiClient.convertToType(data['description'], Object); + } + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('region')) { + obj['region'] = ObjectStorageRegionsEnum.constructFromObject(data['region']); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageAccessKeyResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageAccessKeyResponse. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of ObjectStorageAccessKeyResponse.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['access_key'] && !(typeof data['access_key'] === 'string' || data['access_key'] instanceof String)) { + throw new Error("Expected the field `access_key` to be a primitive type in the JSON string but got " + data['access_key']); + } + + return true; + } + + +} + +ObjectStorageAccessKeyResponse.RequiredProperties = ["access_key", "created_at", "id", "region", "user_id"]; + +/** + * @member {String} access_key + */ +ObjectStorageAccessKeyResponse.prototype['access_key'] = undefined; + +/** + * @member {Date} created_at + */ +ObjectStorageAccessKeyResponse.prototype['created_at'] = undefined; + +/** + * @member {Object} description + */ +ObjectStorageAccessKeyResponse.prototype['description'] = undefined; + +/** + * @member {Number} id + */ +ObjectStorageAccessKeyResponse.prototype['id'] = undefined; + +/** + * @member {module:model/ObjectStorageRegionsEnum} region + */ +ObjectStorageAccessKeyResponse.prototype['region'] = undefined; + +/** + * @member {Number} user_id + */ +ObjectStorageAccessKeyResponse.prototype['user_id'] = undefined; + + + + + + +export default ObjectStorageAccessKeyResponse; + diff --git a/src/model/ObjectStorageBucketListResponse.js b/src/model/ObjectStorageBucketListResponse.js new file mode 100644 index 00000000..9c8e008d --- /dev/null +++ b/src/model/ObjectStorageBucketListResponse.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 ObjectStorageBucketResponse from './ObjectStorageBucketResponse'; + +/** + * The ObjectStorageBucketListResponse model module. + * @module model/ObjectStorageBucketListResponse + * @version v1.51.1-alpha + */ +class ObjectStorageBucketListResponse { + /** + * Constructs a new ObjectStorageBucketListResponse. + * @alias module:model/ObjectStorageBucketListResponse + * @param buckets {Array.} + */ + constructor(buckets) { + + ObjectStorageBucketListResponse.initialize(this, buckets); + } + + /** + * 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, buckets) { + obj['buckets'] = buckets; + } + + /** + * Constructs a ObjectStorageBucketListResponse 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/ObjectStorageBucketListResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageBucketListResponse} The populated ObjectStorageBucketListResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageBucketListResponse(); + + if (data.hasOwnProperty('buckets')) { + obj['buckets'] = ApiClient.convertToType(data['buckets'], [ObjectStorageBucketResponse]); + } + if (data.hasOwnProperty('failed_regions')) { + obj['failed_regions'] = ApiClient.convertToType(data['failed_regions'], ['String']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageBucketListResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageBucketListResponse. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of ObjectStorageBucketListResponse.RequiredProperties) { + if (!data.hasOwnProperty(property)) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + if (data['buckets']) { // data not null + // ensure the json data is an array + if (!Array.isArray(data['buckets'])) { + throw new Error("Expected the field `buckets` to be an array in the JSON data but got " + data['buckets']); + } + // validate the optional field `buckets` (array) + for (const item of data['buckets']) { + ObjectStorageBucketResponse.validateJSON(item); + }; + } + // ensure the json data is an array + if (!Array.isArray(data['failed_regions'])) { + throw new Error("Expected the field `failed_regions` to be an array in the JSON data but got " + data['failed_regions']); + } + + return true; + } + + +} + +ObjectStorageBucketListResponse.RequiredProperties = ["buckets"]; + +/** + * @member {Array.} buckets + */ +ObjectStorageBucketListResponse.prototype['buckets'] = undefined; + +/** + * @member {Array.} failed_regions + */ +ObjectStorageBucketListResponse.prototype['failed_regions'] = undefined; + + + + + + +export default ObjectStorageBucketListResponse; + diff --git a/src/model/ObjectStorageBucketResponse.js b/src/model/ObjectStorageBucketResponse.js new file mode 100644 index 00000000..6f8b2331 --- /dev/null +++ b/src/model/ObjectStorageBucketResponse.js @@ -0,0 +1,163 @@ +/** + * 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 ObjectStorageRegionsEnum from './ObjectStorageRegionsEnum'; + +/** + * The ObjectStorageBucketResponse model module. + * @module model/ObjectStorageBucketResponse + * @version v1.51.1-alpha + */ +class ObjectStorageBucketResponse { + /** + * Constructs a new ObjectStorageBucketResponse. + * @alias module:model/ObjectStorageBucketResponse + * @param createdAt {Date} + * @param endpoint {String} + * @param name {String} + * @param numObjects {Number} Number of objects + * @param region {module:model/ObjectStorageRegionsEnum} + * @param sizeBytes {Number} Accumulated size in bytes + * @param sizeBytesActual {Number} Size utilized in bytes + */ + constructor(createdAt, endpoint, name, numObjects, region, sizeBytes, sizeBytesActual) { + + ObjectStorageBucketResponse.initialize(this, createdAt, endpoint, name, numObjects, region, sizeBytes, sizeBytesActual); + } + + /** + * 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, createdAt, endpoint, name, numObjects, region, sizeBytes, sizeBytesActual) { + obj['created_at'] = createdAt; + obj['endpoint'] = endpoint; + obj['name'] = name; + obj['num_objects'] = numObjects; + obj['region'] = region; + obj['size_bytes'] = sizeBytes; + obj['size_bytes_actual'] = sizeBytesActual; + } + + /** + * Constructs a ObjectStorageBucketResponse 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/ObjectStorageBucketResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageBucketResponse} The populated ObjectStorageBucketResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageBucketResponse(); + + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); + } + if (data.hasOwnProperty('endpoint')) { + obj['endpoint'] = ApiClient.convertToType(data['endpoint'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('num_objects')) { + obj['num_objects'] = ApiClient.convertToType(data['num_objects'], 'Number'); + } + if (data.hasOwnProperty('region')) { + obj['region'] = ObjectStorageRegionsEnum.constructFromObject(data['region']); + } + if (data.hasOwnProperty('size_bytes')) { + obj['size_bytes'] = ApiClient.convertToType(data['size_bytes'], 'Number'); + } + if (data.hasOwnProperty('size_bytes_actual')) { + obj['size_bytes_actual'] = ApiClient.convertToType(data['size_bytes_actual'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageBucketResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageBucketResponse. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of ObjectStorageBucketResponse.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['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; + } + + +} + +ObjectStorageBucketResponse.RequiredProperties = ["created_at", "endpoint", "name", "num_objects", "region", "size_bytes", "size_bytes_actual"]; + +/** + * @member {Date} created_at + */ +ObjectStorageBucketResponse.prototype['created_at'] = undefined; + +/** + * @member {String} endpoint + */ +ObjectStorageBucketResponse.prototype['endpoint'] = undefined; + +/** + * @member {String} name + */ +ObjectStorageBucketResponse.prototype['name'] = undefined; + +/** + * Number of objects + * @member {Number} num_objects + */ +ObjectStorageBucketResponse.prototype['num_objects'] = undefined; + +/** + * @member {module:model/ObjectStorageRegionsEnum} region + */ +ObjectStorageBucketResponse.prototype['region'] = undefined; + +/** + * Accumulated size in bytes + * @member {Number} size_bytes + */ +ObjectStorageBucketResponse.prototype['size_bytes'] = undefined; + +/** + * Size utilized in bytes + * @member {Number} size_bytes_actual + */ +ObjectStorageBucketResponse.prototype['size_bytes_actual'] = undefined; + + + + + + +export default ObjectStorageBucketResponse; + diff --git a/src/model/ObjectStorageDeleteResponse.js b/src/model/ObjectStorageDeleteResponse.js new file mode 100644 index 00000000..a64b3b1c --- /dev/null +++ b/src/model/ObjectStorageDeleteResponse.js @@ -0,0 +1,95 @@ +/** + * 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 ObjectStorageDeleteResponse model module. + * @module model/ObjectStorageDeleteResponse + * @version v1.51.1-alpha + */ +class ObjectStorageDeleteResponse { + /** + * Constructs a new ObjectStorageDeleteResponse. + * @alias module:model/ObjectStorageDeleteResponse + * @param message {String} + */ + constructor(message) { + + ObjectStorageDeleteResponse.initialize(this, message); + } + + /** + * 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) { + obj['message'] = message; + } + + /** + * Constructs a ObjectStorageDeleteResponse 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/ObjectStorageDeleteResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageDeleteResponse} The populated ObjectStorageDeleteResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageDeleteResponse(); + + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageDeleteResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageDeleteResponse. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of ObjectStorageDeleteResponse.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']); + } + + return true; + } + + +} + +ObjectStorageDeleteResponse.RequiredProperties = ["message"]; + +/** + * @member {String} message + */ +ObjectStorageDeleteResponse.prototype['message'] = undefined; + + + + + + +export default ObjectStorageDeleteResponse; + diff --git a/src/model/ObjectStorageErrorResponse.js b/src/model/ObjectStorageErrorResponse.js new file mode 100644 index 00000000..aa324f46 --- /dev/null +++ b/src/model/ObjectStorageErrorResponse.js @@ -0,0 +1,119 @@ +/** + * 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 ObjectStorageErrorResponse model module. + * @module model/ObjectStorageErrorResponse + * @version v1.51.1-alpha + */ +class ObjectStorageErrorResponse { + /** + * Constructs a new ObjectStorageErrorResponse. + * @alias module:model/ObjectStorageErrorResponse + * @param errorReason {String} + * @param message {String} + */ + constructor(errorReason, message) { + + ObjectStorageErrorResponse.initialize(this, errorReason, message); + } + + /** + * 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, errorReason, message) { + obj['error_reason'] = errorReason; + obj['message'] = message; + obj['status'] = false; + } + + /** + * Constructs a ObjectStorageErrorResponse 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/ObjectStorageErrorResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageErrorResponse} The populated ObjectStorageErrorResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageErrorResponse(); + + if (data.hasOwnProperty('error_reason')) { + obj['error_reason'] = ApiClient.convertToType(data['error_reason'], 'String'); + } + 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 ObjectStorageErrorResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageErrorResponse. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of ObjectStorageErrorResponse.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['error_reason'] && !(typeof data['error_reason'] === 'string' || data['error_reason'] instanceof String)) { + throw new Error("Expected the field `error_reason` to be a primitive type in the JSON string but got " + data['error_reason']); + } + // 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; + } + + +} + +ObjectStorageErrorResponse.RequiredProperties = ["error_reason", "message"]; + +/** + * @member {String} error_reason + */ +ObjectStorageErrorResponse.prototype['error_reason'] = undefined; + +/** + * @member {String} message + */ +ObjectStorageErrorResponse.prototype['message'] = undefined; + +/** + * @member {Boolean} status + * @default false + */ +ObjectStorageErrorResponse.prototype['status'] = false; + + + + + + +export default ObjectStorageErrorResponse; + diff --git a/src/model/ObjectStorageHealthResponse.js b/src/model/ObjectStorageHealthResponse.js new file mode 100644 index 00000000..40598d51 --- /dev/null +++ b/src/model/ObjectStorageHealthResponse.js @@ -0,0 +1,95 @@ +/** + * 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 ObjectStorageHealthResponse model module. + * @module model/ObjectStorageHealthResponse + * @version v1.51.1-alpha + */ +class ObjectStorageHealthResponse { + /** + * Constructs a new ObjectStorageHealthResponse. + * @alias module:model/ObjectStorageHealthResponse + * @param status {String} + */ + constructor(status) { + + ObjectStorageHealthResponse.initialize(this, status); + } + + /** + * 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, status) { + obj['status'] = status; + } + + /** + * Constructs a ObjectStorageHealthResponse 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/ObjectStorageHealthResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageHealthResponse} The populated ObjectStorageHealthResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageHealthResponse(); + + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageHealthResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageHealthResponse. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of ObjectStorageHealthResponse.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['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; + } + + +} + +ObjectStorageHealthResponse.RequiredProperties = ["status"]; + +/** + * @member {String} status + */ +ObjectStorageHealthResponse.prototype['status'] = undefined; + + + + + + +export default ObjectStorageHealthResponse; + diff --git a/src/model/ObjectStoragePaginationMeta.js b/src/model/ObjectStoragePaginationMeta.js new file mode 100644 index 00000000..24a7bcbe --- /dev/null +++ b/src/model/ObjectStoragePaginationMeta.js @@ -0,0 +1,111 @@ +/** + * 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 ObjectStoragePaginationMeta model module. + * @module model/ObjectStoragePaginationMeta + * @version v1.51.1-alpha + */ +class ObjectStoragePaginationMeta { + /** + * Constructs a new ObjectStoragePaginationMeta. + * @alias module:model/ObjectStoragePaginationMeta + * @param count {Number} + * @param currentPage {Number} + * @param totalPages {Number} + */ + constructor(count, currentPage, totalPages) { + + ObjectStoragePaginationMeta.initialize(this, count, currentPage, totalPages); + } + + /** + * 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, count, currentPage, totalPages) { + obj['count'] = count; + obj['current_page'] = currentPage; + obj['total_pages'] = totalPages; + } + + /** + * Constructs a ObjectStoragePaginationMeta 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/ObjectStoragePaginationMeta} obj Optional instance to populate. + * @return {module:model/ObjectStoragePaginationMeta} The populated ObjectStoragePaginationMeta instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStoragePaginationMeta(); + + if (data.hasOwnProperty('count')) { + obj['count'] = ApiClient.convertToType(data['count'], 'Number'); + } + if (data.hasOwnProperty('current_page')) { + obj['current_page'] = ApiClient.convertToType(data['current_page'], 'Number'); + } + if (data.hasOwnProperty('total_pages')) { + obj['total_pages'] = ApiClient.convertToType(data['total_pages'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStoragePaginationMeta. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStoragePaginationMeta. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of ObjectStoragePaginationMeta.RequiredProperties) { + if (!data.hasOwnProperty(property)) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + + return true; + } + + +} + +ObjectStoragePaginationMeta.RequiredProperties = ["count", "current_page", "total_pages"]; + +/** + * @member {Number} count + */ +ObjectStoragePaginationMeta.prototype['count'] = undefined; + +/** + * @member {Number} current_page + */ +ObjectStoragePaginationMeta.prototype['current_page'] = undefined; + +/** + * @member {Number} total_pages + */ +ObjectStoragePaginationMeta.prototype['total_pages'] = undefined; + + + + + + +export default ObjectStoragePaginationMeta; + diff --git a/src/model/ObjectStorageRegionListResponse.js b/src/model/ObjectStorageRegionListResponse.js new file mode 100644 index 00000000..3a812a59 --- /dev/null +++ b/src/model/ObjectStorageRegionListResponse.js @@ -0,0 +1,102 @@ +/** + * 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 ObjectStorageRegionResponse from './ObjectStorageRegionResponse'; + +/** + * The ObjectStorageRegionListResponse model module. + * @module model/ObjectStorageRegionListResponse + * @version v1.51.1-alpha + */ +class ObjectStorageRegionListResponse { + /** + * Constructs a new ObjectStorageRegionListResponse. + * @alias module:model/ObjectStorageRegionListResponse + * @param regions {Array.} + */ + constructor(regions) { + + ObjectStorageRegionListResponse.initialize(this, regions); + } + + /** + * 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, regions) { + obj['regions'] = regions; + } + + /** + * Constructs a ObjectStorageRegionListResponse 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/ObjectStorageRegionListResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageRegionListResponse} The populated ObjectStorageRegionListResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageRegionListResponse(); + + if (data.hasOwnProperty('regions')) { + obj['regions'] = ApiClient.convertToType(data['regions'], [ObjectStorageRegionResponse]); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageRegionListResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageRegionListResponse. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of ObjectStorageRegionListResponse.RequiredProperties) { + if (!data.hasOwnProperty(property)) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + if (data['regions']) { // data not null + // 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']); + } + // validate the optional field `regions` (array) + for (const item of data['regions']) { + ObjectStorageRegionResponse.validateJSON(item); + }; + } + + return true; + } + + +} + +ObjectStorageRegionListResponse.RequiredProperties = ["regions"]; + +/** + * @member {Array.} regions + */ +ObjectStorageRegionListResponse.prototype['regions'] = undefined; + + + + + + +export default ObjectStorageRegionListResponse; + diff --git a/src/model/ObjectStorageRegionResponse.js b/src/model/ObjectStorageRegionResponse.js new file mode 100644 index 00000000..7d7c9d19 --- /dev/null +++ b/src/model/ObjectStorageRegionResponse.js @@ -0,0 +1,95 @@ +/** + * 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 ObjectStorageRegionResponse model module. + * @module model/ObjectStorageRegionResponse + * @version v1.51.1-alpha + */ +class ObjectStorageRegionResponse { + /** + * Constructs a new ObjectStorageRegionResponse. + * @alias module:model/ObjectStorageRegionResponse + * @param name {String} + */ + constructor(name) { + + ObjectStorageRegionResponse.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 ObjectStorageRegionResponse 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/ObjectStorageRegionResponse} obj Optional instance to populate. + * @return {module:model/ObjectStorageRegionResponse} The populated ObjectStorageRegionResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ObjectStorageRegionResponse(); + + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ObjectStorageRegionResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ObjectStorageRegionResponse. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of ObjectStorageRegionResponse.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['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; + } + + +} + +ObjectStorageRegionResponse.RequiredProperties = ["name"]; + +/** + * @member {String} name + */ +ObjectStorageRegionResponse.prototype['name'] = undefined; + + + + + + +export default ObjectStorageRegionResponse; + diff --git a/src/model/ObjectStorageRegionsEnum.js b/src/model/ObjectStorageRegionsEnum.js new file mode 100644 index 00000000..4bd9101d --- /dev/null +++ b/src/model/ObjectStorageRegionsEnum.js @@ -0,0 +1,39 @@ +/** + * 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'; +/** +* Enum class ObjectStorageRegionsEnum. +* @enum {} +* @readonly +*/ +export default class ObjectStorageRegionsEnum { + + /** + * value: "CANADA-1" + * @const + */ + "CANADA-1" = "CANADA-1"; + + + + /** + * Returns a ObjectStorageRegionsEnum enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/ObjectStorageRegionsEnum} The enum ObjectStorageRegionsEnum value. + */ + static constructFromObject(object) { + return object; + } +} + diff --git a/src/model/OrganizationFields.js b/src/model/OrganizationFields.js index 00198b6d..248b40e3 100644 --- a/src/model/OrganizationFields.js +++ b/src/model/OrganizationFields.js @@ -17,7 +17,7 @@ import OrganizationUserResponseModel from './OrganizationUserResponseModel'; /** * The OrganizationFields model module. * @module model/OrganizationFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class OrganizationFields { /** diff --git a/src/model/OrganizationLevelBillingHistory.js b/src/model/OrganizationLevelBillingHistory.js index 17c16a8e..8032ac9c 100644 --- a/src/model/OrganizationLevelBillingHistory.js +++ b/src/model/OrganizationLevelBillingHistory.js @@ -17,7 +17,7 @@ import OrganizationLevelBillingHistoryResources from './OrganizationLevelBilling /** * The OrganizationLevelBillingHistory model module. * @module model/OrganizationLevelBillingHistory - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class OrganizationLevelBillingHistory { /** diff --git a/src/model/OrganizationLevelBillingHistoryResources.js b/src/model/OrganizationLevelBillingHistoryResources.js index 9006d002..7bea0849 100644 --- a/src/model/OrganizationLevelBillingHistoryResources.js +++ b/src/model/OrganizationLevelBillingHistoryResources.js @@ -18,7 +18,7 @@ import OrganizationLevelBillingHistoryResponseMetrics from './OrganizationLevelB /** * The OrganizationLevelBillingHistoryResources model module. * @module model/OrganizationLevelBillingHistoryResources - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class OrganizationLevelBillingHistoryResources { /** diff --git a/src/model/OrganizationLevelBillingHistoryResponseAttributes.js b/src/model/OrganizationLevelBillingHistoryResponseAttributes.js index a3751020..0c4dfbe2 100644 --- a/src/model/OrganizationLevelBillingHistoryResponseAttributes.js +++ b/src/model/OrganizationLevelBillingHistoryResponseAttributes.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The OrganizationLevelBillingHistoryResponseAttributes model module. * @module model/OrganizationLevelBillingHistoryResponseAttributes - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class OrganizationLevelBillingHistoryResponseAttributes { /** diff --git a/src/model/OrganizationLevelBillingHistoryResponseMetrics.js b/src/model/OrganizationLevelBillingHistoryResponseMetrics.js index 5ee20526..dd54ffb0 100644 --- a/src/model/OrganizationLevelBillingHistoryResponseMetrics.js +++ b/src/model/OrganizationLevelBillingHistoryResponseMetrics.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The OrganizationLevelBillingHistoryResponseMetrics model module. * @module model/OrganizationLevelBillingHistoryResponseMetrics - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class OrganizationLevelBillingHistoryResponseMetrics { /** diff --git a/src/model/OrganizationLevelBillingHistoryResponseModel.js b/src/model/OrganizationLevelBillingHistoryResponseModel.js index 3de268a3..5713a646 100644 --- a/src/model/OrganizationLevelBillingHistoryResponseModel.js +++ b/src/model/OrganizationLevelBillingHistoryResponseModel.js @@ -17,7 +17,7 @@ import OrganizationLevelBillingHistory from './OrganizationLevelBillingHistory'; /** * The OrganizationLevelBillingHistoryResponseModel model module. * @module model/OrganizationLevelBillingHistoryResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class OrganizationLevelBillingHistoryResponseModel { /** diff --git a/src/model/OrganizationObjectResponse.js b/src/model/OrganizationObjectResponse.js deleted file mode 100644 index 1ae420fd..00000000 --- a/src/model/OrganizationObjectResponse.js +++ /dev/null @@ -1,102 +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 InfrahubResourceObjectResponse from './InfrahubResourceObjectResponse'; - -/** - * The OrganizationObjectResponse model module. - * @module model/OrganizationObjectResponse - * @version v1.25.0-alpha - */ -class OrganizationObjectResponse { - /** - * Constructs a new OrganizationObjectResponse. - * @alias module:model/OrganizationObjectResponse - */ - constructor() { - - OrganizationObjectResponse.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 OrganizationObjectResponse 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/OrganizationObjectResponse} obj Optional instance to populate. - * @return {module:model/OrganizationObjectResponse} The populated OrganizationObjectResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationObjectResponse(); - - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - } - if (data.hasOwnProperty('resources')) { - obj['resources'] = ApiClient.convertToType(data['resources'], [InfrahubResourceObjectResponse]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to OrganizationObjectResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to OrganizationObjectResponse. - */ - static validateJSON(data) { - if (data['resources']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['resources'])) { - throw new Error("Expected the field `resources` to be an array in the JSON data but got " + data['resources']); - } - // validate the optional field `resources` (array) - for (const item of data['resources']) { - InfrahubResourceObjectResponse.validateJSON(item); - }; - } - - return true; - } - - -} - - - -/** - * @member {Number} org_id - */ -OrganizationObjectResponse.prototype['org_id'] = undefined; - -/** - * @member {Array.} resources - */ -OrganizationObjectResponse.prototype['resources'] = undefined; - - - - - - -export default OrganizationObjectResponse; - diff --git a/src/model/OrganizationThresholdFields.js b/src/model/OrganizationThresholdFields.js new file mode 100644 index 00000000..a1b7a454 --- /dev/null +++ b/src/model/OrganizationThresholdFields.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 OrganizationThresholdFields model module. + * @module model/OrganizationThresholdFields + * @version v1.51.1-alpha + */ +class OrganizationThresholdFields { + /** + * Constructs a new OrganizationThresholdFields. + * @alias module:model/OrganizationThresholdFields + */ + constructor() { + + OrganizationThresholdFields.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 OrganizationThresholdFields 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/OrganizationThresholdFields} obj Optional instance to populate. + * @return {module:model/OrganizationThresholdFields} The populated OrganizationThresholdFields instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrganizationThresholdFields(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('interface_title')) { + obj['interface_title'] = ApiClient.convertToType(data['interface_title'], 'String'); + } + if (data.hasOwnProperty('interface_tooltip')) { + obj['interface_tooltip'] = ApiClient.convertToType(data['interface_tooltip'], 'String'); + } + if (data.hasOwnProperty('subscribed')) { + obj['subscribed'] = ApiClient.convertToType(data['subscribed'], 'Boolean'); + } + if (data.hasOwnProperty('threshold')) { + obj['threshold'] = ApiClient.convertToType(data['threshold'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to OrganizationThresholdFields. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to OrganizationThresholdFields. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['interface_title'] && !(typeof data['interface_title'] === 'string' || data['interface_title'] instanceof String)) { + throw new Error("Expected the field `interface_title` to be a primitive type in the JSON string but got " + data['interface_title']); + } + // ensure the json data is a string + if (data['interface_tooltip'] && !(typeof data['interface_tooltip'] === 'string' || data['interface_tooltip'] instanceof String)) { + throw new Error("Expected the field `interface_tooltip` to be a primitive type in the JSON string but got " + data['interface_tooltip']); + } + + return true; + } + + +} + + + +/** + * @member {Number} id + */ +OrganizationThresholdFields.prototype['id'] = undefined; + +/** + * @member {String} interface_title + */ +OrganizationThresholdFields.prototype['interface_title'] = undefined; + +/** + * @member {String} interface_tooltip + */ +OrganizationThresholdFields.prototype['interface_tooltip'] = undefined; + +/** + * @member {Boolean} subscribed + */ +OrganizationThresholdFields.prototype['subscribed'] = undefined; + +/** + * @member {Number} threshold + */ +OrganizationThresholdFields.prototype['threshold'] = undefined; + + + + + + +export default OrganizationThresholdFields; + diff --git a/src/model/OrganizationThresholdUpdateResponse.js b/src/model/OrganizationThresholdUpdateResponse.js new file mode 100644 index 00000000..13bad8f2 --- /dev/null +++ b/src/model/OrganizationThresholdUpdateResponse.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 OrganizationThresholdFields from './OrganizationThresholdFields'; + +/** + * The OrganizationThresholdUpdateResponse model module. + * @module model/OrganizationThresholdUpdateResponse + * @version v1.51.1-alpha + */ +class OrganizationThresholdUpdateResponse { + /** + * Constructs a new OrganizationThresholdUpdateResponse. + * @alias module:model/OrganizationThresholdUpdateResponse + */ + constructor() { + + OrganizationThresholdUpdateResponse.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 OrganizationThresholdUpdateResponse 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/OrganizationThresholdUpdateResponse} obj Optional instance to populate. + * @return {module:model/OrganizationThresholdUpdateResponse} The populated OrganizationThresholdUpdateResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrganizationThresholdUpdateResponse(); + + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); + } + if (data.hasOwnProperty('threshold')) { + obj['threshold'] = OrganizationThresholdFields.constructFromObject(data['threshold']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to OrganizationThresholdUpdateResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to OrganizationThresholdUpdateResponse. + */ + 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 `threshold` + if (data['threshold']) { // data not null + OrganizationThresholdFields.validateJSON(data['threshold']); + } + + return true; + } + + +} + + + +/** + * @member {String} message + */ +OrganizationThresholdUpdateResponse.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +OrganizationThresholdUpdateResponse.prototype['status'] = undefined; + +/** + * @member {module:model/OrganizationThresholdFields} threshold + */ +OrganizationThresholdUpdateResponse.prototype['threshold'] = undefined; + + + + + + +export default OrganizationThresholdUpdateResponse; + diff --git a/src/model/OrganizationThresholdfields.js b/src/model/OrganizationThresholdfields.js deleted file mode 100644 index 83cdb56e..00000000 --- a/src/model/OrganizationThresholdfields.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 OrganizationThresholdfields model module. - * @module model/OrganizationThresholdfields - * @version v1.25.0-alpha - */ -class OrganizationThresholdfields { - /** - * Constructs a new OrganizationThresholdfields. - * @alias module:model/OrganizationThresholdfields - */ - constructor() { - - OrganizationThresholdfields.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 OrganizationThresholdfields 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/OrganizationThresholdfields} obj Optional instance to populate. - * @return {module:model/OrganizationThresholdfields} The populated OrganizationThresholdfields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationThresholdfields(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('interface_title')) { - obj['interface_title'] = ApiClient.convertToType(data['interface_title'], 'String'); - } - if (data.hasOwnProperty('interface_tooltip')) { - obj['interface_tooltip'] = ApiClient.convertToType(data['interface_tooltip'], 'String'); - } - if (data.hasOwnProperty('subscribed')) { - obj['subscribed'] = ApiClient.convertToType(data['subscribed'], 'Boolean'); - } - if (data.hasOwnProperty('threshold')) { - obj['threshold'] = ApiClient.convertToType(data['threshold'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to OrganizationThresholdfields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to OrganizationThresholdfields. - */ - static validateJSON(data) { - // ensure the json data is a string - if (data['interface_title'] && !(typeof data['interface_title'] === 'string' || data['interface_title'] instanceof String)) { - throw new Error("Expected the field `interface_title` to be a primitive type in the JSON string but got " + data['interface_title']); - } - // ensure the json data is a string - if (data['interface_tooltip'] && !(typeof data['interface_tooltip'] === 'string' || data['interface_tooltip'] instanceof String)) { - throw new Error("Expected the field `interface_tooltip` to be a primitive type in the JSON string but got " + data['interface_tooltip']); - } - - return true; - } - - -} - - - -/** - * @member {Number} id - */ -OrganizationThresholdfields.prototype['id'] = undefined; - -/** - * @member {String} interface_title - */ -OrganizationThresholdfields.prototype['interface_title'] = undefined; - -/** - * @member {String} interface_tooltip - */ -OrganizationThresholdfields.prototype['interface_tooltip'] = undefined; - -/** - * @member {Boolean} subscribed - */ -OrganizationThresholdfields.prototype['subscribed'] = undefined; - -/** - * @member {Number} threshold - */ -OrganizationThresholdfields.prototype['threshold'] = undefined; - - - - - - -export default OrganizationThresholdfields; - diff --git a/src/model/OrganizationThresholdsResponse.js b/src/model/OrganizationThresholdsResponse.js new file mode 100644 index 00000000..b194ddd9 --- /dev/null +++ b/src/model/OrganizationThresholdsResponse.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 OrganizationThresholdFields from './OrganizationThresholdFields'; + +/** + * The OrganizationThresholdsResponse model module. + * @module model/OrganizationThresholdsResponse + * @version v1.51.1-alpha + */ +class OrganizationThresholdsResponse { + /** + * Constructs a new OrganizationThresholdsResponse. + * @alias module:model/OrganizationThresholdsResponse + */ + constructor() { + + OrganizationThresholdsResponse.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 OrganizationThresholdsResponse 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/OrganizationThresholdsResponse} obj Optional instance to populate. + * @return {module:model/OrganizationThresholdsResponse} The populated OrganizationThresholdsResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new OrganizationThresholdsResponse(); + + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); + } + if (data.hasOwnProperty('thresholds')) { + obj['thresholds'] = ApiClient.convertToType(data['thresholds'], [OrganizationThresholdFields]); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to OrganizationThresholdsResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to OrganizationThresholdsResponse. + */ + 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['thresholds']) { // data not null + // ensure the json data is an array + if (!Array.isArray(data['thresholds'])) { + throw new Error("Expected the field `thresholds` to be an array in the JSON data but got " + data['thresholds']); + } + // validate the optional field `thresholds` (array) + for (const item of data['thresholds']) { + OrganizationThresholdFields.validateJSON(item); + }; + } + + return true; + } + + +} + + + +/** + * @member {String} message + */ +OrganizationThresholdsResponse.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +OrganizationThresholdsResponse.prototype['status'] = undefined; + +/** + * @member {Array.} thresholds + */ +OrganizationThresholdsResponse.prototype['thresholds'] = undefined; + + + + + + +export default OrganizationThresholdsResponse; + diff --git a/src/model/OrganizationUserResponseModel.js b/src/model/OrganizationUserResponseModel.js index bfc10902..2beafc31 100644 --- a/src/model/OrganizationUserResponseModel.js +++ b/src/model/OrganizationUserResponseModel.js @@ -17,7 +17,7 @@ import RbacRoleField from './RbacRoleField'; /** * The OrganizationUserResponseModel model module. * @module model/OrganizationUserResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class OrganizationUserResponseModel { /** diff --git a/src/model/Organizationcreditrechargelimitresponse.js b/src/model/Organizationcreditrechargelimitresponse.js deleted file mode 100644 index 8e4697f7..00000000 --- a/src/model/Organizationcreditrechargelimitresponse.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 Creditrechargelimitfield from './Creditrechargelimitfield'; - -/** - * The Organizationcreditrechargelimitresponse model module. - * @module model/Organizationcreditrechargelimitresponse - * @version v1.25.0-alpha - */ -class Organizationcreditrechargelimitresponse { - /** - * Constructs a new Organizationcreditrechargelimitresponse. - * @alias module:model/Organizationcreditrechargelimitresponse - */ - constructor() { - - Organizationcreditrechargelimitresponse.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 Organizationcreditrechargelimitresponse 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/Organizationcreditrechargelimitresponse} obj Optional instance to populate. - * @return {module:model/Organizationcreditrechargelimitresponse} The populated Organizationcreditrechargelimitresponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Organizationcreditrechargelimitresponse(); - - if (data.hasOwnProperty('data')) { - obj['data'] = Creditrechargelimitfield.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 Organizationcreditrechargelimitresponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Organizationcreditrechargelimitresponse. - */ - static validateJSON(data) { - // validate the optional field `data` - if (data['data']) { // data not null - Creditrechargelimitfield.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/Creditrechargelimitfield} data - */ -Organizationcreditrechargelimitresponse.prototype['data'] = undefined; - -/** - * @member {String} message - */ -Organizationcreditrechargelimitresponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -Organizationcreditrechargelimitresponse.prototype['status'] = undefined; - - - - - - -export default Organizationcreditrechargelimitresponse; - diff --git a/src/model/Organizationthresholdsresponse.js b/src/model/Organizationthresholdsresponse.js deleted file mode 100644 index e39ebf83..00000000 --- a/src/model/Organizationthresholdsresponse.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 OrganizationThresholdfields from './OrganizationThresholdfields'; - -/** - * The Organizationthresholdsresponse model module. - * @module model/Organizationthresholdsresponse - * @version v1.25.0-alpha - */ -class Organizationthresholdsresponse { - /** - * Constructs a new Organizationthresholdsresponse. - * @alias module:model/Organizationthresholdsresponse - */ - constructor() { - - Organizationthresholdsresponse.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 Organizationthresholdsresponse 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/Organizationthresholdsresponse} obj Optional instance to populate. - * @return {module:model/Organizationthresholdsresponse} The populated Organizationthresholdsresponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Organizationthresholdsresponse(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('thresholds')) { - obj['thresholds'] = ApiClient.convertToType(data['thresholds'], [OrganizationThresholdfields]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to Organizationthresholdsresponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Organizationthresholdsresponse. - */ - 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['thresholds']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['thresholds'])) { - throw new Error("Expected the field `thresholds` to be an array in the JSON data but got " + data['thresholds']); - } - // validate the optional field `thresholds` (array) - for (const item of data['thresholds']) { - OrganizationThresholdfields.validateJSON(item); - }; - } - - return true; - } - - -} - - - -/** - * @member {String} message - */ -Organizationthresholdsresponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -Organizationthresholdsresponse.prototype['status'] = undefined; - -/** - * @member {Array.} thresholds - */ -Organizationthresholdsresponse.prototype['thresholds'] = undefined; - - - - - - -export default Organizationthresholdsresponse; - diff --git a/src/model/Organizationthresholdupdateresponse.js b/src/model/Organizationthresholdupdateresponse.js deleted file mode 100644 index 20fcea4c..00000000 --- a/src/model/Organizationthresholdupdateresponse.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 OrganizationThresholdfields from './OrganizationThresholdfields'; - -/** - * The Organizationthresholdupdateresponse model module. - * @module model/Organizationthresholdupdateresponse - * @version v1.25.0-alpha - */ -class Organizationthresholdupdateresponse { - /** - * Constructs a new Organizationthresholdupdateresponse. - * @alias module:model/Organizationthresholdupdateresponse - */ - constructor() { - - Organizationthresholdupdateresponse.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 Organizationthresholdupdateresponse 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/Organizationthresholdupdateresponse} obj Optional instance to populate. - * @return {module:model/Organizationthresholdupdateresponse} The populated Organizationthresholdupdateresponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Organizationthresholdupdateresponse(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('threshold')) { - obj['threshold'] = OrganizationThresholdfields.constructFromObject(data['threshold']); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to Organizationthresholdupdateresponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Organizationthresholdupdateresponse. - */ - 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 `threshold` - if (data['threshold']) { // data not null - OrganizationThresholdfields.validateJSON(data['threshold']); - } - - return true; - } - - -} - - - -/** - * @member {String} message - */ -Organizationthresholdupdateresponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -Organizationthresholdupdateresponse.prototype['status'] = undefined; - -/** - * @member {module:model/OrganizationThresholdfields} threshold - */ -Organizationthresholdupdateresponse.prototype['threshold'] = undefined; - - - - - - -export default Organizationthresholdupdateresponse; - diff --git a/src/model/OverviewInfo.js b/src/model/OverviewInfo.js index 507b4392..be9dc11d 100644 --- a/src/model/OverviewInfo.js +++ b/src/model/OverviewInfo.js @@ -19,7 +19,7 @@ import VolumeOverviewFields from './VolumeOverviewFields'; /** * The OverviewInfo model module. * @module model/OverviewInfo - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class OverviewInfo { /** diff --git a/src/model/Pagination.js b/src/model/Pagination.js new file mode 100644 index 00000000..57e29890 --- /dev/null +++ b/src/model/Pagination.js @@ -0,0 +1,102 @@ +/** + * 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 Pagination model module. + * @module model/Pagination + * @version v1.51.1-alpha + */ +class Pagination { + /** + * Constructs a new Pagination. + * @alias module:model/Pagination + */ + constructor() { + + Pagination.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 Pagination 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/Pagination} obj Optional instance to populate. + * @return {module:model/Pagination} The populated Pagination instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Pagination(); + + if (data.hasOwnProperty('page')) { + obj['page'] = ApiClient.convertToType(data['page'], 'Number'); + } + if (data.hasOwnProperty('pages')) { + obj['pages'] = ApiClient.convertToType(data['pages'], 'Number'); + } + if (data.hasOwnProperty('per_page')) { + obj['per_page'] = ApiClient.convertToType(data['per_page'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to Pagination. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to Pagination. + */ + static validateJSON(data) { + + return true; + } + + +} + + + +/** + * + * @member {Number} page + */ +Pagination.prototype['page'] = undefined; + +/** + * + * @member {Number} pages + */ +Pagination.prototype['pages'] = undefined; + +/** + * + * @member {Number} per_page + */ +Pagination.prototype['per_page'] = undefined; + + + + + + +export default Pagination; + diff --git a/src/model/PaginationData.js b/src/model/PaginationData.js index b121e4ba..fb5d0529 100644 --- a/src/model/PaginationData.js +++ b/src/model/PaginationData.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The PaginationData model module. * @module model/PaginationData - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class PaginationData { /** diff --git a/src/model/PartnerConfig.js b/src/model/PartnerConfig.js new file mode 100644 index 00000000..abaca766 --- /dev/null +++ b/src/model/PartnerConfig.js @@ -0,0 +1,172 @@ +/** + * 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 Colors from './Colors'; +import Logos from './Logos'; +import URIs from './URIs'; + +/** + * The PartnerConfig model module. + * @module model/PartnerConfig + * @version v1.51.1-alpha + */ +class PartnerConfig { + /** + * Constructs a new PartnerConfig. + * @alias module:model/PartnerConfig + * @param name {String} + * @param userType {String} + */ + constructor(name, userType) { + + PartnerConfig.initialize(this, name, userType); + } + + /** + * 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, userType) { + obj['name'] = name; + obj['user_type'] = userType; + } + + /** + * Constructs a PartnerConfig 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/PartnerConfig} obj Optional instance to populate. + * @return {module:model/PartnerConfig} The populated PartnerConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PartnerConfig(); + + if (data.hasOwnProperty('background_image_url')) { + obj['background_image_url'] = ApiClient.convertToType(data['background_image_url'], 'String'); + } + if (data.hasOwnProperty('colors')) { + obj['colors'] = Colors.constructFromObject(data['colors']); + } + if (data.hasOwnProperty('logos')) { + obj['logos'] = Logos.constructFromObject(data['logos']); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('support_email')) { + obj['support_email'] = ApiClient.convertToType(data['support_email'], 'String'); + } + if (data.hasOwnProperty('uris')) { + obj['uris'] = URIs.constructFromObject(data['uris']); + } + if (data.hasOwnProperty('user_type')) { + obj['user_type'] = ApiClient.convertToType(data['user_type'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to PartnerConfig. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to PartnerConfig. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of PartnerConfig.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['background_image_url'] && !(typeof data['background_image_url'] === 'string' || data['background_image_url'] instanceof String)) { + throw new Error("Expected the field `background_image_url` to be a primitive type in the JSON string but got " + data['background_image_url']); + } + // validate the optional field `colors` + if (data['colors']) { // data not null + Colors.validateJSON(data['colors']); + } + // validate the optional field `logos` + if (data['logos']) { // data not null + Logos.validateJSON(data['logos']); + } + // 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['support_email'] && !(typeof data['support_email'] === 'string' || data['support_email'] instanceof String)) { + throw new Error("Expected the field `support_email` to be a primitive type in the JSON string but got " + data['support_email']); + } + // validate the optional field `uris` + if (data['uris']) { // data not null + URIs.validateJSON(data['uris']); + } + // ensure the json data is a string + if (data['user_type'] && !(typeof data['user_type'] === 'string' || data['user_type'] instanceof String)) { + throw new Error("Expected the field `user_type` to be a primitive type in the JSON string but got " + data['user_type']); + } + + return true; + } + + +} + +PartnerConfig.RequiredProperties = ["name", "user_type"]; + +/** + * @member {String} background_image_url + */ +PartnerConfig.prototype['background_image_url'] = undefined; + +/** + * @member {module:model/Colors} colors + */ +PartnerConfig.prototype['colors'] = undefined; + +/** + * @member {module:model/Logos} logos + */ +PartnerConfig.prototype['logos'] = undefined; + +/** + * @member {String} name + */ +PartnerConfig.prototype['name'] = undefined; + +/** + * @member {String} support_email + */ +PartnerConfig.prototype['support_email'] = undefined; + +/** + * @member {module:model/URIs} uris + */ +PartnerConfig.prototype['uris'] = undefined; + +/** + * @member {String} user_type + */ +PartnerConfig.prototype['user_type'] = undefined; + + + + + + +export default PartnerConfig; + diff --git a/src/model/PaymentDetailsFields.js b/src/model/PaymentDetailsFields.js index 94d42291..0a4790a6 100644 --- a/src/model/PaymentDetailsFields.js +++ b/src/model/PaymentDetailsFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The PaymentDetailsFields model module. * @module model/PaymentDetailsFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class PaymentDetailsFields { /** @@ -62,6 +62,9 @@ class PaymentDetailsFields { if (data.hasOwnProperty('gateway_response')) { obj['gateway_response'] = ApiClient.convertToType(data['gateway_response'], 'String'); } + if (data.hasOwnProperty('invoice')) { + obj['invoice'] = ApiClient.convertToType(data['invoice'], 'String'); + } if (data.hasOwnProperty('paid_from')) { obj['paid_from'] = ApiClient.convertToType(data['paid_from'], 'String'); } @@ -71,6 +74,9 @@ class PaymentDetailsFields { if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'String'); } + if (data.hasOwnProperty('tax_amount')) { + obj['tax_amount'] = ApiClient.convertToType(data['tax_amount'], 'Number'); + } if (data.hasOwnProperty('transaction_id')) { obj['transaction_id'] = ApiClient.convertToType(data['transaction_id'], 'String'); } @@ -100,6 +106,10 @@ class PaymentDetailsFields { throw new Error("Expected the field `gateway_response` to be a primitive type in the JSON string but got " + data['gateway_response']); } // ensure the json data is a string + if (data['invoice'] && !(typeof data['invoice'] === 'string' || data['invoice'] instanceof String)) { + throw new Error("Expected the field `invoice` to be a primitive type in the JSON string but got " + data['invoice']); + } + // ensure the json data is a string if (data['paid_from'] && !(typeof data['paid_from'] === 'string' || data['paid_from'] instanceof String)) { throw new Error("Expected the field `paid_from` to be a primitive type in the JSON string but got " + data['paid_from']); } @@ -149,6 +159,11 @@ PaymentDetailsFields.prototype['description'] = undefined; */ PaymentDetailsFields.prototype['gateway_response'] = undefined; +/** + * @member {String} invoice + */ +PaymentDetailsFields.prototype['invoice'] = undefined; + /** * @member {String} paid_from */ @@ -164,6 +179,11 @@ PaymentDetailsFields.prototype['payment_id'] = undefined; */ PaymentDetailsFields.prototype['status'] = undefined; +/** + * @member {Number} tax_amount + */ +PaymentDetailsFields.prototype['tax_amount'] = undefined; + /** * @member {String} transaction_id */ diff --git a/src/model/PaymentDetailsResponse.js b/src/model/PaymentDetailsResponse.js index 2ee71352..f45b0683 100644 --- a/src/model/PaymentDetailsResponse.js +++ b/src/model/PaymentDetailsResponse.js @@ -17,7 +17,7 @@ import PaymentDetailsFields from './PaymentDetailsFields'; /** * The PaymentDetailsResponse model module. * @module model/PaymentDetailsResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class PaymentDetailsResponse { /** diff --git a/src/model/PaymentInitiateFields.js b/src/model/PaymentInitiateFields.js index b3ad1c2d..a70088df 100644 --- a/src/model/PaymentInitiateFields.js +++ b/src/model/PaymentInitiateFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The PaymentInitiateFields model module. * @module model/PaymentInitiateFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class PaymentInitiateFields { /** diff --git a/src/model/PaymentInitiatePayload.js b/src/model/PaymentInitiatePayload.js index a3cb1f31..49cf8a97 100644 --- a/src/model/PaymentInitiatePayload.js +++ b/src/model/PaymentInitiatePayload.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The PaymentInitiatePayload model module. * @module model/PaymentInitiatePayload - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class PaymentInitiatePayload { /** diff --git a/src/model/PaymentInitiateResponse.js b/src/model/PaymentInitiateResponse.js index b0dd1902..7aae70a2 100644 --- a/src/model/PaymentInitiateResponse.js +++ b/src/model/PaymentInitiateResponse.js @@ -17,7 +17,7 @@ import PaymentInitiateFields from './PaymentInitiateFields'; /** * The PaymentInitiateResponse model module. * @module model/PaymentInitiateResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class PaymentInitiateResponse { /** diff --git a/src/model/PermissionFields.js b/src/model/PermissionFields.js index 2fc45d4d..073c4dcb 100644 --- a/src/model/PermissionFields.js +++ b/src/model/PermissionFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The PermissionFields model module. * @module model/PermissionFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class PermissionFields { /** diff --git a/src/model/PolicyFields.js b/src/model/PolicyFields.js index a602d2fa..78bca48d 100644 --- a/src/model/PolicyFields.js +++ b/src/model/PolicyFields.js @@ -17,7 +17,7 @@ import PolicyPermissionFields from './PolicyPermissionFields'; /** * The PolicyFields model module. * @module model/PolicyFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class PolicyFields { /** diff --git a/src/model/PolicyPermissionFields.js b/src/model/PolicyPermissionFields.js index 6f155a16..b6812696 100644 --- a/src/model/PolicyPermissionFields.js +++ b/src/model/PolicyPermissionFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The PolicyPermissionFields model module. * @module model/PolicyPermissionFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class PolicyPermissionFields { /** diff --git a/src/model/PowerUsageModel.js b/src/model/PowerUsageModel.js deleted file mode 100644 index 092d02c7..00000000 --- a/src/model/PowerUsageModel.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 PowerUsageModel model module. - * @module model/PowerUsageModel - * @version v1.25.0-alpha - */ -class PowerUsageModel { - /** - * Constructs a new PowerUsageModel. - * @alias module:model/PowerUsageModel - * @param unit {String} - * @param value {Number} - */ - constructor(unit, value) { - - PowerUsageModel.initialize(this, unit, value); - } - - /** - * 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, unit, value) { - obj['unit'] = unit; - obj['value'] = value; - } - - /** - * Constructs a PowerUsageModel 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/PowerUsageModel} obj Optional instance to populate. - * @return {module:model/PowerUsageModel} The populated PowerUsageModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PowerUsageModel(); - - if (data.hasOwnProperty('unit')) { - obj['unit'] = ApiClient.convertToType(data['unit'], 'String'); - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PowerUsageModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PowerUsageModel. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PowerUsageModel.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['unit'] && !(typeof data['unit'] === 'string' || data['unit'] instanceof String)) { - throw new Error("Expected the field `unit` to be a primitive type in the JSON string but got " + data['unit']); - } - - return true; - } - - -} - -PowerUsageModel.RequiredProperties = ["unit", "value"]; - -/** - * @member {String} unit - */ -PowerUsageModel.prototype['unit'] = undefined; - -/** - * @member {Number} value - */ -PowerUsageModel.prototype['value'] = undefined; - - - - - - -export default PowerUsageModel; - diff --git a/src/model/PricebookModel.js b/src/model/PricebookModel.js index 25b93500..eb5a9965 100644 --- a/src/model/PricebookModel.js +++ b/src/model/PricebookModel.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The PricebookModel model module. * @module model/PricebookModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class PricebookModel { /** diff --git a/src/model/PricebookResourceObjectResponse.js b/src/model/PricebookResourceObjectResponse.js deleted file mode 100644 index 1c2d0979..00000000 --- a/src/model/PricebookResourceObjectResponse.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 PricebookResourceObjectResponse model module. - * @module model/PricebookResourceObjectResponse - * @version v1.25.0-alpha - */ -class PricebookResourceObjectResponse { - /** - * Constructs a new PricebookResourceObjectResponse. - * @alias module:model/PricebookResourceObjectResponse - */ - constructor() { - - PricebookResourceObjectResponse.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 PricebookResourceObjectResponse 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/PricebookResourceObjectResponse} obj Optional instance to populate. - * @return {module:model/PricebookResourceObjectResponse} The populated PricebookResourceObjectResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PricebookResourceObjectResponse(); - - if (data.hasOwnProperty('actual_price')) { - obj['actual_price'] = ApiClient.convertToType(data['actual_price'], 'Number'); - } - if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); - } - if (data.hasOwnProperty('discounted_rate')) { - obj['discounted_rate'] = ApiClient.convertToType(data['discounted_rate'], 'Number'); - } - if (data.hasOwnProperty('host_original_price')) { - obj['host_original_price'] = ApiClient.convertToType(data['host_original_price'], 'Number'); - } - if (data.hasOwnProperty('host_price')) { - obj['host_price'] = ApiClient.convertToType(data['host_price'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('nexgen_original_price')) { - obj['nexgen_original_price'] = ApiClient.convertToType(data['nexgen_original_price'], 'Number'); - } - if (data.hasOwnProperty('nexgen_price')) { - obj['nexgen_price'] = ApiClient.convertToType(data['nexgen_price'], 'Number'); - } - if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number'); - } - if (data.hasOwnProperty('rate')) { - obj['rate'] = ApiClient.convertToType(data['rate'], 'Number'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PricebookResourceObjectResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PricebookResourceObjectResponse. - */ - 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['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 {Number} actual_price - */ -PricebookResourceObjectResponse.prototype['actual_price'] = undefined; - -/** - * @member {Number} amount - */ -PricebookResourceObjectResponse.prototype['amount'] = undefined; - -/** - * @member {Number} discounted_rate - */ -PricebookResourceObjectResponse.prototype['discounted_rate'] = undefined; - -/** - * @member {Number} host_original_price - */ -PricebookResourceObjectResponse.prototype['host_original_price'] = undefined; - -/** - * @member {Number} host_price - */ -PricebookResourceObjectResponse.prototype['host_price'] = undefined; - -/** - * @member {String} name - */ -PricebookResourceObjectResponse.prototype['name'] = undefined; - -/** - * @member {Number} nexgen_original_price - */ -PricebookResourceObjectResponse.prototype['nexgen_original_price'] = undefined; - -/** - * @member {Number} nexgen_price - */ -PricebookResourceObjectResponse.prototype['nexgen_price'] = undefined; - -/** - * @member {Number} price - */ -PricebookResourceObjectResponse.prototype['price'] = undefined; - -/** - * @member {Number} rate - */ -PricebookResourceObjectResponse.prototype['rate'] = undefined; - -/** - * @member {String} type - */ -PricebookResourceObjectResponse.prototype['type'] = undefined; - - - - - - -export default PricebookResourceObjectResponse; - diff --git a/src/model/PricebookResourceObjectResponseForCustomer.js b/src/model/PricebookResourceObjectResponseForCustomer.js index 5e115e2d..befb0e74 100644 --- a/src/model/PricebookResourceObjectResponseForCustomer.js +++ b/src/model/PricebookResourceObjectResponseForCustomer.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The PricebookResourceObjectResponseForCustomer model module. * @module model/PricebookResourceObjectResponseForCustomer - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class PricebookResourceObjectResponseForCustomer { /** diff --git a/src/model/PrimaryColor.js b/src/model/PrimaryColor.js new file mode 100644 index 00000000..6c3bf50d --- /dev/null +++ b/src/model/PrimaryColor.js @@ -0,0 +1,99 @@ +/** + * 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 PrimaryColor model module. + * @module model/PrimaryColor + * @version v1.51.1-alpha + */ +class PrimaryColor { + /** + * Constructs a new PrimaryColor. + * @alias module:model/PrimaryColor + */ + constructor() { + + PrimaryColor.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 PrimaryColor 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/PrimaryColor} obj Optional instance to populate. + * @return {module:model/PrimaryColor} The populated PrimaryColor instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PrimaryColor(); + + if (data.hasOwnProperty('dark')) { + obj['dark'] = ApiClient.convertToType(data['dark'], 'String'); + } + if (data.hasOwnProperty('light')) { + obj['light'] = ApiClient.convertToType(data['light'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to PrimaryColor. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to PrimaryColor. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['dark'] && !(typeof data['dark'] === 'string' || data['dark'] instanceof String)) { + throw new Error("Expected the field `dark` to be a primitive type in the JSON string but got " + data['dark']); + } + // ensure the json data is a string + if (data['light'] && !(typeof data['light'] === 'string' || data['light'] instanceof String)) { + throw new Error("Expected the field `light` to be a primitive type in the JSON string but got " + data['light']); + } + + return true; + } + + +} + + + +/** + * @member {String} dark + */ +PrimaryColor.prototype['dark'] = undefined; + +/** + * @member {String} light + */ +PrimaryColor.prototype['light'] = undefined; + + + + + + +export default PrimaryColor; + diff --git a/src/model/ProfileFields.js b/src/model/ProfileFields.js index c41e7662..df788272 100644 --- a/src/model/ProfileFields.js +++ b/src/model/ProfileFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ProfileFields model module. * @module model/ProfileFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ProfileFields { /** diff --git a/src/model/ProfileListResponse.js b/src/model/ProfileListResponse.js index 608abbcf..275aedf3 100644 --- a/src/model/ProfileListResponse.js +++ b/src/model/ProfileListResponse.js @@ -17,7 +17,7 @@ import ProfileFields from './ProfileFields'; /** * The ProfileListResponse model module. * @module model/ProfileListResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ProfileListResponse { /** diff --git a/src/model/ProfileObjectFields.js b/src/model/ProfileObjectFields.js index 6c1a1447..0c63a2fa 100644 --- a/src/model/ProfileObjectFields.js +++ b/src/model/ProfileObjectFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ProfileObjectFields model module. * @module model/ProfileObjectFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ProfileObjectFields { /** diff --git a/src/model/RbacRoleDetailResponseModel.js b/src/model/RbacRoleDetailResponseModel.js index 6332e2ed..e67265d0 100644 --- a/src/model/RbacRoleDetailResponseModel.js +++ b/src/model/RbacRoleDetailResponseModel.js @@ -17,7 +17,7 @@ import RbacRoleFields from './RbacRoleFields'; /** * The RbacRoleDetailResponseModel model module. * @module model/RbacRoleDetailResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class RbacRoleDetailResponseModel { /** diff --git a/src/model/RbacRoleDetailResponseModelFixed.js b/src/model/RbacRoleDetailResponseModelFixed.js index b3ba33af..5534d2e0 100644 --- a/src/model/RbacRoleDetailResponseModelFixed.js +++ b/src/model/RbacRoleDetailResponseModelFixed.js @@ -17,7 +17,7 @@ import RbacRoleFields from './RbacRoleFields'; /** * The RbacRoleDetailResponseModelFixed model module. * @module model/RbacRoleDetailResponseModelFixed - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class RbacRoleDetailResponseModelFixed { /** diff --git a/src/model/RbacRoleField.js b/src/model/RbacRoleField.js index 4bd6b808..ea03f793 100644 --- a/src/model/RbacRoleField.js +++ b/src/model/RbacRoleField.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The RbacRoleField model module. * @module model/RbacRoleField - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class RbacRoleField { /** diff --git a/src/model/RbacRoleFields.js b/src/model/RbacRoleFields.js index 4fb07a58..4c03e2bf 100644 --- a/src/model/RbacRoleFields.js +++ b/src/model/RbacRoleFields.js @@ -18,7 +18,7 @@ import RolePolicyFields from './RolePolicyFields'; /** * The RbacRoleFields model module. * @module model/RbacRoleFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class RbacRoleFields { /** diff --git a/src/model/RedeemVoucherPayload.js b/src/model/RedeemVoucherPayload.js new file mode 100644 index 00000000..547cf5d4 --- /dev/null +++ b/src/model/RedeemVoucherPayload.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'; + +/** + * The RedeemVoucherPayload model module. + * @module model/RedeemVoucherPayload + * @version v1.51.1-alpha + */ +class RedeemVoucherPayload { + /** + * Constructs a new RedeemVoucherPayload. + * @alias module:model/RedeemVoucherPayload + * @param voucherCode {String} The code of the voucher you want to redeem. + */ + constructor(voucherCode) { + + RedeemVoucherPayload.initialize(this, voucherCode); + } + + /** + * 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, voucherCode) { + obj['voucher_code'] = voucherCode; + } + + /** + * Constructs a RedeemVoucherPayload 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/RedeemVoucherPayload} obj Optional instance to populate. + * @return {module:model/RedeemVoucherPayload} The populated RedeemVoucherPayload instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RedeemVoucherPayload(); + + if (data.hasOwnProperty('voucher_code')) { + obj['voucher_code'] = ApiClient.convertToType(data['voucher_code'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to RedeemVoucherPayload. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to RedeemVoucherPayload. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of RedeemVoucherPayload.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['voucher_code'] && !(typeof data['voucher_code'] === 'string' || data['voucher_code'] instanceof String)) { + throw new Error("Expected the field `voucher_code` to be a primitive type in the JSON string but got " + data['voucher_code']); + } + + return true; + } + + +} + +RedeemVoucherPayload.RequiredProperties = ["voucher_code"]; + +/** + * The code of the voucher you want to redeem. + * @member {String} voucher_code + */ +RedeemVoucherPayload.prototype['voucher_code'] = undefined; + + + + + + +export default RedeemVoucherPayload; + diff --git a/src/model/RefreshTokenPayload.js b/src/model/RefreshTokenPayload.js deleted file mode 100644 index 95fb2179..00000000 --- a/src/model/RefreshTokenPayload.js +++ /dev/null @@ -1,109 +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 RefreshTokenPayload model module. - * @module model/RefreshTokenPayload - * @version v1.25.0-alpha - */ -class RefreshTokenPayload { - /** - * Constructs a new RefreshTokenPayload. - * @alias module:model/RefreshTokenPayload - * @param idToken {String} - * @param refreshToken {String} - */ - constructor(idToken, refreshToken) { - - RefreshTokenPayload.initialize(this, idToken, refreshToken); - } - - /** - * 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, idToken, refreshToken) { - obj['id_token'] = idToken; - obj['refresh_token'] = refreshToken; - } - - /** - * Constructs a RefreshTokenPayload 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/RefreshTokenPayload} obj Optional instance to populate. - * @return {module:model/RefreshTokenPayload} The populated RefreshTokenPayload instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RefreshTokenPayload(); - - if (data.hasOwnProperty('id_token')) { - obj['id_token'] = ApiClient.convertToType(data['id_token'], 'String'); - } - if (data.hasOwnProperty('refresh_token')) { - obj['refresh_token'] = ApiClient.convertToType(data['refresh_token'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to RefreshTokenPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to RefreshTokenPayload. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of RefreshTokenPayload.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['id_token'] && !(typeof data['id_token'] === 'string' || data['id_token'] instanceof String)) { - throw new Error("Expected the field `id_token` to be a primitive type in the JSON string but got " + data['id_token']); - } - // ensure the json data is a string - if (data['refresh_token'] && !(typeof data['refresh_token'] === 'string' || data['refresh_token'] instanceof String)) { - throw new Error("Expected the field `refresh_token` to be a primitive type in the JSON string but got " + data['refresh_token']); - } - - return true; - } - - -} - -RefreshTokenPayload.RequiredProperties = ["id_token", "refresh_token"]; - -/** - * @member {String} id_token - */ -RefreshTokenPayload.prototype['id_token'] = undefined; - -/** - * @member {String} refresh_token - */ -RefreshTokenPayload.prototype['refresh_token'] = undefined; - - - - - - -export default RefreshTokenPayload; - diff --git a/src/model/RegionFields.js b/src/model/RegionFields.js index 286c0f61..b930db0b 100644 --- a/src/model/RegionFields.js +++ b/src/model/RegionFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The RegionFields model module. * @module model/RegionFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class RegionFields { /** @@ -47,9 +47,18 @@ class RegionFields { if (data) { obj = obj || new RegionFields(); + if (data.hasOwnProperty('country')) { + obj['country'] = ApiClient.convertToType(data['country'], 'String'); + } if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } + if (data.hasOwnProperty('features')) { + obj['features'] = ApiClient.convertToType(data['features'], Object); + } + if (data.hasOwnProperty('green_status')) { + obj['green_status'] = ApiClient.convertToType(data['green_status'], 'String'); + } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } @@ -66,11 +75,19 @@ class RegionFields { * @return {boolean} to indicate whether the JSON data is valid with respect to RegionFields. */ static validateJSON(data) { + // ensure the json data is a string + if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) { + throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']); + } // 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['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']); + } + // 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']); } @@ -83,11 +100,27 @@ class RegionFields { +/** + * @member {String} country + */ +RegionFields.prototype['country'] = undefined; + /** * @member {String} description */ RegionFields.prototype['description'] = undefined; +/** + * @member {Object} features + */ +RegionFields.prototype['features'] = undefined; + +/** + * Green status + * @member {module:model/RegionFields.GreenStatusEnum} green_status + */ +RegionFields.prototype['green_status'] = undefined; + /** * @member {Number} id */ @@ -102,6 +135,33 @@ RegionFields.prototype['name'] = undefined; +/** + * Allowed values for the green_status property. + * @enum {String} + * @readonly + */ +RegionFields['GreenStatusEnum'] = { + + /** + * value: "GREEN" + * @const + */ + "GREEN": "GREEN", + + /** + * value: "PARTIALLY_GREEN" + * @const + */ + "PARTIALLY_GREEN": "PARTIALLY_GREEN", + + /** + * value: "NOT_GREEN" + * @const + */ + "NOT_GREEN": "NOT_GREEN" +}; + + export default RegionFields; diff --git a/src/model/RegionPayload.js b/src/model/RegionPayload.js deleted file mode 100644 index 52c2cc32..00000000 --- a/src/model/RegionPayload.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 RegionPayload model module. - * @module model/RegionPayload - * @version v1.25.0-alpha - */ -class RegionPayload { - /** - * Constructs a new RegionPayload. - * @alias module:model/RegionPayload - * @param name {String} - */ - constructor(name) { - - RegionPayload.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 RegionPayload 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/RegionPayload} obj Optional instance to populate. - * @return {module:model/RegionPayload} The populated RegionPayload instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RegionPayload(); - - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to RegionPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to RegionPayload. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of RegionPayload.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']); - } - - return true; - } - - -} - -RegionPayload.RequiredProperties = ["name"]; - -/** - * @member {String} description - */ -RegionPayload.prototype['description'] = undefined; - -/** - * @member {String} name - */ -RegionPayload.prototype['name'] = undefined; - - - - - - -export default RegionPayload; - diff --git a/src/model/RegionResponse.js b/src/model/RegionResponse.js deleted file mode 100644 index 39368b79..00000000 --- a/src/model/RegionResponse.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 RegionFields from './RegionFields'; - -/** - * The RegionResponse model module. - * @module model/RegionResponse - * @version v1.25.0-alpha - */ -class RegionResponse { - /** - * Constructs a new RegionResponse. - * @alias module:model/RegionResponse - */ - constructor() { - - RegionResponse.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 RegionResponse 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/RegionResponse} obj Optional instance to populate. - * @return {module:model/RegionResponse} The populated RegionResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RegionResponse(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('region')) { - obj['region'] = RegionFields.constructFromObject(data['region']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to RegionResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to RegionResponse. - */ - 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 `region` - if (data['region']) { // data not null - RegionFields.validateJSON(data['region']); - } - - return true; - } - - -} - - - -/** - * @member {String} message - */ -RegionResponse.prototype['message'] = undefined; - -/** - * @member {module:model/RegionFields} region - */ -RegionResponse.prototype['region'] = undefined; - -/** - * @member {Boolean} status - */ -RegionResponse.prototype['status'] = undefined; - - - - - - -export default RegionResponse; - diff --git a/src/model/Regions.js b/src/model/Regions.js index fae4fbba..9e67a204 100644 --- a/src/model/Regions.js +++ b/src/model/Regions.js @@ -17,7 +17,7 @@ import RegionFields from './RegionFields'; /** * The Regions model module. * @module model/Regions - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class Regions { /** diff --git a/src/model/RemoveMemberFromOrganizationResponseModel.js b/src/model/RemoveMemberFromOrganizationResponseModel.js index 4f5c45cd..c7a8379d 100644 --- a/src/model/RemoveMemberFromOrganizationResponseModel.js +++ b/src/model/RemoveMemberFromOrganizationResponseModel.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The RemoveMemberFromOrganizationResponseModel model module. * @module model/RemoveMemberFromOrganizationResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class RemoveMemberFromOrganizationResponseModel { /** diff --git a/src/model/RemoveMemberPayload.js b/src/model/RemoveMemberPayload.js index 961ef8a2..e6ce6456 100644 --- a/src/model/RemoveMemberPayload.js +++ b/src/model/RemoveMemberPayload.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The RemoveMemberPayload model module. * @module model/RemoveMemberPayload - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class RemoveMemberPayload { /** diff --git a/src/model/RequestConsole.js b/src/model/RequestConsole.js index 7bb8d6b4..7b070793 100644 --- a/src/model/RequestConsole.js +++ b/src/model/RequestConsole.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The RequestConsole model module. * @module model/RequestConsole - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class RequestConsole { /** diff --git a/src/model/RequestInstanceLogsPayload.js b/src/model/RequestInstanceLogsPayload.js new file mode 100644 index 00000000..c649a285 --- /dev/null +++ b/src/model/RequestInstanceLogsPayload.js @@ -0,0 +1,84 @@ +/** + * 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 RequestInstanceLogsPayload model module. + * @module model/RequestInstanceLogsPayload + * @version v1.51.1-alpha + */ +class RequestInstanceLogsPayload { + /** + * Constructs a new RequestInstanceLogsPayload. + * @alias module:model/RequestInstanceLogsPayload + */ + constructor() { + + RequestInstanceLogsPayload.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 RequestInstanceLogsPayload 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/RequestInstanceLogsPayload} obj Optional instance to populate. + * @return {module:model/RequestInstanceLogsPayload} The populated RequestInstanceLogsPayload instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RequestInstanceLogsPayload(); + + if (data.hasOwnProperty('length')) { + obj['length'] = ApiClient.convertToType(data['length'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to RequestInstanceLogsPayload. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to RequestInstanceLogsPayload. + */ + static validateJSON(data) { + + return true; + } + + +} + + + +/** + * The amount of lines to fetch + * @member {Number} length + */ +RequestInstanceLogsPayload.prototype['length'] = undefined; + + + + + + +export default RequestInstanceLogsPayload; + diff --git a/src/model/RequestInstanceLogsResponse.js b/src/model/RequestInstanceLogsResponse.js new file mode 100644 index 00000000..925cecb0 --- /dev/null +++ b/src/model/RequestInstanceLogsResponse.js @@ -0,0 +1,83 @@ +/** + * 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 RequestInstanceLogsResponse model module. + * @module model/RequestInstanceLogsResponse + * @version v1.51.1-alpha + */ +class RequestInstanceLogsResponse { + /** + * Constructs a new RequestInstanceLogsResponse. + * @alias module:model/RequestInstanceLogsResponse + */ + constructor() { + + RequestInstanceLogsResponse.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 RequestInstanceLogsResponse 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/RequestInstanceLogsResponse} obj Optional instance to populate. + * @return {module:model/RequestInstanceLogsResponse} The populated RequestInstanceLogsResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RequestInstanceLogsResponse(); + + if (data.hasOwnProperty('request_id')) { + obj['request_id'] = ApiClient.convertToType(data['request_id'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to RequestInstanceLogsResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to RequestInstanceLogsResponse. + */ + static validateJSON(data) { + + return true; + } + + +} + + + +/** + * @member {Number} request_id + */ +RequestInstanceLogsResponse.prototype['request_id'] = undefined; + + + + + + +export default RequestInstanceLogsResponse; + diff --git a/src/model/ResourceBillingEventsHistoryMetrics.js b/src/model/ResourceBillingEventsHistoryMetrics.js index a8a78171..91967bf0 100644 --- a/src/model/ResourceBillingEventsHistoryMetrics.js +++ b/src/model/ResourceBillingEventsHistoryMetrics.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ResourceBillingEventsHistoryMetrics model module. * @module model/ResourceBillingEventsHistoryMetrics - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceBillingEventsHistoryMetrics { /** diff --git a/src/model/ResourceBillingEventsHistoryResponse.js b/src/model/ResourceBillingEventsHistoryResponse.js index e7e94ec7..44365cf2 100644 --- a/src/model/ResourceBillingEventsHistoryResponse.js +++ b/src/model/ResourceBillingEventsHistoryResponse.js @@ -17,7 +17,7 @@ import ResourceBillingEventsHistoryMetrics from './ResourceBillingEventsHistoryM /** * The ResourceBillingEventsHistoryResponse model module. * @module model/ResourceBillingEventsHistoryResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceBillingEventsHistoryResponse { /** diff --git a/src/model/ResourceBillingResponseForCustomer.js b/src/model/ResourceBillingResponseForCustomer.js index 8a6db7ee..9351c73c 100644 --- a/src/model/ResourceBillingResponseForCustomer.js +++ b/src/model/ResourceBillingResponseForCustomer.js @@ -17,7 +17,7 @@ import ResourceObjectResponseForCustomer from './ResourceObjectResponseForCustom /** * The ResourceBillingResponseForCustomer model module. * @module model/ResourceBillingResponseForCustomer - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceBillingResponseForCustomer { /** diff --git a/src/model/ResourceLevelBillingBucketDetailsResources.js b/src/model/ResourceLevelBillingBucketDetailsResources.js new file mode 100644 index 00000000..c1a66e3b --- /dev/null +++ b/src/model/ResourceLevelBillingBucketDetailsResources.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 ResourceLevelBillingDetailsAttributes from './ResourceLevelBillingDetailsAttributes'; +import ResourceLevelBillingDetailsMetrics from './ResourceLevelBillingDetailsMetrics'; + +/** + * The ResourceLevelBillingBucketDetailsResources model module. + * @module model/ResourceLevelBillingBucketDetailsResources + * @version v1.51.1-alpha + */ +class ResourceLevelBillingBucketDetailsResources { + /** + * Constructs a new ResourceLevelBillingBucketDetailsResources. + * @alias module:model/ResourceLevelBillingBucketDetailsResources + */ + constructor() { + + ResourceLevelBillingBucketDetailsResources.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 ResourceLevelBillingBucketDetailsResources 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/ResourceLevelBillingBucketDetailsResources} obj Optional instance to populate. + * @return {module:model/ResourceLevelBillingBucketDetailsResources} The populated ResourceLevelBillingBucketDetailsResources instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ResourceLevelBillingBucketDetailsResources(); + + if (data.hasOwnProperty('attributes')) { + obj['attributes'] = ResourceLevelBillingDetailsAttributes.constructFromObject(data['attributes']); + } + if (data.hasOwnProperty('metrics')) { + obj['metrics'] = ResourceLevelBillingDetailsMetrics.constructFromObject(data['metrics']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ResourceLevelBillingBucketDetailsResources. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResourceLevelBillingBucketDetailsResources. + */ + static validateJSON(data) { + // validate the optional field `attributes` + if (data['attributes']) { // data not null + ResourceLevelBillingDetailsAttributes.validateJSON(data['attributes']); + } + // validate the optional field `metrics` + if (data['metrics']) { // data not null + ResourceLevelBillingDetailsMetrics.validateJSON(data['metrics']); + } + + return true; + } + + +} + + + +/** + * @member {module:model/ResourceLevelBillingDetailsAttributes} attributes + */ +ResourceLevelBillingBucketDetailsResources.prototype['attributes'] = undefined; + +/** + * @member {module:model/ResourceLevelBillingDetailsMetrics} metrics + */ +ResourceLevelBillingBucketDetailsResources.prototype['metrics'] = undefined; + + + + + + +export default ResourceLevelBillingBucketDetailsResources; + diff --git a/src/model/ResourceLevelBillingDetailsAttributes.js b/src/model/ResourceLevelBillingDetailsAttributes.js index 4d607a23..0a7f6a84 100644 --- a/src/model/ResourceLevelBillingDetailsAttributes.js +++ b/src/model/ResourceLevelBillingDetailsAttributes.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ResourceLevelBillingDetailsAttributes model module. * @module model/ResourceLevelBillingDetailsAttributes - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelBillingDetailsAttributes { /** diff --git a/src/model/ResourceLevelBillingDetailsMetrics.js b/src/model/ResourceLevelBillingDetailsMetrics.js index 6ceb94c4..a676e8c3 100644 --- a/src/model/ResourceLevelBillingDetailsMetrics.js +++ b/src/model/ResourceLevelBillingDetailsMetrics.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ResourceLevelBillingDetailsMetrics model module. * @module model/ResourceLevelBillingDetailsMetrics - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelBillingDetailsMetrics { /** diff --git a/src/model/ResourceLevelBillingDetailsVM.js b/src/model/ResourceLevelBillingDetailsVM.js index fbb3f9a3..311430b9 100644 --- a/src/model/ResourceLevelBillingDetailsVM.js +++ b/src/model/ResourceLevelBillingDetailsVM.js @@ -17,7 +17,7 @@ import ResourceLevelBillingVMDetailsResources from './ResourceLevelBillingVMDeta /** * The ResourceLevelBillingDetailsVM model module. * @module model/ResourceLevelBillingDetailsVM - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelBillingDetailsVM { /** diff --git a/src/model/ResourceLevelBillingDetailsVolume.js b/src/model/ResourceLevelBillingDetailsVolume.js index 32246531..29abad1d 100644 --- a/src/model/ResourceLevelBillingDetailsVolume.js +++ b/src/model/ResourceLevelBillingDetailsVolume.js @@ -17,7 +17,7 @@ import ResourceLevelBillingVolumeDetailsResources from './ResourceLevelBillingVo /** * The ResourceLevelBillingDetailsVolume model module. * @module model/ResourceLevelBillingDetailsVolume - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelBillingDetailsVolume { /** diff --git a/src/model/ResourceLevelBillingDetailsVolumeAttributes.js b/src/model/ResourceLevelBillingDetailsVolumeAttributes.js index 7a4f49d6..e4106887 100644 --- a/src/model/ResourceLevelBillingDetailsVolumeAttributes.js +++ b/src/model/ResourceLevelBillingDetailsVolumeAttributes.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ResourceLevelBillingDetailsVolumeAttributes model module. * @module model/ResourceLevelBillingDetailsVolumeAttributes - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelBillingDetailsVolumeAttributes { /** diff --git a/src/model/ResourceLevelBillingDetailsVolumeMetrics.js b/src/model/ResourceLevelBillingDetailsVolumeMetrics.js index 9ec01989..38a5bad1 100644 --- a/src/model/ResourceLevelBillingDetailsVolumeMetrics.js +++ b/src/model/ResourceLevelBillingDetailsVolumeMetrics.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ResourceLevelBillingDetailsVolumeMetrics model module. * @module model/ResourceLevelBillingDetailsVolumeMetrics - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelBillingDetailsVolumeMetrics { /** diff --git a/src/model/ResourceLevelBillingHistory.js b/src/model/ResourceLevelBillingHistory.js index b868b58a..af633226 100644 --- a/src/model/ResourceLevelBillingHistory.js +++ b/src/model/ResourceLevelBillingHistory.js @@ -18,7 +18,7 @@ import ResourceLevelBillingHistoryResources from './ResourceLevelBillingHistoryR /** * The ResourceLevelBillingHistory model module. * @module model/ResourceLevelBillingHistory - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelBillingHistory { /** diff --git a/src/model/ResourceLevelBillingHistoryResources.js b/src/model/ResourceLevelBillingHistoryResources.js index 8a077804..82cfa77e 100644 --- a/src/model/ResourceLevelBillingHistoryResources.js +++ b/src/model/ResourceLevelBillingHistoryResources.js @@ -18,7 +18,7 @@ import ResourceLevelBillingHistoryResponseMetrics from './ResourceLevelBillingHi /** * The ResourceLevelBillingHistoryResources model module. * @module model/ResourceLevelBillingHistoryResources - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelBillingHistoryResources { /** diff --git a/src/model/ResourceLevelBillingHistoryResourcesCluster.js b/src/model/ResourceLevelBillingHistoryResourcesCluster.js new file mode 100644 index 00000000..e1ce48c9 --- /dev/null +++ b/src/model/ResourceLevelBillingHistoryResourcesCluster.js @@ -0,0 +1,120 @@ +/** + * 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 ResourceLevelBillingHistoryResources from './ResourceLevelBillingHistoryResources'; +import ResourceLevelBillingHistoryResponseAttributes from './ResourceLevelBillingHistoryResponseAttributes'; +import ResourceLevelBillingHistoryResponseMetrics from './ResourceLevelBillingHistoryResponseMetrics'; + +/** + * The ResourceLevelBillingHistoryResourcesCluster model module. + * @module model/ResourceLevelBillingHistoryResourcesCluster + * @version v1.51.1-alpha + */ +class ResourceLevelBillingHistoryResourcesCluster { + /** + * Constructs a new ResourceLevelBillingHistoryResourcesCluster. + * @alias module:model/ResourceLevelBillingHistoryResourcesCluster + */ + constructor() { + + ResourceLevelBillingHistoryResourcesCluster.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 ResourceLevelBillingHistoryResourcesCluster 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/ResourceLevelBillingHistoryResourcesCluster} obj Optional instance to populate. + * @return {module:model/ResourceLevelBillingHistoryResourcesCluster} The populated ResourceLevelBillingHistoryResourcesCluster instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ResourceLevelBillingHistoryResourcesCluster(); + + if (data.hasOwnProperty('attributes')) { + obj['attributes'] = ResourceLevelBillingHistoryResponseAttributes.constructFromObject(data['attributes']); + } + if (data.hasOwnProperty('metrics')) { + obj['metrics'] = ResourceLevelBillingHistoryResponseMetrics.constructFromObject(data['metrics']); + } + if (data.hasOwnProperty('nodes')) { + obj['nodes'] = ApiClient.convertToType(data['nodes'], [ResourceLevelBillingHistoryResources]); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ResourceLevelBillingHistoryResourcesCluster. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResourceLevelBillingHistoryResourcesCluster. + */ + static validateJSON(data) { + // validate the optional field `attributes` + if (data['attributes']) { // data not null + ResourceLevelBillingHistoryResponseAttributes.validateJSON(data['attributes']); + } + // validate the optional field `metrics` + if (data['metrics']) { // data not null + ResourceLevelBillingHistoryResponseMetrics.validateJSON(data['metrics']); + } + 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']) { + ResourceLevelBillingHistoryResources.validateJSON(item); + }; + } + + return true; + } + + +} + + + +/** + * @member {module:model/ResourceLevelBillingHistoryResponseAttributes} attributes + */ +ResourceLevelBillingHistoryResourcesCluster.prototype['attributes'] = undefined; + +/** + * @member {module:model/ResourceLevelBillingHistoryResponseMetrics} metrics + */ +ResourceLevelBillingHistoryResourcesCluster.prototype['metrics'] = undefined; + +/** + * @member {Array.} nodes + */ +ResourceLevelBillingHistoryResourcesCluster.prototype['nodes'] = undefined; + + + + + + +export default ResourceLevelBillingHistoryResourcesCluster; + diff --git a/src/model/ResourceLevelBillingHistoryResponseAttributes.js b/src/model/ResourceLevelBillingHistoryResponseAttributes.js index 35d8f6d9..96dc4878 100644 --- a/src/model/ResourceLevelBillingHistoryResponseAttributes.js +++ b/src/model/ResourceLevelBillingHistoryResponseAttributes.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ResourceLevelBillingHistoryResponseAttributes model module. * @module model/ResourceLevelBillingHistoryResponseAttributes - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelBillingHistoryResponseAttributes { /** @@ -47,6 +47,9 @@ class ResourceLevelBillingHistoryResponseAttributes { if (data) { obj = obj || new ResourceLevelBillingHistoryResponseAttributes(); + if (data.hasOwnProperty('contract_id')) { + obj['contract_id'] = ApiClient.convertToType(data['contract_id'], 'Number'); + } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'String'); } @@ -90,6 +93,11 @@ class ResourceLevelBillingHistoryResponseAttributes { +/** + * @member {Number} contract_id + */ +ResourceLevelBillingHistoryResponseAttributes.prototype['contract_id'] = undefined; + /** * @member {String} id */ diff --git a/src/model/ResourceLevelBillingHistoryResponseMetrics.js b/src/model/ResourceLevelBillingHistoryResponseMetrics.js index 7361c34e..6d6254ac 100644 --- a/src/model/ResourceLevelBillingHistoryResponseMetrics.js +++ b/src/model/ResourceLevelBillingHistoryResponseMetrics.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ResourceLevelBillingHistoryResponseMetrics model module. * @module model/ResourceLevelBillingHistoryResponseMetrics - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelBillingHistoryResponseMetrics { /** diff --git a/src/model/ResourceLevelBillingVMDetailsResources.js b/src/model/ResourceLevelBillingVMDetailsResources.js index 7ea18897..f2b0561f 100644 --- a/src/model/ResourceLevelBillingVMDetailsResources.js +++ b/src/model/ResourceLevelBillingVMDetailsResources.js @@ -18,7 +18,7 @@ import ResourceLevelBillingDetailsMetrics from './ResourceLevelBillingDetailsMet /** * The ResourceLevelBillingVMDetailsResources model module. * @module model/ResourceLevelBillingVMDetailsResources - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelBillingVMDetailsResources { /** diff --git a/src/model/ResourceLevelBillingVolumeDetailsResources.js b/src/model/ResourceLevelBillingVolumeDetailsResources.js index 84997260..3c416ec9 100644 --- a/src/model/ResourceLevelBillingVolumeDetailsResources.js +++ b/src/model/ResourceLevelBillingVolumeDetailsResources.js @@ -18,7 +18,7 @@ import ResourceLevelBillingDetailsVolumeMetrics from './ResourceLevelBillingDeta /** * The ResourceLevelBillingVolumeDetailsResources model module. * @module model/ResourceLevelBillingVolumeDetailsResources - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelBillingVolumeDetailsResources { /** diff --git a/src/model/ResourceLevelBucketBillingDetailsResponseModel.js b/src/model/ResourceLevelBucketBillingDetailsResponseModel.js new file mode 100644 index 00000000..b35ca192 --- /dev/null +++ b/src/model/ResourceLevelBucketBillingDetailsResponseModel.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 ResourceLevelBillingBucketDetailsResources from './ResourceLevelBillingBucketDetailsResources'; + +/** + * The ResourceLevelBucketBillingDetailsResponseModel model module. + * @module model/ResourceLevelBucketBillingDetailsResponseModel + * @version v1.51.1-alpha + */ +class ResourceLevelBucketBillingDetailsResponseModel { + /** + * Constructs a new ResourceLevelBucketBillingDetailsResponseModel. + * @alias module:model/ResourceLevelBucketBillingDetailsResponseModel + */ + constructor() { + + ResourceLevelBucketBillingDetailsResponseModel.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 ResourceLevelBucketBillingDetailsResponseModel 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/ResourceLevelBucketBillingDetailsResponseModel} obj Optional instance to populate. + * @return {module:model/ResourceLevelBucketBillingDetailsResponseModel} The populated ResourceLevelBucketBillingDetailsResponseModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ResourceLevelBucketBillingDetailsResponseModel(); + + if (data.hasOwnProperty('billing_history_bucket_details')) { + obj['billing_history_bucket_details'] = ResourceLevelBillingBucketDetailsResources.constructFromObject(data['billing_history_bucket_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 ResourceLevelBucketBillingDetailsResponseModel. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResourceLevelBucketBillingDetailsResponseModel. + */ + static validateJSON(data) { + // validate the optional field `billing_history_bucket_details` + if (data['billing_history_bucket_details']) { // data not null + ResourceLevelBillingBucketDetailsResources.validateJSON(data['billing_history_bucket_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/ResourceLevelBillingBucketDetailsResources} billing_history_bucket_details + */ +ResourceLevelBucketBillingDetailsResponseModel.prototype['billing_history_bucket_details'] = undefined; + +/** + * @member {String} message + */ +ResourceLevelBucketBillingDetailsResponseModel.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +ResourceLevelBucketBillingDetailsResponseModel.prototype['status'] = undefined; + + + + + + +export default ResourceLevelBucketBillingDetailsResponseModel; + diff --git a/src/model/ResourceLevelBucketBillingHistoryResponseModel.js b/src/model/ResourceLevelBucketBillingHistoryResponseModel.js new file mode 100644 index 00000000..49eb1517 --- /dev/null +++ b/src/model/ResourceLevelBucketBillingHistoryResponseModel.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 ResourceLevelBillingHistory from './ResourceLevelBillingHistory'; + +/** + * The ResourceLevelBucketBillingHistoryResponseModel model module. + * @module model/ResourceLevelBucketBillingHistoryResponseModel + * @version v1.51.1-alpha + */ +class ResourceLevelBucketBillingHistoryResponseModel { + /** + * Constructs a new ResourceLevelBucketBillingHistoryResponseModel. + * @alias module:model/ResourceLevelBucketBillingHistoryResponseModel + */ + constructor() { + + ResourceLevelBucketBillingHistoryResponseModel.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 ResourceLevelBucketBillingHistoryResponseModel 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/ResourceLevelBucketBillingHistoryResponseModel} obj Optional instance to populate. + * @return {module:model/ResourceLevelBucketBillingHistoryResponseModel} The populated ResourceLevelBucketBillingHistoryResponseModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ResourceLevelBucketBillingHistoryResponseModel(); + + if (data.hasOwnProperty('billing_history_bucket')) { + obj['billing_history_bucket'] = ResourceLevelBillingHistory.constructFromObject(data['billing_history_bucket']); + } + 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 ResourceLevelBucketBillingHistoryResponseModel. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResourceLevelBucketBillingHistoryResponseModel. + */ + static validateJSON(data) { + // validate the optional field `billing_history_bucket` + if (data['billing_history_bucket']) { // data not null + ResourceLevelBillingHistory.validateJSON(data['billing_history_bucket']); + } + // 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/ResourceLevelBillingHistory} billing_history_bucket + */ +ResourceLevelBucketBillingHistoryResponseModel.prototype['billing_history_bucket'] = undefined; + +/** + * @member {String} message + */ +ResourceLevelBucketBillingHistoryResponseModel.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +ResourceLevelBucketBillingHistoryResponseModel.prototype['status'] = undefined; + + + + + + +export default ResourceLevelBucketBillingHistoryResponseModel; + diff --git a/src/model/ResourceLevelClusterBillingDetailsResponseModel.js b/src/model/ResourceLevelClusterBillingDetailsResponseModel.js new file mode 100644 index 00000000..a2379245 --- /dev/null +++ b/src/model/ResourceLevelClusterBillingDetailsResponseModel.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 ResourceLevelBillingHistoryResourcesCluster from './ResourceLevelBillingHistoryResourcesCluster'; + +/** + * The ResourceLevelClusterBillingDetailsResponseModel model module. + * @module model/ResourceLevelClusterBillingDetailsResponseModel + * @version v1.51.1-alpha + */ +class ResourceLevelClusterBillingDetailsResponseModel { + /** + * Constructs a new ResourceLevelClusterBillingDetailsResponseModel. + * @alias module:model/ResourceLevelClusterBillingDetailsResponseModel + */ + constructor() { + + ResourceLevelClusterBillingDetailsResponseModel.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 ResourceLevelClusterBillingDetailsResponseModel 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/ResourceLevelClusterBillingDetailsResponseModel} obj Optional instance to populate. + * @return {module:model/ResourceLevelClusterBillingDetailsResponseModel} The populated ResourceLevelClusterBillingDetailsResponseModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ResourceLevelClusterBillingDetailsResponseModel(); + + if (data.hasOwnProperty('billing_history_cluster_details')) { + obj['billing_history_cluster_details'] = ResourceLevelBillingHistoryResourcesCluster.constructFromObject(data['billing_history_cluster_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 ResourceLevelClusterBillingDetailsResponseModel. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResourceLevelClusterBillingDetailsResponseModel. + */ + static validateJSON(data) { + // validate the optional field `billing_history_cluster_details` + if (data['billing_history_cluster_details']) { // data not null + ResourceLevelBillingHistoryResourcesCluster.validateJSON(data['billing_history_cluster_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/ResourceLevelBillingHistoryResourcesCluster} billing_history_cluster_details + */ +ResourceLevelClusterBillingDetailsResponseModel.prototype['billing_history_cluster_details'] = undefined; + +/** + * @member {String} message + */ +ResourceLevelClusterBillingDetailsResponseModel.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +ResourceLevelClusterBillingDetailsResponseModel.prototype['status'] = undefined; + + + + + + +export default ResourceLevelClusterBillingDetailsResponseModel; + diff --git a/src/model/ResourceLevelClusterBillingHistoryResponseModel.js b/src/model/ResourceLevelClusterBillingHistoryResponseModel.js new file mode 100644 index 00000000..4d8649fc --- /dev/null +++ b/src/model/ResourceLevelClusterBillingHistoryResponseModel.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 ResourceLevelBillingHistory from './ResourceLevelBillingHistory'; + +/** + * The ResourceLevelClusterBillingHistoryResponseModel model module. + * @module model/ResourceLevelClusterBillingHistoryResponseModel + * @version v1.51.1-alpha + */ +class ResourceLevelClusterBillingHistoryResponseModel { + /** + * Constructs a new ResourceLevelClusterBillingHistoryResponseModel. + * @alias module:model/ResourceLevelClusterBillingHistoryResponseModel + */ + constructor() { + + ResourceLevelClusterBillingHistoryResponseModel.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 ResourceLevelClusterBillingHistoryResponseModel 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/ResourceLevelClusterBillingHistoryResponseModel} obj Optional instance to populate. + * @return {module:model/ResourceLevelClusterBillingHistoryResponseModel} The populated ResourceLevelClusterBillingHistoryResponseModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ResourceLevelClusterBillingHistoryResponseModel(); + + if (data.hasOwnProperty('billing_history_cluster')) { + obj['billing_history_cluster'] = ResourceLevelBillingHistory.constructFromObject(data['billing_history_cluster']); + } + 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 ResourceLevelClusterBillingHistoryResponseModel. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResourceLevelClusterBillingHistoryResponseModel. + */ + static validateJSON(data) { + // validate the optional field `billing_history_cluster` + if (data['billing_history_cluster']) { // data not null + ResourceLevelBillingHistory.validateJSON(data['billing_history_cluster']); + } + // 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/ResourceLevelBillingHistory} billing_history_cluster + */ +ResourceLevelClusterBillingHistoryResponseModel.prototype['billing_history_cluster'] = undefined; + +/** + * @member {String} message + */ +ResourceLevelClusterBillingHistoryResponseModel.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +ResourceLevelClusterBillingHistoryResponseModel.prototype['status'] = undefined; + + + + + + +export default ResourceLevelClusterBillingHistoryResponseModel; + diff --git a/src/model/ResourceLevelClusterGraphBillingDetailsResponseModel.js b/src/model/ResourceLevelClusterGraphBillingDetailsResponseModel.js new file mode 100644 index 00000000..c6e46f04 --- /dev/null +++ b/src/model/ResourceLevelClusterGraphBillingDetailsResponseModel.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 ResourceLevelGraphBillingDetailVolume from './ResourceLevelGraphBillingDetailVolume'; + +/** + * The ResourceLevelClusterGraphBillingDetailsResponseModel model module. + * @module model/ResourceLevelClusterGraphBillingDetailsResponseModel + * @version v1.51.1-alpha + */ +class ResourceLevelClusterGraphBillingDetailsResponseModel { + /** + * Constructs a new ResourceLevelClusterGraphBillingDetailsResponseModel. + * @alias module:model/ResourceLevelClusterGraphBillingDetailsResponseModel + */ + constructor() { + + ResourceLevelClusterGraphBillingDetailsResponseModel.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 ResourceLevelClusterGraphBillingDetailsResponseModel 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/ResourceLevelClusterGraphBillingDetailsResponseModel} obj Optional instance to populate. + * @return {module:model/ResourceLevelClusterGraphBillingDetailsResponseModel} The populated ResourceLevelClusterGraphBillingDetailsResponseModel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ResourceLevelClusterGraphBillingDetailsResponseModel(); + + if (data.hasOwnProperty('billing_history_cluster_details')) { + obj['billing_history_cluster_details'] = ResourceLevelGraphBillingDetailVolume.constructFromObject(data['billing_history_cluster_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 ResourceLevelClusterGraphBillingDetailsResponseModel. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResourceLevelClusterGraphBillingDetailsResponseModel. + */ + static validateJSON(data) { + // validate the optional field `billing_history_cluster_details` + if (data['billing_history_cluster_details']) { // data not null + ResourceLevelGraphBillingDetailVolume.validateJSON(data['billing_history_cluster_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/ResourceLevelGraphBillingDetailVolume} billing_history_cluster_details + */ +ResourceLevelClusterGraphBillingDetailsResponseModel.prototype['billing_history_cluster_details'] = undefined; + +/** + * @member {String} message + */ +ResourceLevelClusterGraphBillingDetailsResponseModel.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +ResourceLevelClusterGraphBillingDetailsResponseModel.prototype['status'] = undefined; + + + + + + +export default ResourceLevelClusterGraphBillingDetailsResponseModel; + diff --git a/src/model/ResourceLevelGraphBillingDetailVolume.js b/src/model/ResourceLevelGraphBillingDetailVolume.js index e043010a..9cfabe13 100644 --- a/src/model/ResourceLevelGraphBillingDetailVolume.js +++ b/src/model/ResourceLevelGraphBillingDetailVolume.js @@ -17,7 +17,7 @@ import ResourceLevelGraphBillingVolumeDetailsResources from './ResourceLevelGrap /** * The ResourceLevelGraphBillingDetailVolume model module. * @module model/ResourceLevelGraphBillingDetailVolume - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelGraphBillingDetailVolume { /** diff --git a/src/model/ResourceLevelGraphBillingDetailsAttributes.js b/src/model/ResourceLevelGraphBillingDetailsAttributes.js index 1414c7fb..22ae3870 100644 --- a/src/model/ResourceLevelGraphBillingDetailsAttributes.js +++ b/src/model/ResourceLevelGraphBillingDetailsAttributes.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ResourceLevelGraphBillingDetailsAttributes model module. * @module model/ResourceLevelGraphBillingDetailsAttributes - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelGraphBillingDetailsAttributes { /** diff --git a/src/model/ResourceLevelGraphBillingDetailsBucket.js b/src/model/ResourceLevelGraphBillingDetailsBucket.js new file mode 100644 index 00000000..f5b847ca --- /dev/null +++ b/src/model/ResourceLevelGraphBillingDetailsBucket.js @@ -0,0 +1,118 @@ +/** + * 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 ResourceLevelBillingBucketDetailsResources from './ResourceLevelBillingBucketDetailsResources'; + +/** + * The ResourceLevelGraphBillingDetailsBucket model module. + * @module model/ResourceLevelGraphBillingDetailsBucket + * @version v1.51.1-alpha + */ +class ResourceLevelGraphBillingDetailsBucket { + /** + * Constructs a new ResourceLevelGraphBillingDetailsBucket. + * @alias module:model/ResourceLevelGraphBillingDetailsBucket + */ + constructor() { + + ResourceLevelGraphBillingDetailsBucket.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 ResourceLevelGraphBillingDetailsBucket 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/ResourceLevelGraphBillingDetailsBucket} obj Optional instance to populate. + * @return {module:model/ResourceLevelGraphBillingDetailsBucket} The populated ResourceLevelGraphBillingDetailsBucket instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ResourceLevelGraphBillingDetailsBucket(); + + if (data.hasOwnProperty('billing_history')) { + obj['billing_history'] = ApiClient.convertToType(data['billing_history'], [ResourceLevelBillingBucketDetailsResources]); + } + if (data.hasOwnProperty('granularity')) { + obj['granularity'] = ApiClient.convertToType(data['granularity'], 'Number'); + } + if (data.hasOwnProperty('org_id')) { + obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); + } + if (data.hasOwnProperty('total_count')) { + obj['total_count'] = ApiClient.convertToType(data['total_count'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ResourceLevelGraphBillingDetailsBucket. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResourceLevelGraphBillingDetailsBucket. + */ + 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']) { + ResourceLevelBillingBucketDetailsResources.validateJSON(item); + }; + } + + return true; + } + + +} + + + +/** + * @member {Array.} billing_history + */ +ResourceLevelGraphBillingDetailsBucket.prototype['billing_history'] = undefined; + +/** + * @member {Number} granularity + */ +ResourceLevelGraphBillingDetailsBucket.prototype['granularity'] = undefined; + +/** + * @member {Number} org_id + */ +ResourceLevelGraphBillingDetailsBucket.prototype['org_id'] = undefined; + +/** + * @member {Number} total_count + */ +ResourceLevelGraphBillingDetailsBucket.prototype['total_count'] = undefined; + + + + + + +export default ResourceLevelGraphBillingDetailsBucket; + diff --git a/src/model/ResourceLevelGraphBillingDetailsMetrics.js b/src/model/ResourceLevelGraphBillingDetailsMetrics.js index 8eb29542..b8428358 100644 --- a/src/model/ResourceLevelGraphBillingDetailsMetrics.js +++ b/src/model/ResourceLevelGraphBillingDetailsMetrics.js @@ -17,7 +17,7 @@ import GraphDatetimeValueModel from './GraphDatetimeValueModel'; /** * The ResourceLevelGraphBillingDetailsMetrics model module. * @module model/ResourceLevelGraphBillingDetailsMetrics - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelGraphBillingDetailsMetrics { /** diff --git a/src/model/ResourceLevelGraphBillingDetailsVM.js b/src/model/ResourceLevelGraphBillingDetailsVM.js index aed34a7c..c568e183 100644 --- a/src/model/ResourceLevelGraphBillingDetailsVM.js +++ b/src/model/ResourceLevelGraphBillingDetailsVM.js @@ -17,7 +17,7 @@ import ResourceLevelGraphBillingVMDetailsResources from './ResourceLevelGraphBil /** * The ResourceLevelGraphBillingDetailsVM model module. * @module model/ResourceLevelGraphBillingDetailsVM - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelGraphBillingDetailsVM { /** diff --git a/src/model/ResourceLevelGraphBillingVMDetailsResources.js b/src/model/ResourceLevelGraphBillingVMDetailsResources.js index 9dec7ddb..c7a79fa8 100644 --- a/src/model/ResourceLevelGraphBillingVMDetailsResources.js +++ b/src/model/ResourceLevelGraphBillingVMDetailsResources.js @@ -18,7 +18,7 @@ import ResourceLevelGraphBillingDetailsMetrics from './ResourceLevelGraphBilling /** * The ResourceLevelGraphBillingVMDetailsResources model module. * @module model/ResourceLevelGraphBillingVMDetailsResources - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelGraphBillingVMDetailsResources { /** diff --git a/src/model/ResourceLevelGraphBillingVolumeDetailsResources.js b/src/model/ResourceLevelGraphBillingVolumeDetailsResources.js index dc01e167..5282a6e8 100644 --- a/src/model/ResourceLevelGraphBillingVolumeDetailsResources.js +++ b/src/model/ResourceLevelGraphBillingVolumeDetailsResources.js @@ -18,7 +18,7 @@ import ResourceLevelGraphBillingDetailsMetrics from './ResourceLevelGraphBilling /** * The ResourceLevelGraphBillingVolumeDetailsResources model module. * @module model/ResourceLevelGraphBillingVolumeDetailsResources - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelGraphBillingVolumeDetailsResources { /** diff --git a/src/model/ResourceLevelVMBillingDetailsResponseModel.js b/src/model/ResourceLevelVMBillingDetailsResponseModel.js index 029c5c80..b42e7325 100644 --- a/src/model/ResourceLevelVMBillingDetailsResponseModel.js +++ b/src/model/ResourceLevelVMBillingDetailsResponseModel.js @@ -17,7 +17,7 @@ import ResourceLevelBillingDetailsVM from './ResourceLevelBillingDetailsVM'; /** * The ResourceLevelVMBillingDetailsResponseModel model module. * @module model/ResourceLevelVMBillingDetailsResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelVMBillingDetailsResponseModel { /** diff --git a/src/model/ResourceLevelVmBillingHistoryResponseModel.js b/src/model/ResourceLevelVmBillingHistoryResponseModel.js index 6440d236..e2cfc9bb 100644 --- a/src/model/ResourceLevelVmBillingHistoryResponseModel.js +++ b/src/model/ResourceLevelVmBillingHistoryResponseModel.js @@ -17,7 +17,7 @@ import ResourceLevelBillingHistory from './ResourceLevelBillingHistory'; /** * The ResourceLevelVmBillingHistoryResponseModel model module. * @module model/ResourceLevelVmBillingHistoryResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelVmBillingHistoryResponseModel { /** diff --git a/src/model/ResourceLevelVmGraphBillingDetailsResponseModel.js b/src/model/ResourceLevelVmGraphBillingDetailsResponseModel.js index 306bbedc..10b3bbfb 100644 --- a/src/model/ResourceLevelVmGraphBillingDetailsResponseModel.js +++ b/src/model/ResourceLevelVmGraphBillingDetailsResponseModel.js @@ -17,7 +17,7 @@ import ResourceLevelGraphBillingDetailsVM from './ResourceLevelGraphBillingDetai /** * The ResourceLevelVmGraphBillingDetailsResponseModel model module. * @module model/ResourceLevelVmGraphBillingDetailsResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelVmGraphBillingDetailsResponseModel { /** diff --git a/src/model/ResourceLevelVolumeBillingDetailsResponseModel.js b/src/model/ResourceLevelVolumeBillingDetailsResponseModel.js index 41391763..99ae403f 100644 --- a/src/model/ResourceLevelVolumeBillingDetailsResponseModel.js +++ b/src/model/ResourceLevelVolumeBillingDetailsResponseModel.js @@ -17,7 +17,7 @@ import ResourceLevelBillingDetailsVolume from './ResourceLevelBillingDetailsVolu /** * The ResourceLevelVolumeBillingDetailsResponseModel model module. * @module model/ResourceLevelVolumeBillingDetailsResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelVolumeBillingDetailsResponseModel { /** diff --git a/src/model/ResourceLevelVolumeBillingHistoryResponseModel.js b/src/model/ResourceLevelVolumeBillingHistoryResponseModel.js index 458ef85b..03c77fc4 100644 --- a/src/model/ResourceLevelVolumeBillingHistoryResponseModel.js +++ b/src/model/ResourceLevelVolumeBillingHistoryResponseModel.js @@ -17,7 +17,7 @@ import ResourceLevelBillingHistory from './ResourceLevelBillingHistory'; /** * The ResourceLevelVolumeBillingHistoryResponseModel model module. * @module model/ResourceLevelVolumeBillingHistoryResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelVolumeBillingHistoryResponseModel { /** diff --git a/src/model/ResourceLevelVolumeGraphBillingDetailsResponseModel.js b/src/model/ResourceLevelVolumeGraphBillingDetailsResponseModel.js index 41cf4698..80fd56a2 100644 --- a/src/model/ResourceLevelVolumeGraphBillingDetailsResponseModel.js +++ b/src/model/ResourceLevelVolumeGraphBillingDetailsResponseModel.js @@ -17,7 +17,7 @@ import ResourceLevelGraphBillingDetailVolume from './ResourceLevelGraphBillingDe /** * The ResourceLevelVolumeGraphBillingDetailsResponseModel model module. * @module model/ResourceLevelVolumeGraphBillingDetailsResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceLevelVolumeGraphBillingDetailsResponseModel { /** diff --git a/src/model/ResourceObjectResponseForCustomer.js b/src/model/ResourceObjectResponseForCustomer.js index 298c8ee0..a87ed360 100644 --- a/src/model/ResourceObjectResponseForCustomer.js +++ b/src/model/ResourceObjectResponseForCustomer.js @@ -17,7 +17,7 @@ import InfrahubResourceObjectResponseForCustomer from './InfrahubResourceObjectR /** * The ResourceObjectResponseForCustomer model module. * @module model/ResourceObjectResponseForCustomer - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResourceObjectResponseForCustomer { /** diff --git a/src/model/ResponseModel.js b/src/model/ResponseModel.js index cbbf91d7..ae513c37 100644 --- a/src/model/ResponseModel.js +++ b/src/model/ResponseModel.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ResponseModel model module. * @module model/ResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class ResponseModel { /** diff --git a/src/model/RolePermissionFields.js b/src/model/RolePermissionFields.js index 486520ed..fcb43400 100644 --- a/src/model/RolePermissionFields.js +++ b/src/model/RolePermissionFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The RolePermissionFields model module. * @module model/RolePermissionFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class RolePermissionFields { /** diff --git a/src/model/RolePolicyFields.js b/src/model/RolePolicyFields.js index b802a9f9..3e50bb8b 100644 --- a/src/model/RolePolicyFields.js +++ b/src/model/RolePolicyFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The RolePolicyFields model module. * @module model/RolePolicyFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class RolePolicyFields { /** diff --git a/src/model/SecondaryColor.js b/src/model/SecondaryColor.js new file mode 100644 index 00000000..5d0534d6 --- /dev/null +++ b/src/model/SecondaryColor.js @@ -0,0 +1,99 @@ +/** + * 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 SecondaryColor model module. + * @module model/SecondaryColor + * @version v1.51.1-alpha + */ +class SecondaryColor { + /** + * Constructs a new SecondaryColor. + * @alias module:model/SecondaryColor + */ + constructor() { + + SecondaryColor.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 SecondaryColor 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/SecondaryColor} obj Optional instance to populate. + * @return {module:model/SecondaryColor} The populated SecondaryColor instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SecondaryColor(); + + if (data.hasOwnProperty('dark')) { + obj['dark'] = ApiClient.convertToType(data['dark'], 'String'); + } + if (data.hasOwnProperty('light')) { + obj['light'] = ApiClient.convertToType(data['light'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to SecondaryColor. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to SecondaryColor. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['dark'] && !(typeof data['dark'] === 'string' || data['dark'] instanceof String)) { + throw new Error("Expected the field `dark` to be a primitive type in the JSON string but got " + data['dark']); + } + // ensure the json data is a string + if (data['light'] && !(typeof data['light'] === 'string' || data['light'] instanceof String)) { + throw new Error("Expected the field `light` to be a primitive type in the JSON string but got " + data['light']); + } + + return true; + } + + +} + + + +/** + * @member {String} dark + */ +SecondaryColor.prototype['dark'] = undefined; + +/** + * @member {String} light + */ +SecondaryColor.prototype['light'] = undefined; + + + + + + +export default SecondaryColor; + diff --git a/src/model/SecurityGroupRule.js b/src/model/SecurityGroupRule.js index a10cbd86..cae8e22c 100644 --- a/src/model/SecurityGroupRule.js +++ b/src/model/SecurityGroupRule.js @@ -17,7 +17,7 @@ import SecurityGroupRuleFields from './SecurityGroupRuleFields'; /** * The SecurityGroupRule model module. * @module model/SecurityGroupRule - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class SecurityGroupRule { /** diff --git a/src/model/SecurityGroupRuleFields.js b/src/model/SecurityGroupRuleFields.js index eff1c80e..deadd5bf 100644 --- a/src/model/SecurityGroupRuleFields.js +++ b/src/model/SecurityGroupRuleFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SecurityGroupRuleFields model module. * @module model/SecurityGroupRuleFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class SecurityGroupRuleFields { /** diff --git a/src/model/SecurityRulesFieldsForInstance.js b/src/model/SecurityRulesFieldsForInstance.js new file mode 100644 index 00000000..7fe75f27 --- /dev/null +++ b/src/model/SecurityRulesFieldsForInstance.js @@ -0,0 +1,167 @@ +/** + * 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 SecurityRulesFieldsForInstance model module. + * @module model/SecurityRulesFieldsForInstance + * @version v1.51.1-alpha + */ +class SecurityRulesFieldsForInstance { + /** + * Constructs a new SecurityRulesFieldsForInstance. + * @alias module:model/SecurityRulesFieldsForInstance + */ + constructor() { + + SecurityRulesFieldsForInstance.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 SecurityRulesFieldsForInstance 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/SecurityRulesFieldsForInstance} obj Optional instance to populate. + * @return {module:model/SecurityRulesFieldsForInstance} The populated SecurityRulesFieldsForInstance instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SecurityRulesFieldsForInstance(); + + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); + } + if (data.hasOwnProperty('direction')) { + obj['direction'] = ApiClient.convertToType(data['direction'], 'String'); + } + if (data.hasOwnProperty('ethertype')) { + obj['ethertype'] = ApiClient.convertToType(data['ethertype'], 'String'); + } + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('port_range_max')) { + obj['port_range_max'] = ApiClient.convertToType(data['port_range_max'], 'Number'); + } + if (data.hasOwnProperty('port_range_min')) { + obj['port_range_min'] = ApiClient.convertToType(data['port_range_min'], 'Number'); + } + if (data.hasOwnProperty('protocol')) { + obj['protocol'] = ApiClient.convertToType(data['protocol'], 'String'); + } + if (data.hasOwnProperty('remote_ip_prefix')) { + obj['remote_ip_prefix'] = ApiClient.convertToType(data['remote_ip_prefix'], 'String'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to SecurityRulesFieldsForInstance. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to SecurityRulesFieldsForInstance. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['direction'] && !(typeof data['direction'] === 'string' || data['direction'] instanceof String)) { + throw new Error("Expected the field `direction` to be a primitive type in the JSON string but got " + data['direction']); + } + // ensure the json data is a string + if (data['ethertype'] && !(typeof data['ethertype'] === 'string' || data['ethertype'] instanceof String)) { + throw new Error("Expected the field `ethertype` to be a primitive type in the JSON string but got " + data['ethertype']); + } + // ensure the json data is a string + if (data['protocol'] && !(typeof data['protocol'] === 'string' || data['protocol'] instanceof String)) { + throw new Error("Expected the field `protocol` to be a primitive type in the JSON string but got " + data['protocol']); + } + // ensure the json data is a string + if (data['remote_ip_prefix'] && !(typeof data['remote_ip_prefix'] === 'string' || data['remote_ip_prefix'] instanceof String)) { + throw new Error("Expected the field `remote_ip_prefix` to be a primitive type in the JSON string but got " + data['remote_ip_prefix']); + } + // 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 {Date} created_at + */ +SecurityRulesFieldsForInstance.prototype['created_at'] = undefined; + +/** + * @member {String} direction + */ +SecurityRulesFieldsForInstance.prototype['direction'] = undefined; + +/** + * @member {String} ethertype + */ +SecurityRulesFieldsForInstance.prototype['ethertype'] = undefined; + +/** + * @member {Number} id + */ +SecurityRulesFieldsForInstance.prototype['id'] = undefined; + +/** + * @member {Number} port_range_max + */ +SecurityRulesFieldsForInstance.prototype['port_range_max'] = undefined; + +/** + * @member {Number} port_range_min + */ +SecurityRulesFieldsForInstance.prototype['port_range_min'] = undefined; + +/** + * @member {String} protocol + */ +SecurityRulesFieldsForInstance.prototype['protocol'] = undefined; + +/** + * @member {String} remote_ip_prefix + */ +SecurityRulesFieldsForInstance.prototype['remote_ip_prefix'] = undefined; + +/** + * @member {String} status + */ +SecurityRulesFieldsForInstance.prototype['status'] = undefined; + + + + + + +export default SecurityRulesFieldsForInstance; + diff --git a/src/model/SecurityRulesFieldsforInstance.js b/src/model/SecurityRulesFieldsforInstance.js deleted file mode 100644 index bee46bfd..00000000 --- a/src/model/SecurityRulesFieldsforInstance.js +++ /dev/null @@ -1,167 +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 SecurityRulesFieldsforInstance model module. - * @module model/SecurityRulesFieldsforInstance - * @version v1.25.0-alpha - */ -class SecurityRulesFieldsforInstance { - /** - * Constructs a new SecurityRulesFieldsforInstance. - * @alias module:model/SecurityRulesFieldsforInstance - */ - constructor() { - - SecurityRulesFieldsforInstance.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 SecurityRulesFieldsforInstance 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/SecurityRulesFieldsforInstance} obj Optional instance to populate. - * @return {module:model/SecurityRulesFieldsforInstance} The populated SecurityRulesFieldsforInstance instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SecurityRulesFieldsforInstance(); - - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('direction')) { - obj['direction'] = ApiClient.convertToType(data['direction'], 'String'); - } - if (data.hasOwnProperty('ethertype')) { - obj['ethertype'] = ApiClient.convertToType(data['ethertype'], 'String'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('port_range_max')) { - obj['port_range_max'] = ApiClient.convertToType(data['port_range_max'], 'Number'); - } - if (data.hasOwnProperty('port_range_min')) { - obj['port_range_min'] = ApiClient.convertToType(data['port_range_min'], 'Number'); - } - if (data.hasOwnProperty('protocol')) { - obj['protocol'] = ApiClient.convertToType(data['protocol'], 'String'); - } - if (data.hasOwnProperty('remote_ip_prefix')) { - obj['remote_ip_prefix'] = ApiClient.convertToType(data['remote_ip_prefix'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to SecurityRulesFieldsforInstance. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to SecurityRulesFieldsforInstance. - */ - static validateJSON(data) { - // ensure the json data is a string - if (data['direction'] && !(typeof data['direction'] === 'string' || data['direction'] instanceof String)) { - throw new Error("Expected the field `direction` to be a primitive type in the JSON string but got " + data['direction']); - } - // ensure the json data is a string - if (data['ethertype'] && !(typeof data['ethertype'] === 'string' || data['ethertype'] instanceof String)) { - throw new Error("Expected the field `ethertype` to be a primitive type in the JSON string but got " + data['ethertype']); - } - // ensure the json data is a string - if (data['protocol'] && !(typeof data['protocol'] === 'string' || data['protocol'] instanceof String)) { - throw new Error("Expected the field `protocol` to be a primitive type in the JSON string but got " + data['protocol']); - } - // ensure the json data is a string - if (data['remote_ip_prefix'] && !(typeof data['remote_ip_prefix'] === 'string' || data['remote_ip_prefix'] instanceof String)) { - throw new Error("Expected the field `remote_ip_prefix` to be a primitive type in the JSON string but got " + data['remote_ip_prefix']); - } - // 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 {Date} created_at - */ -SecurityRulesFieldsforInstance.prototype['created_at'] = undefined; - -/** - * @member {String} direction - */ -SecurityRulesFieldsforInstance.prototype['direction'] = undefined; - -/** - * @member {String} ethertype - */ -SecurityRulesFieldsforInstance.prototype['ethertype'] = undefined; - -/** - * @member {Number} id - */ -SecurityRulesFieldsforInstance.prototype['id'] = undefined; - -/** - * @member {Number} port_range_max - */ -SecurityRulesFieldsforInstance.prototype['port_range_max'] = undefined; - -/** - * @member {Number} port_range_min - */ -SecurityRulesFieldsforInstance.prototype['port_range_min'] = undefined; - -/** - * @member {String} protocol - */ -SecurityRulesFieldsforInstance.prototype['protocol'] = undefined; - -/** - * @member {String} remote_ip_prefix - */ -SecurityRulesFieldsforInstance.prototype['remote_ip_prefix'] = undefined; - -/** - * @member {String} status - */ -SecurityRulesFieldsforInstance.prototype['status'] = undefined; - - - - - - -export default SecurityRulesFieldsforInstance; - diff --git a/src/model/SecurityRulesProtocolFields.js b/src/model/SecurityRulesProtocolFields.js index 9150a360..46ba68fd 100644 --- a/src/model/SecurityRulesProtocolFields.js +++ b/src/model/SecurityRulesProtocolFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SecurityRulesProtocolFields model module. * @module model/SecurityRulesProtocolFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class SecurityRulesProtocolFields { /** diff --git a/src/model/ServerlessInferencedBillingHistoryDetailsResponseSchema.js b/src/model/ServerlessInferencedBillingHistoryDetailsResponseSchema.js new file mode 100644 index 00000000..436a579d --- /dev/null +++ b/src/model/ServerlessInferencedBillingHistoryDetailsResponseSchema.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 BillingHistoryServerlessInferenceDetails from './BillingHistoryServerlessInferenceDetails'; + +/** + * The ServerlessInferencedBillingHistoryDetailsResponseSchema model module. + * @module model/ServerlessInferencedBillingHistoryDetailsResponseSchema + * @version v1.51.1-alpha + */ +class ServerlessInferencedBillingHistoryDetailsResponseSchema { + /** + * Constructs a new ServerlessInferencedBillingHistoryDetailsResponseSchema. + * @alias module:model/ServerlessInferencedBillingHistoryDetailsResponseSchema + */ + constructor() { + + ServerlessInferencedBillingHistoryDetailsResponseSchema.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 ServerlessInferencedBillingHistoryDetailsResponseSchema 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/ServerlessInferencedBillingHistoryDetailsResponseSchema} obj Optional instance to populate. + * @return {module:model/ServerlessInferencedBillingHistoryDetailsResponseSchema} The populated ServerlessInferencedBillingHistoryDetailsResponseSchema instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ServerlessInferencedBillingHistoryDetailsResponseSchema(); + + if (data.hasOwnProperty('billing_history_serverless_inference_details')) { + obj['billing_history_serverless_inference_details'] = BillingHistoryServerlessInferenceDetails.constructFromObject(data['billing_history_serverless_inference_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 ServerlessInferencedBillingHistoryDetailsResponseSchema. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ServerlessInferencedBillingHistoryDetailsResponseSchema. + */ + static validateJSON(data) { + // validate the optional field `billing_history_serverless_inference_details` + if (data['billing_history_serverless_inference_details']) { // data not null + BillingHistoryServerlessInferenceDetails.validateJSON(data['billing_history_serverless_inference_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/BillingHistoryServerlessInferenceDetails} billing_history_serverless_inference_details + */ +ServerlessInferencedBillingHistoryDetailsResponseSchema.prototype['billing_history_serverless_inference_details'] = undefined; + +/** + * + * @member {String} message + */ +ServerlessInferencedBillingHistoryDetailsResponseSchema.prototype['message'] = undefined; + +/** + * + * @member {Boolean} status + */ +ServerlessInferencedBillingHistoryDetailsResponseSchema.prototype['status'] = undefined; + + + + + + +export default ServerlessInferencedBillingHistoryDetailsResponseSchema; + diff --git a/src/model/SetDefaultsPayload.js b/src/model/SetDefaultsPayload.js deleted file mode 100644 index d9984645..00000000 --- a/src/model/SetDefaultsPayload.js +++ /dev/null @@ -1,109 +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 SetDefaultsPayload model module. - * @module model/SetDefaultsPayload - * @version v1.25.0-alpha - */ -class SetDefaultsPayload { - /** - * Constructs a new SetDefaultsPayload. - * @alias module:model/SetDefaultsPayload - * @param flavors {Array.} - * @param images {Array.} - */ - constructor(flavors, images) { - - SetDefaultsPayload.initialize(this, flavors, images); - } - - /** - * 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, flavors, images) { - obj['flavors'] = flavors; - obj['images'] = images; - } - - /** - * Constructs a SetDefaultsPayload 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/SetDefaultsPayload} obj Optional instance to populate. - * @return {module:model/SetDefaultsPayload} The populated SetDefaultsPayload instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SetDefaultsPayload(); - - if (data.hasOwnProperty('flavors')) { - obj['flavors'] = ApiClient.convertToType(data['flavors'], ['Number']); - } - if (data.hasOwnProperty('images')) { - obj['images'] = ApiClient.convertToType(data['images'], ['Number']); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to SetDefaultsPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to SetDefaultsPayload. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of SetDefaultsPayload.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['flavors'])) { - throw new Error("Expected the field `flavors` to be an array in the JSON data but got " + data['flavors']); - } - // ensure the json data is an array - if (!Array.isArray(data['images'])) { - throw new Error("Expected the field `images` to be an array in the JSON data but got " + data['images']); - } - - return true; - } - - -} - -SetDefaultsPayload.RequiredProperties = ["flavors", "images"]; - -/** - * @member {Array.} flavors - */ -SetDefaultsPayload.prototype['flavors'] = undefined; - -/** - * @member {Array.} images - */ -SetDefaultsPayload.prototype['images'] = undefined; - - - - - - -export default SetDefaultsPayload; - diff --git a/src/model/SingleVisibilityUserResponse.js b/src/model/SingleVisibilityUserResponse.js deleted file mode 100644 index 21ff7119..00000000 --- a/src/model/SingleVisibilityUserResponse.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 SingleVisibilityUserResponse model module. - * @module model/SingleVisibilityUserResponse - * @version v1.25.0-alpha - */ -class SingleVisibilityUserResponse { - /** - * Constructs a new SingleVisibilityUserResponse. - * @alias module:model/SingleVisibilityUserResponse - * @param id {Number} - * @param stockVisible {Boolean} - * @param userId {Number} - */ - constructor(id, stockVisible, userId) { - - SingleVisibilityUserResponse.initialize(this, id, stockVisible, userId); - } - - /** - * 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, stockVisible, userId) { - obj['id'] = id; - obj['stock_visible'] = stockVisible; - obj['user_id'] = userId; - } - - /** - * Constructs a SingleVisibilityUserResponse 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/SingleVisibilityUserResponse} obj Optional instance to populate. - * @return {module:model/SingleVisibilityUserResponse} The populated SingleVisibilityUserResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SingleVisibilityUserResponse(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('stock_visible')) { - obj['stock_visible'] = ApiClient.convertToType(data['stock_visible'], 'Boolean'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to SingleVisibilityUserResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to SingleVisibilityUserResponse. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of SingleVisibilityUserResponse.RequiredProperties) { - if (!data.hasOwnProperty(property)) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - - return true; - } - - -} - -SingleVisibilityUserResponse.RequiredProperties = ["id", "stock_visible", "user_id"]; - -/** - * @member {Number} id - */ -SingleVisibilityUserResponse.prototype['id'] = undefined; - -/** - * @member {Boolean} stock_visible - */ -SingleVisibilityUserResponse.prototype['stock_visible'] = undefined; - -/** - * @member {Number} user_id - */ -SingleVisibilityUserResponse.prototype['user_id'] = undefined; - - - - - - -export default SingleVisibilityUserResponse; - diff --git a/src/model/SnapshotFields.js b/src/model/SnapshotFields.js index 2cf113e0..12e1a3fc 100644 --- a/src/model/SnapshotFields.js +++ b/src/model/SnapshotFields.js @@ -16,12 +16,13 @@ import ApiClient from '../ApiClient'; /** * The SnapshotFields model module. * @module model/SnapshotFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class SnapshotFields { /** * Constructs a new SnapshotFields. * @alias module:model/SnapshotFields + * @param createdAt {Date} Creation timestamp * @param description {String} Description of the snapshot * @param id {Number} Snapshot ID * @param isImage {Boolean} Indicates if the snapshot is an image @@ -29,11 +30,12 @@ class SnapshotFields { * @param regionId {Number} Region where the snapshot will be available * @param size {Number} Size in GB of the snapshot * @param status {String} Status of the snapshot + * @param updatedAt {Date} Last update timestamp * @param vmId {Number} ID of the VM from which the snapshot is created */ - constructor(description, id, isImage, name, regionId, size, status, vmId) { + constructor(createdAt, description, id, isImage, name, regionId, size, status, updatedAt, vmId) { - SnapshotFields.initialize(this, description, id, isImage, name, regionId, size, status, vmId); + SnapshotFields.initialize(this, createdAt, description, id, isImage, name, regionId, size, status, updatedAt, vmId); } /** @@ -41,7 +43,8 @@ class SnapshotFields { * 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, id, isImage, name, regionId, size, status, vmId) { + static initialize(obj, createdAt, description, id, isImage, name, regionId, size, status, updatedAt, vmId) { + obj['created_at'] = createdAt; obj['description'] = description; obj['id'] = id; obj['is_image'] = isImage; @@ -49,6 +52,7 @@ class SnapshotFields { obj['region_id'] = regionId; obj['size'] = size; obj['status'] = status; + obj['updated_at'] = updatedAt; obj['vm_id'] = vmId; } @@ -63,6 +67,9 @@ class SnapshotFields { if (data) { obj = obj || new SnapshotFields(); + 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'); } @@ -90,6 +97,9 @@ class SnapshotFields { 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'); + } if (data.hasOwnProperty('vm_id')) { obj['vm_id'] = ApiClient.convertToType(data['vm_id'], 'Number'); } @@ -132,7 +142,13 @@ class SnapshotFields { } -SnapshotFields.RequiredProperties = ["description", "id", "is_image", "name", "region_id", "size", "status", "vm_id"]; +SnapshotFields.RequiredProperties = ["created_at", "description", "id", "is_image", "name", "region_id", "size", "status", "updated_at", "vm_id"]; + +/** + * Creation timestamp + * @member {Date} created_at + */ +SnapshotFields.prototype['created_at'] = undefined; /** * Description of the snapshot @@ -188,6 +204,12 @@ SnapshotFields.prototype['size'] = undefined; */ SnapshotFields.prototype['status'] = undefined; +/** + * Last update timestamp + * @member {Date} updated_at + */ +SnapshotFields.prototype['updated_at'] = undefined; + /** * ID of the VM from which the snapshot is created * @member {Number} vm_id diff --git a/src/model/SnapshotRestoreRequest.js b/src/model/SnapshotRestoreRequest.js index 301d0a03..92ec14ff 100644 --- a/src/model/SnapshotRestoreRequest.js +++ b/src/model/SnapshotRestoreRequest.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SnapshotRestoreRequest model module. * @module model/SnapshotRestoreRequest - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class SnapshotRestoreRequest { /** diff --git a/src/model/SnapshotRetrieve.js b/src/model/SnapshotRetrieve.js index e888ebf1..ec52d5e4 100644 --- a/src/model/SnapshotRetrieve.js +++ b/src/model/SnapshotRetrieve.js @@ -17,7 +17,7 @@ import SnapshotRetrieveFields from './SnapshotRetrieveFields'; /** * The SnapshotRetrieve model module. * @module model/SnapshotRetrieve - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class SnapshotRetrieve { /** diff --git a/src/model/SnapshotRetrieveFields.js b/src/model/SnapshotRetrieveFields.js index eab1c295..86393c5c 100644 --- a/src/model/SnapshotRetrieveFields.js +++ b/src/model/SnapshotRetrieveFields.js @@ -16,12 +16,13 @@ import ApiClient from '../ApiClient'; /** * The SnapshotRetrieveFields model module. * @module model/SnapshotRetrieveFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class SnapshotRetrieveFields { /** * Constructs a new SnapshotRetrieveFields. * @alias module:model/SnapshotRetrieveFields + * @param createdAt {Date} Creation timestamp * @param description {String} Description of the snapshot * @param id {Number} Snapshot ID * @param isImage {Boolean} Indicates if the snapshot is an image @@ -29,11 +30,12 @@ class SnapshotRetrieveFields { * @param regionId {Number} Region where the snapshot will be available * @param size {Number} Size in GB of the snapshot * @param status {String} Status of the snapshot + * @param updatedAt {Date} Last update timestamp * @param vmId {Number} ID of the VM from which the snapshot is created */ - constructor(description, id, isImage, name, regionId, size, status, vmId) { + constructor(createdAt, description, id, isImage, name, regionId, size, status, updatedAt, vmId) { - SnapshotRetrieveFields.initialize(this, description, id, isImage, name, regionId, size, status, vmId); + SnapshotRetrieveFields.initialize(this, createdAt, description, id, isImage, name, regionId, size, status, updatedAt, vmId); } /** @@ -41,7 +43,8 @@ class SnapshotRetrieveFields { * 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, id, isImage, name, regionId, size, status, vmId) { + static initialize(obj, createdAt, description, id, isImage, name, regionId, size, status, updatedAt, vmId) { + obj['created_at'] = createdAt; obj['description'] = description; obj['id'] = id; obj['is_image'] = isImage; @@ -49,6 +52,7 @@ class SnapshotRetrieveFields { obj['region_id'] = regionId; obj['size'] = size; obj['status'] = status; + obj['updated_at'] = updatedAt; obj['vm_id'] = vmId; } @@ -63,6 +67,12 @@ class SnapshotRetrieveFields { if (data) { obj = obj || new SnapshotRetrieveFields(); + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); + } + if (data.hasOwnProperty('custom_image')) { + obj['custom_image'] = ApiClient.convertToType(data['custom_image'], 'String'); + } if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } @@ -75,9 +85,15 @@ class SnapshotRetrieveFields { 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'); + } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } + if (data.hasOwnProperty('region')) { + obj['region'] = ApiClient.convertToType(data['region'], 'String'); + } if (data.hasOwnProperty('region_id')) { obj['region_id'] = ApiClient.convertToType(data['region_id'], 'Number'); } @@ -87,9 +103,36 @@ class SnapshotRetrieveFields { 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'); + } + if (data.hasOwnProperty('vm_environment')) { + obj['vm_environment'] = ApiClient.convertToType(data['vm_environment'], 'String'); + } + if (data.hasOwnProperty('vm_flavor')) { + obj['vm_flavor'] = ApiClient.convertToType(data['vm_flavor'], 'String'); + } if (data.hasOwnProperty('vm_id')) { obj['vm_id'] = ApiClient.convertToType(data['vm_id'], 'Number'); } + if (data.hasOwnProperty('vm_image')) { + obj['vm_image'] = ApiClient.convertToType(data['vm_image'], 'String'); + } + if (data.hasOwnProperty('vm_keypair')) { + obj['vm_keypair'] = ApiClient.convertToType(data['vm_keypair'], 'String'); + } + if (data.hasOwnProperty('vm_name')) { + obj['vm_name'] = ApiClient.convertToType(data['vm_name'], 'String'); + } + if (data.hasOwnProperty('vm_status')) { + obj['vm_status'] = ApiClient.convertToType(data['vm_status'], 'String'); + } + if (data.hasOwnProperty('volume_id')) { + obj['volume_id'] = ApiClient.convertToType(data['volume_id'], 'String'); + } + if (data.hasOwnProperty('volume_name')) { + obj['volume_name'] = ApiClient.convertToType(data['volume_name'], 'String'); + } } return obj; } @@ -107,17 +150,61 @@ class SnapshotRetrieveFields { } } // ensure the json data is a string + if (data['custom_image'] && !(typeof data['custom_image'] === 'string' || data['custom_image'] instanceof String)) { + throw new Error("Expected the field `custom_image` to be a primitive type in the JSON string but got " + data['custom_image']); + } + // 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['labels'] && !(typeof data['labels'] === 'string' || data['labels'] instanceof String)) { + throw new Error("Expected the field `labels` to be a primitive type in the JSON string 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['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']); + } + // 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['vm_environment'] && !(typeof data['vm_environment'] === 'string' || data['vm_environment'] instanceof String)) { + throw new Error("Expected the field `vm_environment` to be a primitive type in the JSON string but got " + data['vm_environment']); + } + // ensure the json data is a string + if (data['vm_flavor'] && !(typeof data['vm_flavor'] === 'string' || data['vm_flavor'] instanceof String)) { + throw new Error("Expected the field `vm_flavor` to be a primitive type in the JSON string but got " + data['vm_flavor']); + } + // ensure the json data is a string + if (data['vm_image'] && !(typeof data['vm_image'] === 'string' || data['vm_image'] instanceof String)) { + throw new Error("Expected the field `vm_image` to be a primitive type in the JSON string but got " + data['vm_image']); + } + // ensure the json data is a string + if (data['vm_keypair'] && !(typeof data['vm_keypair'] === 'string' || data['vm_keypair'] instanceof String)) { + throw new Error("Expected the field `vm_keypair` to be a primitive type in the JSON string but got " + data['vm_keypair']); + } + // 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']); + } + // ensure the json data is a string + if (data['vm_status'] && !(typeof data['vm_status'] === 'string' || data['vm_status'] instanceof String)) { + throw new Error("Expected the field `vm_status` to be a primitive type in the JSON string but got " + data['vm_status']); + } + // ensure the json data is a string + if (data['volume_id'] && !(typeof data['volume_id'] === 'string' || data['volume_id'] instanceof String)) { + throw new Error("Expected the field `volume_id` to be a primitive type in the JSON string but got " + data['volume_id']); + } + // ensure the json data is a string + if (data['volume_name'] && !(typeof data['volume_name'] === 'string' || data['volume_name'] instanceof String)) { + throw new Error("Expected the field `volume_name` to be a primitive type in the JSON string but got " + data['volume_name']); + } return true; } @@ -125,7 +212,19 @@ class SnapshotRetrieveFields { } -SnapshotRetrieveFields.RequiredProperties = ["description", "id", "is_image", "name", "region_id", "size", "status", "vm_id"]; +SnapshotRetrieveFields.RequiredProperties = ["created_at", "description", "id", "is_image", "name", "region_id", "size", "status", "updated_at", "vm_id"]; + +/** + * Creation timestamp + * @member {Date} created_at + */ +SnapshotRetrieveFields.prototype['created_at'] = undefined; + +/** + * + * @member {String} custom_image + */ +SnapshotRetrieveFields.prototype['custom_image'] = undefined; /** * Description of the snapshot @@ -151,12 +250,24 @@ SnapshotRetrieveFields.prototype['id'] = undefined; */ SnapshotRetrieveFields.prototype['is_image'] = undefined; +/** + * + * @member {String} labels + */ +SnapshotRetrieveFields.prototype['labels'] = undefined; + /** * Snapshot name * @member {String} name */ SnapshotRetrieveFields.prototype['name'] = undefined; +/** + * + * @member {String} region + */ +SnapshotRetrieveFields.prototype['region'] = undefined; + /** * Region where the snapshot will be available * @member {Number} region_id @@ -175,12 +286,66 @@ SnapshotRetrieveFields.prototype['size'] = undefined; */ SnapshotRetrieveFields.prototype['status'] = undefined; +/** + * Last update timestamp + * @member {Date} updated_at + */ +SnapshotRetrieveFields.prototype['updated_at'] = undefined; + +/** + * + * @member {String} vm_environment + */ +SnapshotRetrieveFields.prototype['vm_environment'] = undefined; + +/** + * + * @member {String} vm_flavor + */ +SnapshotRetrieveFields.prototype['vm_flavor'] = undefined; + /** * ID of the VM from which the snapshot is created * @member {Number} vm_id */ SnapshotRetrieveFields.prototype['vm_id'] = undefined; +/** + * + * @member {String} vm_image + */ +SnapshotRetrieveFields.prototype['vm_image'] = undefined; + +/** + * + * @member {String} vm_keypair + */ +SnapshotRetrieveFields.prototype['vm_keypair'] = undefined; + +/** + * + * @member {String} vm_name + */ +SnapshotRetrieveFields.prototype['vm_name'] = undefined; + +/** + * + * @member {String} vm_status + */ +SnapshotRetrieveFields.prototype['vm_status'] = undefined; + +/** + * + * @member {String} volume_id + */ +SnapshotRetrieveFields.prototype['volume_id'] = undefined; + +/** + * + * @member {String} volume_name + */ +SnapshotRetrieveFields.prototype['volume_name'] = undefined; + diff --git a/src/model/Snapshots.js b/src/model/Snapshots.js index 3964ec81..0ede3449 100644 --- a/src/model/Snapshots.js +++ b/src/model/Snapshots.js @@ -17,7 +17,7 @@ import SnapshotFields from './SnapshotFields'; /** * The Snapshots model module. * @module model/Snapshots - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class Snapshots { /** diff --git a/src/model/StartDeployment.js b/src/model/StartDeployment.js index b5584b3d..598f2326 100644 --- a/src/model/StartDeployment.js +++ b/src/model/StartDeployment.js @@ -12,12 +12,12 @@ */ import ApiClient from '../ApiClient'; -import DeploymentFieldsforstartdeployments from './DeploymentFieldsforstartdeployments'; +import DeploymentFieldsForStartDeployments from './DeploymentFieldsForStartDeployments'; /** * The StartDeployment model module. * @module model/StartDeployment - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class StartDeployment { /** @@ -49,7 +49,7 @@ class StartDeployment { obj = obj || new StartDeployment(); if (data.hasOwnProperty('deployment')) { - obj['deployment'] = DeploymentFieldsforstartdeployments.constructFromObject(data['deployment']); + obj['deployment'] = DeploymentFieldsForStartDeployments.constructFromObject(data['deployment']); } if (data.hasOwnProperty('message')) { obj['message'] = ApiClient.convertToType(data['message'], 'String'); @@ -69,7 +69,7 @@ class StartDeployment { static validateJSON(data) { // validate the optional field `deployment` if (data['deployment']) { // data not null - DeploymentFieldsforstartdeployments.validateJSON(data['deployment']); + DeploymentFieldsForStartDeployments.validateJSON(data['deployment']); } // ensure the json data is a string if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) { @@ -85,7 +85,7 @@ class StartDeployment { /** - * @member {module:model/DeploymentFieldsforstartdeployments} deployment + * @member {module:model/DeploymentFieldsForStartDeployments} deployment */ StartDeployment.prototype['deployment'] = undefined; diff --git a/src/model/StartDeploymentPayload.js b/src/model/StartDeploymentPayload.js index 15e0d64d..6ec62bbf 100644 --- a/src/model/StartDeploymentPayload.js +++ b/src/model/StartDeploymentPayload.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The StartDeploymentPayload model module. * @module model/StartDeploymentPayload - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class StartDeploymentPayload { /** diff --git a/src/model/StockVisibilityUserListResponse.js b/src/model/StockVisibilityUserListResponse.js deleted file mode 100644 index 5eec2618..00000000 --- a/src/model/StockVisibilityUserListResponse.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 SingleVisibilityUserResponse from './SingleVisibilityUserResponse'; - -/** - * The StockVisibilityUserListResponse model module. - * @module model/StockVisibilityUserListResponse - * @version v1.25.0-alpha - */ -class StockVisibilityUserListResponse { - /** - * Constructs a new StockVisibilityUserListResponse. - * @alias module:model/StockVisibilityUserListResponse - */ - constructor() { - - StockVisibilityUserListResponse.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 StockVisibilityUserListResponse 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/StockVisibilityUserListResponse} obj Optional instance to populate. - * @return {module:model/StockVisibilityUserListResponse} The populated StockVisibilityUserListResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new StockVisibilityUserListResponse(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('users')) { - obj['users'] = ApiClient.convertToType(data['users'], [SingleVisibilityUserResponse]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to StockVisibilityUserListResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to StockVisibilityUserListResponse. - */ - 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['users']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['users'])) { - throw new Error("Expected the field `users` to be an array in the JSON data but got " + data['users']); - } - // validate the optional field `users` (array) - for (const item of data['users']) { - SingleVisibilityUserResponse.validateJSON(item); - }; - } - - return true; - } - - -} - - - -/** - * @member {String} message - */ -StockVisibilityUserListResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -StockVisibilityUserListResponse.prototype['status'] = undefined; - -/** - * @member {Array.} users - */ -StockVisibilityUserListResponse.prototype['users'] = undefined; - - - - - - -export default StockVisibilityUserListResponse; - diff --git a/src/model/StockVisibilityUserPayload.js b/src/model/StockVisibilityUserPayload.js deleted file mode 100644 index 1c1e5048..00000000 --- a/src/model/StockVisibilityUserPayload.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 StockVisibilityUserPayload model module. - * @module model/StockVisibilityUserPayload - * @version v1.25.0-alpha - */ -class StockVisibilityUserPayload { - /** - * Constructs a new StockVisibilityUserPayload. - * @alias module:model/StockVisibilityUserPayload - * @param userIds {Array.} - */ - constructor(userIds) { - - StockVisibilityUserPayload.initialize(this, userIds); - } - - /** - * 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, userIds) { - obj['user_ids'] = userIds; - } - - /** - * Constructs a StockVisibilityUserPayload 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/StockVisibilityUserPayload} obj Optional instance to populate. - * @return {module:model/StockVisibilityUserPayload} The populated StockVisibilityUserPayload instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new StockVisibilityUserPayload(); - - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['Number']); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to StockVisibilityUserPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to StockVisibilityUserPayload. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of StockVisibilityUserPayload.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['user_ids'])) { - throw new Error("Expected the field `user_ids` to be an array in the JSON data but got " + data['user_ids']); - } - - return true; - } - - -} - -StockVisibilityUserPayload.RequiredProperties = ["user_ids"]; - -/** - * @member {Array.} user_ids - */ -StockVisibilityUserPayload.prototype['user_ids'] = undefined; - - - - - - -export default StockVisibilityUserPayload; - diff --git a/src/model/SubResourceGraphBillingDetailsMetrics.js b/src/model/SubResourceGraphBillingDetailsMetrics.js index a2411c0e..1fbc5408 100644 --- a/src/model/SubResourceGraphBillingDetailsMetrics.js +++ b/src/model/SubResourceGraphBillingDetailsMetrics.js @@ -17,7 +17,7 @@ import GraphDatetimeValueModel from './GraphDatetimeValueModel'; /** * The SubResourceGraphBillingDetailsMetrics model module. * @module model/SubResourceGraphBillingDetailsMetrics - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class SubResourceGraphBillingDetailsMetrics { /** diff --git a/src/model/SubResourcesCostsResponseModel.js b/src/model/SubResourcesCostsResponseModel.js index 196dcabd..ef685edc 100644 --- a/src/model/SubResourcesCostsResponseModel.js +++ b/src/model/SubResourcesCostsResponseModel.js @@ -17,7 +17,7 @@ import SubResourcesGraphBillingHistoryFields from './SubResourcesGraphBillingHis /** * The SubResourcesCostsResponseModel model module. * @module model/SubResourcesCostsResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class SubResourcesCostsResponseModel { /** diff --git a/src/model/SubResourcesGraphBillingHistoryFields.js b/src/model/SubResourcesGraphBillingHistoryFields.js index 8adb305a..bb9042aa 100644 --- a/src/model/SubResourcesGraphBillingHistoryFields.js +++ b/src/model/SubResourcesGraphBillingHistoryFields.js @@ -18,7 +18,7 @@ import SubResourceGraphBillingDetailsMetrics from './SubResourceGraphBillingDeta /** * The SubResourcesGraphBillingHistoryFields model module. * @module model/SubResourcesGraphBillingHistoryFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class SubResourcesGraphBillingHistoryFields { /** diff --git a/src/model/SubResourcesGraphResponseModel.js b/src/model/SubResourcesGraphResponseModel.js index cfbe447d..5a5eb968 100644 --- a/src/model/SubResourcesGraphResponseModel.js +++ b/src/model/SubResourcesGraphResponseModel.js @@ -17,7 +17,7 @@ import SubResourcesCostsResponseModel from './SubResourcesCostsResponseModel'; /** * The SubResourcesGraphResponseModel model module. * @module model/SubResourcesGraphResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class SubResourcesGraphResponseModel { /** diff --git a/src/model/SubscribeOrUnsubscribeUpdatePayload.js b/src/model/SubscribeOrUnsubscribeUpdatePayload.js new file mode 100644 index 00000000..f48acf7e --- /dev/null +++ b/src/model/SubscribeOrUnsubscribeUpdatePayload.js @@ -0,0 +1,92 @@ +/** + * 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 SubscribeOrUnsubscribeUpdatePayload model module. + * @module model/SubscribeOrUnsubscribeUpdatePayload + * @version v1.51.1-alpha + */ +class SubscribeOrUnsubscribeUpdatePayload { + /** + * Constructs a new SubscribeOrUnsubscribeUpdatePayload. + * @alias module:model/SubscribeOrUnsubscribeUpdatePayload + * @param subscribe {Boolean} `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails. + */ + constructor(subscribe) { + + SubscribeOrUnsubscribeUpdatePayload.initialize(this, subscribe); + } + + /** + * 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, subscribe) { + obj['subscribe'] = subscribe; + } + + /** + * Constructs a SubscribeOrUnsubscribeUpdatePayload 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/SubscribeOrUnsubscribeUpdatePayload} obj Optional instance to populate. + * @return {module:model/SubscribeOrUnsubscribeUpdatePayload} The populated SubscribeOrUnsubscribeUpdatePayload instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SubscribeOrUnsubscribeUpdatePayload(); + + if (data.hasOwnProperty('subscribe')) { + obj['subscribe'] = ApiClient.convertToType(data['subscribe'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to SubscribeOrUnsubscribeUpdatePayload. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to SubscribeOrUnsubscribeUpdatePayload. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of SubscribeOrUnsubscribeUpdatePayload.RequiredProperties) { + if (!data.hasOwnProperty(property)) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + + return true; + } + + +} + +SubscribeOrUnsubscribeUpdatePayload.RequiredProperties = ["subscribe"]; + +/** + * `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails. + * @member {Boolean} subscribe + */ +SubscribeOrUnsubscribeUpdatePayload.prototype['subscribe'] = undefined; + + + + + + +export default SubscribeOrUnsubscribeUpdatePayload; + diff --git a/src/model/Subscribeorunsubscribeupdatepayload.js b/src/model/Subscribeorunsubscribeupdatepayload.js deleted file mode 100644 index 10de0283..00000000 --- a/src/model/Subscribeorunsubscribeupdatepayload.js +++ /dev/null @@ -1,92 +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 Subscribeorunsubscribeupdatepayload model module. - * @module model/Subscribeorunsubscribeupdatepayload - * @version v1.25.0-alpha - */ -class Subscribeorunsubscribeupdatepayload { - /** - * Constructs a new Subscribeorunsubscribeupdatepayload. - * @alias module:model/Subscribeorunsubscribeupdatepayload - * @param subscribe {Boolean} `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails. - */ - constructor(subscribe) { - - Subscribeorunsubscribeupdatepayload.initialize(this, subscribe); - } - - /** - * 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, subscribe) { - obj['subscribe'] = subscribe; - } - - /** - * Constructs a Subscribeorunsubscribeupdatepayload 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/Subscribeorunsubscribeupdatepayload} obj Optional instance to populate. - * @return {module:model/Subscribeorunsubscribeupdatepayload} The populated Subscribeorunsubscribeupdatepayload instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Subscribeorunsubscribeupdatepayload(); - - if (data.hasOwnProperty('subscribe')) { - obj['subscribe'] = ApiClient.convertToType(data['subscribe'], 'Boolean'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to Subscribeorunsubscribeupdatepayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Subscribeorunsubscribeupdatepayload. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of Subscribeorunsubscribeupdatepayload.RequiredProperties) { - if (!data.hasOwnProperty(property)) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - - return true; - } - - -} - -Subscribeorunsubscribeupdatepayload.RequiredProperties = ["subscribe"]; - -/** - * `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails. - * @member {Boolean} subscribe - */ -Subscribeorunsubscribeupdatepayload.prototype['subscribe'] = undefined; - - - - - - -export default Subscribeorunsubscribeupdatepayload; - diff --git a/src/model/SuccessResponseModel.js b/src/model/SuccessResponseModel.js deleted file mode 100644 index 39189ed5..00000000 --- a/src/model/SuccessResponseModel.js +++ /dev/null @@ -1,97 +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 SuccessResponseModel model module. - * @module model/SuccessResponseModel - * @version v1.25.0-alpha - */ -class SuccessResponseModel { - /** - * Constructs a new SuccessResponseModel. - * @alias module:model/SuccessResponseModel - */ - constructor() { - - SuccessResponseModel.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) { - obj['status'] = false; - } - - /** - * Constructs a SuccessResponseModel 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/SuccessResponseModel} obj Optional instance to populate. - * @return {module:model/SuccessResponseModel} The populated SuccessResponseModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SuccessResponseModel(); - - 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 SuccessResponseModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to SuccessResponseModel. - */ - 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']); - } - - return true; - } - - -} - - - -/** - * @member {String} message - */ -SuccessResponseModel.prototype['message'] = undefined; - -/** - * @member {Boolean} status - * @default false - */ -SuccessResponseModel.prototype['status'] = false; - - - - - - -export default SuccessResponseModel; - diff --git a/src/model/Template.js b/src/model/Template.js index 2285cb2b..9accbe26 100644 --- a/src/model/Template.js +++ b/src/model/Template.js @@ -17,7 +17,7 @@ import TemplateFields from './TemplateFields'; /** * The Template model module. * @module model/Template - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class Template { /** diff --git a/src/model/TemplateFields.js b/src/model/TemplateFields.js index 5f7ded35..e6d2bc8a 100644 --- a/src/model/TemplateFields.js +++ b/src/model/TemplateFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The TemplateFields model module. * @module model/TemplateFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class TemplateFields { /** diff --git a/src/model/Templates.js b/src/model/Templates.js index 92e2d79a..337e3206 100644 --- a/src/model/Templates.js +++ b/src/model/Templates.js @@ -17,7 +17,7 @@ import TemplateFields from './TemplateFields'; /** * The Templates model module. * @module model/Templates - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class Templates { /** diff --git a/src/model/TokenBasedBillingHistoryResponse.js b/src/model/TokenBasedBillingHistoryResponse.js new file mode 100644 index 00000000..b04485e0 --- /dev/null +++ b/src/model/TokenBasedBillingHistoryResponse.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 BillingHistoryServerlessInference from './BillingHistoryServerlessInference'; + +/** + * The TokenBasedBillingHistoryResponse model module. + * @module model/TokenBasedBillingHistoryResponse + * @version v1.51.1-alpha + */ +class TokenBasedBillingHistoryResponse { + /** + * Constructs a new TokenBasedBillingHistoryResponse. + * @alias module:model/TokenBasedBillingHistoryResponse + */ + constructor() { + + TokenBasedBillingHistoryResponse.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 TokenBasedBillingHistoryResponse 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/TokenBasedBillingHistoryResponse} obj Optional instance to populate. + * @return {module:model/TokenBasedBillingHistoryResponse} The populated TokenBasedBillingHistoryResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new TokenBasedBillingHistoryResponse(); + + if (data.hasOwnProperty('billing_history_serverless_inference')) { + obj['billing_history_serverless_inference'] = BillingHistoryServerlessInference.constructFromObject(data['billing_history_serverless_inference']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to TokenBasedBillingHistoryResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to TokenBasedBillingHistoryResponse. + */ + static validateJSON(data) { + // validate the optional field `billing_history_serverless_inference` + if (data['billing_history_serverless_inference']) { // data not null + BillingHistoryServerlessInference.validateJSON(data['billing_history_serverless_inference']); + } + // 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/BillingHistoryServerlessInference} billing_history_serverless_inference + */ +TokenBasedBillingHistoryResponse.prototype['billing_history_serverless_inference'] = undefined; + +/** + * + * @member {String} message + */ +TokenBasedBillingHistoryResponse.prototype['message'] = undefined; + +/** + * + * @member {Boolean} success + */ +TokenBasedBillingHistoryResponse.prototype['success'] = undefined; + + + + + + +export default TokenBasedBillingHistoryResponse; + diff --git a/src/model/TokenFields.js b/src/model/TokenFields.js deleted file mode 100644 index 6b52e27e..00000000 --- a/src/model/TokenFields.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 TokenFields model module. - * @module model/TokenFields - * @version v1.25.0-alpha - */ -class TokenFields { - /** - * Constructs a new TokenFields. - * @alias module:model/TokenFields - */ - constructor() { - - TokenFields.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 TokenFields 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/TokenFields} obj Optional instance to populate. - * @return {module:model/TokenFields} The populated TokenFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new TokenFields(); - - if (data.hasOwnProperty('access_token')) { - obj['access_token'] = ApiClient.convertToType(data['access_token'], 'String'); - } - if (data.hasOwnProperty('id_token')) { - obj['id_token'] = ApiClient.convertToType(data['id_token'], 'String'); - } - if (data.hasOwnProperty('refresh_token')) { - obj['refresh_token'] = ApiClient.convertToType(data['refresh_token'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to TokenFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to TokenFields. - */ - 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']); - } - // ensure the json data is a string - if (data['id_token'] && !(typeof data['id_token'] === 'string' || data['id_token'] instanceof String)) { - throw new Error("Expected the field `id_token` to be a primitive type in the JSON string but got " + data['id_token']); - } - // ensure the json data is a string - if (data['refresh_token'] && !(typeof data['refresh_token'] === 'string' || data['refresh_token'] instanceof String)) { - throw new Error("Expected the field `refresh_token` to be a primitive type in the JSON string but got " + data['refresh_token']); - } - - return true; - } - - -} - - - -/** - * @member {String} access_token - */ -TokenFields.prototype['access_token'] = undefined; - -/** - * @member {String} id_token - */ -TokenFields.prototype['id_token'] = undefined; - -/** - * @member {String} refresh_token - */ -TokenFields.prototype['refresh_token'] = undefined; - - - - - - -export default TokenFields; - diff --git a/src/model/URIs.js b/src/model/URIs.js new file mode 100644 index 00000000..67d00478 --- /dev/null +++ b/src/model/URIs.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 URIs model module. + * @module model/URIs + * @version v1.51.1-alpha + */ +class URIs { + /** + * Constructs a new URIs. + * @alias module:model/URIs + */ + constructor() { + + URIs.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 URIs 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/URIs} obj Optional instance to populate. + * @return {module:model/URIs} The populated URIs instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new URIs(); + + if (data.hasOwnProperty('api_doc')) { + obj['api_doc'] = ApiClient.convertToType(data['api_doc'], 'String'); + } + if (data.hasOwnProperty('api_uri')) { + obj['api_uri'] = ApiClient.convertToType(data['api_uri'], 'String'); + } + if (data.hasOwnProperty('auth')) { + obj['auth'] = ApiClient.convertToType(data['auth'], 'String'); + } + if (data.hasOwnProperty('console')) { + obj['console'] = ApiClient.convertToType(data['console'], 'String'); + } + if (data.hasOwnProperty('contact_us')) { + obj['contact_us'] = ApiClient.convertToType(data['contact_us'], 'String'); + } + if (data.hasOwnProperty('doc')) { + obj['doc'] = ApiClient.convertToType(data['doc'], 'String'); + } + if (data.hasOwnProperty('landing_page')) { + obj['landing_page'] = ApiClient.convertToType(data['landing_page'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to URIs. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to URIs. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['api_doc'] && !(typeof data['api_doc'] === 'string' || data['api_doc'] instanceof String)) { + throw new Error("Expected the field `api_doc` to be a primitive type in the JSON string but got " + data['api_doc']); + } + // ensure the json data is a string + if (data['api_uri'] && !(typeof data['api_uri'] === 'string' || data['api_uri'] instanceof String)) { + throw new Error("Expected the field `api_uri` to be a primitive type in the JSON string but got " + data['api_uri']); + } + // ensure the json data is a string + if (data['auth'] && !(typeof data['auth'] === 'string' || data['auth'] instanceof String)) { + throw new Error("Expected the field `auth` to be a primitive type in the JSON string but got " + data['auth']); + } + // ensure the json data is a string + if (data['console'] && !(typeof data['console'] === 'string' || data['console'] instanceof String)) { + throw new Error("Expected the field `console` to be a primitive type in the JSON string but got " + data['console']); + } + // ensure the json data is a string + if (data['contact_us'] && !(typeof data['contact_us'] === 'string' || data['contact_us'] instanceof String)) { + throw new Error("Expected the field `contact_us` to be a primitive type in the JSON string but got " + data['contact_us']); + } + // ensure the json data is a string + if (data['doc'] && !(typeof data['doc'] === 'string' || data['doc'] instanceof String)) { + throw new Error("Expected the field `doc` to be a primitive type in the JSON string but got " + data['doc']); + } + // ensure the json data is a string + if (data['landing_page'] && !(typeof data['landing_page'] === 'string' || data['landing_page'] instanceof String)) { + throw new Error("Expected the field `landing_page` to be a primitive type in the JSON string but got " + data['landing_page']); + } + + return true; + } + + +} + + + +/** + * @member {String} api_doc + */ +URIs.prototype['api_doc'] = undefined; + +/** + * @member {String} api_uri + */ +URIs.prototype['api_uri'] = undefined; + +/** + * @member {String} auth + */ +URIs.prototype['auth'] = undefined; + +/** + * @member {String} console + */ +URIs.prototype['console'] = undefined; + +/** + * @member {String} contact_us + */ +URIs.prototype['contact_us'] = undefined; + +/** + * @member {String} doc + */ +URIs.prototype['doc'] = undefined; + +/** + * @member {String} landing_page + */ +URIs.prototype['landing_page'] = undefined; + + + + + + +export default URIs; + diff --git a/src/model/UpdateClusterNodeGroupPayload.js b/src/model/UpdateClusterNodeGroupPayload.js new file mode 100644 index 00000000..8ac837a9 --- /dev/null +++ b/src/model/UpdateClusterNodeGroupPayload.js @@ -0,0 +1,104 @@ +/** + * 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 UpdateClusterNodeGroupPayload model module. + * @module model/UpdateClusterNodeGroupPayload + * @version v1.51.1-alpha + */ +class UpdateClusterNodeGroupPayload { + /** + * Constructs a new UpdateClusterNodeGroupPayload. + * @alias module:model/UpdateClusterNodeGroupPayload + */ + constructor() { + + UpdateClusterNodeGroupPayload.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 UpdateClusterNodeGroupPayload 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/UpdateClusterNodeGroupPayload} obj Optional instance to populate. + * @return {module:model/UpdateClusterNodeGroupPayload} The populated UpdateClusterNodeGroupPayload instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateClusterNodeGroupPayload(); + + if (data.hasOwnProperty('firewall_ids')) { + obj['firewall_ids'] = ApiClient.convertToType(data['firewall_ids'], ['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'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UpdateClusterNodeGroupPayload. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateClusterNodeGroupPayload. + */ + 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']); + } + + return true; + } + + +} + + + +/** + * IDs of the firewalls to apply to all nodes in this node group + * @member {Array.} firewall_ids + */ +UpdateClusterNodeGroupPayload.prototype['firewall_ids'] = undefined; + +/** + * @member {Number} max_count + */ +UpdateClusterNodeGroupPayload.prototype['max_count'] = undefined; + +/** + * @member {Number} min_count + */ +UpdateClusterNodeGroupPayload.prototype['min_count'] = undefined; + + + + + + +export default UpdateClusterNodeGroupPayload; + diff --git a/src/model/UpdateContractPayload.js b/src/model/UpdateContractPayload.js deleted file mode 100644 index 7aabef50..00000000 --- a/src/model/UpdateContractPayload.js +++ /dev/null @@ -1,140 +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 UpdateContractPayload model module. - * @module model/UpdateContractPayload - * @version v1.25.0-alpha - */ -class UpdateContractPayload { - /** - * Constructs a new UpdateContractPayload. - * @alias module:model/UpdateContractPayload - * @param discountResources {Array.} - * @param expirationPolicy {Number} - */ - constructor(discountResources, expirationPolicy) { - - UpdateContractPayload.initialize(this, discountResources, expirationPolicy); - } - - /** - * 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) { - obj['discount_resources'] = discountResources; - obj['expiration_policy'] = expirationPolicy; - } - - /** - * Constructs a UpdateContractPayload 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/UpdateContractPayload} obj Optional instance to populate. - * @return {module:model/UpdateContractPayload} The populated UpdateContractPayload instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateContractPayload(); - - 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('start_date')) { - obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to UpdateContractPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateContractPayload. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of UpdateContractPayload.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; - } - - -} - -UpdateContractPayload.RequiredProperties = ["discount_resources", "expiration_policy"]; - -/** - * @member {String} description - */ -UpdateContractPayload.prototype['description'] = undefined; - -/** - * @member {Array.} discount_resources - */ -UpdateContractPayload.prototype['discount_resources'] = undefined; - -/** - * @member {Date} end_date - */ -UpdateContractPayload.prototype['end_date'] = undefined; - -/** - * @member {Number} expiration_policy - */ -UpdateContractPayload.prototype['expiration_policy'] = undefined; - -/** - * @member {Date} start_date - */ -UpdateContractPayload.prototype['start_date'] = undefined; - - - - - - -export default UpdateContractPayload; - diff --git a/src/model/UpdateDiscountsPayload.js b/src/model/UpdateDiscountsPayload.js deleted file mode 100644 index 9d1d0122..00000000 --- a/src/model/UpdateDiscountsPayload.js +++ /dev/null @@ -1,132 +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 DiscountResourcePayload from './DiscountResourcePayload'; - -/** - * The UpdateDiscountsPayload model module. - * @module model/UpdateDiscountsPayload - * @version v1.25.0-alpha - */ -class UpdateDiscountsPayload { - /** - * Constructs a new UpdateDiscountsPayload. - * @alias module:model/UpdateDiscountsPayload - * @param discountResources {Array.} - * @param discountStatus {String} - */ - constructor(discountResources, discountStatus) { - - UpdateDiscountsPayload.initialize(this, 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, discountResources, discountStatus) { - obj['discount_resources'] = discountResources; - obj['discount_status'] = discountStatus; - } - - /** - * Constructs a UpdateDiscountsPayload 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/UpdateDiscountsPayload} obj Optional instance to populate. - * @return {module:model/UpdateDiscountsPayload} The populated UpdateDiscountsPayload instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateDiscountsPayload(); - - 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 UpdateDiscountsPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateDiscountsPayload. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of UpdateDiscountsPayload.RequiredProperties) { - if (!data.hasOwnProperty(property)) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - 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; - } - - -} - -UpdateDiscountsPayload.RequiredProperties = ["discount_resources", "discount_status"]; - -/** - * @member {Array.} discount_resources - */ -UpdateDiscountsPayload.prototype['discount_resources'] = undefined; - -/** - * @member {String} discount_status - */ -UpdateDiscountsPayload.prototype['discount_status'] = undefined; - -/** - * @member {Date} end_date - */ -UpdateDiscountsPayload.prototype['end_date'] = undefined; - -/** - * @member {Date} start_date - */ -UpdateDiscountsPayload.prototype['start_date'] = undefined; - - - - - - -export default UpdateDiscountsPayload; - diff --git a/src/model/UpdateDiscountsStatusPayload.js b/src/model/UpdateDiscountsStatusPayload.js deleted file mode 100644 index 31780c54..00000000 --- a/src/model/UpdateDiscountsStatusPayload.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 UpdateDiscountsStatusPayload model module. - * @module model/UpdateDiscountsStatusPayload - * @version v1.25.0-alpha - */ -class UpdateDiscountsStatusPayload { - /** - * Constructs a new UpdateDiscountsStatusPayload. - * @alias module:model/UpdateDiscountsStatusPayload - * @param discountStatus {String} - */ - constructor(discountStatus) { - - UpdateDiscountsStatusPayload.initialize(this, 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, discountStatus) { - obj['discount_status'] = discountStatus; - } - - /** - * Constructs a UpdateDiscountsStatusPayload 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/UpdateDiscountsStatusPayload} obj Optional instance to populate. - * @return {module:model/UpdateDiscountsStatusPayload} The populated UpdateDiscountsStatusPayload instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateDiscountsStatusPayload(); - - if (data.hasOwnProperty('discount_status')) { - obj['discount_status'] = ApiClient.convertToType(data['discount_status'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to UpdateDiscountsStatusPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateDiscountsStatusPayload. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of UpdateDiscountsStatusPayload.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_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; - } - - -} - -UpdateDiscountsStatusPayload.RequiredProperties = ["discount_status"]; - -/** - * @member {String} discount_status - */ -UpdateDiscountsStatusPayload.prototype['discount_status'] = undefined; - - - - - - -export default UpdateDiscountsStatusPayload; - diff --git a/src/model/UpdateEnvironment.js b/src/model/UpdateEnvironment.js index 18cfd9b1..6a9df52d 100644 --- a/src/model/UpdateEnvironment.js +++ b/src/model/UpdateEnvironment.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateEnvironment model module. * @module model/UpdateEnvironment - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class UpdateEnvironment { /** diff --git a/src/model/UpdateGPU.js b/src/model/UpdateGPU.js deleted file mode 100644 index 0a92b777..00000000 --- a/src/model/UpdateGPU.js +++ /dev/null @@ -1,112 +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 UpdateGPU model module. - * @module model/UpdateGPU - * @version v1.25.0-alpha - */ -class UpdateGPU { - /** - * Constructs a new UpdateGPU. - * @alias module:model/UpdateGPU - */ - constructor() { - - UpdateGPU.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 UpdateGPU 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/UpdateGPU} obj Optional instance to populate. - * @return {module:model/UpdateGPU} The populated UpdateGPU instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateGPU(); - - 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 UpdateGPU. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateGPU. - */ - static validateJSON(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; - } - - -} - - - -/** - * A valid JSON string. - * @member {String} example_metadata - */ -UpdateGPU.prototype['example_metadata'] = undefined; - -/** - * @member {String} name - */ -UpdateGPU.prototype['name'] = undefined; - -/** - * @member {Array.} regions - */ -UpdateGPU.prototype['regions'] = undefined; - - - - - - -export default UpdateGPU; - diff --git a/src/model/UpdateKeypairName.js b/src/model/UpdateKeypairName.js index 7adc8883..cf9d8f33 100644 --- a/src/model/UpdateKeypairName.js +++ b/src/model/UpdateKeypairName.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateKeypairName model module. * @module model/UpdateKeypairName - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class UpdateKeypairName { /** diff --git a/src/model/UpdateKeypairNameResponse.js b/src/model/UpdateKeypairNameResponse.js new file mode 100644 index 00000000..f0e2bcaf --- /dev/null +++ b/src/model/UpdateKeypairNameResponse.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 KeypairFields from './KeypairFields'; + +/** + * The UpdateKeypairNameResponse model module. + * @module model/UpdateKeypairNameResponse + * @version v1.51.1-alpha + */ +class UpdateKeypairNameResponse { + /** + * Constructs a new UpdateKeypairNameResponse. + * @alias module:model/UpdateKeypairNameResponse + */ + constructor() { + + UpdateKeypairNameResponse.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 UpdateKeypairNameResponse 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/UpdateKeypairNameResponse} obj Optional instance to populate. + * @return {module:model/UpdateKeypairNameResponse} The populated UpdateKeypairNameResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateKeypairNameResponse(); + + if (data.hasOwnProperty('keypair')) { + obj['keypair'] = KeypairFields.constructFromObject(data['keypair']); + } + 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 UpdateKeypairNameResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateKeypairNameResponse. + */ + static validateJSON(data) { + // validate the optional field `keypair` + if (data['keypair']) { // data not null + KeypairFields.validateJSON(data['keypair']); + } + // 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/KeypairFields} keypair + */ +UpdateKeypairNameResponse.prototype['keypair'] = undefined; + +/** + * @member {String} message + */ +UpdateKeypairNameResponse.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +UpdateKeypairNameResponse.prototype['status'] = undefined; + + + + + + +export default UpdateKeypairNameResponse; + diff --git a/src/model/UpdateKeypairnameresponse.js b/src/model/UpdateKeypairnameresponse.js deleted file mode 100644 index ecaeb709..00000000 --- a/src/model/UpdateKeypairnameresponse.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 KeypairFields from './KeypairFields'; - -/** - * The UpdateKeypairnameresponse model module. - * @module model/UpdateKeypairnameresponse - * @version v1.25.0-alpha - */ -class UpdateKeypairnameresponse { - /** - * Constructs a new UpdateKeypairnameresponse. - * @alias module:model/UpdateKeypairnameresponse - */ - constructor() { - - UpdateKeypairnameresponse.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 UpdateKeypairnameresponse 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/UpdateKeypairnameresponse} obj Optional instance to populate. - * @return {module:model/UpdateKeypairnameresponse} The populated UpdateKeypairnameresponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateKeypairnameresponse(); - - if (data.hasOwnProperty('keypair')) { - obj['keypair'] = KeypairFields.constructFromObject(data['keypair']); - } - 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 UpdateKeypairnameresponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateKeypairnameresponse. - */ - static validateJSON(data) { - // validate the optional field `keypair` - if (data['keypair']) { // data not null - KeypairFields.validateJSON(data['keypair']); - } - // 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/KeypairFields} keypair - */ -UpdateKeypairnameresponse.prototype['keypair'] = undefined; - -/** - * @member {String} message - */ -UpdateKeypairnameresponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -UpdateKeypairnameresponse.prototype['status'] = undefined; - - - - - - -export default UpdateKeypairnameresponse; - diff --git a/src/model/UpdateOrganizationPayload.js b/src/model/UpdateOrganizationPayload.js index dc4f1b1e..af911601 100644 --- a/src/model/UpdateOrganizationPayload.js +++ b/src/model/UpdateOrganizationPayload.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateOrganizationPayload model module. * @module model/UpdateOrganizationPayload - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class UpdateOrganizationPayload { /** diff --git a/src/model/UpdateOrganizationResponseModel.js b/src/model/UpdateOrganizationResponseModel.js index 2f608d74..cd84c820 100644 --- a/src/model/UpdateOrganizationResponseModel.js +++ b/src/model/UpdateOrganizationResponseModel.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateOrganizationResponseModel model module. * @module model/UpdateOrganizationResponseModel - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class UpdateOrganizationResponseModel { /** diff --git a/src/model/UpdateTemplate.js b/src/model/UpdateTemplate.js index 5e7e1614..b82566a7 100644 --- a/src/model/UpdateTemplate.js +++ b/src/model/UpdateTemplate.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateTemplate model module. * @module model/UpdateTemplate - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class UpdateTemplate { /** diff --git a/src/model/UpdateVolumeAttachmentPayload.js b/src/model/UpdateVolumeAttachmentPayload.js new file mode 100644 index 00000000..c22fa23d --- /dev/null +++ b/src/model/UpdateVolumeAttachmentPayload.js @@ -0,0 +1,83 @@ +/** + * 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 UpdateVolumeAttachmentPayload model module. + * @module model/UpdateVolumeAttachmentPayload + * @version v1.51.1-alpha + */ +class UpdateVolumeAttachmentPayload { + /** + * Constructs a new UpdateVolumeAttachmentPayload. + * @alias module:model/UpdateVolumeAttachmentPayload + */ + constructor() { + + UpdateVolumeAttachmentPayload.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 UpdateVolumeAttachmentPayload 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/UpdateVolumeAttachmentPayload} obj Optional instance to populate. + * @return {module:model/UpdateVolumeAttachmentPayload} The populated UpdateVolumeAttachmentPayload instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateVolumeAttachmentPayload(); + + if (data.hasOwnProperty('protected')) { + obj['protected'] = ApiClient.convertToType(data['protected'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UpdateVolumeAttachmentPayload. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateVolumeAttachmentPayload. + */ + static validateJSON(data) { + + return true; + } + + +} + + + +/** + * @member {Boolean} protected + */ +UpdateVolumeAttachmentPayload.prototype['protected'] = undefined; + + + + + + +export default UpdateVolumeAttachmentPayload; + diff --git a/src/model/UpdateVolumePayload.js b/src/model/UpdateVolumePayload.js new file mode 100644 index 00000000..d0af1bbe --- /dev/null +++ b/src/model/UpdateVolumePayload.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'; + +/** + * The UpdateVolumePayload model module. + * @module model/UpdateVolumePayload + * @version v1.51.1-alpha + */ +class UpdateVolumePayload { + /** + * Constructs a new UpdateVolumePayload. + * @alias module:model/UpdateVolumePayload + * @param environmentName {String} The name of the target environment to move the volume to. The target environment must be in the same region as the current environment. + */ + constructor(environmentName) { + + UpdateVolumePayload.initialize(this, environmentName); + } + + /** + * 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, environmentName) { + obj['environment_name'] = environmentName; + } + + /** + * Constructs a UpdateVolumePayload 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/UpdateVolumePayload} obj Optional instance to populate. + * @return {module:model/UpdateVolumePayload} The populated UpdateVolumePayload instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateVolumePayload(); + + if (data.hasOwnProperty('environment_name')) { + obj['environment_name'] = ApiClient.convertToType(data['environment_name'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UpdateVolumePayload. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateVolumePayload. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of UpdateVolumePayload.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['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']); + } + + return true; + } + + +} + +UpdateVolumePayload.RequiredProperties = ["environment_name"]; + +/** + * The name of the target environment to move the volume to. The target environment must be in the same region as the current environment. + * @member {String} environment_name + */ +UpdateVolumePayload.prototype['environment_name'] = undefined; + + + + + + +export default UpdateVolumePayload; + diff --git a/src/model/UpdateVolumeResponse.js b/src/model/UpdateVolumeResponse.js new file mode 100644 index 00000000..64333653 --- /dev/null +++ b/src/model/UpdateVolumeResponse.js @@ -0,0 +1,117 @@ +/** + * 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 VolumeFields from './VolumeFields'; + +/** + * The UpdateVolumeResponse model module. + * @module model/UpdateVolumeResponse + * @version v1.51.1-alpha + */ +class UpdateVolumeResponse { + /** + * Constructs a new UpdateVolumeResponse. + * @alias module:model/UpdateVolumeResponse + */ + constructor() { + + UpdateVolumeResponse.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 UpdateVolumeResponse 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/UpdateVolumeResponse} obj Optional instance to populate. + * @return {module:model/UpdateVolumeResponse} The populated UpdateVolumeResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateVolumeResponse(); + + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); + } + if (data.hasOwnProperty('updates')) { + obj['updates'] = ApiClient.convertToType(data['updates'], Object); + } + if (data.hasOwnProperty('volume')) { + obj['volume'] = VolumeFields.constructFromObject(data['volume']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UpdateVolumeResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateVolumeResponse. + */ + 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 `volume` + if (data['volume']) { // data not null + VolumeFields.validateJSON(data['volume']); + } + + return true; + } + + +} + + + +/** + * @member {String} message + */ +UpdateVolumeResponse.prototype['message'] = undefined; + +/** + * @member {Boolean} status + */ +UpdateVolumeResponse.prototype['status'] = undefined; + +/** + * Summary of fields that were updated + * @member {Object} updates + */ +UpdateVolumeResponse.prototype['updates'] = undefined; + +/** + * @member {module:model/VolumeFields} volume + */ +UpdateVolumeResponse.prototype['volume'] = undefined; + + + + + + +export default UpdateVolumeResponse; + diff --git a/src/model/UserDefaultChoiceForUserFields.js b/src/model/UserDefaultChoiceForUserFields.js index a4440990..a6da1bcc 100644 --- a/src/model/UserDefaultChoiceForUserFields.js +++ b/src/model/UserDefaultChoiceForUserFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UserDefaultChoiceForUserFields model module. * @module model/UserDefaultChoiceForUserFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class UserDefaultChoiceForUserFields { /** diff --git a/src/model/UserDefaultChoicesForUserResponse.js b/src/model/UserDefaultChoicesForUserResponse.js index ae38d535..73019fe2 100644 --- a/src/model/UserDefaultChoicesForUserResponse.js +++ b/src/model/UserDefaultChoicesForUserResponse.js @@ -17,7 +17,7 @@ import UserDefaultChoiceForUserFields from './UserDefaultChoiceForUserFields'; /** * The UserDefaultChoicesForUserResponse model module. * @module model/UserDefaultChoicesForUserResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class UserDefaultChoicesForUserResponse { /** diff --git a/src/model/UserInfoPostPayload.js b/src/model/UserInfoPostPayload.js new file mode 100644 index 00000000..7776c47a --- /dev/null +++ b/src/model/UserInfoPostPayload.js @@ -0,0 +1,215 @@ +/** + * 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 UserInfoPostPayload model module. + * @module model/UserInfoPostPayload + * @version v1.51.1-alpha + */ +class UserInfoPostPayload { + /** + * Constructs a new UserInfoPostPayload. + * @alias module:model/UserInfoPostPayload + * @param business {Boolean} + * @param country {String} + * @param zipCode {String} + */ + constructor(business, country, zipCode) { + + UserInfoPostPayload.initialize(this, business, country, zipCode); + } + + /** + * 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, business, country, zipCode) { + obj['business'] = business; + obj['country'] = country; + obj['zip_code'] = zipCode; + } + + /** + * Constructs a UserInfoPostPayload 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/UserInfoPostPayload} obj Optional instance to populate. + * @return {module:model/UserInfoPostPayload} The populated UserInfoPostPayload instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserInfoPostPayload(); + + if (data.hasOwnProperty('billing_address1')) { + obj['billing_address1'] = ApiClient.convertToType(data['billing_address1'], 'String'); + } + if (data.hasOwnProperty('billing_address2')) { + obj['billing_address2'] = ApiClient.convertToType(data['billing_address2'], 'String'); + } + if (data.hasOwnProperty('business')) { + obj['business'] = ApiClient.convertToType(data['business'], 'Boolean'); + } + if (data.hasOwnProperty('company_name')) { + obj['company_name'] = ApiClient.convertToType(data['company_name'], 'String'); + } + if (data.hasOwnProperty('country')) { + obj['country'] = ApiClient.convertToType(data['country'], 'String'); + } + if (data.hasOwnProperty('email')) { + obj['email'] = ApiClient.convertToType(data['email'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('phone')) { + obj['phone'] = ApiClient.convertToType(data['phone'], 'String'); + } + if (data.hasOwnProperty('state')) { + obj['state'] = ApiClient.convertToType(data['state'], 'String'); + } + if (data.hasOwnProperty('vat_number')) { + obj['vat_number'] = ApiClient.convertToType(data['vat_number'], 'String'); + } + if (data.hasOwnProperty('zip_code')) { + obj['zip_code'] = ApiClient.convertToType(data['zip_code'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UserInfoPostPayload. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UserInfoPostPayload. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of UserInfoPostPayload.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['billing_address1'] && !(typeof data['billing_address1'] === 'string' || data['billing_address1'] instanceof String)) { + throw new Error("Expected the field `billing_address1` to be a primitive type in the JSON string but got " + data['billing_address1']); + } + // ensure the json data is a string + if (data['billing_address2'] && !(typeof data['billing_address2'] === 'string' || data['billing_address2'] instanceof String)) { + throw new Error("Expected the field `billing_address2` to be a primitive type in the JSON string but got " + data['billing_address2']); + } + // ensure the json data is a string + if (data['company_name'] && !(typeof data['company_name'] === 'string' || data['company_name'] instanceof String)) { + throw new Error("Expected the field `company_name` to be a primitive type in the JSON string but got " + data['company_name']); + } + // ensure the json data is a string + if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) { + throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']); + } + // ensure the json data is a string + if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) { + throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']); + } + // 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['phone'] && !(typeof data['phone'] === 'string' || data['phone'] instanceof String)) { + throw new Error("Expected the field `phone` to be a primitive type in the JSON string but got " + data['phone']); + } + // ensure the json data is a string + if (data['state'] && !(typeof data['state'] === 'string' || data['state'] instanceof String)) { + throw new Error("Expected the field `state` to be a primitive type in the JSON string but got " + data['state']); + } + // ensure the json data is a string + if (data['vat_number'] && !(typeof data['vat_number'] === 'string' || data['vat_number'] instanceof String)) { + throw new Error("Expected the field `vat_number` to be a primitive type in the JSON string but got " + data['vat_number']); + } + // ensure the json data is a string + if (data['zip_code'] && !(typeof data['zip_code'] === 'string' || data['zip_code'] instanceof String)) { + throw new Error("Expected the field `zip_code` to be a primitive type in the JSON string but got " + data['zip_code']); + } + + return true; + } + + +} + +UserInfoPostPayload.RequiredProperties = ["business", "country", "zip_code"]; + +/** + * @member {String} billing_address1 + */ +UserInfoPostPayload.prototype['billing_address1'] = undefined; + +/** + * @member {String} billing_address2 + */ +UserInfoPostPayload.prototype['billing_address2'] = undefined; + +/** + * @member {Boolean} business + */ +UserInfoPostPayload.prototype['business'] = undefined; + +/** + * @member {String} company_name + */ +UserInfoPostPayload.prototype['company_name'] = undefined; + +/** + * @member {String} country + */ +UserInfoPostPayload.prototype['country'] = undefined; + +/** + * @member {String} email + */ +UserInfoPostPayload.prototype['email'] = undefined; + +/** + * @member {String} name + */ +UserInfoPostPayload.prototype['name'] = undefined; + +/** + * @member {String} phone + */ +UserInfoPostPayload.prototype['phone'] = undefined; + +/** + * @member {String} state + */ +UserInfoPostPayload.prototype['state'] = undefined; + +/** + * @member {String} vat_number + */ +UserInfoPostPayload.prototype['vat_number'] = undefined; + +/** + * @member {String} zip_code + */ +UserInfoPostPayload.prototype['zip_code'] = undefined; + + + + + + +export default UserInfoPostPayload; + diff --git a/src/model/UserOrganizationsResponse.js b/src/model/UserOrganizationsResponse.js new file mode 100644 index 00000000..9300d0a4 --- /dev/null +++ b/src/model/UserOrganizationsResponse.js @@ -0,0 +1,94 @@ +/** + * 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 OrganizationFields from './OrganizationFields'; + +/** + * The UserOrganizationsResponse model module. + * @module model/UserOrganizationsResponse + * @version v1.51.1-alpha + */ +class UserOrganizationsResponse { + /** + * Constructs a new UserOrganizationsResponse. + * @alias module:model/UserOrganizationsResponse + */ + constructor() { + + UserOrganizationsResponse.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 UserOrganizationsResponse 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/UserOrganizationsResponse} obj Optional instance to populate. + * @return {module:model/UserOrganizationsResponse} The populated UserOrganizationsResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserOrganizationsResponse(); + + if (data.hasOwnProperty('organizations')) { + obj['organizations'] = ApiClient.convertToType(data['organizations'], [OrganizationFields]); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UserOrganizationsResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UserOrganizationsResponse. + */ + static validateJSON(data) { + if (data['organizations']) { // data not null + // 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']); + } + // validate the optional field `organizations` (array) + for (const item of data['organizations']) { + OrganizationFields.validateJSON(item); + }; + } + + return true; + } + + +} + + + +/** + * @member {Array.} organizations + */ +UserOrganizationsResponse.prototype['organizations'] = undefined; + + + + + + +export default UserOrganizationsResponse; + diff --git a/src/model/UserPermissionFields.js b/src/model/UserPermissionFields.js index e1a9ea45..c34afb4a 100644 --- a/src/model/UserPermissionFields.js +++ b/src/model/UserPermissionFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UserPermissionFields model module. * @module model/UserPermissionFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class UserPermissionFields { /** diff --git a/src/model/UserTransferPayload.js b/src/model/UserTransferPayload.js deleted file mode 100644 index 719bf393..00000000 --- a/src/model/UserTransferPayload.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 UserTransferPayload model module. - * @module model/UserTransferPayload - * @version v1.25.0-alpha - */ -class UserTransferPayload { - /** - * Constructs a new UserTransferPayload. - * @alias module:model/UserTransferPayload - * @param orgId {Number} - * @param role {String} - */ - constructor(orgId, role) { - - UserTransferPayload.initialize(this, orgId, 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, orgId, role) { - obj['org_id'] = orgId; - obj['role'] = role; - } - - /** - * Constructs a UserTransferPayload 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/UserTransferPayload} obj Optional instance to populate. - * @return {module:model/UserTransferPayload} The populated UserTransferPayload instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserTransferPayload(); - - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - } - if (data.hasOwnProperty('role')) { - obj['role'] = ApiClient.convertToType(data['role'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to UserTransferPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to UserTransferPayload. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of UserTransferPayload.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['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; - } - - -} - -UserTransferPayload.RequiredProperties = ["org_id", "role"]; - -/** - * @member {Number} org_id - */ -UserTransferPayload.prototype['org_id'] = undefined; - -/** - * @member {String} role - */ -UserTransferPayload.prototype['role'] = undefined; - - - - - - -export default UserTransferPayload; - diff --git a/src/model/Userinfopostpayload.js b/src/model/Userinfopostpayload.js deleted file mode 100644 index f6bd9255..00000000 --- a/src/model/Userinfopostpayload.js +++ /dev/null @@ -1,215 +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 Userinfopostpayload model module. - * @module model/Userinfopostpayload - * @version v1.25.0-alpha - */ -class Userinfopostpayload { - /** - * Constructs a new Userinfopostpayload. - * @alias module:model/Userinfopostpayload - * @param business {Boolean} - * @param country {String} - * @param zipCode {String} - */ - constructor(business, country, zipCode) { - - Userinfopostpayload.initialize(this, business, country, zipCode); - } - - /** - * 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, business, country, zipCode) { - obj['business'] = business; - obj['country'] = country; - obj['zip_code'] = zipCode; - } - - /** - * Constructs a Userinfopostpayload 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/Userinfopostpayload} obj Optional instance to populate. - * @return {module:model/Userinfopostpayload} The populated Userinfopostpayload instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Userinfopostpayload(); - - if (data.hasOwnProperty('billing_address1')) { - obj['billing_address1'] = ApiClient.convertToType(data['billing_address1'], 'String'); - } - if (data.hasOwnProperty('billing_address2')) { - obj['billing_address2'] = ApiClient.convertToType(data['billing_address2'], 'String'); - } - if (data.hasOwnProperty('business')) { - obj['business'] = ApiClient.convertToType(data['business'], 'Boolean'); - } - if (data.hasOwnProperty('company_name')) { - obj['company_name'] = ApiClient.convertToType(data['company_name'], 'String'); - } - if (data.hasOwnProperty('country')) { - obj['country'] = ApiClient.convertToType(data['country'], 'String'); - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], 'String'); - } - if (data.hasOwnProperty('state')) { - obj['state'] = ApiClient.convertToType(data['state'], 'String'); - } - if (data.hasOwnProperty('vat_number')) { - obj['vat_number'] = ApiClient.convertToType(data['vat_number'], 'String'); - } - if (data.hasOwnProperty('zip_code')) { - obj['zip_code'] = ApiClient.convertToType(data['zip_code'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to Userinfopostpayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to Userinfopostpayload. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of Userinfopostpayload.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['billing_address1'] && !(typeof data['billing_address1'] === 'string' || data['billing_address1'] instanceof String)) { - throw new Error("Expected the field `billing_address1` to be a primitive type in the JSON string but got " + data['billing_address1']); - } - // ensure the json data is a string - if (data['billing_address2'] && !(typeof data['billing_address2'] === 'string' || data['billing_address2'] instanceof String)) { - throw new Error("Expected the field `billing_address2` to be a primitive type in the JSON string but got " + data['billing_address2']); - } - // ensure the json data is a string - if (data['company_name'] && !(typeof data['company_name'] === 'string' || data['company_name'] instanceof String)) { - throw new Error("Expected the field `company_name` to be a primitive type in the JSON string but got " + data['company_name']); - } - // ensure the json data is a string - if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) { - throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']); - } - // ensure the json data is a string - if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) { - throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']); - } - // 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['phone'] && !(typeof data['phone'] === 'string' || data['phone'] instanceof String)) { - throw new Error("Expected the field `phone` to be a primitive type in the JSON string but got " + data['phone']); - } - // ensure the json data is a string - if (data['state'] && !(typeof data['state'] === 'string' || data['state'] instanceof String)) { - throw new Error("Expected the field `state` to be a primitive type in the JSON string but got " + data['state']); - } - // ensure the json data is a string - if (data['vat_number'] && !(typeof data['vat_number'] === 'string' || data['vat_number'] instanceof String)) { - throw new Error("Expected the field `vat_number` to be a primitive type in the JSON string but got " + data['vat_number']); - } - // ensure the json data is a string - if (data['zip_code'] && !(typeof data['zip_code'] === 'string' || data['zip_code'] instanceof String)) { - throw new Error("Expected the field `zip_code` to be a primitive type in the JSON string but got " + data['zip_code']); - } - - return true; - } - - -} - -Userinfopostpayload.RequiredProperties = ["business", "country", "zip_code"]; - -/** - * @member {String} billing_address1 - */ -Userinfopostpayload.prototype['billing_address1'] = undefined; - -/** - * @member {String} billing_address2 - */ -Userinfopostpayload.prototype['billing_address2'] = undefined; - -/** - * @member {Boolean} business - */ -Userinfopostpayload.prototype['business'] = undefined; - -/** - * @member {String} company_name - */ -Userinfopostpayload.prototype['company_name'] = undefined; - -/** - * @member {String} country - */ -Userinfopostpayload.prototype['country'] = undefined; - -/** - * @member {String} email - */ -Userinfopostpayload.prototype['email'] = undefined; - -/** - * @member {String} name - */ -Userinfopostpayload.prototype['name'] = undefined; - -/** - * @member {String} phone - */ -Userinfopostpayload.prototype['phone'] = undefined; - -/** - * @member {String} state - */ -Userinfopostpayload.prototype['state'] = undefined; - -/** - * @member {String} vat_number - */ -Userinfopostpayload.prototype['vat_number'] = undefined; - -/** - * @member {String} zip_code - */ -Userinfopostpayload.prototype['zip_code'] = undefined; - - - - - - -export default Userinfopostpayload; - diff --git a/src/model/UsersInfoFields.js b/src/model/UsersInfoFields.js index ebe52147..4823e6e8 100644 --- a/src/model/UsersInfoFields.js +++ b/src/model/UsersInfoFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UsersInfoFields model module. * @module model/UsersInfoFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class UsersInfoFields { /** @@ -83,6 +83,9 @@ class UsersInfoFields { if (data.hasOwnProperty('state')) { obj['state'] = ApiClient.convertToType(data['state'], 'String'); } + if (data.hasOwnProperty('stripe_user_id')) { + obj['stripe_user_id'] = ApiClient.convertToType(data['stripe_user_id'], 'String'); + } if (data.hasOwnProperty('vat_number')) { obj['vat_number'] = ApiClient.convertToType(data['vat_number'], 'String'); } @@ -132,6 +135,10 @@ class UsersInfoFields { throw new Error("Expected the field `state` to be a primitive type in the JSON string but got " + data['state']); } // ensure the json data is a string + if (data['stripe_user_id'] && !(typeof data['stripe_user_id'] === 'string' || data['stripe_user_id'] instanceof String)) { + throw new Error("Expected the field `stripe_user_id` to be a primitive type in the JSON string but got " + data['stripe_user_id']); + } + // ensure the json data is a string if (data['vat_number'] && !(typeof data['vat_number'] === 'string' || data['vat_number'] instanceof String)) { throw new Error("Expected the field `vat_number` to be a primitive type in the JSON string but got " + data['vat_number']); } @@ -208,6 +215,11 @@ UsersInfoFields.prototype['phone'] = undefined; */ UsersInfoFields.prototype['state'] = undefined; +/** + * @member {String} stripe_user_id + */ +UsersInfoFields.prototype['stripe_user_id'] = undefined; + /** * @member {String} vat_number */ diff --git a/src/model/UsersInfoListResponse.js b/src/model/UsersInfoListResponse.js index 365a0b4d..1809cfff 100644 --- a/src/model/UsersInfoListResponse.js +++ b/src/model/UsersInfoListResponse.js @@ -17,7 +17,7 @@ import UsersInfoFields from './UsersInfoFields'; /** * The UsersInfoListResponse model module. * @module model/UsersInfoListResponse - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class UsersInfoListResponse { /** diff --git a/src/model/VMQuota.js b/src/model/VMQuota.js new file mode 100644 index 00000000..5211726a --- /dev/null +++ b/src/model/VMQuota.js @@ -0,0 +1,139 @@ +/** + * 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 VMQuota model module. + * @module model/VMQuota + * @version v1.51.1-alpha + */ +class VMQuota { + /** + * Constructs a new VMQuota. + * @alias module:model/VMQuota + */ + constructor() { + + VMQuota.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 VMQuota 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/VMQuota} obj Optional instance to populate. + * @return {module:model/VMQuota} The populated VMQuota instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new VMQuota(); + + if (data.hasOwnProperty('available_vms')) { + obj['available_vms'] = ApiClient.convertToType(data['available_vms'], 'Number'); + } + if (data.hasOwnProperty('cidr')) { + obj['cidr'] = ApiClient.convertToType(data['cidr'], 'String'); + } + if (data.hasOwnProperty('current_vms')) { + obj['current_vms'] = ApiClient.convertToType(data['current_vms'], 'Number'); + } + if (data.hasOwnProperty('max_vms')) { + obj['max_vms'] = ApiClient.convertToType(data['max_vms'], 'Number'); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('percentage_used')) { + obj['percentage_used'] = ApiClient.convertToType(data['percentage_used'], 'Number'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to VMQuota. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to VMQuota. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['cidr'] && !(typeof data['cidr'] === 'string' || data['cidr'] instanceof String)) { + throw new Error("Expected the field `cidr` to be a primitive type in the JSON string but got " + data['cidr']); + } + // 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} available_vms + */ +VMQuota.prototype['available_vms'] = undefined; + +/** + * @member {String} cidr + */ +VMQuota.prototype['cidr'] = undefined; + +/** + * @member {Number} current_vms + */ +VMQuota.prototype['current_vms'] = undefined; + +/** + * @member {Number} max_vms + */ +VMQuota.prototype['max_vms'] = undefined; + +/** + * @member {String} message + */ +VMQuota.prototype['message'] = undefined; + +/** + * @member {Number} percentage_used + */ +VMQuota.prototype['percentage_used'] = undefined; + +/** + * @member {Boolean} status + */ +VMQuota.prototype['status'] = undefined; + + + + + + +export default VMQuota; + diff --git a/src/model/VMUsageRequestPayload.js b/src/model/VMUsageRequestPayload.js deleted file mode 100644 index 6dab99ec..00000000 --- a/src/model/VMUsageRequestPayload.js +++ /dev/null @@ -1,96 +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 VMUsageRequestPayload model module. - * @module model/VMUsageRequestPayload - * @version v1.25.0-alpha - */ -class VMUsageRequestPayload { - /** - * Constructs a new VMUsageRequestPayload. - * @alias module:model/VMUsageRequestPayload - * @param vmIds {Array.} List of virtual machine IDs - */ - constructor(vmIds) { - - VMUsageRequestPayload.initialize(this, vmIds); - } - - /** - * 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, vmIds) { - obj['vm_ids'] = vmIds; - } - - /** - * Constructs a VMUsageRequestPayload 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/VMUsageRequestPayload} obj Optional instance to populate. - * @return {module:model/VMUsageRequestPayload} The populated VMUsageRequestPayload instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new VMUsageRequestPayload(); - - if (data.hasOwnProperty('vm_ids')) { - obj['vm_ids'] = ApiClient.convertToType(data['vm_ids'], ['Number']); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to VMUsageRequestPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to VMUsageRequestPayload. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of VMUsageRequestPayload.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['vm_ids'])) { - throw new Error("Expected the field `vm_ids` to be an array in the JSON data but got " + data['vm_ids']); - } - - return true; - } - - -} - -VMUsageRequestPayload.RequiredProperties = ["vm_ids"]; - -/** - * List of virtual machine IDs - * @member {Array.} vm_ids - */ -VMUsageRequestPayload.prototype['vm_ids'] = undefined; - - - - - - -export default VMUsageRequestPayload; - diff --git a/src/model/VMUsageResponse.js b/src/model/VMUsageResponse.js deleted file mode 100644 index 29d9c16a..00000000 --- a/src/model/VMUsageResponse.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 VirtualMachineUsage from './VirtualMachineUsage'; - -/** - * The VMUsageResponse model module. - * @module model/VMUsageResponse - * @version v1.25.0-alpha - */ -class VMUsageResponse { - /** - * Constructs a new VMUsageResponse. - * @alias module:model/VMUsageResponse - */ - constructor() { - - VMUsageResponse.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 VMUsageResponse 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/VMUsageResponse} obj Optional instance to populate. - * @return {module:model/VMUsageResponse} The populated VMUsageResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new VMUsageResponse(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('virtual_machines')) { - obj['virtual_machines'] = ApiClient.convertToType(data['virtual_machines'], [VirtualMachineUsage]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to VMUsageResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to VMUsageResponse. - */ - 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['virtual_machines']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['virtual_machines'])) { - throw new Error("Expected the field `virtual_machines` to be an array in the JSON data but got " + data['virtual_machines']); - } - // validate the optional field `virtual_machines` (array) - for (const item of data['virtual_machines']) { - VirtualMachineUsage.validateJSON(item); - }; - } - - return true; - } - - -} - - - -/** - * @member {String} message - */ -VMUsageResponse.prototype['message'] = undefined; - -/** - * @member {Number} org_id - */ -VMUsageResponse.prototype['org_id'] = undefined; - -/** - * @member {Boolean} status - */ -VMUsageResponse.prototype['status'] = undefined; - -/** - * @member {Array.} virtual_machines - */ -VMUsageResponse.prototype['virtual_machines'] = undefined; - - - - - - -export default VMUsageResponse; - diff --git a/src/model/VNCURL.js b/src/model/VNCURL.js index 2c028255..cb77f385 100644 --- a/src/model/VNCURL.js +++ b/src/model/VNCURL.js @@ -17,7 +17,7 @@ import VNCURLFields from './VNCURLFields'; /** * The VNCURL model module. * @module model/VNCURL - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class VNCURL { /** diff --git a/src/model/VNCURLFields.js b/src/model/VNCURLFields.js index b60718bd..529b8332 100644 --- a/src/model/VNCURLFields.js +++ b/src/model/VNCURLFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The VNCURLFields model module. * @module model/VNCURLFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class VNCURLFields { /** diff --git a/src/model/VerifyApiKeyPayload.js b/src/model/VerifyApiKeyPayload.js deleted file mode 100644 index 2982af83..00000000 --- a/src/model/VerifyApiKeyPayload.js +++ /dev/null @@ -1,96 +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 VerifyApiKeyPayload model module. - * @module model/VerifyApiKeyPayload - * @version v1.25.0-alpha - */ -class VerifyApiKeyPayload { - /** - * Constructs a new VerifyApiKeyPayload. - * @alias module:model/VerifyApiKeyPayload - * @param apiKey {String} The direction of traffic that the firewall rule applies to. - */ - constructor(apiKey) { - - VerifyApiKeyPayload.initialize(this, apiKey); - } - - /** - * 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, apiKey) { - obj['api_key'] = apiKey; - } - - /** - * Constructs a VerifyApiKeyPayload 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/VerifyApiKeyPayload} obj Optional instance to populate. - * @return {module:model/VerifyApiKeyPayload} The populated VerifyApiKeyPayload instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new VerifyApiKeyPayload(); - - if (data.hasOwnProperty('api_key')) { - obj['api_key'] = ApiClient.convertToType(data['api_key'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to VerifyApiKeyPayload. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to VerifyApiKeyPayload. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of VerifyApiKeyPayload.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['api_key'] && !(typeof data['api_key'] === 'string' || data['api_key'] instanceof String)) { - throw new Error("Expected the field `api_key` to be a primitive type in the JSON string but got " + data['api_key']); - } - - return true; - } - - -} - -VerifyApiKeyPayload.RequiredProperties = ["api_key"]; - -/** - * The direction of traffic that the firewall rule applies to. - * @member {String} api_key - */ -VerifyApiKeyPayload.prototype['api_key'] = undefined; - - - - - - -export default VerifyApiKeyPayload; - diff --git a/src/model/VerifyApiKeyResponseModel.js b/src/model/VerifyApiKeyResponseModel.js deleted file mode 100644 index 3d2bc0b2..00000000 --- a/src/model/VerifyApiKeyResponseModel.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 ApiKeyVerifyFields from './ApiKeyVerifyFields'; - -/** - * The VerifyApiKeyResponseModel model module. - * @module model/VerifyApiKeyResponseModel - * @version v1.25.0-alpha - */ -class VerifyApiKeyResponseModel { - /** - * Constructs a new VerifyApiKeyResponseModel. - * @alias module:model/VerifyApiKeyResponseModel - */ - constructor() { - - VerifyApiKeyResponseModel.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 VerifyApiKeyResponseModel 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/VerifyApiKeyResponseModel} obj Optional instance to populate. - * @return {module:model/VerifyApiKeyResponseModel} The populated VerifyApiKeyResponseModel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new VerifyApiKeyResponseModel(); - - if (data.hasOwnProperty('api_key')) { - obj['api_key'] = ApiKeyVerifyFields.constructFromObject(data['api_key']); - } - 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 VerifyApiKeyResponseModel. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to VerifyApiKeyResponseModel. - */ - static validateJSON(data) { - // validate the optional field `api_key` - if (data['api_key']) { // data not null - ApiKeyVerifyFields.validateJSON(data['api_key']); - } - // 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/ApiKeyVerifyFields} api_key - */ -VerifyApiKeyResponseModel.prototype['api_key'] = undefined; - -/** - * @member {String} message - */ -VerifyApiKeyResponseModel.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -VerifyApiKeyResponseModel.prototype['status'] = undefined; - - - - - - -export default VerifyApiKeyResponseModel; - diff --git a/src/model/VirtualMachineUsage.js b/src/model/VirtualMachineUsage.js deleted file mode 100644 index 7ebd5689..00000000 --- a/src/model/VirtualMachineUsage.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 VirtualMachineUsage model module. - * @module model/VirtualMachineUsage - * @version v1.25.0-alpha - */ -class VirtualMachineUsage { - /** - * Constructs a new VirtualMachineUsage. - * @alias module:model/VirtualMachineUsage - */ - constructor() { - - VirtualMachineUsage.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 VirtualMachineUsage 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/VirtualMachineUsage} obj Optional instance to populate. - * @return {module:model/VirtualMachineUsage} The populated VirtualMachineUsage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new VirtualMachineUsage(); - - 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('total_usage_time')) { - obj['total_usage_time'] = ApiClient.convertToType(data['total_usage_time'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to VirtualMachineUsage. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to VirtualMachineUsage. - */ - 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 - */ -VirtualMachineUsage.prototype['id'] = undefined; - -/** - * @member {String} name - */ -VirtualMachineUsage.prototype['name'] = undefined; - -/** - * @member {String} status - */ -VirtualMachineUsage.prototype['status'] = undefined; - -/** - * @member {Number} total_usage_time - */ -VirtualMachineUsage.prototype['total_usage_time'] = undefined; - - - - - - -export default VirtualMachineUsage; - diff --git a/src/model/Volume.js b/src/model/Volume.js index fb73715e..50cfd708 100644 --- a/src/model/Volume.js +++ b/src/model/Volume.js @@ -17,7 +17,7 @@ import VolumeFields from './VolumeFields'; /** * The Volume model module. * @module model/Volume - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class Volume { /** diff --git a/src/model/VolumeAttachmentFields.js b/src/model/VolumeAttachmentFields.js index ab77ed26..2861d7ea 100644 --- a/src/model/VolumeAttachmentFields.js +++ b/src/model/VolumeAttachmentFields.js @@ -12,12 +12,12 @@ */ import ApiClient from '../ApiClient'; -import VolumeFieldsforInstance from './VolumeFieldsforInstance'; +import VolumeFieldsForInstance from './VolumeFieldsForInstance'; /** * The VolumeAttachmentFields model module. * @module model/VolumeAttachmentFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class VolumeAttachmentFields { /** @@ -54,11 +54,17 @@ class VolumeAttachmentFields { 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('protected')) { + obj['protected'] = ApiClient.convertToType(data['protected'], 'Boolean'); + } if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'String'); } if (data.hasOwnProperty('volume')) { - obj['volume'] = VolumeFieldsforInstance.constructFromObject(data['volume']); + obj['volume'] = VolumeFieldsForInstance.constructFromObject(data['volume']); } } return obj; @@ -80,7 +86,7 @@ class VolumeAttachmentFields { } // validate the optional field `volume` if (data['volume']) { // data not null - VolumeFieldsforInstance.validateJSON(data['volume']); + VolumeFieldsForInstance.validateJSON(data['volume']); } return true; @@ -101,13 +107,23 @@ VolumeAttachmentFields.prototype['created_at'] = undefined; */ VolumeAttachmentFields.prototype['device'] = undefined; +/** + * @member {Number} id + */ +VolumeAttachmentFields.prototype['id'] = undefined; + +/** + * @member {Boolean} protected + */ +VolumeAttachmentFields.prototype['protected'] = undefined; + /** * @member {String} status */ VolumeAttachmentFields.prototype['status'] = undefined; /** - * @member {module:model/VolumeFieldsforInstance} volume + * @member {module:model/VolumeFieldsForInstance} volume */ VolumeAttachmentFields.prototype['volume'] = undefined; diff --git a/src/model/VolumeFields.js b/src/model/VolumeFields.js index c1f3336c..5251c975 100644 --- a/src/model/VolumeFields.js +++ b/src/model/VolumeFields.js @@ -12,12 +12,13 @@ */ import ApiClient from '../ApiClient'; -import EnvironmentFieldsforVolume from './EnvironmentFieldsforVolume'; +import AttachmentsFieldsForVolume from './AttachmentsFieldsForVolume'; +import EnvironmentFieldsForVolume from './EnvironmentFieldsForVolume'; /** * The VolumeFields model module. * @module model/VolumeFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class VolumeFields { /** @@ -48,6 +49,9 @@ class VolumeFields { if (data) { obj = obj || new VolumeFields(); + if (data.hasOwnProperty('attachments')) { + obj['attachments'] = ApiClient.convertToType(data['attachments'], [AttachmentsFieldsForVolume]); + } if (data.hasOwnProperty('bootable')) { obj['bootable'] = ApiClient.convertToType(data['bootable'], 'Boolean'); } @@ -61,7 +65,7 @@ class VolumeFields { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('environment')) { - obj['environment'] = EnvironmentFieldsforVolume.constructFromObject(data['environment']); + obj['environment'] = EnvironmentFieldsForVolume.constructFromObject(data['environment']); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); @@ -97,6 +101,16 @@ class VolumeFields { * @return {boolean} to indicate whether the JSON data is valid with respect to VolumeFields. */ static validateJSON(data) { + if (data['attachments']) { // data not null + // ensure the json data is an array + if (!Array.isArray(data['attachments'])) { + throw new Error("Expected the field `attachments` to be an array in the JSON data but got " + data['attachments']); + } + // validate the optional field `attachments` (array) + for (const item of data['attachments']) { + AttachmentsFieldsForVolume.validateJSON(item); + }; + } // ensure the json data is a string if (data['callback_url'] && !(typeof data['callback_url'] === 'string' || data['callback_url'] instanceof String)) { throw new Error("Expected the field `callback_url` to be a primitive type in the JSON string but got " + data['callback_url']); @@ -107,7 +121,7 @@ class VolumeFields { } // validate the optional field `environment` if (data['environment']) { // data not null - EnvironmentFieldsforVolume.validateJSON(data['environment']); + EnvironmentFieldsForVolume.validateJSON(data['environment']); } // ensure the json data is a string if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { @@ -134,6 +148,11 @@ class VolumeFields { +/** + * @member {Array.} attachments + */ +VolumeFields.prototype['attachments'] = undefined; + /** * @member {Boolean} bootable */ @@ -155,7 +174,7 @@ VolumeFields.prototype['created_at'] = undefined; VolumeFields.prototype['description'] = undefined; /** - * @member {module:model/EnvironmentFieldsforVolume} environment + * @member {module:model/EnvironmentFieldsForVolume} environment */ VolumeFields.prototype['environment'] = undefined; diff --git a/src/model/VolumeFieldsForInstance.js b/src/model/VolumeFieldsForInstance.js new file mode 100644 index 00000000..bd1784b8 --- /dev/null +++ b/src/model/VolumeFieldsForInstance.js @@ -0,0 +1,135 @@ +/** + * 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 VolumeFieldsForInstance model module. + * @module model/VolumeFieldsForInstance + * @version v1.51.1-alpha + */ +class VolumeFieldsForInstance { + /** + * Constructs a new VolumeFieldsForInstance. + * @alias module:model/VolumeFieldsForInstance + */ + constructor() { + + VolumeFieldsForInstance.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 VolumeFieldsForInstance 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/VolumeFieldsForInstance} obj Optional instance to populate. + * @return {module:model/VolumeFieldsForInstance} The populated VolumeFieldsForInstance instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new VolumeFieldsForInstance(); + + if (data.hasOwnProperty('bootable')) { + obj['bootable'] = ApiClient.convertToType(data['bootable'], 'Boolean'); + } + 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('size')) { + obj['size'] = ApiClient.convertToType(data['size'], 'Number'); + } + if (data.hasOwnProperty('volume_type')) { + obj['volume_type'] = ApiClient.convertToType(data['volume_type'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to VolumeFieldsForInstance. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to VolumeFieldsForInstance. + */ + 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['volume_type'] && !(typeof data['volume_type'] === 'string' || data['volume_type'] instanceof String)) { + throw new Error("Expected the field `volume_type` to be a primitive type in the JSON string but got " + data['volume_type']); + } + + return true; + } + + +} + + + +/** + * @member {Boolean} bootable + */ +VolumeFieldsForInstance.prototype['bootable'] = undefined; + +/** + * @member {String} description + */ +VolumeFieldsForInstance.prototype['description'] = undefined; + +/** + * @member {Number} id + */ +VolumeFieldsForInstance.prototype['id'] = undefined; + +/** + * @member {String} name + */ +VolumeFieldsForInstance.prototype['name'] = undefined; + +/** + * @member {Number} size + */ +VolumeFieldsForInstance.prototype['size'] = undefined; + +/** + * @member {String} volume_type + */ +VolumeFieldsForInstance.prototype['volume_type'] = undefined; + + + + + + +export default VolumeFieldsForInstance; + diff --git a/src/model/VolumeFieldsforInstance.js b/src/model/VolumeFieldsforInstance.js deleted file mode 100644 index 84fbe9dc..00000000 --- a/src/model/VolumeFieldsforInstance.js +++ /dev/null @@ -1,135 +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 VolumeFieldsforInstance model module. - * @module model/VolumeFieldsforInstance - * @version v1.25.0-alpha - */ -class VolumeFieldsforInstance { - /** - * Constructs a new VolumeFieldsforInstance. - * @alias module:model/VolumeFieldsforInstance - */ - constructor() { - - VolumeFieldsforInstance.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 VolumeFieldsforInstance 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/VolumeFieldsforInstance} obj Optional instance to populate. - * @return {module:model/VolumeFieldsforInstance} The populated VolumeFieldsforInstance instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new VolumeFieldsforInstance(); - - if (data.hasOwnProperty('bootable')) { - obj['bootable'] = ApiClient.convertToType(data['bootable'], 'Boolean'); - } - 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('size')) { - obj['size'] = ApiClient.convertToType(data['size'], 'Number'); - } - if (data.hasOwnProperty('volume_type')) { - obj['volume_type'] = ApiClient.convertToType(data['volume_type'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to VolumeFieldsforInstance. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to VolumeFieldsforInstance. - */ - 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['volume_type'] && !(typeof data['volume_type'] === 'string' || data['volume_type'] instanceof String)) { - throw new Error("Expected the field `volume_type` to be a primitive type in the JSON string but got " + data['volume_type']); - } - - return true; - } - - -} - - - -/** - * @member {Boolean} bootable - */ -VolumeFieldsforInstance.prototype['bootable'] = undefined; - -/** - * @member {String} description - */ -VolumeFieldsforInstance.prototype['description'] = undefined; - -/** - * @member {Number} id - */ -VolumeFieldsforInstance.prototype['id'] = undefined; - -/** - * @member {String} name - */ -VolumeFieldsforInstance.prototype['name'] = undefined; - -/** - * @member {Number} size - */ -VolumeFieldsforInstance.prototype['size'] = undefined; - -/** - * @member {String} volume_type - */ -VolumeFieldsforInstance.prototype['volume_type'] = undefined; - - - - - - -export default VolumeFieldsforInstance; - diff --git a/src/model/VolumeOverviewFields.js b/src/model/VolumeOverviewFields.js index 908b3ddb..635f3c34 100644 --- a/src/model/VolumeOverviewFields.js +++ b/src/model/VolumeOverviewFields.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The VolumeOverviewFields model module. * @module model/VolumeOverviewFields - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class VolumeOverviewFields { /** diff --git a/src/model/VolumeStatusChangeFields.js b/src/model/VolumeStatusChangeFields.js deleted file mode 100644 index 6d29ddd1..00000000 --- a/src/model/VolumeStatusChangeFields.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 VolumeStatusChangeFields model module. - * @module model/VolumeStatusChangeFields - * @version v1.25.0-alpha - */ -class VolumeStatusChangeFields { - /** - * Constructs a new VolumeStatusChangeFields. - * @alias module:model/VolumeStatusChangeFields - */ - constructor() { - - VolumeStatusChangeFields.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 VolumeStatusChangeFields 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/VolumeStatusChangeFields} obj Optional instance to populate. - * @return {module:model/VolumeStatusChangeFields} The populated VolumeStatusChangeFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new VolumeStatusChangeFields(); - - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); - } - if (data.hasOwnProperty('current_status')) { - obj['current_status'] = ApiClient.convertToType(data['current_status'], 'String'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('previous_status')) { - obj['previous_status'] = ApiClient.convertToType(data['previous_status'], 'String'); - } - if (data.hasOwnProperty('volume_id')) { - obj['volume_id'] = ApiClient.convertToType(data['volume_id'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to VolumeStatusChangeFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to VolumeStatusChangeFields. - */ - static validateJSON(data) { - // ensure the json data is a string - if (data['current_status'] && !(typeof data['current_status'] === 'string' || data['current_status'] instanceof String)) { - throw new Error("Expected the field `current_status` to be a primitive type in the JSON string but got " + data['current_status']); - } - // ensure the json data is a string - if (data['previous_status'] && !(typeof data['previous_status'] === 'string' || data['previous_status'] instanceof String)) { - throw new Error("Expected the field `previous_status` to be a primitive type in the JSON string but got " + data['previous_status']); - } - - return true; - } - - -} - - - -/** - * @member {Date} created_at - */ -VolumeStatusChangeFields.prototype['created_at'] = undefined; - -/** - * @member {String} current_status - */ -VolumeStatusChangeFields.prototype['current_status'] = undefined; - -/** - * @member {Number} id - */ -VolumeStatusChangeFields.prototype['id'] = undefined; - -/** - * @member {String} previous_status - */ -VolumeStatusChangeFields.prototype['previous_status'] = undefined; - -/** - * @member {Number} volume_id - */ -VolumeStatusChangeFields.prototype['volume_id'] = undefined; - - - - - - -export default VolumeStatusChangeFields; - diff --git a/src/model/VolumeTypes.js b/src/model/VolumeTypes.js index 46c5f2af..e3dcdc87 100644 --- a/src/model/VolumeTypes.js +++ b/src/model/VolumeTypes.js @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The VolumeTypes model module. * @module model/VolumeTypes - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class VolumeTypes { /** diff --git a/src/model/Volumes.js b/src/model/Volumes.js index a71d6d23..2f0b7230 100644 --- a/src/model/Volumes.js +++ b/src/model/Volumes.js @@ -12,12 +12,12 @@ */ import ApiClient from '../ApiClient'; -import VolumeFields from './VolumeFields'; +import VolumesFields from './VolumesFields'; /** * The Volumes model module. * @module model/Volumes - * @version v1.25.0-alpha + * @version v1.51.1-alpha */ class Volumes { /** @@ -48,14 +48,23 @@ class Volumes { if (data) { obj = obj || new Volumes(); + if (data.hasOwnProperty('count')) { + obj['count'] = ApiClient.convertToType(data['count'], 'Number'); + } if (data.hasOwnProperty('message')) { obj['message'] = ApiClient.convertToType(data['message'], 'String'); } + if (data.hasOwnProperty('page')) { + obj['page'] = ApiClient.convertToType(data['page'], 'Number'); + } + if (data.hasOwnProperty('page_size')) { + obj['page_size'] = ApiClient.convertToType(data['page_size'], 'Number'); + } if (data.hasOwnProperty('status')) { obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); } - if (data.hasOwnProperty('volume')) { - obj['volume'] = ApiClient.convertToType(data['volume'], [VolumeFields]); + if (data.hasOwnProperty('volumes')) { + obj['volumes'] = ApiClient.convertToType(data['volumes'], [VolumesFields]); } } return obj; @@ -71,14 +80,14 @@ class Volumes { 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['volume']) { // data not null + if (data['volumes']) { // data not null // ensure the json data is an array - if (!Array.isArray(data['volume'])) { - throw new Error("Expected the field `volume` to be an array in the JSON data but got " + data['volume']); + if (!Array.isArray(data['volumes'])) { + throw new Error("Expected the field `volumes` to be an array in the JSON data but got " + data['volumes']); } - // validate the optional field `volume` (array) - for (const item of data['volume']) { - VolumeFields.validateJSON(item); + // validate the optional field `volumes` (array) + for (const item of data['volumes']) { + VolumesFields.validateJSON(item); }; } @@ -90,20 +99,35 @@ class Volumes { +/** + * @member {Number} count + */ +Volumes.prototype['count'] = undefined; + /** * @member {String} message */ Volumes.prototype['message'] = undefined; +/** + * @member {Number} page + */ +Volumes.prototype['page'] = undefined; + +/** + * @member {Number} page_size + */ +Volumes.prototype['page_size'] = undefined; + /** * @member {Boolean} status */ Volumes.prototype['status'] = undefined; /** - * @member {Array.} volume + * @member {Array.} volumes */ -Volumes.prototype['volume'] = undefined; +Volumes.prototype['volumes'] = undefined; diff --git a/src/model/VolumesFields.js b/src/model/VolumesFields.js new file mode 100644 index 00000000..73686230 --- /dev/null +++ b/src/model/VolumesFields.js @@ -0,0 +1,215 @@ +/** + * 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 AttachmentsFieldsForVolume from './AttachmentsFieldsForVolume'; +import EnvironmentFieldsForVolume from './EnvironmentFieldsForVolume'; + +/** + * The VolumesFields model module. + * @module model/VolumesFields + * @version v1.51.1-alpha + */ +class VolumesFields { + /** + * Constructs a new VolumesFields. + * @alias module:model/VolumesFields + */ + constructor() { + + VolumesFields.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 VolumesFields 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/VolumesFields} obj Optional instance to populate. + * @return {module:model/VolumesFields} The populated VolumesFields instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new VolumesFields(); + + if (data.hasOwnProperty('attachments')) { + obj['attachments'] = ApiClient.convertToType(data['attachments'], [AttachmentsFieldsForVolume]); + } + if (data.hasOwnProperty('bootable')) { + obj['bootable'] = ApiClient.convertToType(data['bootable'], 'Boolean'); + } + if (data.hasOwnProperty('callback_url')) { + obj['callback_url'] = ApiClient.convertToType(data['callback_url'], 'String'); + } + 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('environment')) { + obj['environment'] = EnvironmentFieldsForVolume.constructFromObject(data['environment']); + } + 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('size')) { + obj['size'] = ApiClient.convertToType(data['size'], 'Number'); + } + 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'); + } + if (data.hasOwnProperty('volume_type')) { + obj['volume_type'] = ApiClient.convertToType(data['volume_type'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to VolumesFields. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to VolumesFields. + */ + static validateJSON(data) { + if (data['attachments']) { // data not null + // ensure the json data is an array + if (!Array.isArray(data['attachments'])) { + throw new Error("Expected the field `attachments` to be an array in the JSON data but got " + data['attachments']); + } + // validate the optional field `attachments` (array) + for (const item of data['attachments']) { + AttachmentsFieldsForVolume.validateJSON(item); + }; + } + // ensure the json data is a string + if (data['callback_url'] && !(typeof data['callback_url'] === 'string' || data['callback_url'] instanceof String)) { + throw new Error("Expected the field `callback_url` to be a primitive type in the JSON string but got " + data['callback_url']); + } + // 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']); + } + // validate the optional field `environment` + if (data['environment']) { // data not null + EnvironmentFieldsForVolume.validateJSON(data['environment']); + } + // 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['volume_type'] && !(typeof data['volume_type'] === 'string' || data['volume_type'] instanceof String)) { + throw new Error("Expected the field `volume_type` to be a primitive type in the JSON string but got " + data['volume_type']); + } + + return true; + } + + +} + + + +/** + * @member {Array.} attachments + */ +VolumesFields.prototype['attachments'] = undefined; + +/** + * @member {Boolean} bootable + */ +VolumesFields.prototype['bootable'] = undefined; + +/** + * @member {String} callback_url + */ +VolumesFields.prototype['callback_url'] = undefined; + +/** + * @member {Date} created_at + */ +VolumesFields.prototype['created_at'] = undefined; + +/** + * @member {String} description + */ +VolumesFields.prototype['description'] = undefined; + +/** + * @member {module:model/EnvironmentFieldsForVolume} environment + */ +VolumesFields.prototype['environment'] = undefined; + +/** + * @member {Number} id + */ +VolumesFields.prototype['id'] = undefined; + +/** + * @member {Number} image_id + */ +VolumesFields.prototype['image_id'] = undefined; + +/** + * @member {String} name + */ +VolumesFields.prototype['name'] = undefined; + +/** + * @member {Number} size + */ +VolumesFields.prototype['size'] = undefined; + +/** + * @member {String} status + */ +VolumesFields.prototype['status'] = undefined; + +/** + * @member {Date} updated_at + */ +VolumesFields.prototype['updated_at'] = undefined; + +/** + * @member {String} volume_type + */ +VolumesFields.prototype['volume_type'] = undefined; + + + + + + +export default VolumesFields; + diff --git a/src/model/VolumesLastStatusChangeResponse.js b/src/model/VolumesLastStatusChangeResponse.js deleted file mode 100644 index 11cc757e..00000000 --- a/src/model/VolumesLastStatusChangeResponse.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 VolumeStatusChangeFields from './VolumeStatusChangeFields'; - -/** - * The VolumesLastStatusChangeResponse model module. - * @module model/VolumesLastStatusChangeResponse - * @version v1.25.0-alpha - */ -class VolumesLastStatusChangeResponse { - /** - * Constructs a new VolumesLastStatusChangeResponse. - * @alias module:model/VolumesLastStatusChangeResponse - */ - constructor() { - - VolumesLastStatusChangeResponse.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 VolumesLastStatusChangeResponse 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/VolumesLastStatusChangeResponse} obj Optional instance to populate. - * @return {module:model/VolumesLastStatusChangeResponse} The populated VolumesLastStatusChangeResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new VolumesLastStatusChangeResponse(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('volume_status_list')) { - obj['volume_status_list'] = ApiClient.convertToType(data['volume_status_list'], [VolumeStatusChangeFields]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to VolumesLastStatusChangeResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to VolumesLastStatusChangeResponse. - */ - 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['volume_status_list']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['volume_status_list'])) { - throw new Error("Expected the field `volume_status_list` to be an array in the JSON data but got " + data['volume_status_list']); - } - // validate the optional field `volume_status_list` (array) - for (const item of data['volume_status_list']) { - VolumeStatusChangeFields.validateJSON(item); - }; - } - - return true; - } - - -} - - - -/** - * @member {String} message - */ -VolumesLastStatusChangeResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -VolumesLastStatusChangeResponse.prototype['status'] = undefined; - -/** - * @member {Array.} volume_status_list - */ -VolumesLastStatusChangeResponse.prototype['volume_status_list'] = undefined; - - - - - - -export default VolumesLastStatusChangeResponse; - diff --git a/src/model/Voucher.js b/src/model/Voucher.js new file mode 100644 index 00000000..76a6796c --- /dev/null +++ b/src/model/Voucher.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 Voucher model module. + * @module model/Voucher + * @version v1.51.1-alpha + */ +class Voucher { + /** + * Constructs a new Voucher. + * @alias module:model/Voucher + * @param code {String} Voucher code + * @param id {Number} Voucher ID + * @param status {String} Voucher status + */ + constructor(code, id, status) { + + Voucher.initialize(this, code, id, status); + } + + /** + * 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, code, id, status) { + obj['code'] = code; + obj['id'] = id; + obj['status'] = status; + } + + /** + * Constructs a Voucher 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/Voucher} obj Optional instance to populate. + * @return {module:model/Voucher} The populated Voucher instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Voucher(); + + if (data.hasOwnProperty('code')) { + obj['code'] = ApiClient.convertToType(data['code'], 'String'); + } + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('max_redemption_count')) { + obj['max_redemption_count'] = ApiClient.convertToType(data['max_redemption_count'], 'Number'); + } + if (data.hasOwnProperty('redemption_count')) { + obj['redemption_count'] = ApiClient.convertToType(data['redemption_count'], 'Number'); + } + if (data.hasOwnProperty('remaining_redemptions')) { + obj['remaining_redemptions'] = ApiClient.convertToType(data['remaining_redemptions'], 'Number'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to Voucher. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to Voucher. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of Voucher.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['code'] && !(typeof data['code'] === 'string' || data['code'] instanceof String)) { + throw new Error("Expected the field `code` to be a primitive type in the JSON string but got " + data['code']); + } + // 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; + } + + +} + +Voucher.RequiredProperties = ["code", "id", "status"]; + +/** + * Voucher code + * @member {String} code + */ +Voucher.prototype['code'] = undefined; + +/** + * Voucher ID + * @member {Number} id + */ +Voucher.prototype['id'] = undefined; + +/** + * Max redemption count for a General Voucher + * @member {Number} max_redemption_count + */ +Voucher.prototype['max_redemption_count'] = undefined; + +/** + * Current redemption count for a General Voucher + * @member {Number} redemption_count + */ +Voucher.prototype['redemption_count'] = undefined; + +/** + * Remaining redemptions + * @member {Number} remaining_redemptions + */ +Voucher.prototype['remaining_redemptions'] = undefined; + +/** + * Voucher status + * @member {String} status + */ +Voucher.prototype['status'] = undefined; + + + + + + +export default Voucher; + diff --git a/src/model/VoucherRedeemResponseSchema.js b/src/model/VoucherRedeemResponseSchema.js new file mode 100644 index 00000000..570c08d1 --- /dev/null +++ b/src/model/VoucherRedeemResponseSchema.js @@ -0,0 +1,121 @@ +/** + * 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 Voucher from './Voucher'; + +/** + * The VoucherRedeemResponseSchema model module. + * @module model/VoucherRedeemResponseSchema + * @version v1.51.1-alpha + */ +class VoucherRedeemResponseSchema { + /** + * Constructs a new VoucherRedeemResponseSchema. + * @alias module:model/VoucherRedeemResponseSchema + * @param message {String} Response message + * @param status {Boolean} Success status of the operation + */ + constructor(message, status) { + + VoucherRedeemResponseSchema.initialize(this, message, status); + } + + /** + * 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, status) { + obj['message'] = message; + obj['status'] = status; + } + + /** + * Constructs a VoucherRedeemResponseSchema 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/VoucherRedeemResponseSchema} obj Optional instance to populate. + * @return {module:model/VoucherRedeemResponseSchema} The populated VoucherRedeemResponseSchema instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new VoucherRedeemResponseSchema(); + + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); + } + if (data.hasOwnProperty('voucher')) { + obj['voucher'] = ApiClient.convertToType(data['voucher'], Voucher); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to VoucherRedeemResponseSchema. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to VoucherRedeemResponseSchema. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of VoucherRedeemResponseSchema.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']); + } + // validate the optional field `voucher` + if (data['voucher']) { // data not null + Voucher.validateJSON(data['voucher']); + } + + return true; + } + + +} + +VoucherRedeemResponseSchema.RequiredProperties = ["message", "status"]; + +/** + * Response message + * @member {String} message + */ +VoucherRedeemResponseSchema.prototype['message'] = undefined; + +/** + * Success status of the operation + * @member {Boolean} status + */ +VoucherRedeemResponseSchema.prototype['status'] = undefined; + +/** + * Redeemed voucher details + * @member {module:model/Voucher} voucher + */ +VoucherRedeemResponseSchema.prototype['voucher'] = undefined; + + + + + + +export default VoucherRedeemResponseSchema; + diff --git a/src/model/WarningMailLogFields.js b/src/model/WarningMailLogFields.js deleted file mode 100644 index 1bec9a4c..00000000 --- a/src/model/WarningMailLogFields.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 WarningMailLogFields model module. - * @module model/WarningMailLogFields - * @version v1.25.0-alpha - */ -class WarningMailLogFields { - /** - * Constructs a new WarningMailLogFields. - * @alias module:model/WarningMailLogFields - */ - constructor() { - - WarningMailLogFields.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 WarningMailLogFields 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/WarningMailLogFields} obj Optional instance to populate. - * @return {module:model/WarningMailLogFields} The populated WarningMailLogFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new WarningMailLogFields(); - - if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'String'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('organization_id')) { - obj['organization_id'] = ApiClient.convertToType(data['organization_id'], 'Number'); - } - if (data.hasOwnProperty('threshold')) { - obj['threshold'] = ApiClient.convertToType(data['threshold'], 'Number'); - } - if (data.hasOwnProperty('topic')) { - obj['topic'] = ApiClient.convertToType(data['topic'], 'String'); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to WarningMailLogFields. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to WarningMailLogFields. - */ - static validateJSON(data) { - // ensure the json data is a string - if (data['content'] && !(typeof data['content'] === 'string' || data['content'] instanceof String)) { - throw new Error("Expected the field `content` to be a primitive type in the JSON string but got " + data['content']); - } - // ensure the json data is a string - if (data['created_at'] && !(typeof data['created_at'] === 'string' || data['created_at'] instanceof String)) { - throw new Error("Expected the field `created_at` to be a primitive type in the JSON string but got " + data['created_at']); - } - // ensure the json data is a string - if (data['topic'] && !(typeof data['topic'] === 'string' || data['topic'] instanceof String)) { - throw new Error("Expected the field `topic` to be a primitive type in the JSON string but got " + data['topic']); - } - // ensure the json data is a string - if (data['updated_at'] && !(typeof data['updated_at'] === 'string' || data['updated_at'] instanceof String)) { - throw new Error("Expected the field `updated_at` to be a primitive type in the JSON string but got " + data['updated_at']); - } - - return true; - } - - -} - - - -/** - * @member {String} content - */ -WarningMailLogFields.prototype['content'] = undefined; - -/** - * @member {String} created_at - */ -WarningMailLogFields.prototype['created_at'] = undefined; - -/** - * @member {Number} id - */ -WarningMailLogFields.prototype['id'] = undefined; - -/** - * @member {Number} organization_id - */ -WarningMailLogFields.prototype['organization_id'] = undefined; - -/** - * @member {Number} threshold - */ -WarningMailLogFields.prototype['threshold'] = undefined; - -/** - * @member {String} topic - */ -WarningMailLogFields.prototype['topic'] = undefined; - -/** - * @member {String} updated_at - */ -WarningMailLogFields.prototype['updated_at'] = undefined; - - - - - - -export default WarningMailLogFields; - diff --git a/src/model/WarningMailLogResponse.js b/src/model/WarningMailLogResponse.js deleted file mode 100644 index d9d7444f..00000000 --- a/src/model/WarningMailLogResponse.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 WarningMailLogFields from './WarningMailLogFields'; - -/** - * The WarningMailLogResponse model module. - * @module model/WarningMailLogResponse - * @version v1.25.0-alpha - */ -class WarningMailLogResponse { - /** - * Constructs a new WarningMailLogResponse. - * @alias module:model/WarningMailLogResponse - */ - constructor() { - - WarningMailLogResponse.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 WarningMailLogResponse 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/WarningMailLogResponse} obj Optional instance to populate. - * @return {module:model/WarningMailLogResponse} The populated WarningMailLogResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new WarningMailLogResponse(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [WarningMailLogFields]); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'Boolean'); - } - if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to WarningMailLogResponse. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to WarningMailLogResponse. - */ - 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']) { - WarningMailLogFields.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 - */ -WarningMailLogResponse.prototype['data'] = undefined; - -/** - * @member {String} message - */ -WarningMailLogResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} status - */ -WarningMailLogResponse.prototype['status'] = undefined; - -/** - * @member {Number} total - */ -WarningMailLogResponse.prototype['total'] = undefined; - - - - - - -export default WarningMailLogResponse; - diff --git a/src/model/WorkloadBillingHistoryResponse.js b/src/model/WorkloadBillingHistoryResponse.js new file mode 100644 index 00000000..1c9624be --- /dev/null +++ b/src/model/WorkloadBillingHistoryResponse.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 BillingHistoryFineTuning from './BillingHistoryFineTuning'; + +/** + * The WorkloadBillingHistoryResponse model module. + * @module model/WorkloadBillingHistoryResponse + * @version v1.51.1-alpha + */ +class WorkloadBillingHistoryResponse { + /** + * Constructs a new WorkloadBillingHistoryResponse. + * @alias module:model/WorkloadBillingHistoryResponse + */ + constructor() { + + WorkloadBillingHistoryResponse.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 WorkloadBillingHistoryResponse 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/WorkloadBillingHistoryResponse} obj Optional instance to populate. + * @return {module:model/WorkloadBillingHistoryResponse} The populated WorkloadBillingHistoryResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new WorkloadBillingHistoryResponse(); + + if (data.hasOwnProperty('billing_history_fine_tuning')) { + obj['billing_history_fine_tuning'] = BillingHistoryFineTuning.constructFromObject(data['billing_history_fine_tuning']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('success')) { + obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to WorkloadBillingHistoryResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to WorkloadBillingHistoryResponse. + */ + static validateJSON(data) { + // validate the optional field `billing_history_fine_tuning` + if (data['billing_history_fine_tuning']) { // data not null + BillingHistoryFineTuning.validateJSON(data['billing_history_fine_tuning']); + } + // 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/BillingHistoryFineTuning} billing_history_fine_tuning + */ +WorkloadBillingHistoryResponse.prototype['billing_history_fine_tuning'] = undefined; + +/** + * + * @member {String} message + */ +WorkloadBillingHistoryResponse.prototype['message'] = undefined; + +/** + * + * @member {Boolean} success + */ +WorkloadBillingHistoryResponse.prototype['success'] = undefined; + + + + + + +export default WorkloadBillingHistoryResponse; + diff --git a/test/api/AccessKeysApi.spec.js b/test/api/AccessKeysApi.spec.js new file mode 100644 index 00000000..11cb9c2b --- /dev/null +++ b/test/api/AccessKeysApi.spec.js @@ -0,0 +1,83 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.AccessKeysApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AccessKeysApi', function() { + describe('createAccessKeyEndpoint', function() { + it('should call createAccessKeyEndpoint successfully', function(done) { + //uncomment below and update the code to test createAccessKeyEndpoint + //instance.createAccessKeyEndpoint(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteAccessKeyEndpoint', function() { + it('should call deleteAccessKeyEndpoint successfully', function(done) { + //uncomment below and update the code to test deleteAccessKeyEndpoint + //instance.deleteAccessKeyEndpoint(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('listAccessKeysEndpoint', function() { + it('should call listAccessKeysEndpoint successfully', function(done) { + //uncomment below and update the code to test listAccessKeysEndpoint + //instance.listAccessKeysEndpoint(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/AliveApi.spec.js b/test/api/AliveApi.spec.js index 46887cf1..fa5a7e28 100644 --- a/test/api/AliveApi.spec.js +++ b/test/api/AliveApi.spec.js @@ -58,6 +58,16 @@ done(); }); }); + describe('getAliveDoc', function() { + it('should call getAliveDoc successfully', function(done) { + //uncomment below and update the code to test getAliveDoc + //instance.getAliveDoc(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); }); })); diff --git a/test/api/ApiKeyApi.spec.js b/test/api/ApiKeyApi.spec.js index a79a94e1..bb01a94e 100644 --- a/test/api/ApiKeyApi.spec.js +++ b/test/api/ApiKeyApi.spec.js @@ -48,40 +48,40 @@ } describe('ApiKeyApi', function() { - describe('deleteApiKey', function() { - it('should call deleteApiKey successfully', function(done) { - //uncomment below and update the code to test deleteApiKey - //instance.deleteApiKey(function(error) { + describe('deleteAPIKey', function() { + it('should call deleteAPIKey successfully', function(done) { + //uncomment below and update the code to test deleteAPIKey + //instance.deleteAPIKey(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('generateApiKey', function() { - it('should call generateApiKey successfully', function(done) { - //uncomment below and update the code to test generateApiKey - //instance.generateApiKey(function(error) { + describe('generateAPIKey', function() { + it('should call generateAPIKey successfully', function(done) { + //uncomment below and update the code to test generateAPIKey + //instance.generateAPIKey(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveApiKeys', function() { - it('should call retrieveApiKeys successfully', function(done) { - //uncomment below and update the code to test retrieveApiKeys - //instance.retrieveApiKeys(function(error) { + describe('getAPIKey', function() { + it('should call getAPIKey successfully', function(done) { + //uncomment below and update the code to test getAPIKey + //instance.getAPIKey(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('updateApiKey', function() { - it('should call updateApiKey successfully', function(done) { - //uncomment below and update the code to test updateApiKey - //instance.updateApiKey(function(error) { + describe('updateAPIKey', function() { + it('should call updateAPIKey successfully', function(done) { + //uncomment below and update the code to test updateAPIKey + //instance.updateAPIKey(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/AssigningMemberRoleApi.spec.js b/test/api/AssigningMemberRoleApi.spec.js index b5e149f5..047945c0 100644 --- a/test/api/AssigningMemberRoleApi.spec.js +++ b/test/api/AssigningMemberRoleApi.spec.js @@ -48,20 +48,20 @@ } describe('AssigningMemberRoleApi', function() { - describe('assignRbacRole', function() { - it('should call assignRbacRole successfully', function(done) { - //uncomment below and update the code to test assignRbacRole - //instance.assignRbacRole(function(error) { + describe('assignRBACRoleToUser', function() { + it('should call assignRBACRoleToUser successfully', function(done) { + //uncomment below and update the code to test assignRBACRoleToUser + //instance.assignRBACRoleToUser(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('removeRbacRoleFromUser', function() { - it('should call removeRbacRoleFromUser successfully', function(done) { - //uncomment below and update the code to test removeRbacRoleFromUser - //instance.removeRbacRoleFromUser(function(error) { + describe('removeRBACRoleFromUser', function() { + it('should call removeRBACRoleFromUser successfully', function(done) { + //uncomment below and update the code to test removeRBACRoleFromUser + //instance.removeRBACRoleFromUser(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/AuthApi.spec.js b/test/api/AuthApi.spec.js index 8085a237..3c5de444 100644 --- a/test/api/AuthApi.spec.js +++ b/test/api/AuthApi.spec.js @@ -48,6 +48,46 @@ } describe('AuthApi', function() { + describe('changeOrganizationForToken', function() { + it('should call changeOrganizationForToken successfully', function(done) { + //uncomment below and update the code to test changeOrganizationForToken + //instance.changeOrganizationForToken(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('disableMFA', function() { + it('should call disableMFA successfully', function(done) { + //uncomment below and update the code to test disableMFA + //instance.disableMFA(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getUserMFAStatus', function() { + it('should call getUserMFAStatus successfully', function(done) { + //uncomment below and update the code to test getUserMFAStatus + //instance.getUserMFAStatus(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getUserOrganizations', function() { + it('should call getUserOrganizations successfully', function(done) { + //uncomment below and update the code to test getUserOrganizations + //instance.getUserOrganizations(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('retrieveAuthenticatedUserDetails', function() { it('should call retrieveAuthenticatedUserDetails successfully', function(done) { //uncomment below and update the code to test retrieveAuthenticatedUserDetails diff --git a/test/api/BetaAccessApi.spec.js b/test/api/BetaAccessApi.spec.js new file mode 100644 index 00000000..9600073c --- /dev/null +++ b/test/api/BetaAccessApi.spec.js @@ -0,0 +1,83 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.BetaAccessApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BetaAccessApi', function() { + describe('createBetaAccessRequest', function() { + it('should call createBetaAccessRequest successfully', function(done) { + //uncomment below and update the code to test createBetaAccessRequest + //instance.createBetaAccessRequest(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getBetaAccessRequests', function() { + it('should call getBetaAccessRequests successfully', function(done) { + //uncomment below and update the code to test getBetaAccessRequests + //instance.getBetaAccessRequests(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getBetaAccessStatus', function() { + it('should call getBetaAccessStatus successfully', function(done) { + //uncomment below and update the code to test getBetaAccessStatus + //instance.getBetaAccessStatus(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/BillingApi.spec.js b/test/api/BillingApi.spec.js index 46d7e723..5462df71 100644 --- a/test/api/BillingApi.spec.js +++ b/test/api/BillingApi.spec.js @@ -48,20 +48,90 @@ } describe('BillingApi', function() { - describe('getAllThresholdsForOrganization', function() { - it('should call getAllThresholdsForOrganization successfully', function(done) { - //uncomment below and update the code to test getAllThresholdsForOrganization - //instance.getAllThresholdsForOrganization(function(error) { + describe('bucketsBillingHistoryHourlyChart', function() { + it('should call bucketsBillingHistoryHourlyChart successfully', function(done) { + //uncomment below and update the code to test bucketsBillingHistoryHourlyChart + //instance.bucketsBillingHistoryHourlyChart(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('getBillingUsage', function() { - it('should call getBillingUsage successfully', function(done) { - //uncomment below and update the code to test getBillingUsage - //instance.getBillingUsage(function(error) { + describe('getBucketBillingHistory', function() { + it('should call getBucketBillingHistory successfully', function(done) { + //uncomment below and update the code to test getBucketBillingHistory + //instance.getBucketBillingHistory(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getClusterBillingHistory', function() { + it('should call getClusterBillingHistory successfully', function(done) { + //uncomment below and update the code to test getClusterBillingHistory + //instance.getClusterBillingHistory(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getClusterBillingHistoryGraph', function() { + it('should call getClusterBillingHistoryGraph successfully', function(done) { + //uncomment below and update the code to test getClusterBillingHistoryGraph + //instance.getClusterBillingHistoryGraph(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getDataSynthesisBillingHistory', function() { + it('should call getDataSynthesisBillingHistory successfully', function(done) { + //uncomment below and update the code to test getDataSynthesisBillingHistory + //instance.getDataSynthesisBillingHistory(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getDataSynthesisBillingHistoryGraph', function() { + it('should call getDataSynthesisBillingHistoryGraph successfully', function(done) { + //uncomment below and update the code to test getDataSynthesisBillingHistoryGraph + //instance.getDataSynthesisBillingHistoryGraph(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getDataSynthesisHistoryForResource', function() { + it('should call getDataSynthesisHistoryForResource successfully', function(done) { + //uncomment below and update the code to test getDataSynthesisHistoryForResource + //instance.getDataSynthesisHistoryForResource(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getFineTuningBillingHistory', function() { + it('should call getFineTuningBillingHistory successfully', function(done) { + //uncomment below and update the code to test getFineTuningBillingHistory + //instance.getFineTuningBillingHistory(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getFineTuningBillingHistoryGraph', function() { + it('should call getFineTuningBillingHistoryGraph successfully', function(done) { + //uncomment below and update the code to test getFineTuningBillingHistoryGraph + //instance.getFineTuningBillingHistoryGraph(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -78,160 +148,270 @@ done(); }); }); - describe('retrieveBillingHistoryForASpecificBillingCycle', function() { - it('should call retrieveBillingHistoryForASpecificBillingCycle successfully', function(done) { - //uncomment below and update the code to test retrieveBillingHistoryForASpecificBillingCycle - //instance.retrieveBillingHistoryForASpecificBillingCycle(function(error) { + describe('getModelEvaluationBillingHistory', function() { + it('should call getModelEvaluationBillingHistory successfully', function(done) { + //uncomment below and update the code to test getModelEvaluationBillingHistory + //instance.getModelEvaluationBillingHistory(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getModelEvaluationBillingHistoryGraph', function() { + it('should call getModelEvaluationBillingHistoryGraph successfully', function(done) { + //uncomment below and update the code to test getModelEvaluationBillingHistoryGraph + //instance.getModelEvaluationBillingHistoryGraph(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getNotificationThreshold', function() { + it('should call getNotificationThreshold successfully', function(done) { + //uncomment below and update the code to test getNotificationThreshold + //instance.getNotificationThreshold(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getResourceFineTuningBillingHistory', function() { + it('should call getResourceFineTuningBillingHistory successfully', function(done) { + //uncomment below and update the code to test getResourceFineTuningBillingHistory + //instance.getResourceFineTuningBillingHistory(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getResourceModelEvaluationBillingHistory', function() { + it('should call getResourceModelEvaluationBillingHistory successfully', function(done) { + //uncomment below and update the code to test getResourceModelEvaluationBillingHistory + //instance.getResourceModelEvaluationBillingHistory(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getServerlessInferenceBillingHistoryGraph', function() { + it('should call getServerlessInferenceBillingHistoryGraph successfully', function(done) { + //uncomment below and update the code to test getServerlessInferenceBillingHistoryGraph + //instance.getServerlessInferenceBillingHistoryGraph(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getServerlessInferencesBillingHistory', function() { + it('should call getServerlessInferencesBillingHistory successfully', function(done) { + //uncomment below and update the code to test getServerlessInferencesBillingHistory + //instance.getServerlessInferencesBillingHistory(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getSnapshotBillingHistory', function() { + it('should call getSnapshotBillingHistory successfully', function(done) { + //uncomment below and update the code to test getSnapshotBillingHistory + //instance.getSnapshotBillingHistory(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getSnapshotBillingHistoryGraph', function() { + it('should call getSnapshotBillingHistoryGraph successfully', function(done) { + //uncomment below and update the code to test getSnapshotBillingHistoryGraph + //instance.getSnapshotBillingHistoryGraph(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getUsage', function() { + it('should call getUsage successfully', function(done) { + //uncomment below and update the code to test getUsage + //instance.getUsage(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getUserBillingHistory', function() { + it('should call getUserBillingHistory successfully', function(done) { + //uncomment below and update the code to test getUserBillingHistory + //instance.getUserBillingHistory(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getVMBillingDetails', function() { + it('should call getVMBillingDetails successfully', function(done) { + //uncomment below and update the code to test getVMBillingDetails + //instance.getVMBillingDetails(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle', function() { - it('should call retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle successfully', function(done) { - //uncomment below and update the code to test retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle - //instance.retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle(function(error) { + describe('getVMBillingEvents', function() { + it('should call getVMBillingEvents successfully', function(done) { + //uncomment below and update the code to test getVMBillingEvents + //instance.getVMBillingEvents(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle', function() { - it('should call retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle successfully', function(done) { - //uncomment below and update the code to test retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle - //instance.retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle(function(error) { + describe('getVMBillingGraph', function() { + it('should call getVMBillingGraph successfully', function(done) { + //uncomment below and update the code to test getVMBillingGraph + //instance.getVMBillingGraph(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle', function() { - it('should call retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle successfully', function(done) { - //uncomment below and update the code to test retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle - //instance.retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle(function(error) { + describe('getVMBillingHistory', function() { + it('should call getVMBillingHistory successfully', function(done) { + //uncomment below and update the code to test getVMBillingHistory + //instance.getVMBillingHistory(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveBillingHistoryOfContractForASpecificBillingCycle', function() { - it('should call retrieveBillingHistoryOfContractForASpecificBillingCycle successfully', function(done) { - //uncomment below and update the code to test retrieveBillingHistoryOfContractForASpecificBillingCycle - //instance.retrieveBillingHistoryOfContractForASpecificBillingCycle(function(error) { + describe('getVMSubResourceCosts', function() { + it('should call getVMSubResourceCosts successfully', function(done) { + //uncomment below and update the code to test getVMSubResourceCosts + //instance.getVMSubResourceCosts(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveBillingHistoryOfSnapshotForASpecificBillingCycle', function() { - it('should call retrieveBillingHistoryOfSnapshotForASpecificBillingCycle successfully', function(done) { - //uncomment below and update the code to test retrieveBillingHistoryOfSnapshotForASpecificBillingCycle - //instance.retrieveBillingHistoryOfSnapshotForASpecificBillingCycle(function(error) { + describe('getVMSubResourceGraph', function() { + it('should call getVMSubResourceGraph successfully', function(done) { + //uncomment below and update the code to test getVMSubResourceGraph + //instance.getVMSubResourceGraph(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle', function() { - it('should call retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle successfully', function(done) { - //uncomment below and update the code to test retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle - //instance.retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle(function(error) { + describe('getVolumeBillingDetails', function() { + it('should call getVolumeBillingDetails successfully', function(done) { + //uncomment below and update the code to test getVolumeBillingDetails + //instance.getVolumeBillingDetails(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveBillingHistoryOfVolumeForASpecificBillingCycle', function() { - it('should call retrieveBillingHistoryOfVolumeForASpecificBillingCycle successfully', function(done) { - //uncomment below and update the code to test retrieveBillingHistoryOfVolumeForASpecificBillingCycle - //instance.retrieveBillingHistoryOfVolumeForASpecificBillingCycle(function(error) { + describe('getVolumeBillingEvents', function() { + it('should call getVolumeBillingEvents successfully', function(done) { + //uncomment below and update the code to test getVolumeBillingEvents + //instance.getVolumeBillingEvents(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle', function() { - it('should call retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle successfully', function(done) { - //uncomment below and update the code to test retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle - //instance.retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle(function(error) { + describe('getVolumeBillingHistory', function() { + it('should call getVolumeBillingHistory successfully', function(done) { + //uncomment below and update the code to test getVolumeBillingHistory + //instance.getVolumeBillingHistory(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle', function() { - it('should call retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle successfully', function(done) { - //uncomment below and update the code to test retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle - //instance.retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle(function(error) { + describe('getVolumeBillingHistoryGraph', function() { + it('should call getVolumeBillingHistoryGraph successfully', function(done) { + //uncomment below and update the code to test getVolumeBillingHistoryGraph + //instance.getVolumeBillingHistoryGraph(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle', function() { - it('should call retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle successfully', function(done) { - //uncomment below and update the code to test retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle - //instance.retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle(function(error) { + describe('listBillingContractHistory', function() { + it('should call listBillingContractHistory successfully', function(done) { + //uncomment below and update the code to test listBillingContractHistory + //instance.listBillingContractHistory(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveSubResourcesHistoricalCostDatapointsOfAVirtual', function() { - it('should call retrieveSubResourcesHistoricalCostDatapointsOfAVirtual successfully', function(done) { - //uncomment below and update the code to test retrieveSubResourcesHistoricalCostDatapointsOfAVirtual - //instance.retrieveSubResourcesHistoricalCostDatapointsOfAVirtual(function(error) { + describe('listBucketBillingHistory', function() { + it('should call listBucketBillingHistory successfully', function(done) { + //uncomment below and update the code to test listBucketBillingHistory + //instance.listBucketBillingHistory(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveTotalCostsAndNonDiscountCostsForSubResources', function() { - it('should call retrieveTotalCostsAndNonDiscountCostsForSubResources successfully', function(done) { - //uncomment below and update the code to test retrieveTotalCostsAndNonDiscountCostsForSubResources - //instance.retrieveTotalCostsAndNonDiscountCostsForSubResources(function(error) { + describe('listClustersBillingHistory', function() { + it('should call listClustersBillingHistory successfully', function(done) { + //uncomment below and update the code to test listClustersBillingHistory + //instance.listClustersBillingHistory(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveVmBillingEventsHistory', function() { - it('should call retrieveVmBillingEventsHistory successfully', function(done) { - //uncomment below and update the code to test retrieveVmBillingEventsHistory - //instance.retrieveVmBillingEventsHistory(function(error) { + describe('listOrgNotificationThresholds', function() { + it('should call listOrgNotificationThresholds successfully', function(done) { + //uncomment below and update the code to test listOrgNotificationThresholds + //instance.listOrgNotificationThresholds(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveVolumeBillingEventsHistory', function() { - it('should call retrieveVolumeBillingEventsHistory successfully', function(done) { - //uncomment below and update the code to test retrieveVolumeBillingEventsHistory - //instance.retrieveVolumeBillingEventsHistory(function(error) { + describe('listServerlessInferenceBillingHistory', function() { + it('should call listServerlessInferenceBillingHistory successfully', function(done) { + //uncomment below and update the code to test listServerlessInferenceBillingHistory + //instance.listServerlessInferenceBillingHistory(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('updateSubscribeOrUnsubscribeNotificationThreshold', function() { - it('should call updateSubscribeOrUnsubscribeNotificationThreshold successfully', function(done) { - //uncomment below and update the code to test updateSubscribeOrUnsubscribeNotificationThreshold - //instance.updateSubscribeOrUnsubscribeNotificationThreshold(function(error) { + describe('listSnapshotBillingHistory', function() { + it('should call listSnapshotBillingHistory successfully', function(done) { + //uncomment below and update the code to test listSnapshotBillingHistory + //instance.listSnapshotBillingHistory(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/BucketsApi.spec.js b/test/api/BucketsApi.spec.js new file mode 100644 index 00000000..038d8d3e --- /dev/null +++ b/test/api/BucketsApi.spec.js @@ -0,0 +1,83 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.BucketsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BucketsApi', function() { + describe('deleteBucketEndpoint', function() { + it('should call deleteBucketEndpoint successfully', function(done) { + //uncomment below and update the code to test deleteBucketEndpoint + //instance.deleteBucketEndpoint(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('listBucketsEndpoint', function() { + it('should call listBucketsEndpoint successfully', function(done) { + //uncomment below and update the code to test listBucketsEndpoint + //instance.listBucketsEndpoint(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('retrieveBucketEndpoint', function() { + it('should call retrieveBucketEndpoint successfully', function(done) { + //uncomment below and update the code to test retrieveBucketEndpoint + //instance.retrieveBucketEndpoint(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/CalculateApi.spec.js b/test/api/CalculateApi.spec.js index eb37f534..199787c5 100644 --- a/test/api/CalculateApi.spec.js +++ b/test/api/CalculateApi.spec.js @@ -48,10 +48,10 @@ } describe('CalculateApi', function() { - describe('retrieveBillingRateForResource', function() { - it('should call retrieveBillingRateForResource successfully', function(done) { - //uncomment below and update the code to test retrieveBillingRateForResource - //instance.retrieveBillingRateForResource(function(error) { + describe('calculateResourceBillingRate', function() { + it('should call calculateResourceBillingRate successfully', function(done) { + //uncomment below and update the code to test calculateResourceBillingRate + //instance.calculateResourceBillingRate(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/CallbacksApi.spec.js b/test/api/CallbacksApi.spec.js index a0fe7647..e159f13f 100644 --- a/test/api/CallbacksApi.spec.js +++ b/test/api/CallbacksApi.spec.js @@ -48,10 +48,10 @@ } describe('CallbacksApi', function() { - describe('attachCallbackToVirtualMachine', function() { - it('should call attachCallbackToVirtualMachine successfully', function(done) { - //uncomment below and update the code to test attachCallbackToVirtualMachine - //instance.attachCallbackToVirtualMachine(function(error) { + describe('attachCallbackToVM', function() { + it('should call attachCallbackToVM successfully', function(done) { + //uncomment below and update the code to test attachCallbackToVM + //instance.attachCallbackToVM(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -68,10 +68,10 @@ done(); }); }); - describe('deleteVirtualMachineCallback', function() { - it('should call deleteVirtualMachineCallback successfully', function(done) { - //uncomment below and update the code to test deleteVirtualMachineCallback - //instance.deleteVirtualMachineCallback(function(error) { + describe('deleteVMCallback', function() { + it('should call deleteVMCallback successfully', function(done) { + //uncomment below and update the code to test deleteVMCallback + //instance.deleteVMCallback(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -88,10 +88,10 @@ done(); }); }); - describe('updateVirtualMachineCallback', function() { - it('should call updateVirtualMachineCallback successfully', function(done) { - //uncomment below and update the code to test updateVirtualMachineCallback - //instance.updateVirtualMachineCallback(function(error) { + describe('updateVMCallback', function() { + it('should call updateVMCallback successfully', function(done) { + //uncomment below and update the code to test updateVMCallback + //instance.updateVMCallback(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/ClusterEventsApi.spec.js b/test/api/ClusterEventsApi.spec.js index d8fe0a54..58fdfeb9 100644 --- a/test/api/ClusterEventsApi.spec.js +++ b/test/api/ClusterEventsApi.spec.js @@ -48,10 +48,10 @@ } describe('ClusterEventsApi', function() { - describe('fetchAllOfAClusterEvents', function() { - it('should call fetchAllOfAClusterEvents successfully', function(done) { - //uncomment below and update the code to test fetchAllOfAClusterEvents - //instance.fetchAllOfAClusterEvents(function(error) { + describe('listClusterEvents', function() { + it('should call listClusterEvents successfully', function(done) { + //uncomment below and update the code to test listClusterEvents + //instance.listClusterEvents(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/ClustersApi.spec.js b/test/api/ClustersApi.spec.js index aacb448c..8bc36e82 100644 --- a/test/api/ClustersApi.spec.js +++ b/test/api/ClustersApi.spec.js @@ -58,10 +58,60 @@ done(); }); }); - describe('deleteACluster', function() { - it('should call deleteACluster successfully', function(done) { - //uncomment below and update the code to test deleteACluster - //instance.deleteACluster(function(error) { + describe('createNode', function() { + it('should call createNode successfully', function(done) { + //uncomment below and update the code to test createNode + //instance.createNode(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('createNodeGroup', function() { + it('should call createNodeGroup successfully', function(done) { + //uncomment below and update the code to test createNodeGroup + //instance.createNodeGroup(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteCluster', function() { + it('should call deleteCluster successfully', function(done) { + //uncomment below and update the code to test deleteCluster + //instance.deleteCluster(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteClusterNode', function() { + it('should call deleteClusterNode successfully', function(done) { + //uncomment below and update the code to test deleteClusterNode + //instance.deleteClusterNode(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteClusterNodes', function() { + it('should call deleteClusterNodes successfully', function(done) { + //uncomment below and update the code to test deleteClusterNodes + //instance.deleteClusterNodes(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('deleteNodeGroup', function() { + it('should call deleteNodeGroup successfully', function(done) { + //uncomment below and update the code to test deleteNodeGroup + //instance.deleteNodeGroup(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -78,6 +128,26 @@ done(); }); }); + describe('getClusterMasterFlavors', function() { + it('should call getClusterMasterFlavors successfully', function(done) { + //uncomment below and update the code to test getClusterMasterFlavors + //instance.getClusterMasterFlavors(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getClusterNodes', function() { + it('should call getClusterNodes successfully', function(done) { + //uncomment below and update the code to test getClusterNodes + //instance.getClusterNodes(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('getClusterVersions', function() { it('should call getClusterVersions successfully', function(done) { //uncomment below and update the code to test getClusterVersions @@ -88,6 +158,16 @@ done(); }); }); + describe('getNodeGroup', function() { + it('should call getNodeGroup successfully', function(done) { + //uncomment below and update the code to test getNodeGroup + //instance.getNodeGroup(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('gettingClusterDetail', function() { it('should call gettingClusterDetail successfully', function(done) { //uncomment below and update the code to test gettingClusterDetail @@ -108,6 +188,36 @@ done(); }); }); + describe('listNodeGroups', function() { + it('should call listNodeGroups successfully', function(done) { + //uncomment below and update the code to test listNodeGroups + //instance.listNodeGroups(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('reconcileCluster', function() { + it('should call reconcileCluster successfully', function(done) { + //uncomment below and update the code to test reconcileCluster + //instance.reconcileCluster(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateNodeGroup', function() { + it('should call updateNodeGroup successfully', function(done) { + //uncomment below and update the code to test updateNodeGroup + //instance.updateNodeGroup(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); }); })); diff --git a/test/api/ComplianceApi.spec.js b/test/api/ComplianceApi.spec.js index 80bda32d..7c0ab6cf 100644 --- a/test/api/ComplianceApi.spec.js +++ b/test/api/ComplianceApi.spec.js @@ -58,30 +58,30 @@ done(); }); }); - describe('deleteACompliance', function() { - it('should call deleteACompliance successfully', function(done) { - //uncomment below and update the code to test deleteACompliance - //instance.deleteACompliance(function(error) { + describe('deleteCompliance', function() { + it('should call deleteCompliance successfully', function(done) { + //uncomment below and update the code to test deleteCompliance + //instance.deleteCompliance(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveGpuCompliance', function() { - it('should call retrieveGpuCompliance successfully', function(done) { - //uncomment below and update the code to test retrieveGpuCompliance - //instance.retrieveGpuCompliance(function(error) { + describe('getCompliance', function() { + it('should call getCompliance successfully', function(done) { + //uncomment below and update the code to test getCompliance + //instance.getCompliance(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('updateACompliance', function() { - it('should call updateACompliance successfully', function(done) { - //uncomment below and update the code to test updateACompliance - //instance.updateACompliance(function(error) { + describe('updateCompliance', function() { + it('should call updateCompliance successfully', function(done) { + //uncomment below and update the code to test updateCompliance + //instance.updateCompliance(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/CreditApi.spec.js b/test/api/CreditApi.spec.js index c348b453..d974a030 100644 --- a/test/api/CreditApi.spec.js +++ b/test/api/CreditApi.spec.js @@ -48,10 +48,10 @@ } describe('CreditApi', function() { - describe('getViewCreditAndThreshold', function() { - it('should call getViewCreditAndThreshold successfully', function(done) { - //uncomment below and update the code to test getViewCreditAndThreshold - //instance.getViewCreditAndThreshold(function(error) { + describe('getUserCredit', function() { + it('should call getUserCredit successfully', function(done) { + //uncomment below and update the code to test getUserCredit + //instance.getUserCredit(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/CustomerContractApi.spec.js b/test/api/CustomerContractApi.spec.js index 61e83f36..a9bf2931 100644 --- a/test/api/CustomerContractApi.spec.js +++ b/test/api/CustomerContractApi.spec.js @@ -48,30 +48,30 @@ } describe('CustomerContractApi', function() { - describe('listContracts', function() { - it('should call listContracts successfully', function(done) { - //uncomment below and update the code to test listContracts - //instance.listContracts(function(error) { + describe('getContractGPUAllocationGraph', function() { + it('should call getContractGPUAllocationGraph successfully', function(done) { + //uncomment below and update the code to test getContractGPUAllocationGraph + //instance.getContractGPUAllocationGraph(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveContractDetails', function() { - it('should call retrieveContractDetails successfully', function(done) { - //uncomment below and update the code to test retrieveContractDetails - //instance.retrieveContractDetails(function(error) { + describe('listCustomerContracts', function() { + it('should call listCustomerContracts successfully', function(done) { + //uncomment below and update the code to test listCustomerContracts + //instance.listCustomerContracts(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveGpuAllocationGraphForContract', function() { - it('should call retrieveGpuAllocationGraphForContract successfully', function(done) { - //uncomment below and update the code to test retrieveGpuAllocationGraphForContract - //instance.retrieveGpuAllocationGraphForContract(function(error) { + describe('retrieveContract', function() { + it('should call retrieveContract successfully', function(done) { + //uncomment below and update the code to test retrieveContract + //instance.retrieveContract(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/DashboardApi.spec.js b/test/api/DashboardApi.spec.js index bbb7a31a..4b533314 100644 --- a/test/api/DashboardApi.spec.js +++ b/test/api/DashboardApi.spec.js @@ -48,10 +48,10 @@ } describe('DashboardApi', function() { - describe('retrieveDashboard', function() { - it('should call retrieveDashboard successfully', function(done) { - //uncomment below and update the code to test retrieveDashboard - //instance.retrieveDashboard(function(error) { + describe('getDashboard', function() { + it('should call getDashboard successfully', function(done) { + //uncomment below and update the code to test getDashboard + //instance.getDashboard(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/DeploymentApi.spec.js b/test/api/DeploymentApi.spec.js index e3f9f3cc..378c3a72 100644 --- a/test/api/DeploymentApi.spec.js +++ b/test/api/DeploymentApi.spec.js @@ -58,10 +58,10 @@ done(); }); }); - describe('detailsOfDeploymentById', function() { - it('should call detailsOfDeploymentById successfully', function(done) { - //uncomment below and update the code to test detailsOfDeploymentById - //instance.detailsOfDeploymentById(function(error) { + describe('getDeployment', function() { + it('should call getDeployment successfully', function(done) { + //uncomment below and update the code to test getDeployment + //instance.getDeployment(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/EnvironmentApi.spec.js b/test/api/EnvironmentApi.spec.js index 914f67f7..e14798f5 100644 --- a/test/api/EnvironmentApi.spec.js +++ b/test/api/EnvironmentApi.spec.js @@ -68,20 +68,40 @@ done(); }); }); - describe('listEnvironments', function() { - it('should call listEnvironments successfully', function(done) { - //uncomment below and update the code to test listEnvironments - //instance.listEnvironments(function(error) { + describe('fetchEnvironmentNameAvailability', function() { + it('should call fetchEnvironmentNameAvailability successfully', function(done) { + //uncomment below and update the code to test fetchEnvironmentNameAvailability + //instance.fetchEnvironmentNameAvailability(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getEnvironment', function() { + it('should call getEnvironment successfully', function(done) { + //uncomment below and update the code to test getEnvironment + //instance.getEnvironment(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveEnvironment', function() { - it('should call retrieveEnvironment successfully', function(done) { - //uncomment below and update the code to test retrieveEnvironment - //instance.retrieveEnvironment(function(error) { + describe('getEnvironmentVMQuota', function() { + it('should call getEnvironmentVMQuota successfully', function(done) { + //uncomment below and update the code to test getEnvironmentVMQuota + //instance.getEnvironmentVMQuota(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('listEnvironments', function() { + it('should call listEnvironments successfully', function(done) { + //uncomment below and update the code to test listEnvironments + //instance.listEnvironments(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/FIPExclusionsApi.spec.js b/test/api/FIPExclusionsApi.spec.js new file mode 100644 index 00000000..e911a6e6 --- /dev/null +++ b/test/api/FIPExclusionsApi.spec.js @@ -0,0 +1,63 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.FIPExclusionsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FIPExclusionsApi', function() { + describe('checkIfOrgIsExcludedFromFloatingIPDetachment', function() { + it('should call checkIfOrgIsExcludedFromFloatingIPDetachment successfully', function(done) { + //uncomment below and update the code to test checkIfOrgIsExcludedFromFloatingIPDetachment + //instance.checkIfOrgIsExcludedFromFloatingIPDetachment(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/FirewallAttachmentApi.spec.js b/test/api/FirewallAttachmentApi.spec.js index edb9ad0b..e859bcd5 100644 --- a/test/api/FirewallAttachmentApi.spec.js +++ b/test/api/FirewallAttachmentApi.spec.js @@ -48,10 +48,10 @@ } describe('FirewallAttachmentApi', function() { - describe('attachFirewallsToVms', function() { - it('should call attachFirewallsToVms successfully', function(done) { - //uncomment below and update the code to test attachFirewallsToVms - //instance.attachFirewallsToVms(function(error) { + describe('attachFirewallToVMs', function() { + it('should call attachFirewallToVMs successfully', function(done) { + //uncomment below and update the code to test attachFirewallToVMs + //instance.attachFirewallToVMs(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/FirewallsApi.spec.js b/test/api/FirewallsApi.spec.js index 4aff3540..fbc368ed 100644 --- a/test/api/FirewallsApi.spec.js +++ b/test/api/FirewallsApi.spec.js @@ -48,10 +48,10 @@ } describe('FirewallsApi', function() { - describe('addFirewallRuleToFirewall', function() { - it('should call addFirewallRuleToFirewall successfully', function(done) { - //uncomment below and update the code to test addFirewallRuleToFirewall - //instance.addFirewallRuleToFirewall(function(error) { + describe('addRuleToFirewall', function() { + it('should call addRuleToFirewall successfully', function(done) { + //uncomment below and update the code to test addRuleToFirewall + //instance.addRuleToFirewall(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -68,40 +68,40 @@ done(); }); }); - describe('deleteFirewall', function() { - it('should call deleteFirewall successfully', function(done) { - //uncomment below and update the code to test deleteFirewall - //instance.deleteFirewall(function(error) { + describe('deleteExistingFirewall', function() { + it('should call deleteExistingFirewall successfully', function(done) { + //uncomment below and update the code to test deleteExistingFirewall + //instance.deleteExistingFirewall(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('deleteFirewallRulesFromFirewall', function() { - it('should call deleteFirewallRulesFromFirewall successfully', function(done) { - //uncomment below and update the code to test deleteFirewallRulesFromFirewall - //instance.deleteFirewallRulesFromFirewall(function(error) { + describe('deleteRuleFromFirewall', function() { + it('should call deleteRuleFromFirewall successfully', function(done) { + //uncomment below and update the code to test deleteRuleFromFirewall + //instance.deleteRuleFromFirewall(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('listFirewalls', function() { - it('should call listFirewalls successfully', function(done) { - //uncomment below and update the code to test listFirewalls - //instance.listFirewalls(function(error) { + describe('getFirewall', function() { + it('should call getFirewall successfully', function(done) { + //uncomment below and update the code to test getFirewall + //instance.getFirewall(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveFirewallDetails', function() { - it('should call retrieveFirewallDetails successfully', function(done) { - //uncomment below and update the code to test retrieveFirewallDetails - //instance.retrieveFirewallDetails(function(error) { + describe('listExistingFirewalls', function() { + it('should call listExistingFirewalls successfully', function(done) { + //uncomment below and update the code to test listExistingFirewalls + //instance.listExistingFirewalls(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/FloatingIpApi.spec.js b/test/api/FloatingIpApi.spec.js index 16d69451..1a058aa3 100644 --- a/test/api/FloatingIpApi.spec.js +++ b/test/api/FloatingIpApi.spec.js @@ -48,20 +48,20 @@ } describe('FloatingIpApi', function() { - describe('attachPublicIpToVirtualMachine', function() { - it('should call attachPublicIpToVirtualMachine successfully', function(done) { - //uncomment below and update the code to test attachPublicIpToVirtualMachine - //instance.attachPublicIpToVirtualMachine(function(error) { + describe('attachPublicIPToVM', function() { + it('should call attachPublicIPToVM successfully', function(done) { + //uncomment below and update the code to test attachPublicIPToVM + //instance.attachPublicIPToVM(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('detachPublicIpFromVirtualMachine', function() { - it('should call detachPublicIpFromVirtualMachine successfully', function(done) { - //uncomment below and update the code to test detachPublicIpFromVirtualMachine - //instance.detachPublicIpFromVirtualMachine(function(error) { + describe('detachPublicIPFromVM', function() { + it('should call detachPublicIPFromVM successfully', function(done) { + //uncomment below and update the code to test detachPublicIPFromVM + //instance.detachPublicIPFromVM(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/GpuApi.spec.js b/test/api/GpuApi.spec.js index 54e8607f..5c55d30c 100644 --- a/test/api/GpuApi.spec.js +++ b/test/api/GpuApi.spec.js @@ -48,10 +48,10 @@ } describe('GpuApi', function() { - describe('listGpus', function() { - it('should call listGpus successfully', function(done) { - //uncomment below and update the code to test listGpus - //instance.listGpus(function(error) { + describe('listGPUs', function() { + it('should call listGPUs successfully', function(done) { + //uncomment below and update the code to test listGPUs + //instance.listGPUs(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/HealthApi.spec.js b/test/api/HealthApi.spec.js new file mode 100644 index 00000000..e3a8af3c --- /dev/null +++ b/test/api/HealthApi.spec.js @@ -0,0 +1,63 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.HealthApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HealthApi', function() { + describe('healthzEndpoint', function() { + it('should call healthzEndpoint successfully', function(done) { + //uncomment below and update the code to test healthzEndpoint + //instance.healthzEndpoint(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/ImageApi.spec.js b/test/api/ImageApi.spec.js index 35431fe9..5c8f8af8 100644 --- a/test/api/ImageApi.spec.js +++ b/test/api/ImageApi.spec.js @@ -48,30 +48,30 @@ } describe('ImageApi', function() { - describe('deleteAnImage', function() { - it('should call deleteAnImage successfully', function(done) { - //uncomment below and update the code to test deleteAnImage - //instance.deleteAnImage(function(error) { + describe('deleteImage', function() { + it('should call deleteImage successfully', function(done) { + //uncomment below and update the code to test deleteImage + //instance.deleteImage(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('fetchNameAvailabilityForImages', function() { - it('should call fetchNameAvailabilityForImages successfully', function(done) { - //uncomment below and update the code to test fetchNameAvailabilityForImages - //instance.fetchNameAvailabilityForImages(function(error) { + describe('fetchImageNameAvailability', function() { + it('should call fetchImageNameAvailability successfully', function(done) { + //uncomment below and update the code to test fetchImageNameAvailability + //instance.fetchImageNameAvailability(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('getPrivateImageDetails', function() { - it('should call getPrivateImageDetails successfully', function(done) { - //uncomment below and update the code to test getPrivateImageDetails - //instance.getPrivateImageDetails(function(error) { + describe('getImage', function() { + it('should call getImage successfully', function(done) { + //uncomment below and update the code to test getImage + //instance.getImage(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/InviteApi.spec.js b/test/api/InviteApi.spec.js index 0c5b72e8..ddcd0fa7 100644 --- a/test/api/InviteApi.spec.js +++ b/test/api/InviteApi.spec.js @@ -48,6 +48,16 @@ } describe('InviteApi', function() { + describe('acceptInvite', function() { + it('should call acceptInvite successfully', function(done) { + //uncomment below and update the code to test acceptInvite + //instance.acceptInvite(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('deleteInvite', function() { it('should call deleteInvite successfully', function(done) { //uncomment below and update the code to test deleteInvite diff --git a/test/api/PartnerConfigApi.spec.js b/test/api/PartnerConfigApi.spec.js new file mode 100644 index 00000000..fc667015 --- /dev/null +++ b/test/api/PartnerConfigApi.spec.js @@ -0,0 +1,73 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.PartnerConfigApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PartnerConfigApi', function() { + describe('getPartnerConfig', function() { + it('should call getPartnerConfig successfully', function(done) { + //uncomment below and update the code to test getPartnerConfig + //instance.getPartnerConfig(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getPartnerConfigByDomain', function() { + it('should call getPartnerConfigByDomain successfully', function(done) { + //uncomment below and update the code to test getPartnerConfigByDomain + //instance.getPartnerConfigByDomain(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/PaymentApi.spec.js b/test/api/PaymentApi.spec.js index c508093d..04595c97 100644 --- a/test/api/PaymentApi.spec.js +++ b/test/api/PaymentApi.spec.js @@ -48,20 +48,30 @@ } describe('PaymentApi', function() { - describe('getViewPaymentDetails', function() { - it('should call getViewPaymentDetails successfully', function(done) { - //uncomment below and update the code to test getViewPaymentDetails - //instance.getViewPaymentDetails(function(error) { + describe('getPaymentReceipt', function() { + it('should call getPaymentReceipt successfully', function(done) { + //uncomment below and update the code to test getPaymentReceipt + //instance.getPaymentReceipt(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('postInitiatePayment', function() { - it('should call postInitiatePayment successfully', function(done) { - //uncomment below and update the code to test postInitiatePayment - //instance.postInitiatePayment(function(error) { + describe('initiatePayment', function() { + it('should call initiatePayment successfully', function(done) { + //uncomment below and update the code to test initiatePayment + //instance.initiatePayment(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('listPaymentDetails', function() { + it('should call listPaymentDetails successfully', function(done) { + //uncomment below and update the code to test listPaymentDetails + //instance.listPaymentDetails(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/PricebookApi.spec.js b/test/api/PricebookApi.spec.js index a5197e3a..aeb2baa0 100644 --- a/test/api/PricebookApi.spec.js +++ b/test/api/PricebookApi.spec.js @@ -48,10 +48,10 @@ } describe('PricebookApi', function() { - describe('retrivePricebook', function() { - it('should call retrivePricebook successfully', function(done) { - //uncomment below and update the code to test retrivePricebook - //instance.retrivePricebook(function(error) { + describe('getPricebook', function() { + it('should call getPricebook successfully', function(done) { + //uncomment below and update the code to test getPricebook + //instance.getPricebook(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/ProfileApi.spec.js b/test/api/ProfileApi.spec.js index 045c1d62..05ec5892 100644 --- a/test/api/ProfileApi.spec.js +++ b/test/api/ProfileApi.spec.js @@ -68,20 +68,20 @@ done(); }); }); - describe('listProfiles', function() { - it('should call listProfiles successfully', function(done) { - //uncomment below and update the code to test listProfiles - //instance.listProfiles(function(error) { + describe('getProfile', function() { + it('should call getProfile successfully', function(done) { + //uncomment below and update the code to test getProfile + //instance.getProfile(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveProfileDetails', function() { - it('should call retrieveProfileDetails successfully', function(done) { - //uncomment below and update the code to test retrieveProfileDetails - //instance.retrieveProfileDetails(function(error) { + describe('listProfiles', function() { + it('should call listProfiles successfully', function(done) { + //uncomment below and update the code to test listProfiles + //instance.listProfiles(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/RbacRoleApi.spec.js b/test/api/RbacRoleApi.spec.js index 3e342d71..022d74d9 100644 --- a/test/api/RbacRoleApi.spec.js +++ b/test/api/RbacRoleApi.spec.js @@ -48,50 +48,50 @@ } describe('RbacRoleApi', function() { - describe('createRbacRole', function() { - it('should call createRbacRole successfully', function(done) { - //uncomment below and update the code to test createRbacRole - //instance.createRbacRole(function(error) { + describe('createRBACRole', function() { + it('should call createRBACRole successfully', function(done) { + //uncomment below and update the code to test createRBACRole + //instance.createRBACRole(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('deleteRbacRole', function() { - it('should call deleteRbacRole successfully', function(done) { - //uncomment below and update the code to test deleteRbacRole - //instance.deleteRbacRole(function(error) { + describe('deleteRBACRole', function() { + it('should call deleteRBACRole successfully', function(done) { + //uncomment below and update the code to test deleteRBACRole + //instance.deleteRBACRole(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('listRbacRoles', function() { - it('should call listRbacRoles successfully', function(done) { - //uncomment below and update the code to test listRbacRoles - //instance.listRbacRoles(function(error) { + describe('listRBACRoles', function() { + it('should call listRBACRoles successfully', function(done) { + //uncomment below and update the code to test listRBACRoles + //instance.listRBACRoles(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveRbacRoleDetails', function() { - it('should call retrieveRbacRoleDetails successfully', function(done) { - //uncomment below and update the code to test retrieveRbacRoleDetails - //instance.retrieveRbacRoleDetails(function(error) { + describe('retrieveRBACRoleDetails', function() { + it('should call retrieveRBACRoleDetails successfully', function(done) { + //uncomment below and update the code to test retrieveRBACRoleDetails + //instance.retrieveRBACRoleDetails(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('updateRbacRole', function() { - it('should call updateRbacRole successfully', function(done) { - //uncomment below and update the code to test updateRbacRole - //instance.updateRbacRole(function(error) { + describe('updateRBACRole', function() { + it('should call updateRBACRole successfully', function(done) { + //uncomment below and update the code to test updateRBACRole + //instance.updateRBACRole(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/RegionsApi.spec.js b/test/api/RegionsApi.spec.js new file mode 100644 index 00000000..ae61bcbd --- /dev/null +++ b/test/api/RegionsApi.spec.js @@ -0,0 +1,63 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.RegionsApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RegionsApi', function() { + describe('listRegionsEndpoint', function() { + it('should call listRegionsEndpoint successfully', function(done) { + //uncomment below and update the code to test listRegionsEndpoint + //instance.listRegionsEndpoint(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/api/SnapshotEventsApi.spec.js b/test/api/SnapshotEventsApi.spec.js index 97d1689c..78e6c546 100644 --- a/test/api/SnapshotEventsApi.spec.js +++ b/test/api/SnapshotEventsApi.spec.js @@ -48,10 +48,10 @@ } describe('SnapshotEventsApi', function() { - describe('fetchAllEventsForASnapshot', function() { - it('should call fetchAllEventsForASnapshot successfully', function(done) { - //uncomment below and update the code to test fetchAllEventsForASnapshot - //instance.fetchAllEventsForASnapshot(function(error) { + describe('listSnapshotEvents', function() { + it('should call listSnapshotEvents successfully', function(done) { + //uncomment below and update the code to test listSnapshotEvents + //instance.listSnapshotEvents(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/SnapshotsApi.spec.js b/test/api/SnapshotsApi.spec.js index a414bc99..fa18f108 100644 --- a/test/api/SnapshotsApi.spec.js +++ b/test/api/SnapshotsApi.spec.js @@ -48,10 +48,10 @@ } describe('SnapshotsApi', function() { - describe('createAnImageFromASnapshot', function() { - it('should call createAnImageFromASnapshot successfully', function(done) { - //uncomment below and update the code to test createAnImageFromASnapshot - //instance.createAnImageFromASnapshot(function(error) { + describe('createCustomImage', function() { + it('should call createCustomImage successfully', function(done) { + //uncomment below and update the code to test createCustomImage + //instance.createCustomImage(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -78,30 +78,30 @@ done(); }); }); - describe('restoreASnapshot', function() { - it('should call restoreASnapshot successfully', function(done) { - //uncomment below and update the code to test restoreASnapshot - //instance.restoreASnapshot(function(error) { + describe('getSnapshot', function() { + it('should call getSnapshot successfully', function(done) { + //uncomment below and update the code to test getSnapshot + //instance.getSnapshot(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveASnapshot', function() { - it('should call retrieveASnapshot successfully', function(done) { - //uncomment below and update the code to test retrieveASnapshot - //instance.retrieveASnapshot(function(error) { + describe('listSnapshots', function() { + it('should call listSnapshots successfully', function(done) { + //uncomment below and update the code to test listSnapshots + //instance.listSnapshots(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveListOfSnapshotsWithPagination', function() { - it('should call retrieveListOfSnapshotsWithPagination successfully', function(done) { - //uncomment below and update the code to test retrieveListOfSnapshotsWithPagination - //instance.retrieveListOfSnapshotsWithPagination(function(error) { + describe('restoreSnapshot', function() { + it('should call restoreSnapshot successfully', function(done) { + //uncomment below and update the code to test restoreSnapshot + //instance.restoreSnapshot(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/StockApi.spec.js b/test/api/StockApi.spec.js index 5805ae81..927f2c59 100644 --- a/test/api/StockApi.spec.js +++ b/test/api/StockApi.spec.js @@ -48,10 +48,10 @@ } describe('StockApi', function() { - describe('retrieveGpuStocks', function() { - it('should call retrieveGpuStocks successfully', function(done) { - //uncomment below and update the code to test retrieveGpuStocks - //instance.retrieveGpuStocks(function(error) { + describe('getGPUStock', function() { + it('should call getGPUStock successfully', function(done) { + //uncomment below and update the code to test getGPUStock + //instance.getGPUStock(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/TemplateApi.spec.js b/test/api/TemplateApi.spec.js index 8ad5a79d..75f6597b 100644 --- a/test/api/TemplateApi.spec.js +++ b/test/api/TemplateApi.spec.js @@ -68,20 +68,20 @@ done(); }); }); - describe('listTemplates', function() { - it('should call listTemplates successfully', function(done) { - //uncomment below and update the code to test listTemplates - //instance.listTemplates(function(error) { + describe('getTemplate', function() { + it('should call getTemplate successfully', function(done) { + //uncomment below and update the code to test getTemplate + //instance.getTemplate(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveTemplateDetails', function() { - it('should call retrieveTemplateDetails successfully', function(done) { - //uncomment below and update the code to test retrieveTemplateDetails - //instance.retrieveTemplateDetails(function(error) { + describe('listTemplates', function() { + it('should call listTemplates successfully', function(done) { + //uncomment below and update the code to test listTemplates + //instance.listTemplates(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/UserApi.spec.js b/test/api/UserApi.spec.js index 0be5b148..fd27a857 100644 --- a/test/api/UserApi.spec.js +++ b/test/api/UserApi.spec.js @@ -48,30 +48,30 @@ } describe('UserApi', function() { - describe('getFetchUserInfo', function() { - it('should call getFetchUserInfo successfully', function(done) { - //uncomment below and update the code to test getFetchUserInfo - //instance.getFetchUserInfo(function(error) { + describe('addUserBillingInfo', function() { + it('should call addUserBillingInfo successfully', function(done) { + //uncomment below and update the code to test addUserBillingInfo + //instance.addUserBillingInfo(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('postInsertUserInfo', function() { - it('should call postInsertUserInfo successfully', function(done) { - //uncomment below and update the code to test postInsertUserInfo - //instance.postInsertUserInfo(function(error) { + describe('getUserBillingInfo', function() { + it('should call getUserBillingInfo successfully', function(done) { + //uncomment below and update the code to test getUserBillingInfo + //instance.getUserBillingInfo(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('putUpdateUserInfo', function() { - it('should call putUpdateUserInfo successfully', function(done) { - //uncomment below and update the code to test putUpdateUserInfo - //instance.putUpdateUserInfo(function(error) { + describe('updateUserBillingInfo', function() { + it('should call updateUserBillingInfo successfully', function(done) { + //uncomment below and update the code to test updateUserBillingInfo + //instance.updateUserBillingInfo(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/UserDetailChoiceApi.spec.js b/test/api/UserDetailChoiceApi.spec.js index 7bda518d..03605073 100644 --- a/test/api/UserDetailChoiceApi.spec.js +++ b/test/api/UserDetailChoiceApi.spec.js @@ -48,10 +48,10 @@ } describe('UserDetailChoiceApi', function() { - describe('retrieveDefaultFlavorsAndImages', function() { - it('should call retrieveDefaultFlavorsAndImages successfully', function(done) { - //uncomment below and update the code to test retrieveDefaultFlavorsAndImages - //instance.retrieveDefaultFlavorsAndImages(function(error) { + describe('listDefaultFlavorsAndImages', function() { + it('should call listDefaultFlavorsAndImages successfully', function(done) { + //uncomment below and update the code to test listDefaultFlavorsAndImages + //instance.listDefaultFlavorsAndImages(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/VirtualMachineApi.spec.js b/test/api/VirtualMachineApi.spec.js index 93a321c5..fde2ad22 100644 --- a/test/api/VirtualMachineApi.spec.js +++ b/test/api/VirtualMachineApi.spec.js @@ -48,180 +48,200 @@ } describe('VirtualMachineApi', function() { - describe('addFirewallRuleToVirtualMachine', function() { - it('should call addFirewallRuleToVirtualMachine successfully', function(done) { - //uncomment below and update the code to test addFirewallRuleToVirtualMachine - //instance.addFirewallRuleToVirtualMachine(function(error) { + describe('addVMLabel', function() { + it('should call addVMLabel successfully', function(done) { + //uncomment below and update the code to test addVMLabel + //instance.addVMLabel(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('attachFirewallsToAVirtualMachine', function() { - it('should call attachFirewallsToAVirtualMachine successfully', function(done) { - //uncomment below and update the code to test attachFirewallsToAVirtualMachine - //instance.attachFirewallsToAVirtualMachine(function(error) { + describe('attachFirewallsToVM', function() { + it('should call attachFirewallsToVM successfully', function(done) { + //uncomment below and update the code to test attachFirewallsToVM + //instance.attachFirewallsToVM(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('createSnapshotFromAVirtualMachine', function() { - it('should call createSnapshotFromAVirtualMachine successfully', function(done) { - //uncomment below and update the code to test createSnapshotFromAVirtualMachine - //instance.createSnapshotFromAVirtualMachine(function(error) { + describe('checkVMNameAvailability', function() { + it('should call checkVMNameAvailability successfully', function(done) { + //uncomment below and update the code to test checkVMNameAvailability + //instance.checkVMNameAvailability(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('createVirtualMachines', function() { - it('should call createVirtualMachines successfully', function(done) { - //uncomment below and update the code to test createVirtualMachines - //instance.createVirtualMachines(function(error) { + describe('createFirewallRuleForVM', function() { + it('should call createFirewallRuleForVM successfully', function(done) { + //uncomment below and update the code to test createFirewallRuleForVM + //instance.createFirewallRuleForVM(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('deleteFirewallRuleFromVirtualMachine', function() { - it('should call deleteFirewallRuleFromVirtualMachine successfully', function(done) { - //uncomment below and update the code to test deleteFirewallRuleFromVirtualMachine - //instance.deleteFirewallRuleFromVirtualMachine(function(error) { + describe('createSnapshotForVM', function() { + it('should call createSnapshotForVM successfully', function(done) { + //uncomment below and update the code to test createSnapshotForVM + //instance.createSnapshotForVM(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('deleteVirtualMachine', function() { - it('should call deleteVirtualMachine successfully', function(done) { - //uncomment below and update the code to test deleteVirtualMachine - //instance.deleteVirtualMachine(function(error) { + describe('createVMs', function() { + it('should call createVMs successfully', function(done) { + //uncomment below and update the code to test createVMs + //instance.createVMs(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('editVirtualMachineLabels', function() { - it('should call editVirtualMachineLabels successfully', function(done) { - //uncomment below and update the code to test editVirtualMachineLabels - //instance.editVirtualMachineLabels(function(error) { + describe('deleteFirewallRuleForVM', function() { + it('should call deleteFirewallRuleForVM successfully', function(done) { + //uncomment below and update the code to test deleteFirewallRuleForVM + //instance.deleteFirewallRuleForVM(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('fetchVirtualMachineNameAvailability', function() { - it('should call fetchVirtualMachineNameAvailability successfully', function(done) { - //uncomment below and update the code to test fetchVirtualMachineNameAvailability - //instance.fetchVirtualMachineNameAvailability(function(error) { + describe('deleteVM', function() { + it('should call deleteVM successfully', function(done) { + //uncomment below and update the code to test deleteVM + //instance.deleteVM(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('hardRebootVirtualMachine', function() { - it('should call hardRebootVirtualMachine successfully', function(done) { - //uncomment below and update the code to test hardRebootVirtualMachine - //instance.hardRebootVirtualMachine(function(error) { + describe('getContractVMs', function() { + it('should call getContractVMs successfully', function(done) { + //uncomment below and update the code to test getContractVMs + //instance.getContractVMs(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('hibernateVirtualMachine', function() { - it('should call hibernateVirtualMachine successfully', function(done) { - //uncomment below and update the code to test hibernateVirtualMachine - //instance.hibernateVirtualMachine(function(error) { + describe('getVM', function() { + it('should call getVM successfully', function(done) { + //uncomment below and update the code to test getVM + //instance.getVM(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('listVirtualMachines', function() { - it('should call listVirtualMachines successfully', function(done) { - //uncomment below and update the code to test listVirtualMachines - //instance.listVirtualMachines(function(error) { + describe('getVMLogs', function() { + it('should call getVMLogs successfully', function(done) { + //uncomment below and update the code to test getVMLogs + //instance.getVMLogs(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('resizeVirtualMachine', function() { - it('should call resizeVirtualMachine successfully', function(done) { - //uncomment below and update the code to test resizeVirtualMachine - //instance.resizeVirtualMachine(function(error) { + describe('getVMMetrics', function() { + it('should call getVMMetrics successfully', function(done) { + //uncomment below and update the code to test getVMMetrics + //instance.getVMMetrics(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('restoreVirtualMachineFromHibernation', function() { - it('should call restoreVirtualMachineFromHibernation successfully', function(done) { - //uncomment below and update the code to test restoreVirtualMachineFromHibernation - //instance.restoreVirtualMachineFromHibernation(function(error) { + describe('hardRebootVM', function() { + it('should call hardRebootVM successfully', function(done) { + //uncomment below and update the code to test hardRebootVM + //instance.hardRebootVM(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveVirtualMachineDetails', function() { - it('should call retrieveVirtualMachineDetails successfully', function(done) { - //uncomment below and update the code to test retrieveVirtualMachineDetails - //instance.retrieveVirtualMachineDetails(function(error) { + describe('hibernateVM', function() { + it('should call hibernateVM successfully', function(done) { + //uncomment below and update the code to test hibernateVM + //instance.hibernateVM(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveVirtualMachinePerformanceMetrics', function() { - it('should call retrieveVirtualMachinePerformanceMetrics successfully', function(done) { - //uncomment below and update the code to test retrieveVirtualMachinePerformanceMetrics - //instance.retrieveVirtualMachinePerformanceMetrics(function(error) { + describe('listVMs', function() { + it('should call listVMs successfully', function(done) { + //uncomment below and update the code to test listVMs + //instance.listVMs(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('retrieveVirtualMachinesAssociatedWithAContract', function() { - it('should call retrieveVirtualMachinesAssociatedWithAContract successfully', function(done) { - //uncomment below and update the code to test retrieveVirtualMachinesAssociatedWithAContract - //instance.retrieveVirtualMachinesAssociatedWithAContract(function(error) { + describe('requestVMLogs', function() { + it('should call requestVMLogs successfully', function(done) { + //uncomment below and update the code to test requestVMLogs + //instance.requestVMLogs(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('startVirtualMachine', function() { - it('should call startVirtualMachine successfully', function(done) { - //uncomment below and update the code to test startVirtualMachine - //instance.startVirtualMachine(function(error) { + describe('resizeVM', function() { + it('should call resizeVM successfully', function(done) { + //uncomment below and update the code to test resizeVM + //instance.resizeVM(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('stopVirtualMachine', function() { - it('should call stopVirtualMachine successfully', function(done) { - //uncomment below and update the code to test stopVirtualMachine - //instance.stopVirtualMachine(function(error) { + describe('restoreVMFromHibernation', function() { + it('should call restoreVMFromHibernation successfully', function(done) { + //uncomment below and update the code to test restoreVMFromHibernation + //instance.restoreVMFromHibernation(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('startVM', function() { + it('should call startVM successfully', function(done) { + //uncomment below and update the code to test startVM + //instance.startVM(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('stopVM', function() { + it('should call stopVM successfully', function(done) { + //uncomment below and update the code to test stopVM + //instance.stopVM(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/VirtualMachineEventsApi.spec.js b/test/api/VirtualMachineEventsApi.spec.js index e5c89d85..46e9da14 100644 --- a/test/api/VirtualMachineEventsApi.spec.js +++ b/test/api/VirtualMachineEventsApi.spec.js @@ -48,10 +48,10 @@ } describe('VirtualMachineEventsApi', function() { - describe('listVirtualMachineEvents', function() { - it('should call listVirtualMachineEvents successfully', function(done) { - //uncomment below and update the code to test listVirtualMachineEvents - //instance.listVirtualMachineEvents(function(error) { + describe('listVMEvents', function() { + it('should call listVMEvents successfully', function(done) { + //uncomment below and update the code to test listVMEvents + //instance.listVMEvents(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/VncUrlApi.spec.js b/test/api/VncUrlApi.spec.js index fa2722c0..dab1d1c2 100644 --- a/test/api/VncUrlApi.spec.js +++ b/test/api/VncUrlApi.spec.js @@ -48,20 +48,20 @@ } describe('VncUrlApi', function() { - describe('getVncConsoleLink', function() { - it('should call getVncConsoleLink successfully', function(done) { - //uncomment below and update the code to test getVncConsoleLink - //instance.getVncConsoleLink(function(error) { + describe('getVNCURL', function() { + it('should call getVNCURL successfully', function(done) { + //uncomment below and update the code to test getVNCURL + //instance.getVNCURL(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('requestInstanceConsole', function() { - it('should call requestInstanceConsole successfully', function(done) { - //uncomment below and update the code to test requestInstanceConsole - //instance.requestInstanceConsole(function(error) { + describe('requestVMConsole', function() { + it('should call requestVMConsole successfully', function(done) { + //uncomment below and update the code to test requestVMConsole + //instance.requestVMConsole(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/VolumeApi.spec.js b/test/api/VolumeApi.spec.js index b55d7766..064c9aa4 100644 --- a/test/api/VolumeApi.spec.js +++ b/test/api/VolumeApi.spec.js @@ -68,20 +68,20 @@ done(); }); }); - describe('fetchVolumeDetails', function() { - it('should call fetchVolumeDetails successfully', function(done) { - //uncomment below and update the code to test fetchVolumeDetails - //instance.fetchVolumeDetails(function(error) { + describe('fetchVolumeNameAvailability', function() { + it('should call fetchVolumeNameAvailability successfully', function(done) { + //uncomment below and update the code to test fetchVolumeNameAvailability + //instance.fetchVolumeNameAvailability(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('fetchVolumeNameAvailability', function() { - it('should call fetchVolumeNameAvailability successfully', function(done) { - //uncomment below and update the code to test fetchVolumeNameAvailability - //instance.fetchVolumeNameAvailability(function(error) { + describe('getVolume', function() { + it('should call getVolume successfully', function(done) { + //uncomment below and update the code to test getVolume + //instance.getVolume(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -108,6 +108,16 @@ done(); }); }); + describe('updateVolume', function() { + it('should call updateVolume successfully', function(done) { + //uncomment below and update the code to test updateVolume + //instance.updateVolume(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); }); })); diff --git a/test/api/VolumeAttachmentApi.spec.js b/test/api/VolumeAttachmentApi.spec.js index fb84eb45..abfc4974 100644 --- a/test/api/VolumeAttachmentApi.spec.js +++ b/test/api/VolumeAttachmentApi.spec.js @@ -48,20 +48,30 @@ } describe('VolumeAttachmentApi', function() { - describe('attachVolumesToVirtualMachine', function() { - it('should call attachVolumesToVirtualMachine successfully', function(done) { - //uncomment below and update the code to test attachVolumesToVirtualMachine - //instance.attachVolumesToVirtualMachine(function(error) { + describe('attachVolumesToVM', function() { + it('should call attachVolumesToVM successfully', function(done) { + //uncomment below and update the code to test attachVolumesToVM + //instance.attachVolumesToVM(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('detachVolumesFromVirtualMachine', function() { - it('should call detachVolumesFromVirtualMachine successfully', function(done) { - //uncomment below and update the code to test detachVolumesFromVirtualMachine - //instance.detachVolumesFromVirtualMachine(function(error) { + describe('detachVolumesFromVM', function() { + it('should call detachVolumesFromVM successfully', function(done) { + //uncomment below and update the code to test detachVolumesFromVM + //instance.detachVolumesFromVM(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateVolumeAttachment', function() { + it('should call updateVolumeAttachment successfully', function(done) { + //uncomment below and update the code to test updateVolumeAttachment + //instance.updateVolumeAttachment(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/VouchersApi.spec.js b/test/api/VouchersApi.spec.js new file mode 100644 index 00000000..92d4a780 --- /dev/null +++ b/test/api/VouchersApi.spec.js @@ -0,0 +1,63 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.VouchersApi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('VouchersApi', function() { + describe('redeemAVoucher', function() { + it('should call redeemAVoucher successfully', function(done) { + //uncomment below and update the code to test redeemAVoucher + //instance.redeemAVoucher(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); + +})); diff --git a/test/model/AccessTokenField.spec.js b/test/model/AccessTokenField.spec.js new file mode 100644 index 00000000..2bfe5dc7 --- /dev/null +++ b/test/model/AccessTokenField.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.AccessTokenField(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AccessTokenField', function() { + it('should create an instance of AccessTokenField', function() { + // uncomment below and update the code to test AccessTokenField + //var instance = new HyperstackApi.AccessTokenField(); + //expect(instance).to.be.a(HyperstackApi.AccessTokenField); + }); + + it('should have the property accessToken (base name: "access_token")', function() { + // uncomment below and update the code to test the property accessToken + //var instance = new HyperstackApi.AccessTokenField(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AddUpdateFlavorOrganizationPayload.spec.js b/test/model/AddUpdateFlavorOrganizationPayload.spec.js deleted file mode 100644 index 7667b9e7..00000000 --- a/test/model/AddUpdateFlavorOrganizationPayload.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.AddUpdateFlavorOrganizationPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddUpdateFlavorOrganizationPayload', function() { - it('should create an instance of AddUpdateFlavorOrganizationPayload', function() { - // uncomment below and update the code to test AddUpdateFlavorOrganizationPayload - //var instance = new HyperstackApi.AddUpdateFlavorOrganizationPayload(); - //expect(instance).to.be.a(HyperstackApi.AddUpdateFlavorOrganizationPayload); - }); - - it('should have the property cpu (base name: "cpu")', function() { - // uncomment below and update the code to test the property cpu - //var instance = new HyperstackApi.AddUpdateFlavorOrganizationPayload(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new HyperstackApi.AddUpdateFlavorOrganizationPayload(); - //expect(instance).to.be(); - }); - - it('should have the property disk (base name: "disk")', function() { - // uncomment below and update the code to test the property disk - //var instance = new HyperstackApi.AddUpdateFlavorOrganizationPayload(); - //expect(instance).to.be(); - }); - - it('should have the property ephemeral (base name: "ephemeral")', function() { - // uncomment below and update the code to test the property ephemeral - //var instance = new HyperstackApi.AddUpdateFlavorOrganizationPayload(); - //expect(instance).to.be(); - }); - - it('should have the property gpuCount (base name: "gpu_count")', function() { - // uncomment below and update the code to test the property gpuCount - //var instance = new HyperstackApi.AddUpdateFlavorOrganizationPayload(); - //expect(instance).to.be(); - }); - - it('should have the property gpuId (base name: "gpu_id")', function() { - // uncomment below and update the code to test the property gpuId - //var instance = new HyperstackApi.AddUpdateFlavorOrganizationPayload(); - //expect(instance).to.be(); - }); - - it('should have the property isPublic (base name: "is_public")', function() { - // uncomment below and update the code to test the property isPublic - //var instance = new HyperstackApi.AddUpdateFlavorOrganizationPayload(); - //expect(instance).to.be(); - }); - - it('should have the property labels (base name: "labels")', function() { - // uncomment below and update the code to test the property labels - //var instance = new HyperstackApi.AddUpdateFlavorOrganizationPayload(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.AddUpdateFlavorOrganizationPayload(); - //expect(instance).to.be(); - }); - - it('should have the property openstackId (base name: "openstack_id")', function() { - // uncomment below and update the code to test the property openstackId - //var instance = new HyperstackApi.AddUpdateFlavorOrganizationPayload(); - //expect(instance).to.be(); - }); - - it('should have the property organizations (base name: "organizations")', function() { - // uncomment below and update the code to test the property organizations - //var instance = new HyperstackApi.AddUpdateFlavorOrganizationPayload(); - //expect(instance).to.be(); - }); - - it('should have the property ram (base name: "ram")', function() { - // uncomment below and update the code to test the property ram - //var instance = new HyperstackApi.AddUpdateFlavorOrganizationPayload(); - //expect(instance).to.be(); - }); - - it('should have the property regionId (base name: "region_id")', function() { - // uncomment below and update the code to test the property regionId - //var instance = new HyperstackApi.AddUpdateFlavorOrganizationPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ApiKeyVerifyFields.spec.js b/test/model/ApiKeyVerifyFields.spec.js deleted file mode 100644 index 8ed8fb26..00000000 --- a/test/model/ApiKeyVerifyFields.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.ApiKeyVerifyFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ApiKeyVerifyFields', function() { - it('should create an instance of ApiKeyVerifyFields', function() { - // uncomment below and update the code to test ApiKeyVerifyFields - //var instance = new HyperstackApi.ApiKeyVerifyFields(); - //expect(instance).to.be.a(HyperstackApi.ApiKeyVerifyFields); - }); - - it('should have the property orgId (base name: "org_id")', function() { - // uncomment below and update the code to test the property orgId - //var instance = new HyperstackApi.ApiKeyVerifyFields(); - //expect(instance).to.be(); - }); - - it('should have the property sub (base name: "sub")', function() { - // uncomment below and update the code to test the property sub - //var instance = new HyperstackApi.ApiKeyVerifyFields(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new HyperstackApi.ApiKeyVerifyFields(); - //expect(instance).to.be(); - }); - - it('should have the property userRole (base name: "user_role")', function() { - // uncomment below and update the code to test the property userRole - //var instance = new HyperstackApi.ApiKeyVerifyFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AttachVolumeFields.spec.js b/test/model/AttachVolumeFields.spec.js index 5f499bc8..44acd9cf 100644 --- a/test/model/AttachVolumeFields.spec.js +++ b/test/model/AttachVolumeFields.spec.js @@ -60,6 +60,12 @@ //expect(instance).to.be(); }); + it('should have the property device (base name: "device")', function() { + // uncomment below and update the code to test the property device + //var instance = new HyperstackApi.AttachVolumeFields(); + //expect(instance).to.be(); + }); + it('should have the property id (base name: "id")', function() { // uncomment below and update the code to test the property id //var instance = new HyperstackApi.AttachVolumeFields(); @@ -72,6 +78,12 @@ //expect(instance).to.be(); }); + it('should have the property _protected (base name: "protected")', function() { + // uncomment below and update the code to test the property _protected + //var instance = new HyperstackApi.AttachVolumeFields(); + //expect(instance).to.be(); + }); + it('should have the property status (base name: "status")', function() { // uncomment below and update the code to test the property status //var instance = new HyperstackApi.AttachVolumeFields(); diff --git a/test/model/AttachVolumesPayload.spec.js b/test/model/AttachVolumesPayload.spec.js index b0e96717..168fd43c 100644 --- a/test/model/AttachVolumesPayload.spec.js +++ b/test/model/AttachVolumesPayload.spec.js @@ -54,6 +54,12 @@ //expect(instance).to.be.a(HyperstackApi.AttachVolumesPayload); }); + it('should have the property _protected (base name: "protected")', function() { + // uncomment below and update the code to test the property _protected + //var instance = new HyperstackApi.AttachVolumesPayload(); + //expect(instance).to.be(); + }); + it('should have the property volumeIds (base name: "volume_ids")', function() { // uncomment below and update the code to test the property volumeIds //var instance = new HyperstackApi.AttachVolumesPayload(); diff --git a/test/model/AttachmentsFieldsForVolume.spec.js b/test/model/AttachmentsFieldsForVolume.spec.js new file mode 100644 index 00000000..fb6db872 --- /dev/null +++ b/test/model/AttachmentsFieldsForVolume.spec.js @@ -0,0 +1,89 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.AttachmentsFieldsForVolume(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AttachmentsFieldsForVolume', function() { + it('should create an instance of AttachmentsFieldsForVolume', function() { + // uncomment below and update the code to test AttachmentsFieldsForVolume + //var instance = new HyperstackApi.AttachmentsFieldsForVolume(); + //expect(instance).to.be.a(HyperstackApi.AttachmentsFieldsForVolume); + }); + + it('should have the property device (base name: "device")', function() { + // uncomment below and update the code to test the property device + //var instance = new HyperstackApi.AttachmentsFieldsForVolume(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.AttachmentsFieldsForVolume(); + //expect(instance).to.be(); + }); + + it('should have the property instanceId (base name: "instance_id")', function() { + // uncomment below and update the code to test the property instanceId + //var instance = new HyperstackApi.AttachmentsFieldsForVolume(); + //expect(instance).to.be(); + }); + + it('should have the property _protected (base name: "protected")', function() { + // uncomment below and update the code to test the property _protected + //var instance = new HyperstackApi.AttachmentsFieldsForVolume(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.AttachmentsFieldsForVolume(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Attributes.spec.js b/test/model/Attributes.spec.js new file mode 100644 index 00000000..29b2ffbc --- /dev/null +++ b/test/model/Attributes.spec.js @@ -0,0 +1,95 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.Attributes(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Attributes', function() { + it('should create an instance of Attributes', function() { + // uncomment below and update the code to test Attributes + //var instance = new HyperstackApi.Attributes(); + //expect(instance).to.be.a(HyperstackApi.Attributes); + }); + + it('should have the property baseModel (base name: "base_model")', function() { + // uncomment below and update the code to test the property baseModel + //var instance = new HyperstackApi.Attributes(); + //expect(instance).to.be(); + }); + + it('should have the property baseModelDisplayName (base name: "base_model_display_name")', function() { + // uncomment below and update the code to test the property baseModelDisplayName + //var instance = new HyperstackApi.Attributes(); + //expect(instance).to.be(); + }); + + it('should have the property infrahubId (base name: "infrahub_id")', function() { + // uncomment below and update the code to test the property infrahubId + //var instance = new HyperstackApi.Attributes(); + //expect(instance).to.be(); + }); + + it('should have the property loraAdapter (base name: "lora_adapter")', function() { + // uncomment below and update the code to test the property loraAdapter + //var instance = new HyperstackApi.Attributes(); + //expect(instance).to.be(); + }); + + it('should have the property resourceName (base name: "resource_name")', function() { + // uncomment below and update the code to test the property resourceName + //var instance = new HyperstackApi.Attributes(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.Attributes(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AuthGetTokenResponseModel.spec.js b/test/model/AuthGetTokenResponseModel.spec.js index 555028d3..e0916365 100644 --- a/test/model/AuthGetTokenResponseModel.spec.js +++ b/test/model/AuthGetTokenResponseModel.spec.js @@ -54,12 +54,6 @@ //expect(instance).to.be.a(HyperstackApi.AuthGetTokenResponseModel); }); - it('should have the property firstLogin (base name: "first_login")', function() { - // uncomment below and update the code to test the property firstLogin - //var instance = new HyperstackApi.AuthGetTokenResponseModel(); - //expect(instance).to.be(); - }); - it('should have the property message (base name: "message")', function() { // uncomment below and update the code to test the property message //var instance = new HyperstackApi.AuthGetTokenResponseModel(); diff --git a/test/model/AuthRequestLoginFields.spec.js b/test/model/AuthRequestLoginFields.spec.js deleted file mode 100644 index dc3047a3..00000000 --- a/test/model/AuthRequestLoginFields.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.AuthRequestLoginFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AuthRequestLoginFields', function() { - it('should create an instance of AuthRequestLoginFields', function() { - // uncomment below and update the code to test AuthRequestLoginFields - //var instance = new HyperstackApi.AuthRequestLoginFields(); - //expect(instance).to.be.a(HyperstackApi.AuthRequestLoginFields); - }); - - it('should have the property authorizationUrl (base name: "authorization_url")', function() { - // uncomment below and update the code to test the property authorizationUrl - //var instance = new HyperstackApi.AuthRequestLoginFields(); - //expect(instance).to.be(); - }); - - it('should have the property sessionId (base name: "session_id")', function() { - // uncomment below and update the code to test the property sessionId - //var instance = new HyperstackApi.AuthRequestLoginFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AuthRequestLoginResponseModel.spec.js b/test/model/AuthRequestLoginResponseModel.spec.js deleted file mode 100644 index 04a4c296..00000000 --- a/test/model/AuthRequestLoginResponseModel.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.AuthRequestLoginResponseModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AuthRequestLoginResponseModel', function() { - it('should create an instance of AuthRequestLoginResponseModel', function() { - // uncomment below and update the code to test AuthRequestLoginResponseModel - //var instance = new HyperstackApi.AuthRequestLoginResponseModel(); - //expect(instance).to.be.a(HyperstackApi.AuthRequestLoginResponseModel); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new HyperstackApi.AuthRequestLoginResponseModel(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.AuthRequestLoginResponseModel(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.AuthRequestLoginResponseModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/BetaAccessRequestFields.spec.js b/test/model/BetaAccessRequestFields.spec.js new file mode 100644 index 00000000..37976757 --- /dev/null +++ b/test/model/BetaAccessRequestFields.spec.js @@ -0,0 +1,95 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.BetaAccessRequestFields(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BetaAccessRequestFields', function() { + it('should create an instance of BetaAccessRequestFields', function() { + // uncomment below and update the code to test BetaAccessRequestFields + //var instance = new HyperstackApi.BetaAccessRequestFields(); + //expect(instance).to.be.a(HyperstackApi.BetaAccessRequestFields); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new HyperstackApi.BetaAccessRequestFields(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.BetaAccessRequestFields(); + //expect(instance).to.be(); + }); + + it('should have the property programId (base name: "program_id")', function() { + // uncomment below and update the code to test the property programId + //var instance = new HyperstackApi.BetaAccessRequestFields(); + //expect(instance).to.be(); + }); + + it('should have the property programName (base name: "program_name")', function() { + // uncomment below and update the code to test the property programName + //var instance = new HyperstackApi.BetaAccessRequestFields(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.BetaAccessRequestFields(); + //expect(instance).to.be(); + }); + + it('should have the property userId (base name: "user_id")', function() { + // uncomment below and update the code to test the property userId + //var instance = new HyperstackApi.BetaAccessRequestFields(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BetaAccessRequestPayload.spec.js b/test/model/BetaAccessRequestPayload.spec.js new file mode 100644 index 00000000..220b7462 --- /dev/null +++ b/test/model/BetaAccessRequestPayload.spec.js @@ -0,0 +1,71 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.BetaAccessRequestPayload(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BetaAccessRequestPayload', function() { + it('should create an instance of BetaAccessRequestPayload', function() { + // uncomment below and update the code to test BetaAccessRequestPayload + //var instance = new HyperstackApi.BetaAccessRequestPayload(); + //expect(instance).to.be.a(HyperstackApi.BetaAccessRequestPayload); + }); + + it('should have the property metadata (base name: "metadata")', function() { + // uncomment below and update the code to test the property metadata + //var instance = new HyperstackApi.BetaAccessRequestPayload(); + //expect(instance).to.be(); + }); + + it('should have the property program (base name: "program")', function() { + // uncomment below and update the code to test the property program + //var instance = new HyperstackApi.BetaAccessRequestPayload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BetaAccessRequestResponseModel.spec.js b/test/model/BetaAccessRequestResponseModel.spec.js new file mode 100644 index 00000000..8d4e5e2b --- /dev/null +++ b/test/model/BetaAccessRequestResponseModel.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.BetaAccessRequestResponseModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BetaAccessRequestResponseModel', function() { + it('should create an instance of BetaAccessRequestResponseModel', function() { + // uncomment below and update the code to test BetaAccessRequestResponseModel + //var instance = new HyperstackApi.BetaAccessRequestResponseModel(); + //expect(instance).to.be.a(HyperstackApi.BetaAccessRequestResponseModel); + }); + + it('should have the property betaAccessRequest (base name: "beta_access_request")', function() { + // uncomment below and update the code to test the property betaAccessRequest + //var instance = new HyperstackApi.BetaAccessRequestResponseModel(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.BetaAccessRequestResponseModel(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.BetaAccessRequestResponseModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BetaAccessStatusItem.spec.js b/test/model/BetaAccessStatusItem.spec.js new file mode 100644 index 00000000..b0e099d6 --- /dev/null +++ b/test/model/BetaAccessStatusItem.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.BetaAccessStatusItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BetaAccessStatusItem', function() { + it('should create an instance of BetaAccessStatusItem', function() { + // uncomment below and update the code to test BetaAccessStatusItem + //var instance = new HyperstackApi.BetaAccessStatusItem(); + //expect(instance).to.be.a(HyperstackApi.BetaAccessStatusItem); + }); + + it('should have the property programName (base name: "program_name")', function() { + // uncomment below and update the code to test the property programName + //var instance = new HyperstackApi.BetaAccessStatusItem(); + //expect(instance).to.be(); + }); + + it('should have the property requestDate (base name: "request_date")', function() { + // uncomment below and update the code to test the property requestDate + //var instance = new HyperstackApi.BetaAccessStatusItem(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.BetaAccessStatusItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BetaAccessStatusResponseModel.spec.js b/test/model/BetaAccessStatusResponseModel.spec.js new file mode 100644 index 00000000..11367829 --- /dev/null +++ b/test/model/BetaAccessStatusResponseModel.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.BetaAccessStatusResponseModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BetaAccessStatusResponseModel', function() { + it('should create an instance of BetaAccessStatusResponseModel', function() { + // uncomment below and update the code to test BetaAccessStatusResponseModel + //var instance = new HyperstackApi.BetaAccessStatusResponseModel(); + //expect(instance).to.be.a(HyperstackApi.BetaAccessStatusResponseModel); + }); + + it('should have the property betaAccessRequests (base name: "beta_access_requests")', function() { + // uncomment below and update the code to test the property betaAccessRequests + //var instance = new HyperstackApi.BetaAccessStatusResponseModel(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.BetaAccessStatusResponseModel(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.BetaAccessStatusResponseModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BillingHistory.spec.js b/test/model/BillingHistory.spec.js new file mode 100644 index 00000000..414b69bb --- /dev/null +++ b/test/model/BillingHistory.spec.js @@ -0,0 +1,71 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.BillingHistory(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BillingHistory', function() { + it('should create an instance of BillingHistory', function() { + // uncomment below and update the code to test BillingHistory + //var instance = new HyperstackApi.BillingHistory(); + //expect(instance).to.be.a(HyperstackApi.BillingHistory); + }); + + it('should have the property attributes (base name: "attributes")', function() { + // uncomment below and update the code to test the property attributes + //var instance = new HyperstackApi.BillingHistory(); + //expect(instance).to.be(); + }); + + it('should have the property metrics (base name: "metrics")', function() { + // uncomment below and update the code to test the property metrics + //var instance = new HyperstackApi.BillingHistory(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BillingHistoryDataSynthesisDetails.spec.js b/test/model/BillingHistoryDataSynthesisDetails.spec.js new file mode 100644 index 00000000..bd68394f --- /dev/null +++ b/test/model/BillingHistoryDataSynthesisDetails.spec.js @@ -0,0 +1,83 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.BillingHistoryDataSynthesisDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BillingHistoryDataSynthesisDetails', function() { + it('should create an instance of BillingHistoryDataSynthesisDetails', function() { + // uncomment below and update the code to test BillingHistoryDataSynthesisDetails + //var instance = new HyperstackApi.BillingHistoryDataSynthesisDetails(); + //expect(instance).to.be.a(HyperstackApi.BillingHistoryDataSynthesisDetails); + }); + + it('should have the property billingHistory (base name: "billing_history")', function() { + // uncomment below and update the code to test the property billingHistory + //var instance = new HyperstackApi.BillingHistoryDataSynthesisDetails(); + //expect(instance).to.be(); + }); + + it('should have the property orgId (base name: "org_id")', function() { + // uncomment below and update the code to test the property orgId + //var instance = new HyperstackApi.BillingHistoryDataSynthesisDetails(); + //expect(instance).to.be(); + }); + + it('should have the property pagination (base name: "pagination")', function() { + // uncomment below and update the code to test the property pagination + //var instance = new HyperstackApi.BillingHistoryDataSynthesisDetails(); + //expect(instance).to.be(); + }); + + it('should have the property totalCount (base name: "total_count")', function() { + // uncomment below and update the code to test the property totalCount + //var instance = new HyperstackApi.BillingHistoryDataSynthesisDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BillingHistoryFineTuning.spec.js b/test/model/BillingHistoryFineTuning.spec.js new file mode 100644 index 00000000..5361a0f7 --- /dev/null +++ b/test/model/BillingHistoryFineTuning.spec.js @@ -0,0 +1,83 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.BillingHistoryFineTuning(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BillingHistoryFineTuning', function() { + it('should create an instance of BillingHistoryFineTuning', function() { + // uncomment below and update the code to test BillingHistoryFineTuning + //var instance = new HyperstackApi.BillingHistoryFineTuning(); + //expect(instance).to.be.a(HyperstackApi.BillingHistoryFineTuning); + }); + + it('should have the property billingHistory (base name: "billing_history")', function() { + // uncomment below and update the code to test the property billingHistory + //var instance = new HyperstackApi.BillingHistoryFineTuning(); + //expect(instance).to.be(); + }); + + it('should have the property orgId (base name: "org_id")', function() { + // uncomment below and update the code to test the property orgId + //var instance = new HyperstackApi.BillingHistoryFineTuning(); + //expect(instance).to.be(); + }); + + it('should have the property pagination (base name: "pagination")', function() { + // uncomment below and update the code to test the property pagination + //var instance = new HyperstackApi.BillingHistoryFineTuning(); + //expect(instance).to.be(); + }); + + it('should have the property totalCount (base name: "total_count")', function() { + // uncomment below and update the code to test the property totalCount + //var instance = new HyperstackApi.BillingHistoryFineTuning(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BillingHistoryModelEvalutationDetails.spec.js b/test/model/BillingHistoryModelEvalutationDetails.spec.js new file mode 100644 index 00000000..0854f1e5 --- /dev/null +++ b/test/model/BillingHistoryModelEvalutationDetails.spec.js @@ -0,0 +1,83 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.BillingHistoryModelEvalutationDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BillingHistoryModelEvalutationDetails', function() { + it('should create an instance of BillingHistoryModelEvalutationDetails', function() { + // uncomment below and update the code to test BillingHistoryModelEvalutationDetails + //var instance = new HyperstackApi.BillingHistoryModelEvalutationDetails(); + //expect(instance).to.be.a(HyperstackApi.BillingHistoryModelEvalutationDetails); + }); + + it('should have the property billingHistory (base name: "billing_history")', function() { + // uncomment below and update the code to test the property billingHistory + //var instance = new HyperstackApi.BillingHistoryModelEvalutationDetails(); + //expect(instance).to.be(); + }); + + it('should have the property orgId (base name: "org_id")', function() { + // uncomment below and update the code to test the property orgId + //var instance = new HyperstackApi.BillingHistoryModelEvalutationDetails(); + //expect(instance).to.be(); + }); + + it('should have the property pagination (base name: "pagination")', function() { + // uncomment below and update the code to test the property pagination + //var instance = new HyperstackApi.BillingHistoryModelEvalutationDetails(); + //expect(instance).to.be(); + }); + + it('should have the property totalCount (base name: "total_count")', function() { + // uncomment below and update the code to test the property totalCount + //var instance = new HyperstackApi.BillingHistoryModelEvalutationDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BillingHistoryServerlessInference.spec.js b/test/model/BillingHistoryServerlessInference.spec.js new file mode 100644 index 00000000..73b56c71 --- /dev/null +++ b/test/model/BillingHistoryServerlessInference.spec.js @@ -0,0 +1,83 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.BillingHistoryServerlessInference(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BillingHistoryServerlessInference', function() { + it('should create an instance of BillingHistoryServerlessInference', function() { + // uncomment below and update the code to test BillingHistoryServerlessInference + //var instance = new HyperstackApi.BillingHistoryServerlessInference(); + //expect(instance).to.be.a(HyperstackApi.BillingHistoryServerlessInference); + }); + + it('should have the property billingHistory (base name: "billing_history")', function() { + // uncomment below and update the code to test the property billingHistory + //var instance = new HyperstackApi.BillingHistoryServerlessInference(); + //expect(instance).to.be(); + }); + + it('should have the property orgId (base name: "org_id")', function() { + // uncomment below and update the code to test the property orgId + //var instance = new HyperstackApi.BillingHistoryServerlessInference(); + //expect(instance).to.be(); + }); + + it('should have the property pagination (base name: "pagination")', function() { + // uncomment below and update the code to test the property pagination + //var instance = new HyperstackApi.BillingHistoryServerlessInference(); + //expect(instance).to.be(); + }); + + it('should have the property totalCount (base name: "total_count")', function() { + // uncomment below and update the code to test the property totalCount + //var instance = new HyperstackApi.BillingHistoryServerlessInference(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BillingHistoryServerlessInferenceDetails.spec.js b/test/model/BillingHistoryServerlessInferenceDetails.spec.js new file mode 100644 index 00000000..08047419 --- /dev/null +++ b/test/model/BillingHistoryServerlessInferenceDetails.spec.js @@ -0,0 +1,83 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.BillingHistoryServerlessInferenceDetails(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BillingHistoryServerlessInferenceDetails', function() { + it('should create an instance of BillingHistoryServerlessInferenceDetails', function() { + // uncomment below and update the code to test BillingHistoryServerlessInferenceDetails + //var instance = new HyperstackApi.BillingHistoryServerlessInferenceDetails(); + //expect(instance).to.be.a(HyperstackApi.BillingHistoryServerlessInferenceDetails); + }); + + it('should have the property billingHistory (base name: "billing_history")', function() { + // uncomment below and update the code to test the property billingHistory + //var instance = new HyperstackApi.BillingHistoryServerlessInferenceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property orgId (base name: "org_id")', function() { + // uncomment below and update the code to test the property orgId + //var instance = new HyperstackApi.BillingHistoryServerlessInferenceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property pagination (base name: "pagination")', function() { + // uncomment below and update the code to test the property pagination + //var instance = new HyperstackApi.BillingHistoryServerlessInferenceDetails(); + //expect(instance).to.be(); + }); + + it('should have the property totalCount (base name: "total_count")', function() { + // uncomment below and update the code to test the property totalCount + //var instance = new HyperstackApi.BillingHistoryServerlessInferenceDetails(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BillingImmuneResourcesResponse.spec.js b/test/model/BillingImmuneResourcesResponse.spec.js deleted file mode 100644 index 49e8d840..00000000 --- a/test/model/BillingImmuneResourcesResponse.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.BillingImmuneResourcesResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('BillingImmuneResourcesResponse', function() { - it('should create an instance of BillingImmuneResourcesResponse', function() { - // uncomment below and update the code to test BillingImmuneResourcesResponse - //var instance = new HyperstackApi.BillingImmuneResourcesResponse(); - //expect(instance).to.be.a(HyperstackApi.BillingImmuneResourcesResponse); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new HyperstackApi.BillingImmuneResourcesResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/BillingMetricesFields.spec.js b/test/model/BillingMetricesFields.spec.js new file mode 100644 index 00000000..ab5fdc32 --- /dev/null +++ b/test/model/BillingMetricesFields.spec.js @@ -0,0 +1,125 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.BillingMetricesFields(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BillingMetricesFields', function() { + it('should create an instance of BillingMetricesFields', function() { + // uncomment below and update the code to test BillingMetricesFields + //var instance = new HyperstackApi.BillingMetricesFields(); + //expect(instance).to.be.a(HyperstackApi.BillingMetricesFields); + }); + + it('should have the property active (base name: "active")', function() { + // uncomment below and update the code to test the property active + //var instance = new HyperstackApi.BillingMetricesFields(); + //expect(instance).to.be(); + }); + + it('should have the property billPerMinute (base name: "bill_per_minute")', function() { + // uncomment below and update the code to test the property billPerMinute + //var instance = new HyperstackApi.BillingMetricesFields(); + //expect(instance).to.be(); + }); + + it('should have the property createTime (base name: "create_time")', function() { + // uncomment below and update the code to test the property createTime + //var instance = new HyperstackApi.BillingMetricesFields(); + //expect(instance).to.be(); + }); + + it('should have the property excludeBilling (base name: "exclude_billing")', function() { + // uncomment below and update the code to test the property excludeBilling + //var instance = new HyperstackApi.BillingMetricesFields(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new HyperstackApi.BillingMetricesFields(); + //expect(instance).to.be(); + }); + + it('should have the property organizationId (base name: "organization_id")', function() { + // uncomment below and update the code to test the property organizationId + //var instance = new HyperstackApi.BillingMetricesFields(); + //expect(instance).to.be(); + }); + + it('should have the property resourceId (base name: "resource_id")', function() { + // uncomment below and update the code to test the property resourceId + //var instance = new HyperstackApi.BillingMetricesFields(); + //expect(instance).to.be(); + }); + + it('should have the property resourceType (base name: "resource_type")', function() { + // uncomment below and update the code to test the property resourceType + //var instance = new HyperstackApi.BillingMetricesFields(); + //expect(instance).to.be(); + }); + + it('should have the property terminateTime (base name: "terminate_time")', function() { + // uncomment below and update the code to test the property terminateTime + //var instance = new HyperstackApi.BillingMetricesFields(); + //expect(instance).to.be(); + }); + + it('should have the property totalBill (base name: "total_bill")', function() { + // uncomment below and update the code to test the property totalBill + //var instance = new HyperstackApi.BillingMetricesFields(); + //expect(instance).to.be(); + }); + + it('should have the property totalUpTime (base name: "total_up_time")', function() { + // uncomment below and update the code to test the property totalUpTime + //var instance = new HyperstackApi.BillingMetricesFields(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BillingMetricesResponse.spec.js b/test/model/BillingMetricesResponse.spec.js new file mode 100644 index 00000000..6c3e7068 --- /dev/null +++ b/test/model/BillingMetricesResponse.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.BillingMetricesResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BillingMetricesResponse', function() { + it('should create an instance of BillingMetricesResponse', function() { + // uncomment below and update the code to test BillingMetricesResponse + //var instance = new HyperstackApi.BillingMetricesResponse(); + //expect(instance).to.be.a(HyperstackApi.BillingMetricesResponse); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new HyperstackApi.BillingMetricesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.BillingMetricesResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.BillingMetricesResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BillingResponse.spec.js b/test/model/BillingResponse.spec.js deleted file mode 100644 index 57f848e8..00000000 --- a/test/model/BillingResponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.BillingResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('BillingResponse', function() { - it('should create an instance of BillingResponse', function() { - // uncomment below and update the code to test BillingResponse - //var instance = new HyperstackApi.BillingResponse(); - //expect(instance).to.be.a(HyperstackApi.BillingResponse); - }); - - it('should have the property calculatedBills (base name: "calculated_bills")', function() { - // uncomment below and update the code to test the property calculatedBills - //var instance = new HyperstackApi.BillingResponse(); - //expect(instance).to.be(); - }); - - it('should have the property calculationTime (base name: "calculation_time")', function() { - // uncomment below and update the code to test the property calculationTime - //var instance = new HyperstackApi.BillingResponse(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new HyperstackApi.BillingResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Billingmetricesfields.spec.js b/test/model/Billingmetricesfields.spec.js deleted file mode 100644 index 81951fb7..00000000 --- a/test/model/Billingmetricesfields.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.Billingmetricesfields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Billingmetricesfields', function() { - it('should create an instance of Billingmetricesfields', function() { - // uncomment below and update the code to test Billingmetricesfields - //var instance = new HyperstackApi.Billingmetricesfields(); - //expect(instance).to.be.a(HyperstackApi.Billingmetricesfields); - }); - - it('should have the property active (base name: "active")', function() { - // uncomment below and update the code to test the property active - //var instance = new HyperstackApi.Billingmetricesfields(); - //expect(instance).to.be(); - }); - - it('should have the property billPerMinute (base name: "bill_per_minute")', function() { - // uncomment below and update the code to test the property billPerMinute - //var instance = new HyperstackApi.Billingmetricesfields(); - //expect(instance).to.be(); - }); - - it('should have the property createTime (base name: "create_time")', function() { - // uncomment below and update the code to test the property createTime - //var instance = new HyperstackApi.Billingmetricesfields(); - //expect(instance).to.be(); - }); - - it('should have the property excludeBilling (base name: "exclude_billing")', function() { - // uncomment below and update the code to test the property excludeBilling - //var instance = new HyperstackApi.Billingmetricesfields(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.Billingmetricesfields(); - //expect(instance).to.be(); - }); - - it('should have the property organizationId (base name: "organization_id")', function() { - // uncomment below and update the code to test the property organizationId - //var instance = new HyperstackApi.Billingmetricesfields(); - //expect(instance).to.be(); - }); - - it('should have the property resourceId (base name: "resource_id")', function() { - // uncomment below and update the code to test the property resourceId - //var instance = new HyperstackApi.Billingmetricesfields(); - //expect(instance).to.be(); - }); - - it('should have the property resourceType (base name: "resource_type")', function() { - // uncomment below and update the code to test the property resourceType - //var instance = new HyperstackApi.Billingmetricesfields(); - //expect(instance).to.be(); - }); - - it('should have the property terminateTime (base name: "terminate_time")', function() { - // uncomment below and update the code to test the property terminateTime - //var instance = new HyperstackApi.Billingmetricesfields(); - //expect(instance).to.be(); - }); - - it('should have the property totalBill (base name: "total_bill")', function() { - // uncomment below and update the code to test the property totalBill - //var instance = new HyperstackApi.Billingmetricesfields(); - //expect(instance).to.be(); - }); - - it('should have the property totalUpTime (base name: "total_up_time")', function() { - // uncomment below and update the code to test the property totalUpTime - //var instance = new HyperstackApi.Billingmetricesfields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Billingmetricesresponse.spec.js b/test/model/Billingmetricesresponse.spec.js deleted file mode 100644 index d5e3602e..00000000 --- a/test/model/Billingmetricesresponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.Billingmetricesresponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Billingmetricesresponse', function() { - it('should create an instance of Billingmetricesresponse', function() { - // uncomment below and update the code to test Billingmetricesresponse - //var instance = new HyperstackApi.Billingmetricesresponse(); - //expect(instance).to.be.a(HyperstackApi.Billingmetricesresponse); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new HyperstackApi.Billingmetricesresponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.Billingmetricesresponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.Billingmetricesresponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ClusterFields.spec.js b/test/model/ClusterFields.spec.js index 416d0a74..3bf72836 100644 --- a/test/model/ClusterFields.spec.js +++ b/test/model/ClusterFields.spec.js @@ -78,6 +78,12 @@ //expect(instance).to.be(); }); + it('should have the property isReconciling (base name: "is_reconciling")', function() { + // uncomment below and update the code to test the property isReconciling + //var instance = new HyperstackApi.ClusterFields(); + //expect(instance).to.be(); + }); + it('should have the property keypairName (base name: "keypair_name")', function() { // uncomment below and update the code to test the property keypairName //var instance = new HyperstackApi.ClusterFields(); @@ -96,20 +102,26 @@ //expect(instance).to.be(); }); + it('should have the property masterFlavor (base name: "master_flavor")', function() { + // uncomment below and update the code to test the property masterFlavor + //var instance = new HyperstackApi.ClusterFields(); + //expect(instance).to.be(); + }); + it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name //var instance = new HyperstackApi.ClusterFields(); //expect(instance).to.be(); }); - it('should have the property nodeCount (base name: "node_count")', function() { - // uncomment below and update the code to test the property nodeCount + it('should have the property nodeGroups (base name: "node_groups")', function() { + // uncomment below and update the code to test the property nodeGroups //var instance = new HyperstackApi.ClusterFields(); //expect(instance).to.be(); }); - it('should have the property nodeFlavor (base name: "node_flavor")', function() { - // uncomment below and update the code to test the property nodeFlavor + it('should have the property nodes (base name: "nodes")', function() { + // uncomment below and update the code to test the property nodes //var instance = new HyperstackApi.ClusterFields(); //expect(instance).to.be(); }); diff --git a/test/model/ClusterFlavorFields.spec.js b/test/model/ClusterFlavorFields.spec.js new file mode 100644 index 00000000..d0434d0c --- /dev/null +++ b/test/model/ClusterFlavorFields.spec.js @@ -0,0 +1,119 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ClusterFlavorFields(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClusterFlavorFields', function() { + it('should create an instance of ClusterFlavorFields', function() { + // uncomment below and update the code to test ClusterFlavorFields + //var instance = new HyperstackApi.ClusterFlavorFields(); + //expect(instance).to.be.a(HyperstackApi.ClusterFlavorFields); + }); + + it('should have the property cpu (base name: "cpu")', function() { + // uncomment below and update the code to test the property cpu + //var instance = new HyperstackApi.ClusterFlavorFields(); + //expect(instance).to.be(); + }); + + it('should have the property disk (base name: "disk")', function() { + // uncomment below and update the code to test the property disk + //var instance = new HyperstackApi.ClusterFlavorFields(); + //expect(instance).to.be(); + }); + + it('should have the property ephemeral (base name: "ephemeral")', function() { + // uncomment below and update the code to test the property ephemeral + //var instance = new HyperstackApi.ClusterFlavorFields(); + //expect(instance).to.be(); + }); + + it('should have the property features (base name: "features")', function() { + // uncomment below and update the code to test the property features + //var instance = new HyperstackApi.ClusterFlavorFields(); + //expect(instance).to.be(); + }); + + it('should have the property gpu (base name: "gpu")', function() { + // uncomment below and update the code to test the property gpu + //var instance = new HyperstackApi.ClusterFlavorFields(); + //expect(instance).to.be(); + }); + + it('should have the property gpuCount (base name: "gpu_count")', function() { + // uncomment below and update the code to test the property gpuCount + //var instance = new HyperstackApi.ClusterFlavorFields(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.ClusterFlavorFields(); + //expect(instance).to.be(); + }); + + it('should have the property labels (base name: "labels")', function() { + // uncomment below and update the code to test the property labels + //var instance = new HyperstackApi.ClusterFlavorFields(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new HyperstackApi.ClusterFlavorFields(); + //expect(instance).to.be(); + }); + + it('should have the property ram (base name: "ram")', function() { + // uncomment below and update the code to test the property ram + //var instance = new HyperstackApi.ClusterFlavorFields(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ClusterNodeFields.spec.js b/test/model/ClusterNodeFields.spec.js new file mode 100644 index 00000000..e43ce5b3 --- /dev/null +++ b/test/model/ClusterNodeFields.spec.js @@ -0,0 +1,125 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ClusterNodeFields(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClusterNodeFields', function() { + it('should create an instance of ClusterNodeFields', function() { + // uncomment below and update the code to test ClusterNodeFields + //var instance = new HyperstackApi.ClusterNodeFields(); + //expect(instance).to.be.a(HyperstackApi.ClusterNodeFields); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new HyperstackApi.ClusterNodeFields(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.ClusterNodeFields(); + //expect(instance).to.be(); + }); + + it('should have the property instance (base name: "instance")', function() { + // uncomment below and update the code to test the property instance + //var instance = new HyperstackApi.ClusterNodeFields(); + //expect(instance).to.be(); + }); + + it('should have the property isBastion (base name: "is_bastion")', function() { + // uncomment below and update the code to test the property isBastion + //var instance = new HyperstackApi.ClusterNodeFields(); + //expect(instance).to.be(); + }); + + it('should have the property nodeGroupId (base name: "node_group_id")', function() { + // uncomment below and update the code to test the property nodeGroupId + //var instance = new HyperstackApi.ClusterNodeFields(); + //expect(instance).to.be(); + }); + + it('should have the property nodeGroupName (base name: "node_group_name")', function() { + // uncomment below and update the code to test the property nodeGroupName + //var instance = new HyperstackApi.ClusterNodeFields(); + //expect(instance).to.be(); + }); + + it('should have the property requiresPublicIp (base name: "requires_public_ip")', function() { + // uncomment below and update the code to test the property requiresPublicIp + //var instance = new HyperstackApi.ClusterNodeFields(); + //expect(instance).to.be(); + }); + + it('should have the property role (base name: "role")', function() { + // uncomment below and update the code to test the property role + //var instance = new HyperstackApi.ClusterNodeFields(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ClusterNodeFields(); + //expect(instance).to.be(); + }); + + it('should have the property statusReason (base name: "status_reason")', function() { + // uncomment below and update the code to test the property statusReason + //var instance = new HyperstackApi.ClusterNodeFields(); + //expect(instance).to.be(); + }); + + it('should have the property updatedAt (base name: "updated_at")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new HyperstackApi.ClusterNodeFields(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ClusterNodeGroupFields.spec.js b/test/model/ClusterNodeGroupFields.spec.js new file mode 100644 index 00000000..cc5bc4e7 --- /dev/null +++ b/test/model/ClusterNodeGroupFields.spec.js @@ -0,0 +1,125 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ClusterNodeGroupFields(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClusterNodeGroupFields', function() { + it('should create an instance of ClusterNodeGroupFields', function() { + // uncomment below and update the code to test ClusterNodeGroupFields + //var instance = new HyperstackApi.ClusterNodeGroupFields(); + //expect(instance).to.be.a(HyperstackApi.ClusterNodeGroupFields); + }); + + it('should have the property count (base name: "count")', function() { + // uncomment below and update the code to test the property count + //var instance = new HyperstackApi.ClusterNodeGroupFields(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new HyperstackApi.ClusterNodeGroupFields(); + //expect(instance).to.be(); + }); + + it('should have the property firewallIds (base name: "firewall_ids")', function() { + // uncomment below and update the code to test the property firewallIds + //var instance = new HyperstackApi.ClusterNodeGroupFields(); + //expect(instance).to.be(); + }); + + it('should have the property firewalls (base name: "firewalls")', function() { + // uncomment below and update the code to test the property firewalls + //var instance = new HyperstackApi.ClusterNodeGroupFields(); + //expect(instance).to.be(); + }); + + it('should have the property flavor (base name: "flavor")', function() { + // uncomment below and update the code to test the property flavor + //var instance = new HyperstackApi.ClusterNodeGroupFields(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.ClusterNodeGroupFields(); + //expect(instance).to.be(); + }); + + it('should have the property maxCount (base name: "max_count")', function() { + // uncomment below and update the code to test the property maxCount + //var instance = new HyperstackApi.ClusterNodeGroupFields(); + //expect(instance).to.be(); + }); + + it('should have the property minCount (base name: "min_count")', function() { + // uncomment below and update the code to test the property minCount + //var instance = new HyperstackApi.ClusterNodeGroupFields(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new HyperstackApi.ClusterNodeGroupFields(); + //expect(instance).to.be(); + }); + + it('should have the property role (base name: "role")', function() { + // uncomment below and update the code to test the property role + //var instance = new HyperstackApi.ClusterNodeGroupFields(); + //expect(instance).to.be(); + }); + + it('should have the property updatedAt (base name: "updated_at")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new HyperstackApi.ClusterNodeGroupFields(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ClusterNodeGroupFirewallFields.spec.js b/test/model/ClusterNodeGroupFirewallFields.spec.js new file mode 100644 index 00000000..17cce12c --- /dev/null +++ b/test/model/ClusterNodeGroupFirewallFields.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ClusterNodeGroupFirewallFields(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClusterNodeGroupFirewallFields', function() { + it('should create an instance of ClusterNodeGroupFirewallFields', function() { + // uncomment below and update the code to test ClusterNodeGroupFirewallFields + //var instance = new HyperstackApi.ClusterNodeGroupFirewallFields(); + //expect(instance).to.be.a(HyperstackApi.ClusterNodeGroupFirewallFields); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.ClusterNodeGroupFirewallFields(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new HyperstackApi.ClusterNodeGroupFirewallFields(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ClusterNodeGroupFirewallFields(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ClusterNodeGroupsCreateResponse.spec.js b/test/model/ClusterNodeGroupsCreateResponse.spec.js new file mode 100644 index 00000000..cfe8e546 --- /dev/null +++ b/test/model/ClusterNodeGroupsCreateResponse.spec.js @@ -0,0 +1,83 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ClusterNodeGroupsCreateResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClusterNodeGroupsCreateResponse', function() { + it('should create an instance of ClusterNodeGroupsCreateResponse', function() { + // uncomment below and update the code to test ClusterNodeGroupsCreateResponse + //var instance = new HyperstackApi.ClusterNodeGroupsCreateResponse(); + //expect(instance).to.be.a(HyperstackApi.ClusterNodeGroupsCreateResponse); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.ClusterNodeGroupsCreateResponse(); + //expect(instance).to.be(); + }); + + it('should have the property nodeGroup (base name: "node_group")', function() { + // uncomment below and update the code to test the property nodeGroup + //var instance = new HyperstackApi.ClusterNodeGroupsCreateResponse(); + //expect(instance).to.be(); + }); + + it('should have the property nodes (base name: "nodes")', function() { + // uncomment below and update the code to test the property nodes + //var instance = new HyperstackApi.ClusterNodeGroupsCreateResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ClusterNodeGroupsCreateResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ClusterNodeGroupsGetResponse.spec.js b/test/model/ClusterNodeGroupsGetResponse.spec.js new file mode 100644 index 00000000..10ac3b6c --- /dev/null +++ b/test/model/ClusterNodeGroupsGetResponse.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ClusterNodeGroupsGetResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClusterNodeGroupsGetResponse', function() { + it('should create an instance of ClusterNodeGroupsGetResponse', function() { + // uncomment below and update the code to test ClusterNodeGroupsGetResponse + //var instance = new HyperstackApi.ClusterNodeGroupsGetResponse(); + //expect(instance).to.be.a(HyperstackApi.ClusterNodeGroupsGetResponse); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.ClusterNodeGroupsGetResponse(); + //expect(instance).to.be(); + }); + + it('should have the property nodeGroup (base name: "node_group")', function() { + // uncomment below and update the code to test the property nodeGroup + //var instance = new HyperstackApi.ClusterNodeGroupsGetResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ClusterNodeGroupsGetResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ClusterNodeGroupsListResponse.spec.js b/test/model/ClusterNodeGroupsListResponse.spec.js new file mode 100644 index 00000000..4c2d31f6 --- /dev/null +++ b/test/model/ClusterNodeGroupsListResponse.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ClusterNodeGroupsListResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClusterNodeGroupsListResponse', function() { + it('should create an instance of ClusterNodeGroupsListResponse', function() { + // uncomment below and update the code to test ClusterNodeGroupsListResponse + //var instance = new HyperstackApi.ClusterNodeGroupsListResponse(); + //expect(instance).to.be.a(HyperstackApi.ClusterNodeGroupsListResponse); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.ClusterNodeGroupsListResponse(); + //expect(instance).to.be(); + }); + + it('should have the property nodeGroups (base name: "node_groups")', function() { + // uncomment below and update the code to test the property nodeGroups + //var instance = new HyperstackApi.ClusterNodeGroupsListResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ClusterNodeGroupsListResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ClusterNodeInstanceFields.spec.js b/test/model/ClusterNodeInstanceFields.spec.js new file mode 100644 index 00000000..ca59dce9 --- /dev/null +++ b/test/model/ClusterNodeInstanceFields.spec.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ClusterNodeInstanceFields(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClusterNodeInstanceFields', function() { + it('should create an instance of ClusterNodeInstanceFields', function() { + // uncomment below and update the code to test ClusterNodeInstanceFields + //var instance = new HyperstackApi.ClusterNodeInstanceFields(); + //expect(instance).to.be.a(HyperstackApi.ClusterNodeInstanceFields); + }); + + it('should have the property contractId (base name: "contract_id")', function() { + // uncomment below and update the code to test the property contractId + //var instance = new HyperstackApi.ClusterNodeInstanceFields(); + //expect(instance).to.be(); + }); + + it('should have the property fixedIp (base name: "fixed_ip")', function() { + // uncomment below and update the code to test the property fixedIp + //var instance = new HyperstackApi.ClusterNodeInstanceFields(); + //expect(instance).to.be(); + }); + + it('should have the property floatingIp (base name: "floating_ip")', function() { + // uncomment below and update the code to test the property floatingIp + //var instance = new HyperstackApi.ClusterNodeInstanceFields(); + //expect(instance).to.be(); + }); + + it('should have the property floatingIpStatus (base name: "floating_ip_status")', function() { + // uncomment below and update the code to test the property floatingIpStatus + //var instance = new HyperstackApi.ClusterNodeInstanceFields(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.ClusterNodeInstanceFields(); + //expect(instance).to.be(); + }); + + it('should have the property imageId (base name: "image_id")', function() { + // uncomment below and update the code to test the property imageId + //var instance = new HyperstackApi.ClusterNodeInstanceFields(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new HyperstackApi.ClusterNodeInstanceFields(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ClusterNodeInstanceFields(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ClusterNodesListResponse.spec.js b/test/model/ClusterNodesListResponse.spec.js new file mode 100644 index 00000000..c83cbbbe --- /dev/null +++ b/test/model/ClusterNodesListResponse.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ClusterNodesListResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClusterNodesListResponse', function() { + it('should create an instance of ClusterNodesListResponse', function() { + // uncomment below and update the code to test ClusterNodesListResponse + //var instance = new HyperstackApi.ClusterNodesListResponse(); + //expect(instance).to.be.a(HyperstackApi.ClusterNodesListResponse); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.ClusterNodesListResponse(); + //expect(instance).to.be(); + }); + + it('should have the property nodes (base name: "nodes")', function() { + // uncomment below and update the code to test the property nodes + //var instance = new HyperstackApi.ClusterNodesListResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ClusterNodesListResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ClusterVersion.spec.js b/test/model/ClusterVersion.spec.js new file mode 100644 index 00000000..b18fbf80 --- /dev/null +++ b/test/model/ClusterVersion.spec.js @@ -0,0 +1,95 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ClusterVersion(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClusterVersion', function() { + it('should create an instance of ClusterVersion', function() { + // uncomment below and update the code to test ClusterVersion + //var instance = new HyperstackApi.ClusterVersion(); + //expect(instance).to.be.a(HyperstackApi.ClusterVersion); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new HyperstackApi.ClusterVersion(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.ClusterVersion(); + //expect(instance).to.be(); + }); + + it('should have the property image (base name: "image")', function() { + // uncomment below and update the code to test the property image + //var instance = new HyperstackApi.ClusterVersion(); + //expect(instance).to.be(); + }); + + it('should have the property region (base name: "region")', function() { + // uncomment below and update the code to test the property region + //var instance = new HyperstackApi.ClusterVersion(); + //expect(instance).to.be(); + }); + + it('should have the property updatedAt (base name: "updated_at")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new HyperstackApi.ClusterVersion(); + //expect(instance).to.be(); + }); + + it('should have the property version (base name: "version")', function() { + // uncomment below and update the code to test the property version + //var instance = new HyperstackApi.ClusterVersion(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Colors.spec.js b/test/model/Colors.spec.js new file mode 100644 index 00000000..e067fbbf --- /dev/null +++ b/test/model/Colors.spec.js @@ -0,0 +1,71 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.Colors(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Colors', function() { + it('should create an instance of Colors', function() { + // uncomment below and update the code to test Colors + //var instance = new HyperstackApi.Colors(); + //expect(instance).to.be.a(HyperstackApi.Colors); + }); + + it('should have the property primary (base name: "primary")', function() { + // uncomment below and update the code to test the property primary + //var instance = new HyperstackApi.Colors(); + //expect(instance).to.be(); + }); + + it('should have the property secondary (base name: "secondary")', function() { + // uncomment below and update the code to test the property secondary + //var instance = new HyperstackApi.Colors(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CompatibleFlavor.spec.js b/test/model/CompatibleFlavor.spec.js new file mode 100644 index 00000000..63ec6850 --- /dev/null +++ b/test/model/CompatibleFlavor.spec.js @@ -0,0 +1,89 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.CompatibleFlavor(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CompatibleFlavor', function() { + it('should create an instance of CompatibleFlavor', function() { + // uncomment below and update the code to test CompatibleFlavor + //var instance = new HyperstackApi.CompatibleFlavor(); + //expect(instance).to.be.a(HyperstackApi.CompatibleFlavor); + }); + + it('should have the property constraints (base name: "constraints")', function() { + // uncomment below and update the code to test the property constraints + //var instance = new HyperstackApi.CompatibleFlavor(); + //expect(instance).to.be(); + }); + + it('should have the property flavorId (base name: "flavor_id")', function() { + // uncomment below and update the code to test the property flavorId + //var instance = new HyperstackApi.CompatibleFlavor(); + //expect(instance).to.be(); + }); + + it('should have the property flavorName (base name: "flavor_name")', function() { + // uncomment below and update the code to test the property flavorName + //var instance = new HyperstackApi.CompatibleFlavor(); + //expect(instance).to.be(); + }); + + it('should have the property linkType (base name: "link_type")', function() { + // uncomment below and update the code to test the property linkType + //var instance = new HyperstackApi.CompatibleFlavor(); + //expect(instance).to.be(); + }); + + it('should have the property reason (base name: "reason")', function() { + // uncomment below and update the code to test the property reason + //var instance = new HyperstackApi.CompatibleFlavor(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ContractBillingHistory.spec.js b/test/model/ContractBillingHistory.spec.js deleted file mode 100644 index ef62c3cd..00000000 --- a/test/model/ContractBillingHistory.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.ContractBillingHistory(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ContractBillingHistory', function() { - it('should create an instance of ContractBillingHistory', function() { - // uncomment below and update the code to test ContractBillingHistory - //var instance = new HyperstackApi.ContractBillingHistory(); - //expect(instance).to.be.a(HyperstackApi.ContractBillingHistory); - }); - - it('should have the property attributes (base name: "attributes")', function() { - // uncomment below and update the code to test the property attributes - //var instance = new HyperstackApi.ContractBillingHistory(); - //expect(instance).to.be(); - }); - - it('should have the property metrics (base name: "metrics")', function() { - // uncomment below and update the code to test the property metrics - //var instance = new HyperstackApi.ContractBillingHistory(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ContractBillingHistoryResponseAttributes.spec.js b/test/model/ContractBillingHistoryResponseAttributes.spec.js deleted file mode 100644 index 125f2b8c..00000000 --- a/test/model/ContractBillingHistoryResponseAttributes.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.ContractBillingHistoryResponseAttributes(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ContractBillingHistoryResponseAttributes', function() { - it('should create an instance of ContractBillingHistoryResponseAttributes', function() { - // uncomment below and update the code to test ContractBillingHistoryResponseAttributes - //var instance = new HyperstackApi.ContractBillingHistoryResponseAttributes(); - //expect(instance).to.be.a(HyperstackApi.ContractBillingHistoryResponseAttributes); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new HyperstackApi.ContractBillingHistoryResponseAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property endDate (base name: "end_date")', function() { - // uncomment below and update the code to test the property endDate - //var instance = new HyperstackApi.ContractBillingHistoryResponseAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property gpuCount (base name: "gpu_count")', function() { - // uncomment below and update the code to test the property gpuCount - //var instance = new HyperstackApi.ContractBillingHistoryResponseAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property gpuName (base name: "gpu_name")', function() { - // uncomment below and update the code to test the property gpuName - //var instance = new HyperstackApi.ContractBillingHistoryResponseAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.ContractBillingHistoryResponseAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property infrahubId (base name: "infrahub_id")', function() { - // uncomment below and update the code to test the property infrahubId - //var instance = new HyperstackApi.ContractBillingHistoryResponseAttributes(); - //expect(instance).to.be(); - }); - - it('should have the property pricePerHour (base name: "price_per_hour")', function() { - // uncomment below and update the code to test the property pricePerHour - //var instance = new HyperstackApi.ContractBillingHistoryResponseAttributes(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ContractBillingHistoryResponseModel.spec.js b/test/model/ContractBillingHistoryResponseModel.spec.js deleted file mode 100644 index f604cc09..00000000 --- a/test/model/ContractBillingHistoryResponseModel.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.ContractBillingHistoryResponseModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ContractBillingHistoryResponseModel', function() { - it('should create an instance of ContractBillingHistoryResponseModel', function() { - // uncomment below and update the code to test ContractBillingHistoryResponseModel - //var instance = new HyperstackApi.ContractBillingHistoryResponseModel(); - //expect(instance).to.be.a(HyperstackApi.ContractBillingHistoryResponseModel); - }); - - it('should have the property billingHistoryContract (base name: "billing_history_contract")', function() { - // uncomment below and update the code to test the property billingHistoryContract - //var instance = new HyperstackApi.ContractBillingHistoryResponseModel(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.ContractBillingHistoryResponseModel(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.ContractBillingHistoryResponseModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ContractChangePayload.spec.js b/test/model/ContractChangePayload.spec.js deleted file mode 100644 index 015189d2..00000000 --- a/test/model/ContractChangePayload.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.ContractChangePayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ContractChangePayload', function() { - it('should create an instance of ContractChangePayload', function() { - // uncomment below and update the code to test ContractChangePayload - //var instance = new HyperstackApi.ContractChangePayload(); - //expect(instance).to.be.a(HyperstackApi.ContractChangePayload); - }); - - it('should have the property changes (base name: "changes")', function() { - // uncomment below and update the code to test the property changes - //var instance = new HyperstackApi.ContractChangePayload(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.ContractChangePayload(); - //expect(instance).to.be(); - }); - - it('should have the property orgId (base name: "org_id")', function() { - // uncomment below and update the code to test the property orgId - //var instance = new HyperstackApi.ContractChangePayload(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new HyperstackApi.ContractChangePayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ContractDiscountPlanFields.spec.js b/test/model/ContractDiscountPlanFields.spec.js index dee638e6..978b3df7 100644 --- a/test/model/ContractDiscountPlanFields.spec.js +++ b/test/model/ContractDiscountPlanFields.spec.js @@ -90,6 +90,12 @@ //expect(instance).to.be(); }); + it('should have the property remainingCount (base name: "remaining_count")', function() { + // uncomment below and update the code to test the property remainingCount + //var instance = new HyperstackApi.ContractDiscountPlanFields(); + //expect(instance).to.be(); + }); + it('should have the property resourceCount (base name: "resource_count")', function() { // uncomment below and update the code to test the property resourceCount //var instance = new HyperstackApi.ContractDiscountPlanFields(); diff --git a/test/model/ContractEligibleInstanceFields.spec.js b/test/model/ContractEligibleInstanceFields.spec.js deleted file mode 100644 index e46bd754..00000000 --- a/test/model/ContractEligibleInstanceFields.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.ContractEligibleInstanceFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ContractEligibleInstanceFields', function() { - it('should create an instance of ContractEligibleInstanceFields', function() { - // uncomment below and update the code to test ContractEligibleInstanceFields - //var instance = new HyperstackApi.ContractEligibleInstanceFields(); - //expect(instance).to.be.a(HyperstackApi.ContractEligibleInstanceFields); - }); - - it('should have the property contractId (base name: "contract_id")', function() { - // uncomment below and update the code to test the property contractId - //var instance = new HyperstackApi.ContractEligibleInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property host (base name: "host")', function() { - // uncomment below and update the code to test the property host - //var instance = new HyperstackApi.ContractEligibleInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.ContractEligibleInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.ContractEligibleInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property openstackId (base name: "openstack_id")', function() { - // uncomment below and update the code to test the property openstackId - //var instance = new HyperstackApi.ContractEligibleInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property publicIp (base name: "public_ip")', function() { - // uncomment below and update the code to test the property publicIp - //var instance = new HyperstackApi.ContractEligibleInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.ContractEligibleInstanceFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ContractEligibleInstancesResponse.spec.js b/test/model/ContractEligibleInstancesResponse.spec.js deleted file mode 100644 index 69740f3c..00000000 --- a/test/model/ContractEligibleInstancesResponse.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.ContractEligibleInstancesResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ContractEligibleInstancesResponse', function() { - it('should create an instance of ContractEligibleInstancesResponse', function() { - // uncomment below and update the code to test ContractEligibleInstancesResponse - //var instance = new HyperstackApi.ContractEligibleInstancesResponse(); - //expect(instance).to.be.a(HyperstackApi.ContractEligibleInstancesResponse); - }); - - it('should have the property instanceCount (base name: "instance_count")', function() { - // uncomment below and update the code to test the property instanceCount - //var instance = new HyperstackApi.ContractEligibleInstancesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property instances (base name: "instances")', function() { - // uncomment below and update the code to test the property instances - //var instance = new HyperstackApi.ContractEligibleInstancesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.ContractEligibleInstancesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.ContractEligibleInstancesResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ContractEventCreateModel.spec.js b/test/model/ContractEventCreateModel.spec.js deleted file mode 100644 index 4fa8096f..00000000 --- a/test/model/ContractEventCreateModel.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.ContractEventCreateModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ContractEventCreateModel', function() { - it('should create an instance of ContractEventCreateModel', function() { - // uncomment below and update the code to test ContractEventCreateModel - //var instance = new HyperstackApi.ContractEventCreateModel(); - //expect(instance).to.be.a(HyperstackApi.ContractEventCreateModel); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.ContractEventCreateModel(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instance = new HyperstackApi.ContractEventCreateModel(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new HyperstackApi.ContractEventCreateModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ContractInstanceFields.spec.js b/test/model/ContractInstanceFields.spec.js index c8921d9d..457b9795 100644 --- a/test/model/ContractInstanceFields.spec.js +++ b/test/model/ContractInstanceFields.spec.js @@ -54,6 +54,12 @@ //expect(instance).to.be.a(HyperstackApi.ContractInstanceFields); }); + it('should have the property cluster (base name: "cluster")', function() { + // uncomment below and update the code to test the property cluster + //var instance = new HyperstackApi.ContractInstanceFields(); + //expect(instance).to.be(); + }); + it('should have the property createdAt (base name: "created_at")', function() { // uncomment below and update the code to test the property createdAt //var instance = new HyperstackApi.ContractInstanceFields(); diff --git a/test/model/ContractResourcePayload.spec.js b/test/model/ContractResourcePayload.spec.js deleted file mode 100644 index 839f0eb5..00000000 --- a/test/model/ContractResourcePayload.spec.js +++ /dev/null @@ -1,89 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.ContractResourcePayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ContractResourcePayload', function() { - it('should create an instance of ContractResourcePayload', function() { - // uncomment below and update the code to test ContractResourcePayload - //var instance = new HyperstackApi.ContractResourcePayload(); - //expect(instance).to.be.a(HyperstackApi.ContractResourcePayload); - }); - - it('should have the property discountAmount (base name: "discount_amount")', function() { - // uncomment below and update the code to test the property discountAmount - //var instance = new HyperstackApi.ContractResourcePayload(); - //expect(instance).to.be(); - }); - - it('should have the property discountPercent (base name: "discount_percent")', function() { - // uncomment below and update the code to test the property discountPercent - //var instance = new HyperstackApi.ContractResourcePayload(); - //expect(instance).to.be(); - }); - - it('should have the property discountType (base name: "discount_type")', function() { - // uncomment below and update the code to test the property discountType - //var instance = new HyperstackApi.ContractResourcePayload(); - //expect(instance).to.be(); - }); - - it('should have the property resourceCount (base name: "resource_count")', function() { - // uncomment below and update the code to test the property resourceCount - //var instance = new HyperstackApi.ContractResourcePayload(); - //expect(instance).to.be(); - }); - - it('should have the property resourceId (base name: "resource_id")', function() { - // uncomment below and update the code to test the property resourceId - //var instance = new HyperstackApi.ContractResourcePayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ContractlBillingHistoryResponseMetrics.spec.js b/test/model/ContractlBillingHistoryResponseMetrics.spec.js deleted file mode 100644 index b32c11dd..00000000 --- a/test/model/ContractlBillingHistoryResponseMetrics.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.ContractlBillingHistoryResponseMetrics(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ContractlBillingHistoryResponseMetrics', function() { - it('should create an instance of ContractlBillingHistoryResponseMetrics', function() { - // uncomment below and update the code to test ContractlBillingHistoryResponseMetrics - //var instance = new HyperstackApi.ContractlBillingHistoryResponseMetrics(); - //expect(instance).to.be.a(HyperstackApi.ContractlBillingHistoryResponseMetrics); - }); - - it('should have the property incurredBill (base name: "incurred_bill")', function() { - // uncomment below and update the code to test the property incurredBill - //var instance = new HyperstackApi.ContractlBillingHistoryResponseMetrics(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateClusterNodeFields.spec.js b/test/model/CreateClusterNodeFields.spec.js new file mode 100644 index 00000000..24c92e9a --- /dev/null +++ b/test/model/CreateClusterNodeFields.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.CreateClusterNodeFields(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateClusterNodeFields', function() { + it('should create an instance of CreateClusterNodeFields', function() { + // uncomment below and update the code to test CreateClusterNodeFields + //var instance = new HyperstackApi.CreateClusterNodeFields(); + //expect(instance).to.be.a(HyperstackApi.CreateClusterNodeFields); + }); + + it('should have the property count (base name: "count")', function() { + // uncomment below and update the code to test the property count + //var instance = new HyperstackApi.CreateClusterNodeFields(); + //expect(instance).to.be(); + }); + + it('should have the property nodeGroup (base name: "node_group")', function() { + // uncomment below and update the code to test the property nodeGroup + //var instance = new HyperstackApi.CreateClusterNodeFields(); + //expect(instance).to.be(); + }); + + it('should have the property role (base name: "role")', function() { + // uncomment below and update the code to test the property role + //var instance = new HyperstackApi.CreateClusterNodeFields(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateClusterNodeGroupPayload.spec.js b/test/model/CreateClusterNodeGroupPayload.spec.js new file mode 100644 index 00000000..78868eda --- /dev/null +++ b/test/model/CreateClusterNodeGroupPayload.spec.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.CreateClusterNodeGroupPayload(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateClusterNodeGroupPayload', function() { + it('should create an instance of CreateClusterNodeGroupPayload', function() { + // uncomment below and update the code to test CreateClusterNodeGroupPayload + //var instance = new HyperstackApi.CreateClusterNodeGroupPayload(); + //expect(instance).to.be.a(HyperstackApi.CreateClusterNodeGroupPayload); + }); + + it('should have the property count (base name: "count")', function() { + // uncomment below and update the code to test the property count + //var instance = new HyperstackApi.CreateClusterNodeGroupPayload(); + //expect(instance).to.be(); + }); + + it('should have the property firewallIds (base name: "firewall_ids")', function() { + // uncomment below and update the code to test the property firewallIds + //var instance = new HyperstackApi.CreateClusterNodeGroupPayload(); + //expect(instance).to.be(); + }); + + it('should have the property flavorName (base name: "flavor_name")', function() { + // uncomment below and update the code to test the property flavorName + //var instance = new HyperstackApi.CreateClusterNodeGroupPayload(); + //expect(instance).to.be(); + }); + + it('should have the property maxCount (base name: "max_count")', function() { + // uncomment below and update the code to test the property maxCount + //var instance = new HyperstackApi.CreateClusterNodeGroupPayload(); + //expect(instance).to.be(); + }); + + it('should have the property minCount (base name: "min_count")', function() { + // uncomment below and update the code to test the property minCount + //var instance = new HyperstackApi.CreateClusterNodeGroupPayload(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new HyperstackApi.CreateClusterNodeGroupPayload(); + //expect(instance).to.be(); + }); + + it('should have the property role (base name: "role")', function() { + // uncomment below and update the code to test the property role + //var instance = new HyperstackApi.CreateClusterNodeGroupPayload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateClusterPayload.spec.js b/test/model/CreateClusterPayload.spec.js index a06f9908..15de741d 100644 --- a/test/model/CreateClusterPayload.spec.js +++ b/test/model/CreateClusterPayload.spec.js @@ -54,14 +54,14 @@ //expect(instance).to.be.a(HyperstackApi.CreateClusterPayload); }); - it('should have the property environmentName (base name: "environment_name")', function() { - // uncomment below and update the code to test the property environmentName + it('should have the property deploymentMode (base name: "deployment_mode")', function() { + // uncomment below and update the code to test the property deploymentMode //var instance = new HyperstackApi.CreateClusterPayload(); //expect(instance).to.be(); }); - it('should have the property imageName (base name: "image_name")', function() { - // uncomment below and update the code to test the property imageName + it('should have the property environmentName (base name: "environment_name")', function() { + // uncomment below and update the code to test the property environmentName //var instance = new HyperstackApi.CreateClusterPayload(); //expect(instance).to.be(); }); @@ -78,6 +78,12 @@ //expect(instance).to.be(); }); + it('should have the property masterCount (base name: "master_count")', function() { + // uncomment below and update the code to test the property masterCount + //var instance = new HyperstackApi.CreateClusterPayload(); + //expect(instance).to.be(); + }); + it('should have the property masterFlavorName (base name: "master_flavor_name")', function() { // uncomment below and update the code to test the property masterFlavorName //var instance = new HyperstackApi.CreateClusterPayload(); @@ -102,6 +108,12 @@ //expect(instance).to.be(); }); + it('should have the property nodeGroups (base name: "node_groups")', function() { + // uncomment below and update the code to test the property nodeGroups + //var instance = new HyperstackApi.CreateClusterPayload(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/CreateContractFields.spec.js b/test/model/CreateContractFields.spec.js deleted file mode 100644 index c3289667..00000000 --- a/test/model/CreateContractFields.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.CreateContractFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateContractFields', function() { - it('should create an instance of CreateContractFields', function() { - // uncomment below and update the code to test CreateContractFields - //var instance = new HyperstackApi.CreateContractFields(); - //expect(instance).to.be.a(HyperstackApi.CreateContractFields); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new HyperstackApi.CreateContractFields(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new HyperstackApi.CreateContractFields(); - //expect(instance).to.be(); - }); - - it('should have the property discountPlans (base name: "discount_plans")', function() { - // uncomment below and update the code to test the property discountPlans - //var instance = new HyperstackApi.CreateContractFields(); - //expect(instance).to.be(); - }); - - it('should have the property endDate (base name: "end_date")', function() { - // uncomment below and update the code to test the property endDate - //var instance = new HyperstackApi.CreateContractFields(); - //expect(instance).to.be(); - }); - - it('should have the property expirationPolicy (base name: "expiration_policy")', function() { - // uncomment below and update the code to test the property expirationPolicy - //var instance = new HyperstackApi.CreateContractFields(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.CreateContractFields(); - //expect(instance).to.be(); - }); - - it('should have the property orgId (base name: "org_id")', function() { - // uncomment below and update the code to test the property orgId - //var instance = new HyperstackApi.CreateContractFields(); - //expect(instance).to.be(); - }); - - it('should have the property startDate (base name: "start_date")', function() { - // uncomment below and update the code to test the property startDate - //var instance = new HyperstackApi.CreateContractFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateContractPayload.spec.js b/test/model/CreateContractPayload.spec.js deleted file mode 100644 index 46715771..00000000 --- a/test/model/CreateContractPayload.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.CreateContractPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateContractPayload', function() { - it('should create an instance of CreateContractPayload', function() { - // uncomment below and update the code to test CreateContractPayload - //var instance = new HyperstackApi.CreateContractPayload(); - //expect(instance).to.be.a(HyperstackApi.CreateContractPayload); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new HyperstackApi.CreateContractPayload(); - //expect(instance).to.be(); - }); - - it('should have the property discountResources (base name: "discount_resources")', function() { - // uncomment below and update the code to test the property discountResources - //var instance = new HyperstackApi.CreateContractPayload(); - //expect(instance).to.be(); - }); - - it('should have the property endDate (base name: "end_date")', function() { - // uncomment below and update the code to test the property endDate - //var instance = new HyperstackApi.CreateContractPayload(); - //expect(instance).to.be(); - }); - - it('should have the property expirationPolicy (base name: "expiration_policy")', function() { - // uncomment below and update the code to test the property expirationPolicy - //var instance = new HyperstackApi.CreateContractPayload(); - //expect(instance).to.be(); - }); - - it('should have the property orgId (base name: "org_id")', function() { - // uncomment below and update the code to test the property orgId - //var instance = new HyperstackApi.CreateContractPayload(); - //expect(instance).to.be(); - }); - - it('should have the property startDate (base name: "start_date")', function() { - // uncomment below and update the code to test the property startDate - //var instance = new HyperstackApi.CreateContractPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateDiscountResponse.spec.js b/test/model/CreateDiscountResponse.spec.js deleted file mode 100644 index 52cda5a3..00000000 --- a/test/model/CreateDiscountResponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.CreateDiscountResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateDiscountResponse', function() { - it('should create an instance of CreateDiscountResponse', function() { - // uncomment below and update the code to test CreateDiscountResponse - //var instance = new HyperstackApi.CreateDiscountResponse(); - //expect(instance).to.be.a(HyperstackApi.CreateDiscountResponse); - }); - - it('should have the property discountPlan (base name: "discount_plan")', function() { - // uncomment below and update the code to test the property discountPlan - //var instance = new HyperstackApi.CreateDiscountResponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.CreateDiscountResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.CreateDiscountResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateDiscountsPayload.spec.js b/test/model/CreateDiscountsPayload.spec.js deleted file mode 100644 index bfc4c0f1..00000000 --- a/test/model/CreateDiscountsPayload.spec.js +++ /dev/null @@ -1,89 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.CreateDiscountsPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateDiscountsPayload', function() { - it('should create an instance of CreateDiscountsPayload', function() { - // uncomment below and update the code to test CreateDiscountsPayload - //var instance = new HyperstackApi.CreateDiscountsPayload(); - //expect(instance).to.be.a(HyperstackApi.CreateDiscountsPayload); - }); - - it('should have the property customers (base name: "customers")', function() { - // uncomment below and update the code to test the property customers - //var instance = new HyperstackApi.CreateDiscountsPayload(); - //expect(instance).to.be(); - }); - - it('should have the property discountResources (base name: "discount_resources")', function() { - // uncomment below and update the code to test the property discountResources - //var instance = new HyperstackApi.CreateDiscountsPayload(); - //expect(instance).to.be(); - }); - - it('should have the property discountStatus (base name: "discount_status")', function() { - // uncomment below and update the code to test the property discountStatus - //var instance = new HyperstackApi.CreateDiscountsPayload(); - //expect(instance).to.be(); - }); - - it('should have the property endDate (base name: "end_date")', function() { - // uncomment below and update the code to test the property endDate - //var instance = new HyperstackApi.CreateDiscountsPayload(); - //expect(instance).to.be(); - }); - - it('should have the property startDate (base name: "start_date")', function() { - // uncomment below and update the code to test the property startDate - //var instance = new HyperstackApi.CreateDiscountsPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateGPU.spec.js b/test/model/CreateGPU.spec.js deleted file mode 100644 index 5c7bec0f..00000000 --- a/test/model/CreateGPU.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.CreateGPU(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateGPU', function() { - it('should create an instance of CreateGPU', function() { - // uncomment below and update the code to test CreateGPU - //var instance = new HyperstackApi.CreateGPU(); - //expect(instance).to.be.a(HyperstackApi.CreateGPU); - }); - - it('should have the property exampleMetadata (base name: "example_metadata")', function() { - // uncomment below and update the code to test the property exampleMetadata - //var instance = new HyperstackApi.CreateGPU(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.CreateGPU(); - //expect(instance).to.be(); - }); - - it('should have the property regions (base name: "regions")', function() { - // uncomment below and update the code to test the property regions - //var instance = new HyperstackApi.CreateGPU(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateSnapshotPayload.spec.js b/test/model/CreateSnapshotPayload.spec.js index 6181678f..0a59d9e6 100644 --- a/test/model/CreateSnapshotPayload.spec.js +++ b/test/model/CreateSnapshotPayload.spec.js @@ -60,12 +60,6 @@ //expect(instance).to.be(); }); - it('should have the property isImage (base name: "is_image")', function() { - // uncomment below and update the code to test the property isImage - //var instance = new HyperstackApi.CreateSnapshotPayload(); - //expect(instance).to.be(); - }); - it('should have the property labels (base name: "labels")', function() { // uncomment below and update the code to test the property labels //var instance = new HyperstackApi.CreateSnapshotPayload(); diff --git a/test/model/CreateUpdatePermissionPayload.spec.js b/test/model/CreateUpdatePermissionPayload.spec.js deleted file mode 100644 index 7eea882a..00000000 --- a/test/model/CreateUpdatePermissionPayload.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.CreateUpdatePermissionPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateUpdatePermissionPayload', function() { - it('should create an instance of CreateUpdatePermissionPayload', function() { - // uncomment below and update the code to test CreateUpdatePermissionPayload - //var instance = new HyperstackApi.CreateUpdatePermissionPayload(); - //expect(instance).to.be.a(HyperstackApi.CreateUpdatePermissionPayload); - }); - - it('should have the property endpoint (base name: "endpoint")', function() { - // uncomment below and update the code to test the property endpoint - //var instance = new HyperstackApi.CreateUpdatePermissionPayload(); - //expect(instance).to.be(); - }); - - it('should have the property method (base name: "method")', function() { - // uncomment below and update the code to test the property method - //var instance = new HyperstackApi.CreateUpdatePermissionPayload(); - //expect(instance).to.be(); - }); - - it('should have the property permission (base name: "permission")', function() { - // uncomment below and update the code to test the property permission - //var instance = new HyperstackApi.CreateUpdatePermissionPayload(); - //expect(instance).to.be(); - }); - - it('should have the property resource (base name: "resource")', function() { - // uncomment below and update the code to test the property resource - //var instance = new HyperstackApi.CreateUpdatePermissionPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateUpdatePermissionResponseModel.spec.js b/test/model/CreateUpdatePermissionResponseModel.spec.js deleted file mode 100644 index c9e42c6d..00000000 --- a/test/model/CreateUpdatePermissionResponseModel.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.CreateUpdatePermissionResponseModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateUpdatePermissionResponseModel', function() { - it('should create an instance of CreateUpdatePermissionResponseModel', function() { - // uncomment below and update the code to test CreateUpdatePermissionResponseModel - //var instance = new HyperstackApi.CreateUpdatePermissionResponseModel(); - //expect(instance).to.be.a(HyperstackApi.CreateUpdatePermissionResponseModel); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.CreateUpdatePermissionResponseModel(); - //expect(instance).to.be(); - }); - - it('should have the property permission (base name: "permission")', function() { - // uncomment below and update the code to test the property permission - //var instance = new HyperstackApi.CreateUpdatePermissionResponseModel(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.CreateUpdatePermissionResponseModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateUpdatePolicyPayload.spec.js b/test/model/CreateUpdatePolicyPayload.spec.js deleted file mode 100644 index 318a96ab..00000000 --- a/test/model/CreateUpdatePolicyPayload.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.CreateUpdatePolicyPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateUpdatePolicyPayload', function() { - it('should create an instance of CreateUpdatePolicyPayload', function() { - // uncomment below and update the code to test CreateUpdatePolicyPayload - //var instance = new HyperstackApi.CreateUpdatePolicyPayload(); - //expect(instance).to.be.a(HyperstackApi.CreateUpdatePolicyPayload); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new HyperstackApi.CreateUpdatePolicyPayload(); - //expect(instance).to.be(); - }); - - it('should have the property isPublic (base name: "is_public")', function() { - // uncomment below and update the code to test the property isPublic - //var instance = new HyperstackApi.CreateUpdatePolicyPayload(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.CreateUpdatePolicyPayload(); - //expect(instance).to.be(); - }); - - it('should have the property permissions (base name: "permissions")', function() { - // uncomment below and update the code to test the property permissions - //var instance = new HyperstackApi.CreateUpdatePolicyPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateUpdatePolicyResponseModel.spec.js b/test/model/CreateUpdatePolicyResponseModel.spec.js deleted file mode 100644 index 0160f6b9..00000000 --- a/test/model/CreateUpdatePolicyResponseModel.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.CreateUpdatePolicyResponseModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateUpdatePolicyResponseModel', function() { - it('should create an instance of CreateUpdatePolicyResponseModel', function() { - // uncomment below and update the code to test CreateUpdatePolicyResponseModel - //var instance = new HyperstackApi.CreateUpdatePolicyResponseModel(); - //expect(instance).to.be.a(HyperstackApi.CreateUpdatePolicyResponseModel); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.CreateUpdatePolicyResponseModel(); - //expect(instance).to.be(); - }); - - it('should have the property policy (base name: "policy")', function() { - // uncomment below and update the code to test the property policy - //var instance = new HyperstackApi.CreateUpdatePolicyResponseModel(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.CreateUpdatePolicyResponseModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Creditrechargelimitfield.spec.js b/test/model/Creditrechargelimitfield.spec.js deleted file mode 100644 index 54f7f239..00000000 --- a/test/model/Creditrechargelimitfield.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.Creditrechargelimitfield(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Creditrechargelimitfield', function() { - it('should create an instance of Creditrechargelimitfield', function() { - // uncomment below and update the code to test Creditrechargelimitfield - //var instance = new HyperstackApi.Creditrechargelimitfield(); - //expect(instance).to.be.a(HyperstackApi.Creditrechargelimitfield); - }); - - it('should have the property creditGranted (base name: "credit_granted")', function() { - // uncomment below and update the code to test the property creditGranted - //var instance = new HyperstackApi.Creditrechargelimitfield(); - //expect(instance).to.be(); - }); - - it('should have the property creditLimit (base name: "credit_limit")', function() { - // uncomment below and update the code to test the property creditLimit - //var instance = new HyperstackApi.Creditrechargelimitfield(); - //expect(instance).to.be(); - }); - - it('should have the property organizationId (base name: "organization_id")', function() { - // uncomment below and update the code to test the property organizationId - //var instance = new HyperstackApi.Creditrechargelimitfield(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new HyperstackApi.Creditrechargelimitfield(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Creditrechargelimitresponse.spec.js b/test/model/Creditrechargelimitresponse.spec.js deleted file mode 100644 index 62486a4c..00000000 --- a/test/model/Creditrechargelimitresponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.Creditrechargelimitresponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Creditrechargelimitresponse', function() { - it('should create an instance of Creditrechargelimitresponse', function() { - // uncomment below and update the code to test Creditrechargelimitresponse - //var instance = new HyperstackApi.Creditrechargelimitresponse(); - //expect(instance).to.be.a(HyperstackApi.Creditrechargelimitresponse); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new HyperstackApi.Creditrechargelimitresponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.Creditrechargelimitresponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.Creditrechargelimitresponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Creditrequestresponse.spec.js b/test/model/Creditrequestresponse.spec.js deleted file mode 100644 index c6114253..00000000 --- a/test/model/Creditrequestresponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.Creditrequestresponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Creditrequestresponse', function() { - it('should create an instance of Creditrequestresponse', function() { - // uncomment below and update the code to test Creditrequestresponse - //var instance = new HyperstackApi.Creditrequestresponse(); - //expect(instance).to.be.a(HyperstackApi.Creditrequestresponse); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new HyperstackApi.Creditrequestresponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.Creditrequestresponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.Creditrequestresponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Creditrequests.spec.js b/test/model/Creditrequests.spec.js deleted file mode 100644 index 004baa91..00000000 --- a/test/model/Creditrequests.spec.js +++ /dev/null @@ -1,89 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.Creditrequests(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Creditrequests', function() { - it('should create an instance of Creditrequests', function() { - // uncomment below and update the code to test Creditrequests - //var instance = new HyperstackApi.Creditrequests(); - //expect(instance).to.be.a(HyperstackApi.Creditrequests); - }); - - it('should have the property adminUserId (base name: "admin_user_id")', function() { - // uncomment below and update the code to test the property adminUserId - //var instance = new HyperstackApi.Creditrequests(); - //expect(instance).to.be(); - }); - - it('should have the property amount (base name: "amount")', function() { - // uncomment below and update the code to test the property amount - //var instance = new HyperstackApi.Creditrequests(); - //expect(instance).to.be(); - }); - - it('should have the property reason (base name: "reason")', function() { - // uncomment below and update the code to test the property reason - //var instance = new HyperstackApi.Creditrequests(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.Creditrequests(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updated_at")', function() { - // uncomment below and update the code to test the property updatedAt - //var instance = new HyperstackApi.Creditrequests(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CustomerFields.spec.js b/test/model/CustomerFields.spec.js deleted file mode 100644 index df2f52b6..00000000 --- a/test/model/CustomerFields.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.CustomerFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CustomerFields', function() { - it('should create an instance of CustomerFields', function() { - // uncomment below and update the code to test CustomerFields - //var instance = new HyperstackApi.CustomerFields(); - //expect(instance).to.be.a(HyperstackApi.CustomerFields); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.CustomerFields(); - //expect(instance).to.be(); - }); - - it('should have the property planType (base name: "plan_type")', function() { - // uncomment below and update the code to test the property planType - //var instance = new HyperstackApi.CustomerFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CustomerPayload.spec.js b/test/model/CustomerPayload.spec.js deleted file mode 100644 index f79535bb..00000000 --- a/test/model/CustomerPayload.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.CustomerPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CustomerPayload', function() { - it('should create an instance of CustomerPayload', function() { - // uncomment below and update the code to test CustomerPayload - //var instance = new HyperstackApi.CustomerPayload(); - //expect(instance).to.be.a(HyperstackApi.CustomerPayload); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.CustomerPayload(); - //expect(instance).to.be(); - }); - - it('should have the property planType (base name: "plan_type")', function() { - // uncomment below and update the code to test the property planType - //var instance = new HyperstackApi.CustomerPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Data.spec.js b/test/model/Data.spec.js deleted file mode 100644 index 054c795b..00000000 --- a/test/model/Data.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.Data(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Data', function() { - it('should create an instance of Data', function() { - // uncomment below and update the code to test Data - //var instance = new HyperstackApi.Data(); - //expect(instance).to.be.a(HyperstackApi.Data); - }); - - it('should have the property organizationId (base name: "organization_id")', function() { - // uncomment below and update the code to test the property organizationId - //var instance = new HyperstackApi.Data(); - //expect(instance).to.be(); - }); - - it('should have the property resourceId (base name: "resource_id")', function() { - // uncomment below and update the code to test the property resourceId - //var instance = new HyperstackApi.Data(); - //expect(instance).to.be(); - }); - - it('should have the property resourceType (base name: "resource_type")', function() { - // uncomment below and update the code to test the property resourceType - //var instance = new HyperstackApi.Data(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/DataSynthesisBillingHistoryDetailsResponseSchema.spec.js b/test/model/DataSynthesisBillingHistoryDetailsResponseSchema.spec.js new file mode 100644 index 00000000..825e838c --- /dev/null +++ b/test/model/DataSynthesisBillingHistoryDetailsResponseSchema.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.DataSynthesisBillingHistoryDetailsResponseSchema(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DataSynthesisBillingHistoryDetailsResponseSchema', function() { + it('should create an instance of DataSynthesisBillingHistoryDetailsResponseSchema', function() { + // uncomment below and update the code to test DataSynthesisBillingHistoryDetailsResponseSchema + //var instance = new HyperstackApi.DataSynthesisBillingHistoryDetailsResponseSchema(); + //expect(instance).to.be.a(HyperstackApi.DataSynthesisBillingHistoryDetailsResponseSchema); + }); + + it('should have the property billingHistoryDataSynthesisDetails (base name: "billing_history_data_synthesis_details")', function() { + // uncomment below and update the code to test the property billingHistoryDataSynthesisDetails + //var instance = new HyperstackApi.DataSynthesisBillingHistoryDetailsResponseSchema(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.DataSynthesisBillingHistoryDetailsResponseSchema(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.DataSynthesisBillingHistoryDetailsResponseSchema(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DeleteClusterNodesFields.spec.js b/test/model/DeleteClusterNodesFields.spec.js new file mode 100644 index 00000000..1fbe0663 --- /dev/null +++ b/test/model/DeleteClusterNodesFields.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.DeleteClusterNodesFields(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DeleteClusterNodesFields', function() { + it('should create an instance of DeleteClusterNodesFields', function() { + // uncomment below and update the code to test DeleteClusterNodesFields + //var instance = new HyperstackApi.DeleteClusterNodesFields(); + //expect(instance).to.be.a(HyperstackApi.DeleteClusterNodesFields); + }); + + it('should have the property ids (base name: "ids")', function() { + // uncomment below and update the code to test the property ids + //var instance = new HyperstackApi.DeleteClusterNodesFields(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DeploymentFieldsForStartDeployments.spec.js b/test/model/DeploymentFieldsForStartDeployments.spec.js new file mode 100644 index 00000000..94518cc5 --- /dev/null +++ b/test/model/DeploymentFieldsForStartDeployments.spec.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.DeploymentFieldsForStartDeployments(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DeploymentFieldsForStartDeployments', function() { + it('should create an instance of DeploymentFieldsForStartDeployments', function() { + // uncomment below and update the code to test DeploymentFieldsForStartDeployments + //var instance = new HyperstackApi.DeploymentFieldsForStartDeployments(); + //expect(instance).to.be.a(HyperstackApi.DeploymentFieldsForStartDeployments); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new HyperstackApi.DeploymentFieldsForStartDeployments(); + //expect(instance).to.be(); + }); + + it('should have the property description (base name: "description")', function() { + // uncomment below and update the code to test the property description + //var instance = new HyperstackApi.DeploymentFieldsForStartDeployments(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.DeploymentFieldsForStartDeployments(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new HyperstackApi.DeploymentFieldsForStartDeployments(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.DeploymentFieldsForStartDeployments(); + //expect(instance).to.be(); + }); + + it('should have the property template (base name: "template")', function() { + // uncomment below and update the code to test the property template + //var instance = new HyperstackApi.DeploymentFieldsForStartDeployments(); + //expect(instance).to.be(); + }); + + it('should have the property variables (base name: "variables")', function() { + // uncomment below and update the code to test the property variables + //var instance = new HyperstackApi.DeploymentFieldsForStartDeployments(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DeploymentFieldsforstartdeployments.spec.js b/test/model/DeploymentFieldsforstartdeployments.spec.js deleted file mode 100644 index e5994b75..00000000 --- a/test/model/DeploymentFieldsforstartdeployments.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.DeploymentFieldsforstartdeployments(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('DeploymentFieldsforstartdeployments', function() { - it('should create an instance of DeploymentFieldsforstartdeployments', function() { - // uncomment below and update the code to test DeploymentFieldsforstartdeployments - //var instance = new HyperstackApi.DeploymentFieldsforstartdeployments(); - //expect(instance).to.be.a(HyperstackApi.DeploymentFieldsforstartdeployments); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new HyperstackApi.DeploymentFieldsforstartdeployments(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new HyperstackApi.DeploymentFieldsforstartdeployments(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.DeploymentFieldsforstartdeployments(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.DeploymentFieldsforstartdeployments(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.DeploymentFieldsforstartdeployments(); - //expect(instance).to.be(); - }); - - it('should have the property template (base name: "template")', function() { - // uncomment below and update the code to test the property template - //var instance = new HyperstackApi.DeploymentFieldsforstartdeployments(); - //expect(instance).to.be(); - }); - - it('should have the property variables (base name: "variables")', function() { - // uncomment below and update the code to test the property variables - //var instance = new HyperstackApi.DeploymentFieldsforstartdeployments(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/DiscountEntityModel.spec.js b/test/model/DiscountEntityModel.spec.js deleted file mode 100644 index c8c52681..00000000 --- a/test/model/DiscountEntityModel.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.DiscountEntityModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('DiscountEntityModel', function() { - it('should create an instance of DiscountEntityModel', function() { - // uncomment below and update the code to test DiscountEntityModel - //var instance = new HyperstackApi.DiscountEntityModel(); - //expect(instance).to.be.a(HyperstackApi.DiscountEntityModel); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new HyperstackApi.DiscountEntityModel(); - //expect(instance).to.be(); - }); - - it('should have the property entity (base name: "entity")', function() { - // uncomment below and update the code to test the property entity - //var instance = new HyperstackApi.DiscountEntityModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/DiscountFields.spec.js b/test/model/DiscountFields.spec.js deleted file mode 100644 index fb4ec897..00000000 --- a/test/model/DiscountFields.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.DiscountFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('DiscountFields', function() { - it('should create an instance of DiscountFields', function() { - // uncomment below and update the code to test DiscountFields - //var instance = new HyperstackApi.DiscountFields(); - //expect(instance).to.be.a(HyperstackApi.DiscountFields); - }); - - it('should have the property discountStatus (base name: "discount_status")', function() { - // uncomment below and update the code to test the property discountStatus - //var instance = new HyperstackApi.DiscountFields(); - //expect(instance).to.be(); - }); - - it('should have the property endDate (base name: "end_date")', function() { - // uncomment below and update the code to test the property endDate - //var instance = new HyperstackApi.DiscountFields(); - //expect(instance).to.be(); - }); - - it('should have the property orgId (base name: "org_id")', function() { - // uncomment below and update the code to test the property orgId - //var instance = new HyperstackApi.DiscountFields(); - //expect(instance).to.be(); - }); - - it('should have the property orgName (base name: "org_name")', function() { - // uncomment below and update the code to test the property orgName - //var instance = new HyperstackApi.DiscountFields(); - //expect(instance).to.be(); - }); - - it('should have the property planType (base name: "plan_type")', function() { - // uncomment below and update the code to test the property planType - //var instance = new HyperstackApi.DiscountFields(); - //expect(instance).to.be(); - }); - - it('should have the property vmId (base name: "vm_id")', function() { - // uncomment below and update the code to test the property vmId - //var instance = new HyperstackApi.DiscountFields(); - //expect(instance).to.be(); - }); - - it('should have the property vmName (base name: "vm_name")', function() { - // uncomment below and update the code to test the property vmName - //var instance = new HyperstackApi.DiscountFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/DiscountPlanFields.spec.js b/test/model/DiscountPlanFields.spec.js deleted file mode 100644 index d0fbdf2a..00000000 --- a/test/model/DiscountPlanFields.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.DiscountPlanFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('DiscountPlanFields', function() { - it('should create an instance of DiscountPlanFields', function() { - // uncomment below and update the code to test DiscountPlanFields - //var instance = new HyperstackApi.DiscountPlanFields(); - //expect(instance).to.be.a(HyperstackApi.DiscountPlanFields); - }); - - it('should have the property discountAmount (base name: "discount_amount")', function() { - // uncomment below and update the code to test the property discountAmount - //var instance = new HyperstackApi.DiscountPlanFields(); - //expect(instance).to.be(); - }); - - it('should have the property discountCode (base name: "discount_code")', function() { - // uncomment below and update the code to test the property discountCode - //var instance = new HyperstackApi.DiscountPlanFields(); - //expect(instance).to.be(); - }); - - it('should have the property discountPercent (base name: "discount_percent")', function() { - // uncomment below and update the code to test the property discountPercent - //var instance = new HyperstackApi.DiscountPlanFields(); - //expect(instance).to.be(); - }); - - it('should have the property discountStatus (base name: "discount_status")', function() { - // uncomment below and update the code to test the property discountStatus - //var instance = new HyperstackApi.DiscountPlanFields(); - //expect(instance).to.be(); - }); - - it('should have the property discountType (base name: "discount_type")', function() { - // uncomment below and update the code to test the property discountType - //var instance = new HyperstackApi.DiscountPlanFields(); - //expect(instance).to.be(); - }); - - it('should have the property endDate (base name: "end_date")', function() { - // uncomment below and update the code to test the property endDate - //var instance = new HyperstackApi.DiscountPlanFields(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.DiscountPlanFields(); - //expect(instance).to.be(); - }); - - it('should have the property resource (base name: "resource")', function() { - // uncomment below and update the code to test the property resource - //var instance = new HyperstackApi.DiscountPlanFields(); - //expect(instance).to.be(); - }); - - it('should have the property startDate (base name: "start_date")', function() { - // uncomment below and update the code to test the property startDate - //var instance = new HyperstackApi.DiscountPlanFields(); - //expect(instance).to.be(); - }); - - it('should have the property validityDays (base name: "validity_days")', function() { - // uncomment below and update the code to test the property validityDays - //var instance = new HyperstackApi.DiscountPlanFields(); - //expect(instance).to.be(); - }); - - it('should have the property vmId (base name: "vm_id")', function() { - // uncomment below and update the code to test the property vmId - //var instance = new HyperstackApi.DiscountPlanFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/DiscountResourceFields.spec.js b/test/model/DiscountResourceFields.spec.js deleted file mode 100644 index 49a3a830..00000000 --- a/test/model/DiscountResourceFields.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.DiscountResourceFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('DiscountResourceFields', function() { - it('should create an instance of DiscountResourceFields', function() { - // uncomment below and update the code to test DiscountResourceFields - //var instance = new HyperstackApi.DiscountResourceFields(); - //expect(instance).to.be.a(HyperstackApi.DiscountResourceFields); - }); - - it('should have the property discountAmount (base name: "discount_amount")', function() { - // uncomment below and update the code to test the property discountAmount - //var instance = new HyperstackApi.DiscountResourceFields(); - //expect(instance).to.be(); - }); - - it('should have the property discountPercent (base name: "discount_percent")', function() { - // uncomment below and update the code to test the property discountPercent - //var instance = new HyperstackApi.DiscountResourceFields(); - //expect(instance).to.be(); - }); - - it('should have the property discountType (base name: "discount_type")', function() { - // uncomment below and update the code to test the property discountType - //var instance = new HyperstackApi.DiscountResourceFields(); - //expect(instance).to.be(); - }); - - it('should have the property resourceId (base name: "resource_id")', function() { - // uncomment below and update the code to test the property resourceId - //var instance = new HyperstackApi.DiscountResourceFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/DiscountResourcePayload.spec.js b/test/model/DiscountResourcePayload.spec.js deleted file mode 100644 index 18e812d5..00000000 --- a/test/model/DiscountResourcePayload.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.DiscountResourcePayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('DiscountResourcePayload', function() { - it('should create an instance of DiscountResourcePayload', function() { - // uncomment below and update the code to test DiscountResourcePayload - //var instance = new HyperstackApi.DiscountResourcePayload(); - //expect(instance).to.be.a(HyperstackApi.DiscountResourcePayload); - }); - - it('should have the property discountAmount (base name: "discount_amount")', function() { - // uncomment below and update the code to test the property discountAmount - //var instance = new HyperstackApi.DiscountResourcePayload(); - //expect(instance).to.be(); - }); - - it('should have the property discountPercent (base name: "discount_percent")', function() { - // uncomment below and update the code to test the property discountPercent - //var instance = new HyperstackApi.DiscountResourcePayload(); - //expect(instance).to.be(); - }); - - it('should have the property discountType (base name: "discount_type")', function() { - // uncomment below and update the code to test the property discountType - //var instance = new HyperstackApi.DiscountResourcePayload(); - //expect(instance).to.be(); - }); - - it('should have the property resourceId (base name: "resource_id")', function() { - // uncomment below and update the code to test the property resourceId - //var instance = new HyperstackApi.DiscountResourcePayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/EditLabelOfAnExistingVMPayload.spec.js b/test/model/EditLabelOfAnExistingVMPayload.spec.js new file mode 100644 index 00000000..5a40d6b8 --- /dev/null +++ b/test/model/EditLabelOfAnExistingVMPayload.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.EditLabelOfAnExistingVMPayload(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('EditLabelOfAnExistingVMPayload', function() { + it('should create an instance of EditLabelOfAnExistingVMPayload', function() { + // uncomment below and update the code to test EditLabelOfAnExistingVMPayload + //var instance = new HyperstackApi.EditLabelOfAnExistingVMPayload(); + //expect(instance).to.be.a(HyperstackApi.EditLabelOfAnExistingVMPayload); + }); + + it('should have the property labels (base name: "labels")', function() { + // uncomment below and update the code to test the property labels + //var instance = new HyperstackApi.EditLabelOfAnExistingVMPayload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/EditlabelofanexistingVMPayload.spec.js b/test/model/EditlabelofanexistingVMPayload.spec.js deleted file mode 100644 index 80660ed7..00000000 --- a/test/model/EditlabelofanexistingVMPayload.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.EditlabelofanexistingVMPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('EditlabelofanexistingVMPayload', function() { - it('should create an instance of EditlabelofanexistingVMPayload', function() { - // uncomment below and update the code to test EditlabelofanexistingVMPayload - //var instance = new HyperstackApi.EditlabelofanexistingVMPayload(); - //expect(instance).to.be.a(HyperstackApi.EditlabelofanexistingVMPayload); - }); - - it('should have the property labels (base name: "labels")', function() { - // uncomment below and update the code to test the property labels - //var instance = new HyperstackApi.EditlabelofanexistingVMPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/EnvironmentFeatures.spec.js b/test/model/EnvironmentFeatures.spec.js index 0ce16707..6d3dcdac 100644 --- a/test/model/EnvironmentFeatures.spec.js +++ b/test/model/EnvironmentFeatures.spec.js @@ -54,6 +54,12 @@ //expect(instance).to.be.a(HyperstackApi.EnvironmentFeatures); }); + it('should have the property greenStatus (base name: "green_status")', function() { + // uncomment below and update the code to test the property greenStatus + //var instance = new HyperstackApi.EnvironmentFeatures(); + //expect(instance).to.be(); + }); + it('should have the property networkOptimised (base name: "network_optimised")', function() { // uncomment below and update the code to test the property networkOptimised //var instance = new HyperstackApi.EnvironmentFeatures(); diff --git a/test/model/EnvironmentFieldsForVolume.spec.js b/test/model/EnvironmentFieldsForVolume.spec.js new file mode 100644 index 00000000..380c24a7 --- /dev/null +++ b/test/model/EnvironmentFieldsForVolume.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.EnvironmentFieldsForVolume(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('EnvironmentFieldsForVolume', function() { + it('should create an instance of EnvironmentFieldsForVolume', function() { + // uncomment below and update the code to test EnvironmentFieldsForVolume + //var instance = new HyperstackApi.EnvironmentFieldsForVolume(); + //expect(instance).to.be.a(HyperstackApi.EnvironmentFieldsForVolume); + }); + + it('should have the property features (base name: "features")', function() { + // uncomment below and update the code to test the property features + //var instance = new HyperstackApi.EnvironmentFieldsForVolume(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new HyperstackApi.EnvironmentFieldsForVolume(); + //expect(instance).to.be(); + }); + + it('should have the property region (base name: "region")', function() { + // uncomment below and update the code to test the property region + //var instance = new HyperstackApi.EnvironmentFieldsForVolume(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/EnvironmentFieldsforVolume.spec.js b/test/model/EnvironmentFieldsforVolume.spec.js deleted file mode 100644 index 59c73e03..00000000 --- a/test/model/EnvironmentFieldsforVolume.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.EnvironmentFieldsforVolume(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('EnvironmentFieldsforVolume', function() { - it('should create an instance of EnvironmentFieldsforVolume', function() { - // uncomment below and update the code to test EnvironmentFieldsforVolume - //var instance = new HyperstackApi.EnvironmentFieldsforVolume(); - //expect(instance).to.be.a(HyperstackApi.EnvironmentFieldsforVolume); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.EnvironmentFieldsforVolume(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ExcludeBillingPostPayload.spec.js b/test/model/ExcludeBillingPostPayload.spec.js deleted file mode 100644 index 76a397af..00000000 --- a/test/model/ExcludeBillingPostPayload.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.ExcludeBillingPostPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExcludeBillingPostPayload', function() { - it('should create an instance of ExcludeBillingPostPayload', function() { - // uncomment below and update the code to test ExcludeBillingPostPayload - //var instance = new HyperstackApi.ExcludeBillingPostPayload(); - //expect(instance).to.be.a(HyperstackApi.ExcludeBillingPostPayload); - }); - - it('should have the property exclude (base name: "exclude")', function() { - // uncomment below and update the code to test the property exclude - //var instance = new HyperstackApi.ExcludeBillingPostPayload(); - //expect(instance).to.be(); - }); - - it('should have the property resourceId (base name: "resource_id")', function() { - // uncomment below and update the code to test the property resourceId - //var instance = new HyperstackApi.ExcludeBillingPostPayload(); - //expect(instance).to.be(); - }); - - it('should have the property resourceType (base name: "resource_type")', function() { - // uncomment below and update the code to test the property resourceType - //var instance = new HyperstackApi.ExcludeBillingPostPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ExcludeBillingPostResponse.spec.js b/test/model/ExcludeBillingPostResponse.spec.js deleted file mode 100644 index 53baa8a0..00000000 --- a/test/model/ExcludeBillingPostResponse.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.ExcludeBillingPostResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExcludeBillingPostResponse', function() { - it('should create an instance of ExcludeBillingPostResponse', function() { - // uncomment below and update the code to test ExcludeBillingPostResponse - //var instance = new HyperstackApi.ExcludeBillingPostResponse(); - //expect(instance).to.be.a(HyperstackApi.ExcludeBillingPostResponse); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new HyperstackApi.ExcludeBillingPostResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ExportBillingDataRequest.spec.js b/test/model/ExportBillingDataRequest.spec.js deleted file mode 100644 index 1fa29b4d..00000000 --- a/test/model/ExportBillingDataRequest.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.ExportBillingDataRequest(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExportBillingDataRequest', function() { - it('should create an instance of ExportBillingDataRequest', function() { - // uncomment below and update the code to test ExportBillingDataRequest - //var instance = new HyperstackApi.ExportBillingDataRequest(); - //expect(instance).to.be.a(HyperstackApi.ExportBillingDataRequest); - }); - - it('should have the property endDate (base name: "end_date")', function() { - // uncomment below and update the code to test the property endDate - //var instance = new HyperstackApi.ExportBillingDataRequest(); - //expect(instance).to.be(); - }); - - it('should have the property orgId (base name: "org_id")', function() { - // uncomment below and update the code to test the property orgId - //var instance = new HyperstackApi.ExportBillingDataRequest(); - //expect(instance).to.be(); - }); - - it('should have the property requiredAttributes (base name: "required_attributes")', function() { - // uncomment below and update the code to test the property requiredAttributes - //var instance = new HyperstackApi.ExportBillingDataRequest(); - //expect(instance).to.be(); - }); - - it('should have the property requiredMetrics (base name: "required_metrics")', function() { - // uncomment below and update the code to test the property requiredMetrics - //var instance = new HyperstackApi.ExportBillingDataRequest(); - //expect(instance).to.be(); - }); - - it('should have the property resourceType (base name: "resource_type")', function() { - // uncomment below and update the code to test the property resourceType - //var instance = new HyperstackApi.ExportBillingDataRequest(); - //expect(instance).to.be(); - }); - - it('should have the property startDate (base name: "start_date")', function() { - // uncomment below and update the code to test the property startDate - //var instance = new HyperstackApi.ExportBillingDataRequest(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ExportBillingDataResponse.spec.js b/test/model/ExportBillingDataResponse.spec.js deleted file mode 100644 index f93274d3..00000000 --- a/test/model/ExportBillingDataResponse.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.ExportBillingDataResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ExportBillingDataResponse', function() { - it('should create an instance of ExportBillingDataResponse', function() { - // uncomment below and update the code to test ExportBillingDataResponse - //var instance = new HyperstackApi.ExportBillingDataResponse(); - //expect(instance).to.be.a(HyperstackApi.ExportBillingDataResponse); - }); - - it('should have the property measures (base name: "measures")', function() { - // uncomment below and update the code to test the property measures - //var instance = new HyperstackApi.ExportBillingDataResponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.ExportBillingDataResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/FieldChange.spec.js b/test/model/FieldChange.spec.js deleted file mode 100644 index 724eaab9..00000000 --- a/test/model/FieldChange.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.FieldChange(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FieldChange', function() { - it('should create an instance of FieldChange', function() { - // uncomment below and update the code to test FieldChange - //var instance = new HyperstackApi.FieldChange(); - //expect(instance).to.be.a(HyperstackApi.FieldChange); - }); - - it('should have the property fieldName (base name: "field_name")', function() { - // uncomment below and update the code to test the property fieldName - //var instance = new HyperstackApi.FieldChange(); - //expect(instance).to.be(); - }); - - it('should have the property newValue (base name: "new_value")', function() { - // uncomment below and update the code to test the property newValue - //var instance = new HyperstackApi.FieldChange(); - //expect(instance).to.be(); - }); - - it('should have the property oldValue (base name: "old_value")', function() { - // uncomment below and update the code to test the property oldValue - //var instance = new HyperstackApi.FieldChange(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/FlavorFields.spec.js b/test/model/FlavorFields.spec.js index b4b874bf..5f5ed8d3 100644 --- a/test/model/FlavorFields.spec.js +++ b/test/model/FlavorFields.spec.js @@ -84,6 +84,12 @@ //expect(instance).to.be(); }); + it('should have the property features (base name: "features")', function() { + // uncomment below and update the code to test the property features + //var instance = new HyperstackApi.FlavorFields(); + //expect(instance).to.be(); + }); + it('should have the property gpu (base name: "gpu")', function() { // uncomment below and update the code to test the property gpu //var instance = new HyperstackApi.FlavorFields(); diff --git a/test/model/FlavorLabelFields.spec.js b/test/model/FlavorLabelFields.spec.js new file mode 100644 index 00000000..a8ed313f --- /dev/null +++ b/test/model/FlavorLabelFields.spec.js @@ -0,0 +1,71 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.FlavorLabelFields(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FlavorLabelFields', function() { + it('should create an instance of FlavorLabelFields', function() { + // uncomment below and update the code to test FlavorLabelFields + //var instance = new HyperstackApi.FlavorLabelFields(); + //expect(instance).to.be.a(HyperstackApi.FlavorLabelFields); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.FlavorLabelFields(); + //expect(instance).to.be(); + }); + + it('should have the property label (base name: "label")', function() { + // uncomment below and update the code to test the property label + //var instance = new HyperstackApi.FlavorLabelFields(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FlavorPayload.spec.js b/test/model/FlavorPayload.spec.js deleted file mode 100644 index 244f6dd9..00000000 --- a/test/model/FlavorPayload.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.FlavorPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FlavorPayload', function() { - it('should create an instance of FlavorPayload', function() { - // uncomment below and update the code to test FlavorPayload - //var instance = new HyperstackApi.FlavorPayload(); - //expect(instance).to.be.a(HyperstackApi.FlavorPayload); - }); - - it('should have the property cpu (base name: "cpu")', function() { - // uncomment below and update the code to test the property cpu - //var instance = new HyperstackApi.FlavorPayload(); - //expect(instance).to.be(); - }); - - it('should have the property disk (base name: "disk")', function() { - // uncomment below and update the code to test the property disk - //var instance = new HyperstackApi.FlavorPayload(); - //expect(instance).to.be(); - }); - - it('should have the property gpu (base name: "gpu")', function() { - // uncomment below and update the code to test the property gpu - //var instance = new HyperstackApi.FlavorPayload(); - //expect(instance).to.be(); - }); - - it('should have the property gpuCount (base name: "gpu_count")', function() { - // uncomment below and update the code to test the property gpuCount - //var instance = new HyperstackApi.FlavorPayload(); - //expect(instance).to.be(); - }); - - it('should have the property isPublic (base name: "is_public")', function() { - // uncomment below and update the code to test the property isPublic - //var instance = new HyperstackApi.FlavorPayload(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.FlavorPayload(); - //expect(instance).to.be(); - }); - - it('should have the property ram (base name: "ram")', function() { - // uncomment below and update the code to test the property ram - //var instance = new HyperstackApi.FlavorPayload(); - //expect(instance).to.be(); - }); - - it('should have the property regionName (base name: "region_name")', function() { - // uncomment below and update the code to test the property regionName - //var instance = new HyperstackApi.FlavorPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/FlavorResponse.spec.js b/test/model/FlavorResponse.spec.js deleted file mode 100644 index b513f738..00000000 --- a/test/model/FlavorResponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.FlavorResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FlavorResponse', function() { - it('should create an instance of FlavorResponse', function() { - // uncomment below and update the code to test FlavorResponse - //var instance = new HyperstackApi.FlavorResponse(); - //expect(instance).to.be.a(HyperstackApi.FlavorResponse); - }); - - it('should have the property flavor (base name: "flavor")', function() { - // uncomment below and update the code to test the property flavor - //var instance = new HyperstackApi.FlavorResponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.FlavorResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.FlavorResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/FlavorRestrictions.spec.js b/test/model/FlavorRestrictions.spec.js new file mode 100644 index 00000000..a359b4ea --- /dev/null +++ b/test/model/FlavorRestrictions.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.FlavorRestrictions(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FlavorRestrictions', function() { + it('should create an instance of FlavorRestrictions', function() { + // uncomment below and update the code to test FlavorRestrictions + //var instance = new HyperstackApi.FlavorRestrictions(); + //expect(instance).to.be.a(HyperstackApi.FlavorRestrictions); + }); + + it('should have the property compatibleFlavors (base name: "compatible_flavors")', function() { + // uncomment below and update the code to test the property compatibleFlavors + //var instance = new HyperstackApi.FlavorRestrictions(); + //expect(instance).to.be(); + }); + + it('should have the property hasFlavorRestrictions (base name: "has_flavor_restrictions")', function() { + // uncomment below and update the code to test the property hasFlavorRestrictions + //var instance = new HyperstackApi.FlavorRestrictions(); + //expect(instance).to.be(); + }); + + it('should have the property restrictionType (base name: "restriction_type")', function() { + // uncomment below and update the code to test the property restrictionType + //var instance = new HyperstackApi.FlavorRestrictions(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FlavorVMFields.spec.js b/test/model/FlavorVMFields.spec.js deleted file mode 100644 index 119709cf..00000000 --- a/test/model/FlavorVMFields.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.FlavorVMFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FlavorVMFields', function() { - it('should create an instance of FlavorVMFields', function() { - // uncomment below and update the code to test FlavorVMFields - //var instance = new HyperstackApi.FlavorVMFields(); - //expect(instance).to.be.a(HyperstackApi.FlavorVMFields); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new HyperstackApi.FlavorVMFields(); - //expect(instance).to.be(); - }); - - it('should have the property host (base name: "host")', function() { - // uncomment below and update the code to test the property host - //var instance = new HyperstackApi.FlavorVMFields(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.FlavorVMFields(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.FlavorVMFields(); - //expect(instance).to.be(); - }); - - it('should have the property openstackId (base name: "openstack_id")', function() { - // uncomment below and update the code to test the property openstackId - //var instance = new HyperstackApi.FlavorVMFields(); - //expect(instance).to.be(); - }); - - it('should have the property orgId (base name: "org_id")', function() { - // uncomment below and update the code to test the property orgId - //var instance = new HyperstackApi.FlavorVMFields(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.FlavorVMFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/FlavorVMsResponse.spec.js b/test/model/FlavorVMsResponse.spec.js deleted file mode 100644 index 2bbd949a..00000000 --- a/test/model/FlavorVMsResponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.FlavorVMsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FlavorVMsResponse', function() { - it('should create an instance of FlavorVMsResponse', function() { - // uncomment below and update the code to test FlavorVMsResponse - //var instance = new HyperstackApi.FlavorVMsResponse(); - //expect(instance).to.be.a(HyperstackApi.FlavorVMsResponse); - }); - - it('should have the property flavorVms (base name: "flavor_vms")', function() { - // uncomment below and update the code to test the property flavorVms - //var instance = new HyperstackApi.FlavorVMsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.FlavorVMsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.FlavorVMsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/FutureNodeModel.spec.js b/test/model/FutureNodeModel.spec.js deleted file mode 100644 index 92e948c4..00000000 --- a/test/model/FutureNodeModel.spec.js +++ /dev/null @@ -1,89 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.FutureNodeModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FutureNodeModel', function() { - it('should create an instance of FutureNodeModel', function() { - // uncomment below and update the code to test FutureNodeModel - //var instance = new HyperstackApi.FutureNodeModel(); - //expect(instance).to.be.a(HyperstackApi.FutureNodeModel); - }); - - it('should have the property expectedProvisionDate (base name: "expected_provision_date")', function() { - // uncomment below and update the code to test the property expectedProvisionDate - //var instance = new HyperstackApi.FutureNodeModel(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.FutureNodeModel(); - //expect(instance).to.be(); - }); - - it('should have the property nexgenName (base name: "nexgen_name")', function() { - // uncomment below and update the code to test the property nexgenName - //var instance = new HyperstackApi.FutureNodeModel(); - //expect(instance).to.be(); - }); - - it('should have the property openstackName (base name: "openstack_name")', function() { - // uncomment below and update the code to test the property openstackName - //var instance = new HyperstackApi.FutureNodeModel(); - //expect(instance).to.be(); - }); - - it('should have the property stocks (base name: "stocks")', function() { - // uncomment below and update the code to test the property stocks - //var instance = new HyperstackApi.FutureNodeModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/FutureNodeResponseModel.spec.js b/test/model/FutureNodeResponseModel.spec.js deleted file mode 100644 index 274a5080..00000000 --- a/test/model/FutureNodeResponseModel.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.FutureNodeResponseModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FutureNodeResponseModel', function() { - it('should create an instance of FutureNodeResponseModel', function() { - // uncomment below and update the code to test FutureNodeResponseModel - //var instance = new HyperstackApi.FutureNodeResponseModel(); - //expect(instance).to.be.a(HyperstackApi.FutureNodeResponseModel); - }); - - it('should have the property nodes (base name: "nodes")', function() { - // uncomment below and update the code to test the property nodes - //var instance = new HyperstackApi.FutureNodeResponseModel(); - //expect(instance).to.be(); - }); - - it('should have the property region (base name: "region")', function() { - // uncomment below and update the code to test the property region - //var instance = new HyperstackApi.FutureNodeResponseModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/FutureNodeStockModel.spec.js b/test/model/FutureNodeStockModel.spec.js deleted file mode 100644 index 216bd7e8..00000000 --- a/test/model/FutureNodeStockModel.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.FutureNodeStockModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FutureNodeStockModel', function() { - it('should create an instance of FutureNodeStockModel', function() { - // uncomment below and update the code to test FutureNodeStockModel - //var instance = new HyperstackApi.FutureNodeStockModel(); - //expect(instance).to.be.a(HyperstackApi.FutureNodeStockModel); - }); - - it('should have the property expectedAmount (base name: "expected_amount")', function() { - // uncomment below and update the code to test the property expectedAmount - //var instance = new HyperstackApi.FutureNodeStockModel(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.FutureNodeStockModel(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.FutureNodeStockModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/FutureNodeUpdateModel.spec.js b/test/model/FutureNodeUpdateModel.spec.js deleted file mode 100644 index 122565ed..00000000 --- a/test/model/FutureNodeUpdateModel.spec.js +++ /dev/null @@ -1,89 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.FutureNodeUpdateModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FutureNodeUpdateModel', function() { - it('should create an instance of FutureNodeUpdateModel', function() { - // uncomment below and update the code to test FutureNodeUpdateModel - //var instance = new HyperstackApi.FutureNodeUpdateModel(); - //expect(instance).to.be.a(HyperstackApi.FutureNodeUpdateModel); - }); - - it('should have the property expectedProvisionDate (base name: "expected_provision_date")', function() { - // uncomment below and update the code to test the property expectedProvisionDate - //var instance = new HyperstackApi.FutureNodeUpdateModel(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.FutureNodeUpdateModel(); - //expect(instance).to.be(); - }); - - it('should have the property nexgenName (base name: "nexgen_name")', function() { - // uncomment below and update the code to test the property nexgenName - //var instance = new HyperstackApi.FutureNodeUpdateModel(); - //expect(instance).to.be(); - }); - - it('should have the property openstackName (base name: "openstack_name")', function() { - // uncomment below and update the code to test the property openstackName - //var instance = new HyperstackApi.FutureNodeUpdateModel(); - //expect(instance).to.be(); - }); - - it('should have the property regionId (base name: "region_id")', function() { - // uncomment below and update the code to test the property regionId - //var instance = new HyperstackApi.FutureNodeUpdateModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/FutureNodesStockModel.spec.js b/test/model/FutureNodesStockModel.spec.js deleted file mode 100644 index 9acd308d..00000000 --- a/test/model/FutureNodesStockModel.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.FutureNodesStockModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('FutureNodesStockModel', function() { - it('should create an instance of FutureNodesStockModel', function() { - // uncomment below and update the code to test FutureNodesStockModel - //var instance = new HyperstackApi.FutureNodesStockModel(); - //expect(instance).to.be.a(HyperstackApi.FutureNodesStockModel); - }); - - it('should have the property futureStocks (base name: "future_stocks")', function() { - // uncomment below and update the code to test the property futureStocks - //var instance = new HyperstackApi.FutureNodesStockModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GPU.spec.js b/test/model/GPU.spec.js deleted file mode 100644 index 79bfaf26..00000000 --- a/test/model/GPU.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.GPU(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GPU', function() { - it('should create an instance of GPU', function() { - // uncomment below and update the code to test GPU - //var instance = new HyperstackApi.GPU(); - //expect(instance).to.be.a(HyperstackApi.GPU); - }); - - it('should have the property gpu (base name: "gpu")', function() { - // uncomment below and update the code to test the property gpu - //var instance = new HyperstackApi.GPU(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.GPU(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.GPU(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetAllContractFields.spec.js b/test/model/GetAllContractFields.spec.js deleted file mode 100644 index 24d11d97..00000000 --- a/test/model/GetAllContractFields.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.GetAllContractFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetAllContractFields', function() { - it('should create an instance of GetAllContractFields', function() { - // uncomment below and update the code to test GetAllContractFields - //var instance = new HyperstackApi.GetAllContractFields(); - //expect(instance).to.be.a(HyperstackApi.GetAllContractFields); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new HyperstackApi.GetAllContractFields(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new HyperstackApi.GetAllContractFields(); - //expect(instance).to.be(); - }); - - it('should have the property endDate (base name: "end_date")', function() { - // uncomment below and update the code to test the property endDate - //var instance = new HyperstackApi.GetAllContractFields(); - //expect(instance).to.be(); - }); - - it('should have the property expirationPolicy (base name: "expiration_policy")', function() { - // uncomment below and update the code to test the property expirationPolicy - //var instance = new HyperstackApi.GetAllContractFields(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.GetAllContractFields(); - //expect(instance).to.be(); - }); - - it('should have the property orgId (base name: "org_id")', function() { - // uncomment below and update the code to test the property orgId - //var instance = new HyperstackApi.GetAllContractFields(); - //expect(instance).to.be(); - }); - - it('should have the property startDate (base name: "start_date")', function() { - // uncomment below and update the code to test the property startDate - //var instance = new HyperstackApi.GetAllContractFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetAllContractsResponseModel.spec.js b/test/model/GetAllContractsResponseModel.spec.js deleted file mode 100644 index 2525ff21..00000000 --- a/test/model/GetAllContractsResponseModel.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.GetAllContractsResponseModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetAllContractsResponseModel', function() { - it('should create an instance of GetAllContractsResponseModel', function() { - // uncomment below and update the code to test GetAllContractsResponseModel - //var instance = new HyperstackApi.GetAllContractsResponseModel(); - //expect(instance).to.be.a(HyperstackApi.GetAllContractsResponseModel); - }); - - it('should have the property contracts (base name: "contracts")', function() { - // uncomment below and update the code to test the property contracts - //var instance = new HyperstackApi.GetAllContractsResponseModel(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.GetAllContractsResponseModel(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.GetAllContractsResponseModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetAllDiscountForAllOrganizationResponse.spec.js b/test/model/GetAllDiscountForAllOrganizationResponse.spec.js deleted file mode 100644 index f6496387..00000000 --- a/test/model/GetAllDiscountForAllOrganizationResponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.GetAllDiscountForAllOrganizationResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetAllDiscountForAllOrganizationResponse', function() { - it('should create an instance of GetAllDiscountForAllOrganizationResponse', function() { - // uncomment below and update the code to test GetAllDiscountForAllOrganizationResponse - //var instance = new HyperstackApi.GetAllDiscountForAllOrganizationResponse(); - //expect(instance).to.be.a(HyperstackApi.GetAllDiscountForAllOrganizationResponse); - }); - - it('should have the property discountPlans (base name: "discount_plans")', function() { - // uncomment below and update the code to test the property discountPlans - //var instance = new HyperstackApi.GetAllDiscountForAllOrganizationResponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.GetAllDiscountForAllOrganizationResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.GetAllDiscountForAllOrganizationResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetAllDiscountsFields.spec.js b/test/model/GetAllDiscountsFields.spec.js deleted file mode 100644 index 0c44ddb5..00000000 --- a/test/model/GetAllDiscountsFields.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.GetAllDiscountsFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetAllDiscountsFields', function() { - it('should create an instance of GetAllDiscountsFields', function() { - // uncomment below and update the code to test GetAllDiscountsFields - //var instance = new HyperstackApi.GetAllDiscountsFields(); - //expect(instance).to.be.a(HyperstackApi.GetAllDiscountsFields); - }); - - it('should have the property discountResources (base name: "discount_resources")', function() { - // uncomment below and update the code to test the property discountResources - //var instance = new HyperstackApi.GetAllDiscountsFields(); - //expect(instance).to.be(); - }); - - it('should have the property discountStatus (base name: "discount_status")', function() { - // uncomment below and update the code to test the property discountStatus - //var instance = new HyperstackApi.GetAllDiscountsFields(); - //expect(instance).to.be(); - }); - - it('should have the property endDate (base name: "end_date")', function() { - // uncomment below and update the code to test the property endDate - //var instance = new HyperstackApi.GetAllDiscountsFields(); - //expect(instance).to.be(); - }); - - it('should have the property orgId (base name: "org_id")', function() { - // uncomment below and update the code to test the property orgId - //var instance = new HyperstackApi.GetAllDiscountsFields(); - //expect(instance).to.be(); - }); - - it('should have the property orgName (base name: "org_name")', function() { - // uncomment below and update the code to test the property orgName - //var instance = new HyperstackApi.GetAllDiscountsFields(); - //expect(instance).to.be(); - }); - - it('should have the property startDate (base name: "start_date")', function() { - // uncomment below and update the code to test the property startDate - //var instance = new HyperstackApi.GetAllDiscountsFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetCreditAndThresholdInfo.spec.js b/test/model/GetCreditAndThresholdInfo.spec.js new file mode 100644 index 00000000..e6382e4a --- /dev/null +++ b/test/model/GetCreditAndThresholdInfo.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.GetCreditAndThresholdInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetCreditAndThresholdInfo', function() { + it('should create an instance of GetCreditAndThresholdInfo', function() { + // uncomment below and update the code to test GetCreditAndThresholdInfo + //var instance = new HyperstackApi.GetCreditAndThresholdInfo(); + //expect(instance).to.be.a(HyperstackApi.GetCreditAndThresholdInfo); + }); + + it('should have the property canCreateInstance (base name: "can_create_instance")', function() { + // uncomment below and update the code to test the property canCreateInstance + //var instance = new HyperstackApi.GetCreditAndThresholdInfo(); + //expect(instance).to.be(); + }); + + it('should have the property credit (base name: "credit")', function() { + // uncomment below and update the code to test the property credit + //var instance = new HyperstackApi.GetCreditAndThresholdInfo(); + //expect(instance).to.be(); + }); + + it('should have the property threshold (base name: "threshold")', function() { + // uncomment below and update the code to test the property threshold + //var instance = new HyperstackApi.GetCreditAndThresholdInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GetCreditAndThresholdInfoInResponse.spec.js b/test/model/GetCreditAndThresholdInfoInResponse.spec.js new file mode 100644 index 00000000..52490d1d --- /dev/null +++ b/test/model/GetCreditAndThresholdInfoInResponse.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.GetCreditAndThresholdInfoInResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetCreditAndThresholdInfoInResponse', function() { + it('should create an instance of GetCreditAndThresholdInfoInResponse', function() { + // uncomment below and update the code to test GetCreditAndThresholdInfoInResponse + //var instance = new HyperstackApi.GetCreditAndThresholdInfoInResponse(); + //expect(instance).to.be.a(HyperstackApi.GetCreditAndThresholdInfoInResponse); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new HyperstackApi.GetCreditAndThresholdInfoInResponse(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.GetCreditAndThresholdInfoInResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.GetCreditAndThresholdInfoInResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GetDiscountDetailResponse.spec.js b/test/model/GetDiscountDetailResponse.spec.js deleted file mode 100644 index 659fb361..00000000 --- a/test/model/GetDiscountDetailResponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.GetDiscountDetailResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetDiscountDetailResponse', function() { - it('should create an instance of GetDiscountDetailResponse', function() { - // uncomment below and update the code to test GetDiscountDetailResponse - //var instance = new HyperstackApi.GetDiscountDetailResponse(); - //expect(instance).to.be.a(HyperstackApi.GetDiscountDetailResponse); - }); - - it('should have the property discountsEntity (base name: "discounts_entity")', function() { - // uncomment below and update the code to test the property discountsEntity - //var instance = new HyperstackApi.GetDiscountDetailResponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.GetDiscountDetailResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.GetDiscountDetailResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetDiscountResponse.spec.js b/test/model/GetDiscountResponse.spec.js deleted file mode 100644 index 9ffdf65d..00000000 --- a/test/model/GetDiscountResponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.GetDiscountResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetDiscountResponse', function() { - it('should create an instance of GetDiscountResponse', function() { - // uncomment below and update the code to test GetDiscountResponse - //var instance = new HyperstackApi.GetDiscountResponse(); - //expect(instance).to.be.a(HyperstackApi.GetDiscountResponse); - }); - - it('should have the property discountEntites (base name: "discount_entites")', function() { - // uncomment below and update the code to test the property discountEntites - //var instance = new HyperstackApi.GetDiscountResponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.GetDiscountResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.GetDiscountResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetEntityDiscountDetailResponse.spec.js b/test/model/GetEntityDiscountDetailResponse.spec.js deleted file mode 100644 index 1f5c1b8d..00000000 --- a/test/model/GetEntityDiscountDetailResponse.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.GetEntityDiscountDetailResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetEntityDiscountDetailResponse', function() { - it('should create an instance of GetEntityDiscountDetailResponse', function() { - // uncomment below and update the code to test GetEntityDiscountDetailResponse - //var instance = new HyperstackApi.GetEntityDiscountDetailResponse(); - //expect(instance).to.be.a(HyperstackApi.GetEntityDiscountDetailResponse); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.GetEntityDiscountDetailResponse(); - //expect(instance).to.be(); - }); - - it('should have the property organization (base name: "organization")', function() { - // uncomment below and update the code to test the property organization - //var instance = new HyperstackApi.GetEntityDiscountDetailResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.GetEntityDiscountDetailResponse(); - //expect(instance).to.be(); - }); - - it('should have the property virtualMachine (base name: "virtual-machine")', function() { - // uncomment below and update the code to test the property virtualMachine - //var instance = new HyperstackApi.GetEntityDiscountDetailResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetInstanceLogsResponse.spec.js b/test/model/GetInstanceLogsResponse.spec.js new file mode 100644 index 00000000..68cced07 --- /dev/null +++ b/test/model/GetInstanceLogsResponse.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.GetInstanceLogsResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetInstanceLogsResponse', function() { + it('should create an instance of GetInstanceLogsResponse', function() { + // uncomment below and update the code to test GetInstanceLogsResponse + //var instance = new HyperstackApi.GetInstanceLogsResponse(); + //expect(instance).to.be.a(HyperstackApi.GetInstanceLogsResponse); + }); + + it('should have the property logs (base name: "logs")', function() { + // uncomment below and update the code to test the property logs + //var instance = new HyperstackApi.GetInstanceLogsResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GetTokenPayload.spec.js b/test/model/GetTokenPayload.spec.js deleted file mode 100644 index a8ab561e..00000000 --- a/test/model/GetTokenPayload.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.GetTokenPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetTokenPayload', function() { - it('should create an instance of GetTokenPayload', function() { - // uncomment below and update the code to test GetTokenPayload - //var instance = new HyperstackApi.GetTokenPayload(); - //expect(instance).to.be.a(HyperstackApi.GetTokenPayload); - }); - - it('should have the property callbackCode (base name: "callback_code")', function() { - // uncomment below and update the code to test the property callbackCode - //var instance = new HyperstackApi.GetTokenPayload(); - //expect(instance).to.be(); - }); - - it('should have the property sessionId (base name: "session_id")', function() { - // uncomment below and update the code to test the property sessionId - //var instance = new HyperstackApi.GetTokenPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetVersionResponse.spec.js b/test/model/GetVersionResponse.spec.js deleted file mode 100644 index e3833737..00000000 --- a/test/model/GetVersionResponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.GetVersionResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetVersionResponse', function() { - it('should create an instance of GetVersionResponse', function() { - // uncomment below and update the code to test GetVersionResponse - //var instance = new HyperstackApi.GetVersionResponse(); - //expect(instance).to.be.a(HyperstackApi.GetVersionResponse); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.GetVersionResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.GetVersionResponse(); - //expect(instance).to.be(); - }); - - it('should have the property version (base name: "version")', function() { - // uncomment below and update the code to test the property version - //var instance = new HyperstackApi.GetVersionResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Getcreditandthresholdinfo.spec.js b/test/model/Getcreditandthresholdinfo.spec.js deleted file mode 100644 index 0c9c0027..00000000 --- a/test/model/Getcreditandthresholdinfo.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.Getcreditandthresholdinfo(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Getcreditandthresholdinfo', function() { - it('should create an instance of Getcreditandthresholdinfo', function() { - // uncomment below and update the code to test Getcreditandthresholdinfo - //var instance = new HyperstackApi.Getcreditandthresholdinfo(); - //expect(instance).to.be.a(HyperstackApi.Getcreditandthresholdinfo); - }); - - it('should have the property canCreateInstance (base name: "can_create_instance")', function() { - // uncomment below and update the code to test the property canCreateInstance - //var instance = new HyperstackApi.Getcreditandthresholdinfo(); - //expect(instance).to.be(); - }); - - it('should have the property credit (base name: "credit")', function() { - // uncomment below and update the code to test the property credit - //var instance = new HyperstackApi.Getcreditandthresholdinfo(); - //expect(instance).to.be(); - }); - - it('should have the property threshold (base name: "threshold")', function() { - // uncomment below and update the code to test the property threshold - //var instance = new HyperstackApi.Getcreditandthresholdinfo(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Getcreditandthresholdinfoinresponse.spec.js b/test/model/Getcreditandthresholdinfoinresponse.spec.js deleted file mode 100644 index 5a0df514..00000000 --- a/test/model/Getcreditandthresholdinfoinresponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.Getcreditandthresholdinfoinresponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Getcreditandthresholdinfoinresponse', function() { - it('should create an instance of Getcreditandthresholdinfoinresponse', function() { - // uncomment below and update the code to test Getcreditandthresholdinfoinresponse - //var instance = new HyperstackApi.Getcreditandthresholdinfoinresponse(); - //expect(instance).to.be.a(HyperstackApi.Getcreditandthresholdinfoinresponse); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new HyperstackApi.Getcreditandthresholdinfoinresponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.Getcreditandthresholdinfoinresponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.Getcreditandthresholdinfoinresponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/HistoricalInstance.spec.js b/test/model/HistoricalInstance.spec.js deleted file mode 100644 index 1b54d813..00000000 --- a/test/model/HistoricalInstance.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.HistoricalInstance(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('HistoricalInstance', function() { - it('should create an instance of HistoricalInstance', function() { - // uncomment below and update the code to test HistoricalInstance - //var instance = new HyperstackApi.HistoricalInstance(); - //expect(instance).to.be.a(HyperstackApi.HistoricalInstance); - }); - - it('should have the property instanceCount (base name: "instance_count")', function() { - // uncomment below and update the code to test the property instanceCount - //var instance = new HyperstackApi.HistoricalInstance(); - //expect(instance).to.be(); - }); - - it('should have the property instances (base name: "instances")', function() { - // uncomment below and update the code to test the property instances - //var instance = new HyperstackApi.HistoricalInstance(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.HistoricalInstance(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.HistoricalInstance(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/HistoricalInstancesFields.spec.js b/test/model/HistoricalInstancesFields.spec.js deleted file mode 100644 index f8a3b96e..00000000 --- a/test/model/HistoricalInstancesFields.spec.js +++ /dev/null @@ -1,131 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.HistoricalInstancesFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('HistoricalInstancesFields', function() { - it('should create an instance of HistoricalInstancesFields', function() { - // uncomment below and update the code to test HistoricalInstancesFields - //var instance = new HyperstackApi.HistoricalInstancesFields(); - //expect(instance).to.be.a(HyperstackApi.HistoricalInstancesFields); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new HyperstackApi.HistoricalInstancesFields(); - //expect(instance).to.be(); - }); - - it('should have the property environment (base name: "environment")', function() { - // uncomment below and update the code to test the property environment - //var instance = new HyperstackApi.HistoricalInstancesFields(); - //expect(instance).to.be(); - }); - - it('should have the property environmentId (base name: "environment_id")', function() { - // uncomment below and update the code to test the property environmentId - //var instance = new HyperstackApi.HistoricalInstancesFields(); - //expect(instance).to.be(); - }); - - it('should have the property flavor (base name: "flavor")', function() { - // uncomment below and update the code to test the property flavor - //var instance = new HyperstackApi.HistoricalInstancesFields(); - //expect(instance).to.be(); - }); - - it('should have the property flavorId (base name: "flavor_id")', function() { - // uncomment below and update the code to test the property flavorId - //var instance = new HyperstackApi.HistoricalInstancesFields(); - //expect(instance).to.be(); - }); - - it('should have the property floatingIp (base name: "floating_ip")', function() { - // uncomment below and update the code to test the property floatingIp - //var instance = new HyperstackApi.HistoricalInstancesFields(); - //expect(instance).to.be(); - }); - - it('should have the property host (base name: "host")', function() { - // uncomment below and update the code to test the property host - //var instance = new HyperstackApi.HistoricalInstancesFields(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.HistoricalInstancesFields(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.HistoricalInstancesFields(); - //expect(instance).to.be(); - }); - - it('should have the property openstackId (base name: "openstack_id")', function() { - // uncomment below and update the code to test the property openstackId - //var instance = new HyperstackApi.HistoricalInstancesFields(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.HistoricalInstancesFields(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updated_at")', function() { - // uncomment below and update the code to test the property updatedAt - //var instance = new HyperstackApi.HistoricalInstancesFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ImageFields.spec.js b/test/model/ImageFields.spec.js index a5f979f8..58d4b0c6 100644 --- a/test/model/ImageFields.spec.js +++ b/test/model/ImageFields.spec.js @@ -66,6 +66,12 @@ //expect(instance).to.be(); }); + it('should have the property flavorRestrictions (base name: "flavor_restrictions")', function() { + // uncomment below and update the code to test the property flavorRestrictions + //var instance = new HyperstackApi.ImageFields(); + //expect(instance).to.be(); + }); + it('should have the property id (base name: "id")', function() { // uncomment below and update the code to test the property id //var instance = new HyperstackApi.ImageFields(); diff --git a/test/model/ImageLogos.spec.js b/test/model/ImageLogos.spec.js deleted file mode 100644 index 2f24345c..00000000 --- a/test/model/ImageLogos.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.ImageLogos(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ImageLogos', function() { - it('should create an instance of ImageLogos', function() { - // uncomment below and update the code to test ImageLogos - //var instance = new HyperstackApi.ImageLogos(); - //expect(instance).to.be.a(HyperstackApi.ImageLogos); - }); - - it('should have the property logos (base name: "logos")', function() { - // uncomment below and update the code to test the property logos - //var instance = new HyperstackApi.ImageLogos(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.ImageLogos(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.ImageLogos(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/InfrahubResourceObjectResponse.spec.js b/test/model/InfrahubResourceObjectResponse.spec.js deleted file mode 100644 index ed682818..00000000 --- a/test/model/InfrahubResourceObjectResponse.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.InfrahubResourceObjectResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('InfrahubResourceObjectResponse', function() { - it('should create an instance of InfrahubResourceObjectResponse', function() { - // uncomment below and update the code to test InfrahubResourceObjectResponse - //var instance = new HyperstackApi.InfrahubResourceObjectResponse(); - //expect(instance).to.be.a(HyperstackApi.InfrahubResourceObjectResponse); - }); - - it('should have the property actualHostPrice (base name: "actual_host_price")', function() { - // uncomment below and update the code to test the property actualHostPrice - //var instance = new HyperstackApi.InfrahubResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property actualPrice (base name: "actual_price")', function() { - // uncomment below and update the code to test the property actualPrice - //var instance = new HyperstackApi.InfrahubResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property contractId (base name: "contract_id")', function() { - // uncomment below and update the code to test the property contractId - //var instance = new HyperstackApi.InfrahubResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property host (base name: "host")', function() { - // uncomment below and update the code to test the property host - //var instance = new HyperstackApi.InfrahubResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property hostPrice (base name: "host_price")', function() { - // uncomment below and update the code to test the property hostPrice - //var instance = new HyperstackApi.InfrahubResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property infrahubId (base name: "infrahub_id")', function() { - // uncomment below and update the code to test the property infrahubId - //var instance = new HyperstackApi.InfrahubResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.InfrahubResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property nexgenActualPrice (base name: "nexgen_actual_price")', function() { - // uncomment below and update the code to test the property nexgenActualPrice - //var instance = new HyperstackApi.InfrahubResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property nexgenPrice (base name: "nexgen_price")', function() { - // uncomment below and update the code to test the property nexgenPrice - //var instance = new HyperstackApi.InfrahubResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property price (base name: "price")', function() { - // uncomment below and update the code to test the property price - //var instance = new HyperstackApi.InfrahubResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property resources (base name: "resources")', function() { - // uncomment below and update the code to test the property resources - //var instance = new HyperstackApi.InfrahubResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.InfrahubResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new HyperstackApi.InfrahubResourceObjectResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/InsertDiscountPlanFields.spec.js b/test/model/InsertDiscountPlanFields.spec.js deleted file mode 100644 index bcab8e0c..00000000 --- a/test/model/InsertDiscountPlanFields.spec.js +++ /dev/null @@ -1,89 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.InsertDiscountPlanFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('InsertDiscountPlanFields', function() { - it('should create an instance of InsertDiscountPlanFields', function() { - // uncomment below and update the code to test InsertDiscountPlanFields - //var instance = new HyperstackApi.InsertDiscountPlanFields(); - //expect(instance).to.be.a(HyperstackApi.InsertDiscountPlanFields); - }); - - it('should have the property customers (base name: "customers")', function() { - // uncomment below and update the code to test the property customers - //var instance = new HyperstackApi.InsertDiscountPlanFields(); - //expect(instance).to.be(); - }); - - it('should have the property discountResources (base name: "discount_resources")', function() { - // uncomment below and update the code to test the property discountResources - //var instance = new HyperstackApi.InsertDiscountPlanFields(); - //expect(instance).to.be(); - }); - - it('should have the property discountStatus (base name: "discount_status")', function() { - // uncomment below and update the code to test the property discountStatus - //var instance = new HyperstackApi.InsertDiscountPlanFields(); - //expect(instance).to.be(); - }); - - it('should have the property endDate (base name: "end_date")', function() { - // uncomment below and update the code to test the property endDate - //var instance = new HyperstackApi.InsertDiscountPlanFields(); - //expect(instance).to.be(); - }); - - it('should have the property startDate (base name: "start_date")', function() { - // uncomment below and update the code to test the property startDate - //var instance = new HyperstackApi.InsertDiscountPlanFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/InstanceFields.spec.js b/test/model/InstanceFields.spec.js index ec1e2ef9..7ae1cf74 100644 --- a/test/model/InstanceFields.spec.js +++ b/test/model/InstanceFields.spec.js @@ -78,6 +78,12 @@ //expect(instance).to.be(); }); + it('should have the property features (base name: "features")', function() { + // uncomment below and update the code to test the property features + //var instance = new HyperstackApi.InstanceFields(); + //expect(instance).to.be(); + }); + it('should have the property fixedIp (base name: "fixed_ip")', function() { // uncomment below and update the code to test the property fixedIp //var instance = new HyperstackApi.InstanceFields(); @@ -162,6 +168,12 @@ //expect(instance).to.be(); }); + it('should have the property requiresPublicIp (base name: "requires_public_ip")', function() { + // uncomment below and update the code to test the property requiresPublicIp + //var instance = new HyperstackApi.InstanceFields(); + //expect(instance).to.be(); + }); + it('should have the property securityRules (base name: "security_rules")', function() { // uncomment below and update the code to test the property securityRules //var instance = new HyperstackApi.InstanceFields(); diff --git a/test/model/InstanceFlavorFields.spec.js b/test/model/InstanceFlavorFields.spec.js index 84e89f1e..3952da93 100644 --- a/test/model/InstanceFlavorFields.spec.js +++ b/test/model/InstanceFlavorFields.spec.js @@ -72,6 +72,12 @@ //expect(instance).to.be(); }); + it('should have the property features (base name: "features")', function() { + // uncomment below and update the code to test the property features + //var instance = new HyperstackApi.InstanceFlavorFields(); + //expect(instance).to.be(); + }); + it('should have the property gpu (base name: "gpu")', function() { // uncomment below and update the code to test the property gpu //var instance = new HyperstackApi.InstanceFlavorFields(); @@ -90,6 +96,12 @@ //expect(instance).to.be(); }); + it('should have the property labels (base name: "labels")', function() { + // uncomment below and update the code to test the property labels + //var instance = new HyperstackApi.InstanceFlavorFields(); + //expect(instance).to.be(); + }); + it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name //var instance = new HyperstackApi.InstanceFlavorFields(); diff --git a/test/model/InstancesSummaryFields.spec.js b/test/model/InstancesSummaryFields.spec.js deleted file mode 100644 index dfe4c9bf..00000000 --- a/test/model/InstancesSummaryFields.spec.js +++ /dev/null @@ -1,161 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.InstancesSummaryFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('InstancesSummaryFields', function() { - it('should create an instance of InstancesSummaryFields', function() { - // uncomment below and update the code to test InstancesSummaryFields - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be.a(HyperstackApi.InstancesSummaryFields); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - it('should have the property environment (base name: "environment")', function() { - // uncomment below and update the code to test the property environment - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - it('should have the property environmentId (base name: "environment_id")', function() { - // uncomment below and update the code to test the property environmentId - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - it('should have the property fixedIp (base name: "fixed_ip")', function() { - // uncomment below and update the code to test the property fixedIp - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - it('should have the property flavor (base name: "flavor")', function() { - // uncomment below and update the code to test the property flavor - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - it('should have the property flavorId (base name: "flavor_id")', function() { - // uncomment below and update the code to test the property flavorId - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - it('should have the property floatingIp (base name: "floating_ip")', function() { - // uncomment below and update the code to test the property floatingIp - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - it('should have the property floatingIpStatus (base name: "floating_ip_status")', function() { - // uncomment below and update the code to test the property floatingIpStatus - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - it('should have the property image (base name: "image")', function() { - // uncomment below and update the code to test the property image - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - it('should have the property imageId (base name: "image_id")', function() { - // uncomment below and update the code to test the property imageId - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - it('should have the property keypair (base name: "keypair")', function() { - // uncomment below and update the code to test the property keypair - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - it('should have the property keypairId (base name: "keypair_id")', function() { - // uncomment below and update the code to test the property keypairId - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - it('should have the property orgId (base name: "org_id")', function() { - // uncomment below and update the code to test the property orgId - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updated_at")', function() { - // uncomment below and update the code to test the property updatedAt - //var instance = new HyperstackApi.InstancesSummaryFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/InternalEnvironmentFields.spec.js b/test/model/InternalEnvironmentFields.spec.js deleted file mode 100644 index f77f3fb2..00000000 --- a/test/model/InternalEnvironmentFields.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.InternalEnvironmentFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('InternalEnvironmentFields', function() { - it('should create an instance of InternalEnvironmentFields', function() { - // uncomment below and update the code to test InternalEnvironmentFields - //var instance = new HyperstackApi.InternalEnvironmentFields(); - //expect(instance).to.be.a(HyperstackApi.InternalEnvironmentFields); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new HyperstackApi.InternalEnvironmentFields(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.InternalEnvironmentFields(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.InternalEnvironmentFields(); - //expect(instance).to.be(); - }); - - it('should have the property region (base name: "region")', function() { - // uncomment below and update the code to test the property region - //var instance = new HyperstackApi.InternalEnvironmentFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/InternalInstanceFields.spec.js b/test/model/InternalInstanceFields.spec.js deleted file mode 100644 index a0399c84..00000000 --- a/test/model/InternalInstanceFields.spec.js +++ /dev/null @@ -1,173 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.InternalInstanceFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('InternalInstanceFields', function() { - it('should create an instance of InternalInstanceFields', function() { - // uncomment below and update the code to test InternalInstanceFields - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be.a(HyperstackApi.InternalInstanceFields); - }); - - it('should have the property bootSource (base name: "boot_source")', function() { - // uncomment below and update the code to test the property bootSource - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property callbackUrl (base name: "callback_url")', function() { - // uncomment below and update the code to test the property callbackUrl - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property environment (base name: "environment")', function() { - // uncomment below and update the code to test the property environment - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property fixedIp (base name: "fixed_ip")', function() { - // uncomment below and update the code to test the property fixedIp - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property flavor (base name: "flavor")', function() { - // uncomment below and update the code to test the property flavor - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property floatingIp (base name: "floating_ip")', function() { - // uncomment below and update the code to test the property floatingIp - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property floatingIpStatus (base name: "floating_ip_status")', function() { - // uncomment below and update the code to test the property floatingIpStatus - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property image (base name: "image")', function() { - // uncomment below and update the code to test the property image - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property keypair (base name: "keypair")', function() { - // uncomment below and update the code to test the property keypair - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property openstackId (base name: "openstack_id")', function() { - // uncomment below and update the code to test the property openstackId - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property powerState (base name: "power_state")', function() { - // uncomment below and update the code to test the property powerState - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property securityRules (base name: "security_rules")', function() { - // uncomment below and update the code to test the property securityRules - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property userData (base name: "user_data")', function() { - // uncomment below and update the code to test the property userData - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property vmState (base name: "vm_state")', function() { - // uncomment below and update the code to test the property vmState - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - it('should have the property volumeAttachments (base name: "volume_attachments")', function() { - // uncomment below and update the code to test the property volumeAttachments - //var instance = new HyperstackApi.InternalInstanceFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/InternalInstanceFlavorFields.spec.js b/test/model/InternalInstanceFlavorFields.spec.js deleted file mode 100644 index 06e7c104..00000000 --- a/test/model/InternalInstanceFlavorFields.spec.js +++ /dev/null @@ -1,113 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.InternalInstanceFlavorFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('InternalInstanceFlavorFields', function() { - it('should create an instance of InternalInstanceFlavorFields', function() { - // uncomment below and update the code to test InternalInstanceFlavorFields - //var instance = new HyperstackApi.InternalInstanceFlavorFields(); - //expect(instance).to.be.a(HyperstackApi.InternalInstanceFlavorFields); - }); - - it('should have the property cpu (base name: "cpu")', function() { - // uncomment below and update the code to test the property cpu - //var instance = new HyperstackApi.InternalInstanceFlavorFields(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new HyperstackApi.InternalInstanceFlavorFields(); - //expect(instance).to.be(); - }); - - it('should have the property disk (base name: "disk")', function() { - // uncomment below and update the code to test the property disk - //var instance = new HyperstackApi.InternalInstanceFlavorFields(); - //expect(instance).to.be(); - }); - - it('should have the property gpu (base name: "gpu")', function() { - // uncomment below and update the code to test the property gpu - //var instance = new HyperstackApi.InternalInstanceFlavorFields(); - //expect(instance).to.be(); - }); - - it('should have the property gpuCount (base name: "gpu_count")', function() { - // uncomment below and update the code to test the property gpuCount - //var instance = new HyperstackApi.InternalInstanceFlavorFields(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.InternalInstanceFlavorFields(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.InternalInstanceFlavorFields(); - //expect(instance).to.be(); - }); - - it('should have the property ram (base name: "ram")', function() { - // uncomment below and update the code to test the property ram - //var instance = new HyperstackApi.InternalInstanceFlavorFields(); - //expect(instance).to.be(); - }); - - it('should have the property regionName (base name: "region_name")', function() { - // uncomment below and update the code to test the property regionName - //var instance = new HyperstackApi.InternalInstanceFlavorFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/InternalInstanceImageFields.spec.js b/test/model/InternalInstanceImageFields.spec.js deleted file mode 100644 index 536de6af..00000000 --- a/test/model/InternalInstanceImageFields.spec.js +++ /dev/null @@ -1,89 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.InternalInstanceImageFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('InternalInstanceImageFields', function() { - it('should create an instance of InternalInstanceImageFields', function() { - // uncomment below and update the code to test InternalInstanceImageFields - //var instance = new HyperstackApi.InternalInstanceImageFields(); - //expect(instance).to.be.a(HyperstackApi.InternalInstanceImageFields); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.InternalInstanceImageFields(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.InternalInstanceImageFields(); - //expect(instance).to.be(); - }); - - it('should have the property regionName (base name: "region_name")', function() { - // uncomment below and update the code to test the property regionName - //var instance = new HyperstackApi.InternalInstanceImageFields(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new HyperstackApi.InternalInstanceImageFields(); - //expect(instance).to.be(); - }); - - it('should have the property version (base name: "version")', function() { - // uncomment below and update the code to test the property version - //var instance = new HyperstackApi.InternalInstanceImageFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/InternalInstanceKeypairFields.spec.js b/test/model/InternalInstanceKeypairFields.spec.js deleted file mode 100644 index a47b7014..00000000 --- a/test/model/InternalInstanceKeypairFields.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.InternalInstanceKeypairFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('InternalInstanceKeypairFields', function() { - it('should create an instance of InternalInstanceKeypairFields', function() { - // uncomment below and update the code to test InternalInstanceKeypairFields - //var instance = new HyperstackApi.InternalInstanceKeypairFields(); - //expect(instance).to.be.a(HyperstackApi.InternalInstanceKeypairFields); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new HyperstackApi.InternalInstanceKeypairFields(); - //expect(instance).to.be(); - }); - - it('should have the property environment (base name: "environment")', function() { - // uncomment below and update the code to test the property environment - //var instance = new HyperstackApi.InternalInstanceKeypairFields(); - //expect(instance).to.be(); - }); - - it('should have the property fingerprint (base name: "fingerprint")', function() { - // uncomment below and update the code to test the property fingerprint - //var instance = new HyperstackApi.InternalInstanceKeypairFields(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.InternalInstanceKeypairFields(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.InternalInstanceKeypairFields(); - //expect(instance).to.be(); - }); - - it('should have the property publicKey (base name: "public_key")', function() { - // uncomment below and update the code to test the property publicKey - //var instance = new HyperstackApi.InternalInstanceKeypairFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/InternalInstancesResponse.spec.js b/test/model/InternalInstancesResponse.spec.js deleted file mode 100644 index 19f3547a..00000000 --- a/test/model/InternalInstancesResponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.InternalInstancesResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('InternalInstancesResponse', function() { - it('should create an instance of InternalInstancesResponse', function() { - // uncomment below and update the code to test InternalInstancesResponse - //var instance = new HyperstackApi.InternalInstancesResponse(); - //expect(instance).to.be.a(HyperstackApi.InternalInstancesResponse); - }); - - it('should have the property instances (base name: "instances")', function() { - // uncomment below and update the code to test the property instances - //var instance = new HyperstackApi.InternalInstancesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.InternalInstancesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.InternalInstancesResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/InternalSecurityRulesFieldsForInstance.spec.js b/test/model/InternalSecurityRulesFieldsForInstance.spec.js deleted file mode 100644 index b53c50de..00000000 --- a/test/model/InternalSecurityRulesFieldsForInstance.spec.js +++ /dev/null @@ -1,113 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.InternalSecurityRulesFieldsForInstance(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('InternalSecurityRulesFieldsForInstance', function() { - it('should create an instance of InternalSecurityRulesFieldsForInstance', function() { - // uncomment below and update the code to test InternalSecurityRulesFieldsForInstance - //var instance = new HyperstackApi.InternalSecurityRulesFieldsForInstance(); - //expect(instance).to.be.a(HyperstackApi.InternalSecurityRulesFieldsForInstance); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new HyperstackApi.InternalSecurityRulesFieldsForInstance(); - //expect(instance).to.be(); - }); - - it('should have the property direction (base name: "direction")', function() { - // uncomment below and update the code to test the property direction - //var instance = new HyperstackApi.InternalSecurityRulesFieldsForInstance(); - //expect(instance).to.be(); - }); - - it('should have the property ethertype (base name: "ethertype")', function() { - // uncomment below and update the code to test the property ethertype - //var instance = new HyperstackApi.InternalSecurityRulesFieldsForInstance(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.InternalSecurityRulesFieldsForInstance(); - //expect(instance).to.be(); - }); - - it('should have the property portRangeMax (base name: "port_range_max")', function() { - // uncomment below and update the code to test the property portRangeMax - //var instance = new HyperstackApi.InternalSecurityRulesFieldsForInstance(); - //expect(instance).to.be(); - }); - - it('should have the property portRangeMin (base name: "port_range_min")', function() { - // uncomment below and update the code to test the property portRangeMin - //var instance = new HyperstackApi.InternalSecurityRulesFieldsForInstance(); - //expect(instance).to.be(); - }); - - it('should have the property protocol (base name: "protocol")', function() { - // uncomment below and update the code to test the property protocol - //var instance = new HyperstackApi.InternalSecurityRulesFieldsForInstance(); - //expect(instance).to.be(); - }); - - it('should have the property remoteIpPrefix (base name: "remote_ip_prefix")', function() { - // uncomment below and update the code to test the property remoteIpPrefix - //var instance = new HyperstackApi.InternalSecurityRulesFieldsForInstance(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.InternalSecurityRulesFieldsForInstance(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/InternalVolumeAttachmentFields.spec.js b/test/model/InternalVolumeAttachmentFields.spec.js deleted file mode 100644 index 71cd6541..00000000 --- a/test/model/InternalVolumeAttachmentFields.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.InternalVolumeAttachmentFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('InternalVolumeAttachmentFields', function() { - it('should create an instance of InternalVolumeAttachmentFields', function() { - // uncomment below and update the code to test InternalVolumeAttachmentFields - //var instance = new HyperstackApi.InternalVolumeAttachmentFields(); - //expect(instance).to.be.a(HyperstackApi.InternalVolumeAttachmentFields); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new HyperstackApi.InternalVolumeAttachmentFields(); - //expect(instance).to.be(); - }); - - it('should have the property device (base name: "device")', function() { - // uncomment below and update the code to test the property device - //var instance = new HyperstackApi.InternalVolumeAttachmentFields(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.InternalVolumeAttachmentFields(); - //expect(instance).to.be(); - }); - - it('should have the property volume (base name: "volume")', function() { - // uncomment below and update the code to test the property volume - //var instance = new HyperstackApi.InternalVolumeAttachmentFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/InternalVolumeFields.spec.js b/test/model/InternalVolumeFields.spec.js deleted file mode 100644 index 7b316f4f..00000000 --- a/test/model/InternalVolumeFields.spec.js +++ /dev/null @@ -1,89 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.InternalVolumeFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('InternalVolumeFields', function() { - it('should create an instance of InternalVolumeFields', function() { - // uncomment below and update the code to test InternalVolumeFields - //var instance = new HyperstackApi.InternalVolumeFields(); - //expect(instance).to.be.a(HyperstackApi.InternalVolumeFields); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new HyperstackApi.InternalVolumeFields(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.InternalVolumeFields(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.InternalVolumeFields(); - //expect(instance).to.be(); - }); - - it('should have the property size (base name: "size")', function() { - // uncomment below and update the code to test the property size - //var instance = new HyperstackApi.InternalVolumeFields(); - //expect(instance).to.be(); - }); - - it('should have the property volumeType (base name: "volume_type")', function() { - // uncomment below and update the code to test the property volumeType - //var instance = new HyperstackApi.InternalVolumeFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/InternalVolumesResponse.spec.js b/test/model/InternalVolumesResponse.spec.js deleted file mode 100644 index 2517fa32..00000000 --- a/test/model/InternalVolumesResponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.InternalVolumesResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('InternalVolumesResponse', function() { - it('should create an instance of InternalVolumesResponse', function() { - // uncomment below and update the code to test InternalVolumesResponse - //var instance = new HyperstackApi.InternalVolumesResponse(); - //expect(instance).to.be.a(HyperstackApi.InternalVolumesResponse); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.InternalVolumesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.InternalVolumesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property volumes (base name: "volumes")', function() { - // uncomment below and update the code to test the property volumes - //var instance = new HyperstackApi.InternalVolumesResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/KeypairEnvironmentFeatures.spec.js b/test/model/KeypairEnvironmentFeatures.spec.js new file mode 100644 index 00000000..5153dab9 --- /dev/null +++ b/test/model/KeypairEnvironmentFeatures.spec.js @@ -0,0 +1,71 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.KeypairEnvironmentFeatures(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KeypairEnvironmentFeatures', function() { + it('should create an instance of KeypairEnvironmentFeatures', function() { + // uncomment below and update the code to test KeypairEnvironmentFeatures + //var instance = new HyperstackApi.KeypairEnvironmentFeatures(); + //expect(instance).to.be.a(HyperstackApi.KeypairEnvironmentFeatures); + }); + + it('should have the property greenStatus (base name: "green_status")', function() { + // uncomment below and update the code to test the property greenStatus + //var instance = new HyperstackApi.KeypairEnvironmentFeatures(); + //expect(instance).to.be(); + }); + + it('should have the property networkOptimised (base name: "network_optimised")', function() { + // uncomment below and update the code to test the property networkOptimised + //var instance = new HyperstackApi.KeypairEnvironmentFeatures(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/KeypairEnvironmentFields.spec.js b/test/model/KeypairEnvironmentFields.spec.js new file mode 100644 index 00000000..0a6e28ab --- /dev/null +++ b/test/model/KeypairEnvironmentFields.spec.js @@ -0,0 +1,89 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.KeypairEnvironmentFields(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('KeypairEnvironmentFields', function() { + it('should create an instance of KeypairEnvironmentFields', function() { + // uncomment below and update the code to test KeypairEnvironmentFields + //var instance = new HyperstackApi.KeypairEnvironmentFields(); + //expect(instance).to.be.a(HyperstackApi.KeypairEnvironmentFields); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new HyperstackApi.KeypairEnvironmentFields(); + //expect(instance).to.be(); + }); + + it('should have the property features (base name: "features")', function() { + // uncomment below and update the code to test the property features + //var instance = new HyperstackApi.KeypairEnvironmentFields(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.KeypairEnvironmentFields(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new HyperstackApi.KeypairEnvironmentFields(); + //expect(instance).to.be(); + }); + + it('should have the property region (base name: "region")', function() { + // uncomment below and update the code to test the property region + //var instance = new HyperstackApi.KeypairEnvironmentFields(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LastDayCostFields.spec.js b/test/model/LastDayCostFields.spec.js new file mode 100644 index 00000000..f39f12a7 --- /dev/null +++ b/test/model/LastDayCostFields.spec.js @@ -0,0 +1,83 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.LastDayCostFields(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LastDayCostFields', function() { + it('should create an instance of LastDayCostFields', function() { + // uncomment below and update the code to test LastDayCostFields + //var instance = new HyperstackApi.LastDayCostFields(); + //expect(instance).to.be.a(HyperstackApi.LastDayCostFields); + }); + + it('should have the property clustersCost (base name: "clusters_cost")', function() { + // uncomment below and update the code to test the property clustersCost + //var instance = new HyperstackApi.LastDayCostFields(); + //expect(instance).to.be(); + }); + + it('should have the property instancesCost (base name: "instances_cost")', function() { + // uncomment below and update the code to test the property instancesCost + //var instance = new HyperstackApi.LastDayCostFields(); + //expect(instance).to.be(); + }); + + it('should have the property totalCost (base name: "total_cost")', function() { + // uncomment below and update the code to test the property totalCost + //var instance = new HyperstackApi.LastDayCostFields(); + //expect(instance).to.be(); + }); + + it('should have the property volumesCost (base name: "volumes_cost")', function() { + // uncomment below and update the code to test the property volumesCost + //var instance = new HyperstackApi.LastDayCostFields(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LastDayCostResponse.spec.js b/test/model/LastDayCostResponse.spec.js new file mode 100644 index 00000000..70b4bd8f --- /dev/null +++ b/test/model/LastDayCostResponse.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.LastDayCostResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LastDayCostResponse', function() { + it('should create an instance of LastDayCostResponse', function() { + // uncomment below and update the code to test LastDayCostResponse + //var instance = new HyperstackApi.LastDayCostResponse(); + //expect(instance).to.be.a(HyperstackApi.LastDayCostResponse); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new HyperstackApi.LastDayCostResponse(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.LastDayCostResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.LastDayCostResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Lastdaycostfields.spec.js b/test/model/Lastdaycostfields.spec.js deleted file mode 100644 index dc7c865e..00000000 --- a/test/model/Lastdaycostfields.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.Lastdaycostfields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Lastdaycostfields', function() { - it('should create an instance of Lastdaycostfields', function() { - // uncomment below and update the code to test Lastdaycostfields - //var instance = new HyperstackApi.Lastdaycostfields(); - //expect(instance).to.be.a(HyperstackApi.Lastdaycostfields); - }); - - it('should have the property clustersCost (base name: "clusters_cost")', function() { - // uncomment below and update the code to test the property clustersCost - //var instance = new HyperstackApi.Lastdaycostfields(); - //expect(instance).to.be(); - }); - - it('should have the property instancesCost (base name: "instances_cost")', function() { - // uncomment below and update the code to test the property instancesCost - //var instance = new HyperstackApi.Lastdaycostfields(); - //expect(instance).to.be(); - }); - - it('should have the property totalCost (base name: "total_cost")', function() { - // uncomment below and update the code to test the property totalCost - //var instance = new HyperstackApi.Lastdaycostfields(); - //expect(instance).to.be(); - }); - - it('should have the property volumesCost (base name: "volumes_cost")', function() { - // uncomment below and update the code to test the property volumesCost - //var instance = new HyperstackApi.Lastdaycostfields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Lastdaycostresponse.spec.js b/test/model/Lastdaycostresponse.spec.js deleted file mode 100644 index 99938724..00000000 --- a/test/model/Lastdaycostresponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.Lastdaycostresponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Lastdaycostresponse', function() { - it('should create an instance of Lastdaycostresponse', function() { - // uncomment below and update the code to test Lastdaycostresponse - //var instance = new HyperstackApi.Lastdaycostresponse(); - //expect(instance).to.be.a(HyperstackApi.Lastdaycostresponse); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new HyperstackApi.Lastdaycostresponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.Lastdaycostresponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.Lastdaycostresponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/LogoGetResponse.spec.js b/test/model/LogoGetResponse.spec.js deleted file mode 100644 index 2f0afa07..00000000 --- a/test/model/LogoGetResponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.LogoGetResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('LogoGetResponse', function() { - it('should create an instance of LogoGetResponse', function() { - // uncomment below and update the code to test LogoGetResponse - //var instance = new HyperstackApi.LogoGetResponse(); - //expect(instance).to.be.a(HyperstackApi.LogoGetResponse); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.LogoGetResponse(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new HyperstackApi.LogoGetResponse(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new HyperstackApi.LogoGetResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Logos.spec.js b/test/model/Logos.spec.js new file mode 100644 index 00000000..10eccbae --- /dev/null +++ b/test/model/Logos.spec.js @@ -0,0 +1,83 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.Logos(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Logos', function() { + it('should create an instance of Logos', function() { + // uncomment below and update the code to test Logos + //var instance = new HyperstackApi.Logos(); + //expect(instance).to.be.a(HyperstackApi.Logos); + }); + + it('should have the property dark (base name: "dark")', function() { + // uncomment below and update the code to test the property dark + //var instance = new HyperstackApi.Logos(); + //expect(instance).to.be(); + }); + + it('should have the property email (base name: "email")', function() { + // uncomment below and update the code to test the property email + //var instance = new HyperstackApi.Logos(); + //expect(instance).to.be(); + }); + + it('should have the property favicon (base name: "favicon")', function() { + // uncomment below and update the code to test the property favicon + //var instance = new HyperstackApi.Logos(); + //expect(instance).to.be(); + }); + + it('should have the property light (base name: "light")', function() { + // uncomment below and update the code to test the property light + //var instance = new HyperstackApi.Logos(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LogoutPayload.spec.js b/test/model/LogoutPayload.spec.js deleted file mode 100644 index c3fb1e95..00000000 --- a/test/model/LogoutPayload.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.LogoutPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('LogoutPayload', function() { - it('should create an instance of LogoutPayload', function() { - // uncomment below and update the code to test LogoutPayload - //var instance = new HyperstackApi.LogoutPayload(); - //expect(instance).to.be.a(HyperstackApi.LogoutPayload); - }); - - it('should have the property refreshToken (base name: "refresh_token")', function() { - // uncomment below and update the code to test the property refreshToken - //var instance = new HyperstackApi.LogoutPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/MFAStatusFields.spec.js b/test/model/MFAStatusFields.spec.js new file mode 100644 index 00000000..69f7a8ac --- /dev/null +++ b/test/model/MFAStatusFields.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.MFAStatusFields(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MFAStatusFields', function() { + it('should create an instance of MFAStatusFields', function() { + // uncomment below and update the code to test MFAStatusFields + //var instance = new HyperstackApi.MFAStatusFields(); + //expect(instance).to.be.a(HyperstackApi.MFAStatusFields); + }); + + it('should have the property mfaEnabled (base name: "mfa_enabled")', function() { + // uncomment below and update the code to test the property mfaEnabled + //var instance = new HyperstackApi.MFAStatusFields(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MFAStatusResponse.spec.js b/test/model/MFAStatusResponse.spec.js new file mode 100644 index 00000000..a9aa8a54 --- /dev/null +++ b/test/model/MFAStatusResponse.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.MFAStatusResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MFAStatusResponse', function() { + it('should create an instance of MFAStatusResponse', function() { + // uncomment below and update the code to test MFAStatusResponse + //var instance = new HyperstackApi.MFAStatusResponse(); + //expect(instance).to.be.a(HyperstackApi.MFAStatusResponse); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.MFAStatusResponse(); + //expect(instance).to.be(); + }); + + it('should have the property mfa (base name: "mfa")', function() { + // uncomment below and update the code to test the property mfa + //var instance = new HyperstackApi.MFAStatusResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.MFAStatusResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ManualReconciliationModel.spec.js b/test/model/ManualReconciliationModel.spec.js new file mode 100644 index 00000000..99ea4249 --- /dev/null +++ b/test/model/ManualReconciliationModel.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ManualReconciliationModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ManualReconciliationModel', function() { + it('should create an instance of ManualReconciliationModel', function() { + // uncomment below and update the code to test ManualReconciliationModel + //var instance = new HyperstackApi.ManualReconciliationModel(); + //expect(instance).to.be.a(HyperstackApi.ManualReconciliationModel); + }); + + it('should have the property cluster (base name: "cluster")', function() { + // uncomment below and update the code to test the property cluster + //var instance = new HyperstackApi.ManualReconciliationModel(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.ManualReconciliationModel(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ManualReconciliationModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MasterFlavorsResponse.spec.js b/test/model/MasterFlavorsResponse.spec.js new file mode 100644 index 00000000..754c62b0 --- /dev/null +++ b/test/model/MasterFlavorsResponse.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.MasterFlavorsResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MasterFlavorsResponse', function() { + it('should create an instance of MasterFlavorsResponse', function() { + // uncomment below and update the code to test MasterFlavorsResponse + //var instance = new HyperstackApi.MasterFlavorsResponse(); + //expect(instance).to.be.a(HyperstackApi.MasterFlavorsResponse); + }); + + it('should have the property flavors (base name: "flavors")', function() { + // uncomment below and update the code to test the property flavors + //var instance = new HyperstackApi.MasterFlavorsResponse(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.MasterFlavorsResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.MasterFlavorsResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ModelEvaluationBillingHistoryDetailsResponseSchema.spec.js b/test/model/ModelEvaluationBillingHistoryDetailsResponseSchema.spec.js new file mode 100644 index 00000000..bd14fbc1 --- /dev/null +++ b/test/model/ModelEvaluationBillingHistoryDetailsResponseSchema.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ModelEvaluationBillingHistoryDetailsResponseSchema(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ModelEvaluationBillingHistoryDetailsResponseSchema', function() { + it('should create an instance of ModelEvaluationBillingHistoryDetailsResponseSchema', function() { + // uncomment below and update the code to test ModelEvaluationBillingHistoryDetailsResponseSchema + //var instance = new HyperstackApi.ModelEvaluationBillingHistoryDetailsResponseSchema(); + //expect(instance).to.be.a(HyperstackApi.ModelEvaluationBillingHistoryDetailsResponseSchema); + }); + + it('should have the property billingHistoryModelEvalutationDetails (base name: "billing_history_model_evalutation_details")', function() { + // uncomment below and update the code to test the property billingHistoryModelEvalutationDetails + //var instance = new HyperstackApi.ModelEvaluationBillingHistoryDetailsResponseSchema(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.ModelEvaluationBillingHistoryDetailsResponseSchema(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ModelEvaluationBillingHistoryDetailsResponseSchema(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/NewStockUpdateResponseModel.spec.js b/test/model/NewStockUpdateResponseModel.spec.js deleted file mode 100644 index 5d79b5e8..00000000 --- a/test/model/NewStockUpdateResponseModel.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.NewStockUpdateResponseModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('NewStockUpdateResponseModel', function() { - it('should create an instance of NewStockUpdateResponseModel', function() { - // uncomment below and update the code to test NewStockUpdateResponseModel - //var instance = new HyperstackApi.NewStockUpdateResponseModel(); - //expect(instance).to.be.a(HyperstackApi.NewStockUpdateResponseModel); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.NewStockUpdateResponseModel(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.NewStockUpdateResponseModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/NodeModel.spec.js b/test/model/NodeModel.spec.js deleted file mode 100644 index 5753f5f5..00000000 --- a/test/model/NodeModel.spec.js +++ /dev/null @@ -1,119 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.NodeModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('NodeModel', function() { - it('should create an instance of NodeModel', function() { - // uncomment below and update the code to test NodeModel - //var instance = new HyperstackApi.NodeModel(); - //expect(instance).to.be.a(HyperstackApi.NodeModel); - }); - - it('should have the property flavors (base name: "flavors")', function() { - // uncomment below and update the code to test the property flavors - //var instance = new HyperstackApi.NodeModel(); - //expect(instance).to.be(); - }); - - it('should have the property nexgenName (base name: "nexgen_name")', function() { - // uncomment below and update the code to test the property nexgenName - //var instance = new HyperstackApi.NodeModel(); - //expect(instance).to.be(); - }); - - it('should have the property openstackId (base name: "openstack_id")', function() { - // uncomment below and update the code to test the property openstackId - //var instance = new HyperstackApi.NodeModel(); - //expect(instance).to.be(); - }); - - it('should have the property openstackName (base name: "openstack_name")', function() { - // uncomment below and update the code to test the property openstackName - //var instance = new HyperstackApi.NodeModel(); - //expect(instance).to.be(); - }); - - it('should have the property organizations (base name: "organizations")', function() { - // uncomment below and update the code to test the property organizations - //var instance = new HyperstackApi.NodeModel(); - //expect(instance).to.be(); - }); - - it('should have the property projects (base name: "projects")', function() { - // uncomment below and update the code to test the property projects - //var instance = new HyperstackApi.NodeModel(); - //expect(instance).to.be(); - }); - - it('should have the property provisionDate (base name: "provision_date")', function() { - // uncomment below and update the code to test the property provisionDate - //var instance = new HyperstackApi.NodeModel(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.NodeModel(); - //expect(instance).to.be(); - }); - - it('should have the property stocks (base name: "stocks")', function() { - // uncomment below and update the code to test the property stocks - //var instance = new HyperstackApi.NodeModel(); - //expect(instance).to.be(); - }); - - it('should have the property sunsetDate (base name: "sunset_date")', function() { - // uncomment below and update the code to test the property sunsetDate - //var instance = new HyperstackApi.NodeModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/NodePayloadModel.spec.js b/test/model/NodePayloadModel.spec.js deleted file mode 100644 index 29d444cb..00000000 --- a/test/model/NodePayloadModel.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.NodePayloadModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('NodePayloadModel', function() { - it('should create an instance of NodePayloadModel', function() { - // uncomment below and update the code to test NodePayloadModel - //var instance = new HyperstackApi.NodePayloadModel(); - //expect(instance).to.be.a(HyperstackApi.NodePayloadModel); - }); - - it('should have the property nodes (base name: "nodes")', function() { - // uncomment below and update the code to test the property nodes - //var instance = new HyperstackApi.NodePayloadModel(); - //expect(instance).to.be(); - }); - - it('should have the property region (base name: "region")', function() { - // uncomment below and update the code to test the property region - //var instance = new HyperstackApi.NodePayloadModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/NodePowerUsageModel.spec.js b/test/model/NodePowerUsageModel.spec.js deleted file mode 100644 index 7af51283..00000000 --- a/test/model/NodePowerUsageModel.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.NodePowerUsageModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('NodePowerUsageModel', function() { - it('should create an instance of NodePowerUsageModel', function() { - // uncomment below and update the code to test NodePowerUsageModel - //var instance = new HyperstackApi.NodePowerUsageModel(); - //expect(instance).to.be.a(HyperstackApi.NodePowerUsageModel); - }); - - it('should have the property flavors (base name: "flavors")', function() { - // uncomment below and update the code to test the property flavors - //var instance = new HyperstackApi.NodePowerUsageModel(); - //expect(instance).to.be(); - }); - - it('should have the property nexgenName (base name: "nexgen_name")', function() { - // uncomment below and update the code to test the property nexgenName - //var instance = new HyperstackApi.NodePowerUsageModel(); - //expect(instance).to.be(); - }); - - it('should have the property openstackId (base name: "openstack_id")', function() { - // uncomment below and update the code to test the property openstackId - //var instance = new HyperstackApi.NodePowerUsageModel(); - //expect(instance).to.be(); - }); - - it('should have the property openstackName (base name: "openstack_name")', function() { - // uncomment below and update the code to test the property openstackName - //var instance = new HyperstackApi.NodePowerUsageModel(); - //expect(instance).to.be(); - }); - - it('should have the property organizations (base name: "organizations")', function() { - // uncomment below and update the code to test the property organizations - //var instance = new HyperstackApi.NodePowerUsageModel(); - //expect(instance).to.be(); - }); - - it('should have the property powerUsages (base name: "power_usages")', function() { - // uncomment below and update the code to test the property powerUsages - //var instance = new HyperstackApi.NodePowerUsageModel(); - //expect(instance).to.be(); - }); - - it('should have the property projects (base name: "projects")', function() { - // uncomment below and update the code to test the property projects - //var instance = new HyperstackApi.NodePowerUsageModel(); - //expect(instance).to.be(); - }); - - it('should have the property provisionDate (base name: "provision_date")', function() { - // uncomment below and update the code to test the property provisionDate - //var instance = new HyperstackApi.NodePowerUsageModel(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.NodePowerUsageModel(); - //expect(instance).to.be(); - }); - - it('should have the property stocks (base name: "stocks")', function() { - // uncomment below and update the code to test the property stocks - //var instance = new HyperstackApi.NodePowerUsageModel(); - //expect(instance).to.be(); - }); - - it('should have the property sunsetDate (base name: "sunset_date")', function() { - // uncomment below and update the code to test the property sunsetDate - //var instance = new HyperstackApi.NodePowerUsageModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/NodeResponseModel.spec.js b/test/model/NodeResponseModel.spec.js deleted file mode 100644 index 8ea66f96..00000000 --- a/test/model/NodeResponseModel.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.NodeResponseModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('NodeResponseModel', function() { - it('should create an instance of NodeResponseModel', function() { - // uncomment below and update the code to test NodeResponseModel - //var instance = new HyperstackApi.NodeResponseModel(); - //expect(instance).to.be.a(HyperstackApi.NodeResponseModel); - }); - - it('should have the property nodes (base name: "nodes")', function() { - // uncomment below and update the code to test the property nodes - //var instance = new HyperstackApi.NodeResponseModel(); - //expect(instance).to.be(); - }); - - it('should have the property region (base name: "region")', function() { - // uncomment below and update the code to test the property region - //var instance = new HyperstackApi.NodeResponseModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/NodeStockPayloadModel.spec.js b/test/model/NodeStockPayloadModel.spec.js deleted file mode 100644 index 31ed7311..00000000 --- a/test/model/NodeStockPayloadModel.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.NodeStockPayloadModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('NodeStockPayloadModel', function() { - it('should create an instance of NodeStockPayloadModel', function() { - // uncomment below and update the code to test NodeStockPayloadModel - //var instance = new HyperstackApi.NodeStockPayloadModel(); - //expect(instance).to.be.a(HyperstackApi.NodeStockPayloadModel); - }); - - it('should have the property stocks (base name: "stocks")', function() { - // uncomment below and update the code to test the property stocks - //var instance = new HyperstackApi.NodeStockPayloadModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/NodeStockResponseModel.spec.js b/test/model/NodeStockResponseModel.spec.js deleted file mode 100644 index 1db4de73..00000000 --- a/test/model/NodeStockResponseModel.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.NodeStockResponseModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('NodeStockResponseModel', function() { - it('should create an instance of NodeStockResponseModel', function() { - // uncomment below and update the code to test NodeStockResponseModel - //var instance = new HyperstackApi.NodeStockResponseModel(); - //expect(instance).to.be.a(HyperstackApi.NodeStockResponseModel); - }); - - it('should have the property stocks (base name: "stocks")', function() { - // uncomment below and update the code to test the property stocks - //var instance = new HyperstackApi.NodeStockResponseModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/NodeStocksPayload.spec.js b/test/model/NodeStocksPayload.spec.js deleted file mode 100644 index d615163d..00000000 --- a/test/model/NodeStocksPayload.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.NodeStocksPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('NodeStocksPayload', function() { - it('should create an instance of NodeStocksPayload', function() { - // uncomment below and update the code to test NodeStocksPayload - //var instance = new HyperstackApi.NodeStocksPayload(); - //expect(instance).to.be.a(HyperstackApi.NodeStocksPayload); - }); - - it('should have the property inUse (base name: "in_use")', function() { - // uncomment below and update the code to test the property inUse - //var instance = new HyperstackApi.NodeStocksPayload(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.NodeStocksPayload(); - //expect(instance).to.be(); - }); - - it('should have the property total (base name: "total")', function() { - // uncomment below and update the code to test the property total - //var instance = new HyperstackApi.NodeStocksPayload(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new HyperstackApi.NodeStocksPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ObjectStorageAccessKeyCreateRequest.spec.js b/test/model/ObjectStorageAccessKeyCreateRequest.spec.js new file mode 100644 index 00000000..3522bfea --- /dev/null +++ b/test/model/ObjectStorageAccessKeyCreateRequest.spec.js @@ -0,0 +1,71 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ObjectStorageAccessKeyCreateRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ObjectStorageAccessKeyCreateRequest', function() { + it('should create an instance of ObjectStorageAccessKeyCreateRequest', function() { + // uncomment below and update the code to test ObjectStorageAccessKeyCreateRequest + //var instance = new HyperstackApi.ObjectStorageAccessKeyCreateRequest(); + //expect(instance).to.be.a(HyperstackApi.ObjectStorageAccessKeyCreateRequest); + }); + + it('should have the property description (base name: "description")', function() { + // uncomment below and update the code to test the property description + //var instance = new HyperstackApi.ObjectStorageAccessKeyCreateRequest(); + //expect(instance).to.be(); + }); + + it('should have the property region (base name: "region")', function() { + // uncomment below and update the code to test the property region + //var instance = new HyperstackApi.ObjectStorageAccessKeyCreateRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ObjectStorageAccessKeyCreateResponse.spec.js b/test/model/ObjectStorageAccessKeyCreateResponse.spec.js new file mode 100644 index 00000000..2b5390ec --- /dev/null +++ b/test/model/ObjectStorageAccessKeyCreateResponse.spec.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ObjectStorageAccessKeyCreateResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ObjectStorageAccessKeyCreateResponse', function() { + it('should create an instance of ObjectStorageAccessKeyCreateResponse', function() { + // uncomment below and update the code to test ObjectStorageAccessKeyCreateResponse + //var instance = new HyperstackApi.ObjectStorageAccessKeyCreateResponse(); + //expect(instance).to.be.a(HyperstackApi.ObjectStorageAccessKeyCreateResponse); + }); + + it('should have the property accessKey (base name: "access_key")', function() { + // uncomment below and update the code to test the property accessKey + //var instance = new HyperstackApi.ObjectStorageAccessKeyCreateResponse(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new HyperstackApi.ObjectStorageAccessKeyCreateResponse(); + //expect(instance).to.be(); + }); + + it('should have the property description (base name: "description")', function() { + // uncomment below and update the code to test the property description + //var instance = new HyperstackApi.ObjectStorageAccessKeyCreateResponse(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.ObjectStorageAccessKeyCreateResponse(); + //expect(instance).to.be(); + }); + + it('should have the property region (base name: "region")', function() { + // uncomment below and update the code to test the property region + //var instance = new HyperstackApi.ObjectStorageAccessKeyCreateResponse(); + //expect(instance).to.be(); + }); + + it('should have the property secretKey (base name: "secret_key")', function() { + // uncomment below and update the code to test the property secretKey + //var instance = new HyperstackApi.ObjectStorageAccessKeyCreateResponse(); + //expect(instance).to.be(); + }); + + it('should have the property userId (base name: "user_id")', function() { + // uncomment below and update the code to test the property userId + //var instance = new HyperstackApi.ObjectStorageAccessKeyCreateResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ObjectStorageAccessKeyListResponse.spec.js b/test/model/ObjectStorageAccessKeyListResponse.spec.js new file mode 100644 index 00000000..d395f70b --- /dev/null +++ b/test/model/ObjectStorageAccessKeyListResponse.spec.js @@ -0,0 +1,71 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ObjectStorageAccessKeyListResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ObjectStorageAccessKeyListResponse', function() { + it('should create an instance of ObjectStorageAccessKeyListResponse', function() { + // uncomment below and update the code to test ObjectStorageAccessKeyListResponse + //var instance = new HyperstackApi.ObjectStorageAccessKeyListResponse(); + //expect(instance).to.be.a(HyperstackApi.ObjectStorageAccessKeyListResponse); + }); + + it('should have the property accessKeys (base name: "access_keys")', function() { + // uncomment below and update the code to test the property accessKeys + //var instance = new HyperstackApi.ObjectStorageAccessKeyListResponse(); + //expect(instance).to.be(); + }); + + it('should have the property meta (base name: "meta")', function() { + // uncomment below and update the code to test the property meta + //var instance = new HyperstackApi.ObjectStorageAccessKeyListResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ObjectStorageAccessKeyResponse.spec.js b/test/model/ObjectStorageAccessKeyResponse.spec.js new file mode 100644 index 00000000..e0ddbfe4 --- /dev/null +++ b/test/model/ObjectStorageAccessKeyResponse.spec.js @@ -0,0 +1,95 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ObjectStorageAccessKeyResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ObjectStorageAccessKeyResponse', function() { + it('should create an instance of ObjectStorageAccessKeyResponse', function() { + // uncomment below and update the code to test ObjectStorageAccessKeyResponse + //var instance = new HyperstackApi.ObjectStorageAccessKeyResponse(); + //expect(instance).to.be.a(HyperstackApi.ObjectStorageAccessKeyResponse); + }); + + it('should have the property accessKey (base name: "access_key")', function() { + // uncomment below and update the code to test the property accessKey + //var instance = new HyperstackApi.ObjectStorageAccessKeyResponse(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new HyperstackApi.ObjectStorageAccessKeyResponse(); + //expect(instance).to.be(); + }); + + it('should have the property description (base name: "description")', function() { + // uncomment below and update the code to test the property description + //var instance = new HyperstackApi.ObjectStorageAccessKeyResponse(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.ObjectStorageAccessKeyResponse(); + //expect(instance).to.be(); + }); + + it('should have the property region (base name: "region")', function() { + // uncomment below and update the code to test the property region + //var instance = new HyperstackApi.ObjectStorageAccessKeyResponse(); + //expect(instance).to.be(); + }); + + it('should have the property userId (base name: "user_id")', function() { + // uncomment below and update the code to test the property userId + //var instance = new HyperstackApi.ObjectStorageAccessKeyResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ObjectStorageBucketListResponse.spec.js b/test/model/ObjectStorageBucketListResponse.spec.js new file mode 100644 index 00000000..da5677e6 --- /dev/null +++ b/test/model/ObjectStorageBucketListResponse.spec.js @@ -0,0 +1,71 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ObjectStorageBucketListResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ObjectStorageBucketListResponse', function() { + it('should create an instance of ObjectStorageBucketListResponse', function() { + // uncomment below and update the code to test ObjectStorageBucketListResponse + //var instance = new HyperstackApi.ObjectStorageBucketListResponse(); + //expect(instance).to.be.a(HyperstackApi.ObjectStorageBucketListResponse); + }); + + it('should have the property buckets (base name: "buckets")', function() { + // uncomment below and update the code to test the property buckets + //var instance = new HyperstackApi.ObjectStorageBucketListResponse(); + //expect(instance).to.be(); + }); + + it('should have the property failedRegions (base name: "failed_regions")', function() { + // uncomment below and update the code to test the property failedRegions + //var instance = new HyperstackApi.ObjectStorageBucketListResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ObjectStorageBucketResponse.spec.js b/test/model/ObjectStorageBucketResponse.spec.js new file mode 100644 index 00000000..eafa4930 --- /dev/null +++ b/test/model/ObjectStorageBucketResponse.spec.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ObjectStorageBucketResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ObjectStorageBucketResponse', function() { + it('should create an instance of ObjectStorageBucketResponse', function() { + // uncomment below and update the code to test ObjectStorageBucketResponse + //var instance = new HyperstackApi.ObjectStorageBucketResponse(); + //expect(instance).to.be.a(HyperstackApi.ObjectStorageBucketResponse); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new HyperstackApi.ObjectStorageBucketResponse(); + //expect(instance).to.be(); + }); + + it('should have the property endpoint (base name: "endpoint")', function() { + // uncomment below and update the code to test the property endpoint + //var instance = new HyperstackApi.ObjectStorageBucketResponse(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new HyperstackApi.ObjectStorageBucketResponse(); + //expect(instance).to.be(); + }); + + it('should have the property numObjects (base name: "num_objects")', function() { + // uncomment below and update the code to test the property numObjects + //var instance = new HyperstackApi.ObjectStorageBucketResponse(); + //expect(instance).to.be(); + }); + + it('should have the property region (base name: "region")', function() { + // uncomment below and update the code to test the property region + //var instance = new HyperstackApi.ObjectStorageBucketResponse(); + //expect(instance).to.be(); + }); + + it('should have the property sizeBytes (base name: "size_bytes")', function() { + // uncomment below and update the code to test the property sizeBytes + //var instance = new HyperstackApi.ObjectStorageBucketResponse(); + //expect(instance).to.be(); + }); + + it('should have the property sizeBytesActual (base name: "size_bytes_actual")', function() { + // uncomment below and update the code to test the property sizeBytesActual + //var instance = new HyperstackApi.ObjectStorageBucketResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ObjectStorageDeleteResponse.spec.js b/test/model/ObjectStorageDeleteResponse.spec.js new file mode 100644 index 00000000..19f8461b --- /dev/null +++ b/test/model/ObjectStorageDeleteResponse.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ObjectStorageDeleteResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ObjectStorageDeleteResponse', function() { + it('should create an instance of ObjectStorageDeleteResponse', function() { + // uncomment below and update the code to test ObjectStorageDeleteResponse + //var instance = new HyperstackApi.ObjectStorageDeleteResponse(); + //expect(instance).to.be.a(HyperstackApi.ObjectStorageDeleteResponse); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.ObjectStorageDeleteResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ObjectStorageErrorResponse.spec.js b/test/model/ObjectStorageErrorResponse.spec.js new file mode 100644 index 00000000..e5ee9542 --- /dev/null +++ b/test/model/ObjectStorageErrorResponse.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ObjectStorageErrorResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ObjectStorageErrorResponse', function() { + it('should create an instance of ObjectStorageErrorResponse', function() { + // uncomment below and update the code to test ObjectStorageErrorResponse + //var instance = new HyperstackApi.ObjectStorageErrorResponse(); + //expect(instance).to.be.a(HyperstackApi.ObjectStorageErrorResponse); + }); + + it('should have the property errorReason (base name: "error_reason")', function() { + // uncomment below and update the code to test the property errorReason + //var instance = new HyperstackApi.ObjectStorageErrorResponse(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.ObjectStorageErrorResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ObjectStorageErrorResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ObjectStorageHealthResponse.spec.js b/test/model/ObjectStorageHealthResponse.spec.js new file mode 100644 index 00000000..a1f1ca60 --- /dev/null +++ b/test/model/ObjectStorageHealthResponse.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ObjectStorageHealthResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ObjectStorageHealthResponse', function() { + it('should create an instance of ObjectStorageHealthResponse', function() { + // uncomment below and update the code to test ObjectStorageHealthResponse + //var instance = new HyperstackApi.ObjectStorageHealthResponse(); + //expect(instance).to.be.a(HyperstackApi.ObjectStorageHealthResponse); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ObjectStorageHealthResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ObjectStoragePaginationMeta.spec.js b/test/model/ObjectStoragePaginationMeta.spec.js new file mode 100644 index 00000000..05d872fd --- /dev/null +++ b/test/model/ObjectStoragePaginationMeta.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ObjectStoragePaginationMeta(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ObjectStoragePaginationMeta', function() { + it('should create an instance of ObjectStoragePaginationMeta', function() { + // uncomment below and update the code to test ObjectStoragePaginationMeta + //var instance = new HyperstackApi.ObjectStoragePaginationMeta(); + //expect(instance).to.be.a(HyperstackApi.ObjectStoragePaginationMeta); + }); + + it('should have the property count (base name: "count")', function() { + // uncomment below and update the code to test the property count + //var instance = new HyperstackApi.ObjectStoragePaginationMeta(); + //expect(instance).to.be(); + }); + + it('should have the property currentPage (base name: "current_page")', function() { + // uncomment below and update the code to test the property currentPage + //var instance = new HyperstackApi.ObjectStoragePaginationMeta(); + //expect(instance).to.be(); + }); + + it('should have the property totalPages (base name: "total_pages")', function() { + // uncomment below and update the code to test the property totalPages + //var instance = new HyperstackApi.ObjectStoragePaginationMeta(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ObjectStorageRegionListResponse.spec.js b/test/model/ObjectStorageRegionListResponse.spec.js new file mode 100644 index 00000000..3f85f83b --- /dev/null +++ b/test/model/ObjectStorageRegionListResponse.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ObjectStorageRegionListResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ObjectStorageRegionListResponse', function() { + it('should create an instance of ObjectStorageRegionListResponse', function() { + // uncomment below and update the code to test ObjectStorageRegionListResponse + //var instance = new HyperstackApi.ObjectStorageRegionListResponse(); + //expect(instance).to.be.a(HyperstackApi.ObjectStorageRegionListResponse); + }); + + it('should have the property regions (base name: "regions")', function() { + // uncomment below and update the code to test the property regions + //var instance = new HyperstackApi.ObjectStorageRegionListResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ObjectStorageRegionResponse.spec.js b/test/model/ObjectStorageRegionResponse.spec.js new file mode 100644 index 00000000..54dfef02 --- /dev/null +++ b/test/model/ObjectStorageRegionResponse.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ObjectStorageRegionResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ObjectStorageRegionResponse', function() { + it('should create an instance of ObjectStorageRegionResponse', function() { + // uncomment below and update the code to test ObjectStorageRegionResponse + //var instance = new HyperstackApi.ObjectStorageRegionResponse(); + //expect(instance).to.be.a(HyperstackApi.ObjectStorageRegionResponse); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new HyperstackApi.ObjectStorageRegionResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ObjectStorageRegionsEnum.spec.js b/test/model/ObjectStorageRegionsEnum.spec.js new file mode 100644 index 00000000..0c841c63 --- /dev/null +++ b/test/model/ObjectStorageRegionsEnum.spec.js @@ -0,0 +1,58 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ObjectStorageRegionsEnum', function() { + it('should create an instance of ObjectStorageRegionsEnum', function() { + // uncomment below and update the code to test ObjectStorageRegionsEnum + //var instance = new HyperstackApi.ObjectStorageRegionsEnum(); + //expect(instance).to.be.a(HyperstackApi.ObjectStorageRegionsEnum); + }); + + }); + +})); diff --git a/test/model/OrganizationObjectResponse.spec.js b/test/model/OrganizationObjectResponse.spec.js deleted file mode 100644 index e98c39ba..00000000 --- a/test/model/OrganizationObjectResponse.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.OrganizationObjectResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OrganizationObjectResponse', function() { - it('should create an instance of OrganizationObjectResponse', function() { - // uncomment below and update the code to test OrganizationObjectResponse - //var instance = new HyperstackApi.OrganizationObjectResponse(); - //expect(instance).to.be.a(HyperstackApi.OrganizationObjectResponse); - }); - - it('should have the property orgId (base name: "org_id")', function() { - // uncomment below and update the code to test the property orgId - //var instance = new HyperstackApi.OrganizationObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property resources (base name: "resources")', function() { - // uncomment below and update the code to test the property resources - //var instance = new HyperstackApi.OrganizationObjectResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OrganizationThresholdFields.spec.js b/test/model/OrganizationThresholdFields.spec.js new file mode 100644 index 00000000..451c18ae --- /dev/null +++ b/test/model/OrganizationThresholdFields.spec.js @@ -0,0 +1,89 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.OrganizationThresholdFields(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrganizationThresholdFields', function() { + it('should create an instance of OrganizationThresholdFields', function() { + // uncomment below and update the code to test OrganizationThresholdFields + //var instance = new HyperstackApi.OrganizationThresholdFields(); + //expect(instance).to.be.a(HyperstackApi.OrganizationThresholdFields); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.OrganizationThresholdFields(); + //expect(instance).to.be(); + }); + + it('should have the property interfaceTitle (base name: "interface_title")', function() { + // uncomment below and update the code to test the property interfaceTitle + //var instance = new HyperstackApi.OrganizationThresholdFields(); + //expect(instance).to.be(); + }); + + it('should have the property interfaceTooltip (base name: "interface_tooltip")', function() { + // uncomment below and update the code to test the property interfaceTooltip + //var instance = new HyperstackApi.OrganizationThresholdFields(); + //expect(instance).to.be(); + }); + + it('should have the property subscribed (base name: "subscribed")', function() { + // uncomment below and update the code to test the property subscribed + //var instance = new HyperstackApi.OrganizationThresholdFields(); + //expect(instance).to.be(); + }); + + it('should have the property threshold (base name: "threshold")', function() { + // uncomment below and update the code to test the property threshold + //var instance = new HyperstackApi.OrganizationThresholdFields(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrganizationThresholdUpdateResponse.spec.js b/test/model/OrganizationThresholdUpdateResponse.spec.js new file mode 100644 index 00000000..868ed683 --- /dev/null +++ b/test/model/OrganizationThresholdUpdateResponse.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.OrganizationThresholdUpdateResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrganizationThresholdUpdateResponse', function() { + it('should create an instance of OrganizationThresholdUpdateResponse', function() { + // uncomment below and update the code to test OrganizationThresholdUpdateResponse + //var instance = new HyperstackApi.OrganizationThresholdUpdateResponse(); + //expect(instance).to.be.a(HyperstackApi.OrganizationThresholdUpdateResponse); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.OrganizationThresholdUpdateResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.OrganizationThresholdUpdateResponse(); + //expect(instance).to.be(); + }); + + it('should have the property threshold (base name: "threshold")', function() { + // uncomment below and update the code to test the property threshold + //var instance = new HyperstackApi.OrganizationThresholdUpdateResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OrganizationThresholdfields.spec.js b/test/model/OrganizationThresholdfields.spec.js deleted file mode 100644 index 66ea36ec..00000000 --- a/test/model/OrganizationThresholdfields.spec.js +++ /dev/null @@ -1,89 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.OrganizationThresholdfields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OrganizationThresholdfields', function() { - it('should create an instance of OrganizationThresholdfields', function() { - // uncomment below and update the code to test OrganizationThresholdfields - //var instance = new HyperstackApi.OrganizationThresholdfields(); - //expect(instance).to.be.a(HyperstackApi.OrganizationThresholdfields); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.OrganizationThresholdfields(); - //expect(instance).to.be(); - }); - - it('should have the property interfaceTitle (base name: "interface_title")', function() { - // uncomment below and update the code to test the property interfaceTitle - //var instance = new HyperstackApi.OrganizationThresholdfields(); - //expect(instance).to.be(); - }); - - it('should have the property interfaceTooltip (base name: "interface_tooltip")', function() { - // uncomment below and update the code to test the property interfaceTooltip - //var instance = new HyperstackApi.OrganizationThresholdfields(); - //expect(instance).to.be(); - }); - - it('should have the property subscribed (base name: "subscribed")', function() { - // uncomment below and update the code to test the property subscribed - //var instance = new HyperstackApi.OrganizationThresholdfields(); - //expect(instance).to.be(); - }); - - it('should have the property threshold (base name: "threshold")', function() { - // uncomment below and update the code to test the property threshold - //var instance = new HyperstackApi.OrganizationThresholdfields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OrganizationThresholdsResponse.spec.js b/test/model/OrganizationThresholdsResponse.spec.js new file mode 100644 index 00000000..deb438fa --- /dev/null +++ b/test/model/OrganizationThresholdsResponse.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.OrganizationThresholdsResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('OrganizationThresholdsResponse', function() { + it('should create an instance of OrganizationThresholdsResponse', function() { + // uncomment below and update the code to test OrganizationThresholdsResponse + //var instance = new HyperstackApi.OrganizationThresholdsResponse(); + //expect(instance).to.be.a(HyperstackApi.OrganizationThresholdsResponse); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.OrganizationThresholdsResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.OrganizationThresholdsResponse(); + //expect(instance).to.be(); + }); + + it('should have the property thresholds (base name: "thresholds")', function() { + // uncomment below and update the code to test the property thresholds + //var instance = new HyperstackApi.OrganizationThresholdsResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Organizationcreditrechargelimitresponse.spec.js b/test/model/Organizationcreditrechargelimitresponse.spec.js deleted file mode 100644 index d75fb4b7..00000000 --- a/test/model/Organizationcreditrechargelimitresponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.Organizationcreditrechargelimitresponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Organizationcreditrechargelimitresponse', function() { - it('should create an instance of Organizationcreditrechargelimitresponse', function() { - // uncomment below and update the code to test Organizationcreditrechargelimitresponse - //var instance = new HyperstackApi.Organizationcreditrechargelimitresponse(); - //expect(instance).to.be.a(HyperstackApi.Organizationcreditrechargelimitresponse); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new HyperstackApi.Organizationcreditrechargelimitresponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.Organizationcreditrechargelimitresponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.Organizationcreditrechargelimitresponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Organizationthresholdsresponse.spec.js b/test/model/Organizationthresholdsresponse.spec.js deleted file mode 100644 index 0deaa81e..00000000 --- a/test/model/Organizationthresholdsresponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.Organizationthresholdsresponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Organizationthresholdsresponse', function() { - it('should create an instance of Organizationthresholdsresponse', function() { - // uncomment below and update the code to test Organizationthresholdsresponse - //var instance = new HyperstackApi.Organizationthresholdsresponse(); - //expect(instance).to.be.a(HyperstackApi.Organizationthresholdsresponse); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.Organizationthresholdsresponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.Organizationthresholdsresponse(); - //expect(instance).to.be(); - }); - - it('should have the property thresholds (base name: "thresholds")', function() { - // uncomment below and update the code to test the property thresholds - //var instance = new HyperstackApi.Organizationthresholdsresponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Organizationthresholdupdateresponse.spec.js b/test/model/Organizationthresholdupdateresponse.spec.js deleted file mode 100644 index 845bded3..00000000 --- a/test/model/Organizationthresholdupdateresponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.Organizationthresholdupdateresponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Organizationthresholdupdateresponse', function() { - it('should create an instance of Organizationthresholdupdateresponse', function() { - // uncomment below and update the code to test Organizationthresholdupdateresponse - //var instance = new HyperstackApi.Organizationthresholdupdateresponse(); - //expect(instance).to.be.a(HyperstackApi.Organizationthresholdupdateresponse); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.Organizationthresholdupdateresponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.Organizationthresholdupdateresponse(); - //expect(instance).to.be(); - }); - - it('should have the property threshold (base name: "threshold")', function() { - // uncomment below and update the code to test the property threshold - //var instance = new HyperstackApi.Organizationthresholdupdateresponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Pagination.spec.js b/test/model/Pagination.spec.js new file mode 100644 index 00000000..b0cf3dda --- /dev/null +++ b/test/model/Pagination.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.Pagination(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Pagination', function() { + it('should create an instance of Pagination', function() { + // uncomment below and update the code to test Pagination + //var instance = new HyperstackApi.Pagination(); + //expect(instance).to.be.a(HyperstackApi.Pagination); + }); + + it('should have the property page (base name: "page")', function() { + // uncomment below and update the code to test the property page + //var instance = new HyperstackApi.Pagination(); + //expect(instance).to.be(); + }); + + it('should have the property pages (base name: "pages")', function() { + // uncomment below and update the code to test the property pages + //var instance = new HyperstackApi.Pagination(); + //expect(instance).to.be(); + }); + + it('should have the property perPage (base name: "per_page")', function() { + // uncomment below and update the code to test the property perPage + //var instance = new HyperstackApi.Pagination(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PartnerConfig.spec.js b/test/model/PartnerConfig.spec.js new file mode 100644 index 00000000..303f3359 --- /dev/null +++ b/test/model/PartnerConfig.spec.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.PartnerConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PartnerConfig', function() { + it('should create an instance of PartnerConfig', function() { + // uncomment below and update the code to test PartnerConfig + //var instance = new HyperstackApi.PartnerConfig(); + //expect(instance).to.be.a(HyperstackApi.PartnerConfig); + }); + + it('should have the property backgroundImageUrl (base name: "background_image_url")', function() { + // uncomment below and update the code to test the property backgroundImageUrl + //var instance = new HyperstackApi.PartnerConfig(); + //expect(instance).to.be(); + }); + + it('should have the property colors (base name: "colors")', function() { + // uncomment below and update the code to test the property colors + //var instance = new HyperstackApi.PartnerConfig(); + //expect(instance).to.be(); + }); + + it('should have the property logos (base name: "logos")', function() { + // uncomment below and update the code to test the property logos + //var instance = new HyperstackApi.PartnerConfig(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new HyperstackApi.PartnerConfig(); + //expect(instance).to.be(); + }); + + it('should have the property supportEmail (base name: "support_email")', function() { + // uncomment below and update the code to test the property supportEmail + //var instance = new HyperstackApi.PartnerConfig(); + //expect(instance).to.be(); + }); + + it('should have the property uris (base name: "uris")', function() { + // uncomment below and update the code to test the property uris + //var instance = new HyperstackApi.PartnerConfig(); + //expect(instance).to.be(); + }); + + it('should have the property userType (base name: "user_type")', function() { + // uncomment below and update the code to test the property userType + //var instance = new HyperstackApi.PartnerConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PaymentDetailsFields.spec.js b/test/model/PaymentDetailsFields.spec.js index f95a1355..0837fa23 100644 --- a/test/model/PaymentDetailsFields.spec.js +++ b/test/model/PaymentDetailsFields.spec.js @@ -84,6 +84,12 @@ //expect(instance).to.be(); }); + it('should have the property invoice (base name: "invoice")', function() { + // uncomment below and update the code to test the property invoice + //var instance = new HyperstackApi.PaymentDetailsFields(); + //expect(instance).to.be(); + }); + it('should have the property paidFrom (base name: "paid_from")', function() { // uncomment below and update the code to test the property paidFrom //var instance = new HyperstackApi.PaymentDetailsFields(); @@ -102,6 +108,12 @@ //expect(instance).to.be(); }); + it('should have the property taxAmount (base name: "tax_amount")', function() { + // uncomment below and update the code to test the property taxAmount + //var instance = new HyperstackApi.PaymentDetailsFields(); + //expect(instance).to.be(); + }); + it('should have the property transactionId (base name: "transaction_id")', function() { // uncomment below and update the code to test the property transactionId //var instance = new HyperstackApi.PaymentDetailsFields(); diff --git a/test/model/PowerUsageModel.spec.js b/test/model/PowerUsageModel.spec.js deleted file mode 100644 index fa8651e8..00000000 --- a/test/model/PowerUsageModel.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.PowerUsageModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('PowerUsageModel', function() { - it('should create an instance of PowerUsageModel', function() { - // uncomment below and update the code to test PowerUsageModel - //var instance = new HyperstackApi.PowerUsageModel(); - //expect(instance).to.be.a(HyperstackApi.PowerUsageModel); - }); - - it('should have the property unit (base name: "unit")', function() { - // uncomment below and update the code to test the property unit - //var instance = new HyperstackApi.PowerUsageModel(); - //expect(instance).to.be(); - }); - - it('should have the property value (base name: "value")', function() { - // uncomment below and update the code to test the property value - //var instance = new HyperstackApi.PowerUsageModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/PricebookResourceObjectResponse.spec.js b/test/model/PricebookResourceObjectResponse.spec.js deleted file mode 100644 index 46e76684..00000000 --- a/test/model/PricebookResourceObjectResponse.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.PricebookResourceObjectResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('PricebookResourceObjectResponse', function() { - it('should create an instance of PricebookResourceObjectResponse', function() { - // uncomment below and update the code to test PricebookResourceObjectResponse - //var instance = new HyperstackApi.PricebookResourceObjectResponse(); - //expect(instance).to.be.a(HyperstackApi.PricebookResourceObjectResponse); - }); - - it('should have the property actualPrice (base name: "actual_price")', function() { - // uncomment below and update the code to test the property actualPrice - //var instance = new HyperstackApi.PricebookResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property amount (base name: "amount")', function() { - // uncomment below and update the code to test the property amount - //var instance = new HyperstackApi.PricebookResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property discountedRate (base name: "discounted_rate")', function() { - // uncomment below and update the code to test the property discountedRate - //var instance = new HyperstackApi.PricebookResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property hostOriginalPrice (base name: "host_original_price")', function() { - // uncomment below and update the code to test the property hostOriginalPrice - //var instance = new HyperstackApi.PricebookResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property hostPrice (base name: "host_price")', function() { - // uncomment below and update the code to test the property hostPrice - //var instance = new HyperstackApi.PricebookResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.PricebookResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property nexgenOriginalPrice (base name: "nexgen_original_price")', function() { - // uncomment below and update the code to test the property nexgenOriginalPrice - //var instance = new HyperstackApi.PricebookResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property nexgenPrice (base name: "nexgen_price")', function() { - // uncomment below and update the code to test the property nexgenPrice - //var instance = new HyperstackApi.PricebookResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property price (base name: "price")', function() { - // uncomment below and update the code to test the property price - //var instance = new HyperstackApi.PricebookResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property rate (base name: "rate")', function() { - // uncomment below and update the code to test the property rate - //var instance = new HyperstackApi.PricebookResourceObjectResponse(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new HyperstackApi.PricebookResourceObjectResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/PrimaryColor.spec.js b/test/model/PrimaryColor.spec.js new file mode 100644 index 00000000..5eb84f7b --- /dev/null +++ b/test/model/PrimaryColor.spec.js @@ -0,0 +1,71 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.PrimaryColor(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PrimaryColor', function() { + it('should create an instance of PrimaryColor', function() { + // uncomment below and update the code to test PrimaryColor + //var instance = new HyperstackApi.PrimaryColor(); + //expect(instance).to.be.a(HyperstackApi.PrimaryColor); + }); + + it('should have the property dark (base name: "dark")', function() { + // uncomment below and update the code to test the property dark + //var instance = new HyperstackApi.PrimaryColor(); + //expect(instance).to.be(); + }); + + it('should have the property light (base name: "light")', function() { + // uncomment below and update the code to test the property light + //var instance = new HyperstackApi.PrimaryColor(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RedeemVoucherPayload.spec.js b/test/model/RedeemVoucherPayload.spec.js new file mode 100644 index 00000000..a1eeb67c --- /dev/null +++ b/test/model/RedeemVoucherPayload.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.RedeemVoucherPayload(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RedeemVoucherPayload', function() { + it('should create an instance of RedeemVoucherPayload', function() { + // uncomment below and update the code to test RedeemVoucherPayload + //var instance = new HyperstackApi.RedeemVoucherPayload(); + //expect(instance).to.be.a(HyperstackApi.RedeemVoucherPayload); + }); + + it('should have the property voucherCode (base name: "voucher_code")', function() { + // uncomment below and update the code to test the property voucherCode + //var instance = new HyperstackApi.RedeemVoucherPayload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RefreshTokenPayload.spec.js b/test/model/RefreshTokenPayload.spec.js deleted file mode 100644 index aad56c07..00000000 --- a/test/model/RefreshTokenPayload.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.RefreshTokenPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RefreshTokenPayload', function() { - it('should create an instance of RefreshTokenPayload', function() { - // uncomment below and update the code to test RefreshTokenPayload - //var instance = new HyperstackApi.RefreshTokenPayload(); - //expect(instance).to.be.a(HyperstackApi.RefreshTokenPayload); - }); - - it('should have the property idToken (base name: "id_token")', function() { - // uncomment below and update the code to test the property idToken - //var instance = new HyperstackApi.RefreshTokenPayload(); - //expect(instance).to.be(); - }); - - it('should have the property refreshToken (base name: "refresh_token")', function() { - // uncomment below and update the code to test the property refreshToken - //var instance = new HyperstackApi.RefreshTokenPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RegionFields.spec.js b/test/model/RegionFields.spec.js index c394ade8..a74af615 100644 --- a/test/model/RegionFields.spec.js +++ b/test/model/RegionFields.spec.js @@ -54,12 +54,30 @@ //expect(instance).to.be.a(HyperstackApi.RegionFields); }); + it('should have the property country (base name: "country")', function() { + // uncomment below and update the code to test the property country + //var instance = new HyperstackApi.RegionFields(); + //expect(instance).to.be(); + }); + it('should have the property description (base name: "description")', function() { // uncomment below and update the code to test the property description //var instance = new HyperstackApi.RegionFields(); //expect(instance).to.be(); }); + it('should have the property features (base name: "features")', function() { + // uncomment below and update the code to test the property features + //var instance = new HyperstackApi.RegionFields(); + //expect(instance).to.be(); + }); + + it('should have the property greenStatus (base name: "green_status")', function() { + // uncomment below and update the code to test the property greenStatus + //var instance = new HyperstackApi.RegionFields(); + //expect(instance).to.be(); + }); + it('should have the property id (base name: "id")', function() { // uncomment below and update the code to test the property id //var instance = new HyperstackApi.RegionFields(); diff --git a/test/model/RegionPayload.spec.js b/test/model/RegionPayload.spec.js deleted file mode 100644 index 82ad5729..00000000 --- a/test/model/RegionPayload.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.RegionPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RegionPayload', function() { - it('should create an instance of RegionPayload', function() { - // uncomment below and update the code to test RegionPayload - //var instance = new HyperstackApi.RegionPayload(); - //expect(instance).to.be.a(HyperstackApi.RegionPayload); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new HyperstackApi.RegionPayload(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.RegionPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RegionResponse.spec.js b/test/model/RegionResponse.spec.js deleted file mode 100644 index fdf8c92a..00000000 --- a/test/model/RegionResponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.RegionResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RegionResponse', function() { - it('should create an instance of RegionResponse', function() { - // uncomment below and update the code to test RegionResponse - //var instance = new HyperstackApi.RegionResponse(); - //expect(instance).to.be.a(HyperstackApi.RegionResponse); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.RegionResponse(); - //expect(instance).to.be(); - }); - - it('should have the property region (base name: "region")', function() { - // uncomment below and update the code to test the property region - //var instance = new HyperstackApi.RegionResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.RegionResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RequestInstanceLogsPayload.spec.js b/test/model/RequestInstanceLogsPayload.spec.js new file mode 100644 index 00000000..4c2d5ef5 --- /dev/null +++ b/test/model/RequestInstanceLogsPayload.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.RequestInstanceLogsPayload(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RequestInstanceLogsPayload', function() { + it('should create an instance of RequestInstanceLogsPayload', function() { + // uncomment below and update the code to test RequestInstanceLogsPayload + //var instance = new HyperstackApi.RequestInstanceLogsPayload(); + //expect(instance).to.be.a(HyperstackApi.RequestInstanceLogsPayload); + }); + + it('should have the property length (base name: "length")', function() { + // uncomment below and update the code to test the property length + //var instance = new HyperstackApi.RequestInstanceLogsPayload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RequestInstanceLogsResponse.spec.js b/test/model/RequestInstanceLogsResponse.spec.js new file mode 100644 index 00000000..864edc12 --- /dev/null +++ b/test/model/RequestInstanceLogsResponse.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.RequestInstanceLogsResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RequestInstanceLogsResponse', function() { + it('should create an instance of RequestInstanceLogsResponse', function() { + // uncomment below and update the code to test RequestInstanceLogsResponse + //var instance = new HyperstackApi.RequestInstanceLogsResponse(); + //expect(instance).to.be.a(HyperstackApi.RequestInstanceLogsResponse); + }); + + it('should have the property requestId (base name: "request_id")', function() { + // uncomment below and update the code to test the property requestId + //var instance = new HyperstackApi.RequestInstanceLogsResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ResourceLevelBillingBucketDetailsResources.spec.js b/test/model/ResourceLevelBillingBucketDetailsResources.spec.js new file mode 100644 index 00000000..39d71d6e --- /dev/null +++ b/test/model/ResourceLevelBillingBucketDetailsResources.spec.js @@ -0,0 +1,71 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ResourceLevelBillingBucketDetailsResources(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ResourceLevelBillingBucketDetailsResources', function() { + it('should create an instance of ResourceLevelBillingBucketDetailsResources', function() { + // uncomment below and update the code to test ResourceLevelBillingBucketDetailsResources + //var instance = new HyperstackApi.ResourceLevelBillingBucketDetailsResources(); + //expect(instance).to.be.a(HyperstackApi.ResourceLevelBillingBucketDetailsResources); + }); + + it('should have the property attributes (base name: "attributes")', function() { + // uncomment below and update the code to test the property attributes + //var instance = new HyperstackApi.ResourceLevelBillingBucketDetailsResources(); + //expect(instance).to.be(); + }); + + it('should have the property metrics (base name: "metrics")', function() { + // uncomment below and update the code to test the property metrics + //var instance = new HyperstackApi.ResourceLevelBillingBucketDetailsResources(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ResourceLevelBillingHistoryResourcesCluster.spec.js b/test/model/ResourceLevelBillingHistoryResourcesCluster.spec.js new file mode 100644 index 00000000..2686ae3c --- /dev/null +++ b/test/model/ResourceLevelBillingHistoryResourcesCluster.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ResourceLevelBillingHistoryResourcesCluster(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ResourceLevelBillingHistoryResourcesCluster', function() { + it('should create an instance of ResourceLevelBillingHistoryResourcesCluster', function() { + // uncomment below and update the code to test ResourceLevelBillingHistoryResourcesCluster + //var instance = new HyperstackApi.ResourceLevelBillingHistoryResourcesCluster(); + //expect(instance).to.be.a(HyperstackApi.ResourceLevelBillingHistoryResourcesCluster); + }); + + it('should have the property attributes (base name: "attributes")', function() { + // uncomment below and update the code to test the property attributes + //var instance = new HyperstackApi.ResourceLevelBillingHistoryResourcesCluster(); + //expect(instance).to.be(); + }); + + it('should have the property metrics (base name: "metrics")', function() { + // uncomment below and update the code to test the property metrics + //var instance = new HyperstackApi.ResourceLevelBillingHistoryResourcesCluster(); + //expect(instance).to.be(); + }); + + it('should have the property nodes (base name: "nodes")', function() { + // uncomment below and update the code to test the property nodes + //var instance = new HyperstackApi.ResourceLevelBillingHistoryResourcesCluster(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ResourceLevelBillingHistoryResponseAttributes.spec.js b/test/model/ResourceLevelBillingHistoryResponseAttributes.spec.js index 68510fd7..35c0a1e7 100644 --- a/test/model/ResourceLevelBillingHistoryResponseAttributes.spec.js +++ b/test/model/ResourceLevelBillingHistoryResponseAttributes.spec.js @@ -54,6 +54,12 @@ //expect(instance).to.be.a(HyperstackApi.ResourceLevelBillingHistoryResponseAttributes); }); + it('should have the property contractId (base name: "contract_id")', function() { + // uncomment below and update the code to test the property contractId + //var instance = new HyperstackApi.ResourceLevelBillingHistoryResponseAttributes(); + //expect(instance).to.be(); + }); + it('should have the property id (base name: "id")', function() { // uncomment below and update the code to test the property id //var instance = new HyperstackApi.ResourceLevelBillingHistoryResponseAttributes(); diff --git a/test/model/ResourceLevelBucketBillingDetailsResponseModel.spec.js b/test/model/ResourceLevelBucketBillingDetailsResponseModel.spec.js new file mode 100644 index 00000000..66aed3f9 --- /dev/null +++ b/test/model/ResourceLevelBucketBillingDetailsResponseModel.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ResourceLevelBucketBillingDetailsResponseModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ResourceLevelBucketBillingDetailsResponseModel', function() { + it('should create an instance of ResourceLevelBucketBillingDetailsResponseModel', function() { + // uncomment below and update the code to test ResourceLevelBucketBillingDetailsResponseModel + //var instance = new HyperstackApi.ResourceLevelBucketBillingDetailsResponseModel(); + //expect(instance).to.be.a(HyperstackApi.ResourceLevelBucketBillingDetailsResponseModel); + }); + + it('should have the property billingHistoryBucketDetails (base name: "billing_history_bucket_details")', function() { + // uncomment below and update the code to test the property billingHistoryBucketDetails + //var instance = new HyperstackApi.ResourceLevelBucketBillingDetailsResponseModel(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.ResourceLevelBucketBillingDetailsResponseModel(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ResourceLevelBucketBillingDetailsResponseModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ResourceLevelBucketBillingHistoryResponseModel.spec.js b/test/model/ResourceLevelBucketBillingHistoryResponseModel.spec.js new file mode 100644 index 00000000..22676e4c --- /dev/null +++ b/test/model/ResourceLevelBucketBillingHistoryResponseModel.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ResourceLevelBucketBillingHistoryResponseModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ResourceLevelBucketBillingHistoryResponseModel', function() { + it('should create an instance of ResourceLevelBucketBillingHistoryResponseModel', function() { + // uncomment below and update the code to test ResourceLevelBucketBillingHistoryResponseModel + //var instance = new HyperstackApi.ResourceLevelBucketBillingHistoryResponseModel(); + //expect(instance).to.be.a(HyperstackApi.ResourceLevelBucketBillingHistoryResponseModel); + }); + + it('should have the property billingHistoryBucket (base name: "billing_history_bucket")', function() { + // uncomment below and update the code to test the property billingHistoryBucket + //var instance = new HyperstackApi.ResourceLevelBucketBillingHistoryResponseModel(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.ResourceLevelBucketBillingHistoryResponseModel(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ResourceLevelBucketBillingHistoryResponseModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ResourceLevelClusterBillingDetailsResponseModel.spec.js b/test/model/ResourceLevelClusterBillingDetailsResponseModel.spec.js new file mode 100644 index 00000000..232970a5 --- /dev/null +++ b/test/model/ResourceLevelClusterBillingDetailsResponseModel.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ResourceLevelClusterBillingDetailsResponseModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ResourceLevelClusterBillingDetailsResponseModel', function() { + it('should create an instance of ResourceLevelClusterBillingDetailsResponseModel', function() { + // uncomment below and update the code to test ResourceLevelClusterBillingDetailsResponseModel + //var instance = new HyperstackApi.ResourceLevelClusterBillingDetailsResponseModel(); + //expect(instance).to.be.a(HyperstackApi.ResourceLevelClusterBillingDetailsResponseModel); + }); + + it('should have the property billingHistoryClusterDetails (base name: "billing_history_cluster_details")', function() { + // uncomment below and update the code to test the property billingHistoryClusterDetails + //var instance = new HyperstackApi.ResourceLevelClusterBillingDetailsResponseModel(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.ResourceLevelClusterBillingDetailsResponseModel(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ResourceLevelClusterBillingDetailsResponseModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ResourceLevelClusterBillingHistoryResponseModel.spec.js b/test/model/ResourceLevelClusterBillingHistoryResponseModel.spec.js new file mode 100644 index 00000000..66a4a7c8 --- /dev/null +++ b/test/model/ResourceLevelClusterBillingHistoryResponseModel.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ResourceLevelClusterBillingHistoryResponseModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ResourceLevelClusterBillingHistoryResponseModel', function() { + it('should create an instance of ResourceLevelClusterBillingHistoryResponseModel', function() { + // uncomment below and update the code to test ResourceLevelClusterBillingHistoryResponseModel + //var instance = new HyperstackApi.ResourceLevelClusterBillingHistoryResponseModel(); + //expect(instance).to.be.a(HyperstackApi.ResourceLevelClusterBillingHistoryResponseModel); + }); + + it('should have the property billingHistoryCluster (base name: "billing_history_cluster")', function() { + // uncomment below and update the code to test the property billingHistoryCluster + //var instance = new HyperstackApi.ResourceLevelClusterBillingHistoryResponseModel(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.ResourceLevelClusterBillingHistoryResponseModel(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ResourceLevelClusterBillingHistoryResponseModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ResourceLevelClusterGraphBillingDetailsResponseModel.spec.js b/test/model/ResourceLevelClusterGraphBillingDetailsResponseModel.spec.js new file mode 100644 index 00000000..4a178c95 --- /dev/null +++ b/test/model/ResourceLevelClusterGraphBillingDetailsResponseModel.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ResourceLevelClusterGraphBillingDetailsResponseModel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ResourceLevelClusterGraphBillingDetailsResponseModel', function() { + it('should create an instance of ResourceLevelClusterGraphBillingDetailsResponseModel', function() { + // uncomment below and update the code to test ResourceLevelClusterGraphBillingDetailsResponseModel + //var instance = new HyperstackApi.ResourceLevelClusterGraphBillingDetailsResponseModel(); + //expect(instance).to.be.a(HyperstackApi.ResourceLevelClusterGraphBillingDetailsResponseModel); + }); + + it('should have the property billingHistoryClusterDetails (base name: "billing_history_cluster_details")', function() { + // uncomment below and update the code to test the property billingHistoryClusterDetails + //var instance = new HyperstackApi.ResourceLevelClusterGraphBillingDetailsResponseModel(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.ResourceLevelClusterGraphBillingDetailsResponseModel(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ResourceLevelClusterGraphBillingDetailsResponseModel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ResourceLevelGraphBillingDetailsBucket.spec.js b/test/model/ResourceLevelGraphBillingDetailsBucket.spec.js new file mode 100644 index 00000000..2ffa0e4e --- /dev/null +++ b/test/model/ResourceLevelGraphBillingDetailsBucket.spec.js @@ -0,0 +1,83 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ResourceLevelGraphBillingDetailsBucket(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ResourceLevelGraphBillingDetailsBucket', function() { + it('should create an instance of ResourceLevelGraphBillingDetailsBucket', function() { + // uncomment below and update the code to test ResourceLevelGraphBillingDetailsBucket + //var instance = new HyperstackApi.ResourceLevelGraphBillingDetailsBucket(); + //expect(instance).to.be.a(HyperstackApi.ResourceLevelGraphBillingDetailsBucket); + }); + + it('should have the property billingHistory (base name: "billing_history")', function() { + // uncomment below and update the code to test the property billingHistory + //var instance = new HyperstackApi.ResourceLevelGraphBillingDetailsBucket(); + //expect(instance).to.be(); + }); + + it('should have the property granularity (base name: "granularity")', function() { + // uncomment below and update the code to test the property granularity + //var instance = new HyperstackApi.ResourceLevelGraphBillingDetailsBucket(); + //expect(instance).to.be(); + }); + + it('should have the property orgId (base name: "org_id")', function() { + // uncomment below and update the code to test the property orgId + //var instance = new HyperstackApi.ResourceLevelGraphBillingDetailsBucket(); + //expect(instance).to.be(); + }); + + it('should have the property totalCount (base name: "total_count")', function() { + // uncomment below and update the code to test the property totalCount + //var instance = new HyperstackApi.ResourceLevelGraphBillingDetailsBucket(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SecondaryColor.spec.js b/test/model/SecondaryColor.spec.js new file mode 100644 index 00000000..e1b61b0c --- /dev/null +++ b/test/model/SecondaryColor.spec.js @@ -0,0 +1,71 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.SecondaryColor(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SecondaryColor', function() { + it('should create an instance of SecondaryColor', function() { + // uncomment below and update the code to test SecondaryColor + //var instance = new HyperstackApi.SecondaryColor(); + //expect(instance).to.be.a(HyperstackApi.SecondaryColor); + }); + + it('should have the property dark (base name: "dark")', function() { + // uncomment below and update the code to test the property dark + //var instance = new HyperstackApi.SecondaryColor(); + //expect(instance).to.be(); + }); + + it('should have the property light (base name: "light")', function() { + // uncomment below and update the code to test the property light + //var instance = new HyperstackApi.SecondaryColor(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SecurityRulesFieldsForInstance.spec.js b/test/model/SecurityRulesFieldsForInstance.spec.js new file mode 100644 index 00000000..8d58e2da --- /dev/null +++ b/test/model/SecurityRulesFieldsForInstance.spec.js @@ -0,0 +1,113 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.SecurityRulesFieldsForInstance(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SecurityRulesFieldsForInstance', function() { + it('should create an instance of SecurityRulesFieldsForInstance', function() { + // uncomment below and update the code to test SecurityRulesFieldsForInstance + //var instance = new HyperstackApi.SecurityRulesFieldsForInstance(); + //expect(instance).to.be.a(HyperstackApi.SecurityRulesFieldsForInstance); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new HyperstackApi.SecurityRulesFieldsForInstance(); + //expect(instance).to.be(); + }); + + it('should have the property direction (base name: "direction")', function() { + // uncomment below and update the code to test the property direction + //var instance = new HyperstackApi.SecurityRulesFieldsForInstance(); + //expect(instance).to.be(); + }); + + it('should have the property ethertype (base name: "ethertype")', function() { + // uncomment below and update the code to test the property ethertype + //var instance = new HyperstackApi.SecurityRulesFieldsForInstance(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.SecurityRulesFieldsForInstance(); + //expect(instance).to.be(); + }); + + it('should have the property portRangeMax (base name: "port_range_max")', function() { + // uncomment below and update the code to test the property portRangeMax + //var instance = new HyperstackApi.SecurityRulesFieldsForInstance(); + //expect(instance).to.be(); + }); + + it('should have the property portRangeMin (base name: "port_range_min")', function() { + // uncomment below and update the code to test the property portRangeMin + //var instance = new HyperstackApi.SecurityRulesFieldsForInstance(); + //expect(instance).to.be(); + }); + + it('should have the property protocol (base name: "protocol")', function() { + // uncomment below and update the code to test the property protocol + //var instance = new HyperstackApi.SecurityRulesFieldsForInstance(); + //expect(instance).to.be(); + }); + + it('should have the property remoteIpPrefix (base name: "remote_ip_prefix")', function() { + // uncomment below and update the code to test the property remoteIpPrefix + //var instance = new HyperstackApi.SecurityRulesFieldsForInstance(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.SecurityRulesFieldsForInstance(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SecurityRulesFieldsforInstance.spec.js b/test/model/SecurityRulesFieldsforInstance.spec.js deleted file mode 100644 index e3475903..00000000 --- a/test/model/SecurityRulesFieldsforInstance.spec.js +++ /dev/null @@ -1,113 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.SecurityRulesFieldsforInstance(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SecurityRulesFieldsforInstance', function() { - it('should create an instance of SecurityRulesFieldsforInstance', function() { - // uncomment below and update the code to test SecurityRulesFieldsforInstance - //var instance = new HyperstackApi.SecurityRulesFieldsforInstance(); - //expect(instance).to.be.a(HyperstackApi.SecurityRulesFieldsforInstance); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new HyperstackApi.SecurityRulesFieldsforInstance(); - //expect(instance).to.be(); - }); - - it('should have the property direction (base name: "direction")', function() { - // uncomment below and update the code to test the property direction - //var instance = new HyperstackApi.SecurityRulesFieldsforInstance(); - //expect(instance).to.be(); - }); - - it('should have the property ethertype (base name: "ethertype")', function() { - // uncomment below and update the code to test the property ethertype - //var instance = new HyperstackApi.SecurityRulesFieldsforInstance(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.SecurityRulesFieldsforInstance(); - //expect(instance).to.be(); - }); - - it('should have the property portRangeMax (base name: "port_range_max")', function() { - // uncomment below and update the code to test the property portRangeMax - //var instance = new HyperstackApi.SecurityRulesFieldsforInstance(); - //expect(instance).to.be(); - }); - - it('should have the property portRangeMin (base name: "port_range_min")', function() { - // uncomment below and update the code to test the property portRangeMin - //var instance = new HyperstackApi.SecurityRulesFieldsforInstance(); - //expect(instance).to.be(); - }); - - it('should have the property protocol (base name: "protocol")', function() { - // uncomment below and update the code to test the property protocol - //var instance = new HyperstackApi.SecurityRulesFieldsforInstance(); - //expect(instance).to.be(); - }); - - it('should have the property remoteIpPrefix (base name: "remote_ip_prefix")', function() { - // uncomment below and update the code to test the property remoteIpPrefix - //var instance = new HyperstackApi.SecurityRulesFieldsforInstance(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.SecurityRulesFieldsforInstance(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ServerlessInferencedBillingHistoryDetailsResponseSchema.spec.js b/test/model/ServerlessInferencedBillingHistoryDetailsResponseSchema.spec.js new file mode 100644 index 00000000..958acdf2 --- /dev/null +++ b/test/model/ServerlessInferencedBillingHistoryDetailsResponseSchema.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.ServerlessInferencedBillingHistoryDetailsResponseSchema(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ServerlessInferencedBillingHistoryDetailsResponseSchema', function() { + it('should create an instance of ServerlessInferencedBillingHistoryDetailsResponseSchema', function() { + // uncomment below and update the code to test ServerlessInferencedBillingHistoryDetailsResponseSchema + //var instance = new HyperstackApi.ServerlessInferencedBillingHistoryDetailsResponseSchema(); + //expect(instance).to.be.a(HyperstackApi.ServerlessInferencedBillingHistoryDetailsResponseSchema); + }); + + it('should have the property billingHistoryServerlessInferenceDetails (base name: "billing_history_serverless_inference_details")', function() { + // uncomment below and update the code to test the property billingHistoryServerlessInferenceDetails + //var instance = new HyperstackApi.ServerlessInferencedBillingHistoryDetailsResponseSchema(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.ServerlessInferencedBillingHistoryDetailsResponseSchema(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.ServerlessInferencedBillingHistoryDetailsResponseSchema(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SetDefaultsPayload.spec.js b/test/model/SetDefaultsPayload.spec.js deleted file mode 100644 index 12a0c87a..00000000 --- a/test/model/SetDefaultsPayload.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.SetDefaultsPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SetDefaultsPayload', function() { - it('should create an instance of SetDefaultsPayload', function() { - // uncomment below and update the code to test SetDefaultsPayload - //var instance = new HyperstackApi.SetDefaultsPayload(); - //expect(instance).to.be.a(HyperstackApi.SetDefaultsPayload); - }); - - it('should have the property flavors (base name: "flavors")', function() { - // uncomment below and update the code to test the property flavors - //var instance = new HyperstackApi.SetDefaultsPayload(); - //expect(instance).to.be(); - }); - - it('should have the property images (base name: "images")', function() { - // uncomment below and update the code to test the property images - //var instance = new HyperstackApi.SetDefaultsPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SingleVisibilityUserResponse.spec.js b/test/model/SingleVisibilityUserResponse.spec.js deleted file mode 100644 index 3a4b52c8..00000000 --- a/test/model/SingleVisibilityUserResponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.SingleVisibilityUserResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SingleVisibilityUserResponse', function() { - it('should create an instance of SingleVisibilityUserResponse', function() { - // uncomment below and update the code to test SingleVisibilityUserResponse - //var instance = new HyperstackApi.SingleVisibilityUserResponse(); - //expect(instance).to.be.a(HyperstackApi.SingleVisibilityUserResponse); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.SingleVisibilityUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property stockVisible (base name: "stock_visible")', function() { - // uncomment below and update the code to test the property stockVisible - //var instance = new HyperstackApi.SingleVisibilityUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new HyperstackApi.SingleVisibilityUserResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SnapshotFields.spec.js b/test/model/SnapshotFields.spec.js index 3d389c44..64c84d1a 100644 --- a/test/model/SnapshotFields.spec.js +++ b/test/model/SnapshotFields.spec.js @@ -54,6 +54,12 @@ //expect(instance).to.be.a(HyperstackApi.SnapshotFields); }); + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new HyperstackApi.SnapshotFields(); + //expect(instance).to.be(); + }); + it('should have the property description (base name: "description")', function() { // uncomment below and update the code to test the property description //var instance = new HyperstackApi.SnapshotFields(); @@ -108,6 +114,12 @@ //expect(instance).to.be(); }); + it('should have the property updatedAt (base name: "updated_at")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new HyperstackApi.SnapshotFields(); + //expect(instance).to.be(); + }); + it('should have the property vmId (base name: "vm_id")', function() { // uncomment below and update the code to test the property vmId //var instance = new HyperstackApi.SnapshotFields(); diff --git a/test/model/SnapshotRetrieveFields.spec.js b/test/model/SnapshotRetrieveFields.spec.js index 09b1fe83..c4cd3acc 100644 --- a/test/model/SnapshotRetrieveFields.spec.js +++ b/test/model/SnapshotRetrieveFields.spec.js @@ -54,6 +54,18 @@ //expect(instance).to.be.a(HyperstackApi.SnapshotRetrieveFields); }); + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new HyperstackApi.SnapshotRetrieveFields(); + //expect(instance).to.be(); + }); + + it('should have the property customImage (base name: "custom_image")', function() { + // uncomment below and update the code to test the property customImage + //var instance = new HyperstackApi.SnapshotRetrieveFields(); + //expect(instance).to.be(); + }); + it('should have the property description (base name: "description")', function() { // uncomment below and update the code to test the property description //var instance = new HyperstackApi.SnapshotRetrieveFields(); @@ -78,12 +90,24 @@ //expect(instance).to.be(); }); + it('should have the property labels (base name: "labels")', function() { + // uncomment below and update the code to test the property labels + //var instance = new HyperstackApi.SnapshotRetrieveFields(); + //expect(instance).to.be(); + }); + it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name //var instance = new HyperstackApi.SnapshotRetrieveFields(); //expect(instance).to.be(); }); + it('should have the property region (base name: "region")', function() { + // uncomment below and update the code to test the property region + //var instance = new HyperstackApi.SnapshotRetrieveFields(); + //expect(instance).to.be(); + }); + it('should have the property regionId (base name: "region_id")', function() { // uncomment below and update the code to test the property regionId //var instance = new HyperstackApi.SnapshotRetrieveFields(); @@ -102,12 +126,66 @@ //expect(instance).to.be(); }); + it('should have the property updatedAt (base name: "updated_at")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new HyperstackApi.SnapshotRetrieveFields(); + //expect(instance).to.be(); + }); + + it('should have the property vmEnvironment (base name: "vm_environment")', function() { + // uncomment below and update the code to test the property vmEnvironment + //var instance = new HyperstackApi.SnapshotRetrieveFields(); + //expect(instance).to.be(); + }); + + it('should have the property vmFlavor (base name: "vm_flavor")', function() { + // uncomment below and update the code to test the property vmFlavor + //var instance = new HyperstackApi.SnapshotRetrieveFields(); + //expect(instance).to.be(); + }); + it('should have the property vmId (base name: "vm_id")', function() { // uncomment below and update the code to test the property vmId //var instance = new HyperstackApi.SnapshotRetrieveFields(); //expect(instance).to.be(); }); + it('should have the property vmImage (base name: "vm_image")', function() { + // uncomment below and update the code to test the property vmImage + //var instance = new HyperstackApi.SnapshotRetrieveFields(); + //expect(instance).to.be(); + }); + + it('should have the property vmKeypair (base name: "vm_keypair")', function() { + // uncomment below and update the code to test the property vmKeypair + //var instance = new HyperstackApi.SnapshotRetrieveFields(); + //expect(instance).to.be(); + }); + + it('should have the property vmName (base name: "vm_name")', function() { + // uncomment below and update the code to test the property vmName + //var instance = new HyperstackApi.SnapshotRetrieveFields(); + //expect(instance).to.be(); + }); + + it('should have the property vmStatus (base name: "vm_status")', function() { + // uncomment below and update the code to test the property vmStatus + //var instance = new HyperstackApi.SnapshotRetrieveFields(); + //expect(instance).to.be(); + }); + + it('should have the property volumeId (base name: "volume_id")', function() { + // uncomment below and update the code to test the property volumeId + //var instance = new HyperstackApi.SnapshotRetrieveFields(); + //expect(instance).to.be(); + }); + + it('should have the property volumeName (base name: "volume_name")', function() { + // uncomment below and update the code to test the property volumeName + //var instance = new HyperstackApi.SnapshotRetrieveFields(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/StockVisibilityUserListResponse.spec.js b/test/model/StockVisibilityUserListResponse.spec.js deleted file mode 100644 index 68dbf8bf..00000000 --- a/test/model/StockVisibilityUserListResponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.StockVisibilityUserListResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('StockVisibilityUserListResponse', function() { - it('should create an instance of StockVisibilityUserListResponse', function() { - // uncomment below and update the code to test StockVisibilityUserListResponse - //var instance = new HyperstackApi.StockVisibilityUserListResponse(); - //expect(instance).to.be.a(HyperstackApi.StockVisibilityUserListResponse); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.StockVisibilityUserListResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.StockVisibilityUserListResponse(); - //expect(instance).to.be(); - }); - - it('should have the property users (base name: "users")', function() { - // uncomment below and update the code to test the property users - //var instance = new HyperstackApi.StockVisibilityUserListResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/StockVisibilityUserPayload.spec.js b/test/model/StockVisibilityUserPayload.spec.js deleted file mode 100644 index 7b092529..00000000 --- a/test/model/StockVisibilityUserPayload.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.StockVisibilityUserPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('StockVisibilityUserPayload', function() { - it('should create an instance of StockVisibilityUserPayload', function() { - // uncomment below and update the code to test StockVisibilityUserPayload - //var instance = new HyperstackApi.StockVisibilityUserPayload(); - //expect(instance).to.be.a(HyperstackApi.StockVisibilityUserPayload); - }); - - it('should have the property userIds (base name: "user_ids")', function() { - // uncomment below and update the code to test the property userIds - //var instance = new HyperstackApi.StockVisibilityUserPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SubscribeOrUnsubscribeUpdatePayload.spec.js b/test/model/SubscribeOrUnsubscribeUpdatePayload.spec.js new file mode 100644 index 00000000..625ccb16 --- /dev/null +++ b/test/model/SubscribeOrUnsubscribeUpdatePayload.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.SubscribeOrUnsubscribeUpdatePayload(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SubscribeOrUnsubscribeUpdatePayload', function() { + it('should create an instance of SubscribeOrUnsubscribeUpdatePayload', function() { + // uncomment below and update the code to test SubscribeOrUnsubscribeUpdatePayload + //var instance = new HyperstackApi.SubscribeOrUnsubscribeUpdatePayload(); + //expect(instance).to.be.a(HyperstackApi.SubscribeOrUnsubscribeUpdatePayload); + }); + + it('should have the property subscribe (base name: "subscribe")', function() { + // uncomment below and update the code to test the property subscribe + //var instance = new HyperstackApi.SubscribeOrUnsubscribeUpdatePayload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Subscribeorunsubscribeupdatepayload.spec.js b/test/model/Subscribeorunsubscribeupdatepayload.spec.js deleted file mode 100644 index a7d5cbde..00000000 --- a/test/model/Subscribeorunsubscribeupdatepayload.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.Subscribeorunsubscribeupdatepayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Subscribeorunsubscribeupdatepayload', function() { - it('should create an instance of Subscribeorunsubscribeupdatepayload', function() { - // uncomment below and update the code to test Subscribeorunsubscribeupdatepayload - //var instance = new HyperstackApi.Subscribeorunsubscribeupdatepayload(); - //expect(instance).to.be.a(HyperstackApi.Subscribeorunsubscribeupdatepayload); - }); - - it('should have the property subscribe (base name: "subscribe")', function() { - // uncomment below and update the code to test the property subscribe - //var instance = new HyperstackApi.Subscribeorunsubscribeupdatepayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SuccessResponseModel.spec.js b/test/model/SuccessResponseModel.spec.js deleted file mode 100644 index 10f5830f..00000000 --- a/test/model/SuccessResponseModel.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.SuccessResponseModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SuccessResponseModel', function() { - it('should create an instance of SuccessResponseModel', function() { - // uncomment below and update the code to test SuccessResponseModel - //var instance = new HyperstackApi.SuccessResponseModel(); - //expect(instance).to.be.a(HyperstackApi.SuccessResponseModel); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.SuccessResponseModel(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.SuccessResponseModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/TokenBasedBillingHistoryResponse.spec.js b/test/model/TokenBasedBillingHistoryResponse.spec.js new file mode 100644 index 00000000..5643c5fc --- /dev/null +++ b/test/model/TokenBasedBillingHistoryResponse.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.TokenBasedBillingHistoryResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('TokenBasedBillingHistoryResponse', function() { + it('should create an instance of TokenBasedBillingHistoryResponse', function() { + // uncomment below and update the code to test TokenBasedBillingHistoryResponse + //var instance = new HyperstackApi.TokenBasedBillingHistoryResponse(); + //expect(instance).to.be.a(HyperstackApi.TokenBasedBillingHistoryResponse); + }); + + it('should have the property billingHistoryServerlessInference (base name: "billing_history_serverless_inference")', function() { + // uncomment below and update the code to test the property billingHistoryServerlessInference + //var instance = new HyperstackApi.TokenBasedBillingHistoryResponse(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.TokenBasedBillingHistoryResponse(); + //expect(instance).to.be(); + }); + + it('should have the property success (base name: "success")', function() { + // uncomment below and update the code to test the property success + //var instance = new HyperstackApi.TokenBasedBillingHistoryResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/TokenFields.spec.js b/test/model/TokenFields.spec.js deleted file mode 100644 index 3957212b..00000000 --- a/test/model/TokenFields.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.TokenFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('TokenFields', function() { - it('should create an instance of TokenFields', function() { - // uncomment below and update the code to test TokenFields - //var instance = new HyperstackApi.TokenFields(); - //expect(instance).to.be.a(HyperstackApi.TokenFields); - }); - - it('should have the property accessToken (base name: "access_token")', function() { - // uncomment below and update the code to test the property accessToken - //var instance = new HyperstackApi.TokenFields(); - //expect(instance).to.be(); - }); - - it('should have the property idToken (base name: "id_token")', function() { - // uncomment below and update the code to test the property idToken - //var instance = new HyperstackApi.TokenFields(); - //expect(instance).to.be(); - }); - - it('should have the property refreshToken (base name: "refresh_token")', function() { - // uncomment below and update the code to test the property refreshToken - //var instance = new HyperstackApi.TokenFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/URIs.spec.js b/test/model/URIs.spec.js new file mode 100644 index 00000000..adefc048 --- /dev/null +++ b/test/model/URIs.spec.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.URIs(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('URIs', function() { + it('should create an instance of URIs', function() { + // uncomment below and update the code to test URIs + //var instance = new HyperstackApi.URIs(); + //expect(instance).to.be.a(HyperstackApi.URIs); + }); + + it('should have the property apiDoc (base name: "api_doc")', function() { + // uncomment below and update the code to test the property apiDoc + //var instance = new HyperstackApi.URIs(); + //expect(instance).to.be(); + }); + + it('should have the property apiUri (base name: "api_uri")', function() { + // uncomment below and update the code to test the property apiUri + //var instance = new HyperstackApi.URIs(); + //expect(instance).to.be(); + }); + + it('should have the property auth (base name: "auth")', function() { + // uncomment below and update the code to test the property auth + //var instance = new HyperstackApi.URIs(); + //expect(instance).to.be(); + }); + + it('should have the property console (base name: "console")', function() { + // uncomment below and update the code to test the property console + //var instance = new HyperstackApi.URIs(); + //expect(instance).to.be(); + }); + + it('should have the property contactUs (base name: "contact_us")', function() { + // uncomment below and update the code to test the property contactUs + //var instance = new HyperstackApi.URIs(); + //expect(instance).to.be(); + }); + + it('should have the property doc (base name: "doc")', function() { + // uncomment below and update the code to test the property doc + //var instance = new HyperstackApi.URIs(); + //expect(instance).to.be(); + }); + + it('should have the property landingPage (base name: "landing_page")', function() { + // uncomment below and update the code to test the property landingPage + //var instance = new HyperstackApi.URIs(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateClusterNodeGroupPayload.spec.js b/test/model/UpdateClusterNodeGroupPayload.spec.js new file mode 100644 index 00000000..8bc24e18 --- /dev/null +++ b/test/model/UpdateClusterNodeGroupPayload.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.UpdateClusterNodeGroupPayload(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateClusterNodeGroupPayload', function() { + it('should create an instance of UpdateClusterNodeGroupPayload', function() { + // uncomment below and update the code to test UpdateClusterNodeGroupPayload + //var instance = new HyperstackApi.UpdateClusterNodeGroupPayload(); + //expect(instance).to.be.a(HyperstackApi.UpdateClusterNodeGroupPayload); + }); + + it('should have the property firewallIds (base name: "firewall_ids")', function() { + // uncomment below and update the code to test the property firewallIds + //var instance = new HyperstackApi.UpdateClusterNodeGroupPayload(); + //expect(instance).to.be(); + }); + + it('should have the property maxCount (base name: "max_count")', function() { + // uncomment below and update the code to test the property maxCount + //var instance = new HyperstackApi.UpdateClusterNodeGroupPayload(); + //expect(instance).to.be(); + }); + + it('should have the property minCount (base name: "min_count")', function() { + // uncomment below and update the code to test the property minCount + //var instance = new HyperstackApi.UpdateClusterNodeGroupPayload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateContractPayload.spec.js b/test/model/UpdateContractPayload.spec.js deleted file mode 100644 index 56ff7f7e..00000000 --- a/test/model/UpdateContractPayload.spec.js +++ /dev/null @@ -1,89 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.UpdateContractPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateContractPayload', function() { - it('should create an instance of UpdateContractPayload', function() { - // uncomment below and update the code to test UpdateContractPayload - //var instance = new HyperstackApi.UpdateContractPayload(); - //expect(instance).to.be.a(HyperstackApi.UpdateContractPayload); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new HyperstackApi.UpdateContractPayload(); - //expect(instance).to.be(); - }); - - it('should have the property discountResources (base name: "discount_resources")', function() { - // uncomment below and update the code to test the property discountResources - //var instance = new HyperstackApi.UpdateContractPayload(); - //expect(instance).to.be(); - }); - - it('should have the property endDate (base name: "end_date")', function() { - // uncomment below and update the code to test the property endDate - //var instance = new HyperstackApi.UpdateContractPayload(); - //expect(instance).to.be(); - }); - - it('should have the property expirationPolicy (base name: "expiration_policy")', function() { - // uncomment below and update the code to test the property expirationPolicy - //var instance = new HyperstackApi.UpdateContractPayload(); - //expect(instance).to.be(); - }); - - it('should have the property startDate (base name: "start_date")', function() { - // uncomment below and update the code to test the property startDate - //var instance = new HyperstackApi.UpdateContractPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateDiscountsPayload.spec.js b/test/model/UpdateDiscountsPayload.spec.js deleted file mode 100644 index 6bb40bb4..00000000 --- a/test/model/UpdateDiscountsPayload.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.UpdateDiscountsPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateDiscountsPayload', function() { - it('should create an instance of UpdateDiscountsPayload', function() { - // uncomment below and update the code to test UpdateDiscountsPayload - //var instance = new HyperstackApi.UpdateDiscountsPayload(); - //expect(instance).to.be.a(HyperstackApi.UpdateDiscountsPayload); - }); - - it('should have the property discountResources (base name: "discount_resources")', function() { - // uncomment below and update the code to test the property discountResources - //var instance = new HyperstackApi.UpdateDiscountsPayload(); - //expect(instance).to.be(); - }); - - it('should have the property discountStatus (base name: "discount_status")', function() { - // uncomment below and update the code to test the property discountStatus - //var instance = new HyperstackApi.UpdateDiscountsPayload(); - //expect(instance).to.be(); - }); - - it('should have the property endDate (base name: "end_date")', function() { - // uncomment below and update the code to test the property endDate - //var instance = new HyperstackApi.UpdateDiscountsPayload(); - //expect(instance).to.be(); - }); - - it('should have the property startDate (base name: "start_date")', function() { - // uncomment below and update the code to test the property startDate - //var instance = new HyperstackApi.UpdateDiscountsPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateDiscountsStatusPayload.spec.js b/test/model/UpdateDiscountsStatusPayload.spec.js deleted file mode 100644 index b0434c85..00000000 --- a/test/model/UpdateDiscountsStatusPayload.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.UpdateDiscountsStatusPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateDiscountsStatusPayload', function() { - it('should create an instance of UpdateDiscountsStatusPayload', function() { - // uncomment below and update the code to test UpdateDiscountsStatusPayload - //var instance = new HyperstackApi.UpdateDiscountsStatusPayload(); - //expect(instance).to.be.a(HyperstackApi.UpdateDiscountsStatusPayload); - }); - - it('should have the property discountStatus (base name: "discount_status")', function() { - // uncomment below and update the code to test the property discountStatus - //var instance = new HyperstackApi.UpdateDiscountsStatusPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateGPU.spec.js b/test/model/UpdateGPU.spec.js deleted file mode 100644 index 80888a46..00000000 --- a/test/model/UpdateGPU.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.UpdateGPU(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateGPU', function() { - it('should create an instance of UpdateGPU', function() { - // uncomment below and update the code to test UpdateGPU - //var instance = new HyperstackApi.UpdateGPU(); - //expect(instance).to.be.a(HyperstackApi.UpdateGPU); - }); - - it('should have the property exampleMetadata (base name: "example_metadata")', function() { - // uncomment below and update the code to test the property exampleMetadata - //var instance = new HyperstackApi.UpdateGPU(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.UpdateGPU(); - //expect(instance).to.be(); - }); - - it('should have the property regions (base name: "regions")', function() { - // uncomment below and update the code to test the property regions - //var instance = new HyperstackApi.UpdateGPU(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateKeypairNameResponse.spec.js b/test/model/UpdateKeypairNameResponse.spec.js new file mode 100644 index 00000000..b44d1ac5 --- /dev/null +++ b/test/model/UpdateKeypairNameResponse.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.UpdateKeypairNameResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateKeypairNameResponse', function() { + it('should create an instance of UpdateKeypairNameResponse', function() { + // uncomment below and update the code to test UpdateKeypairNameResponse + //var instance = new HyperstackApi.UpdateKeypairNameResponse(); + //expect(instance).to.be.a(HyperstackApi.UpdateKeypairNameResponse); + }); + + it('should have the property keypair (base name: "keypair")', function() { + // uncomment below and update the code to test the property keypair + //var instance = new HyperstackApi.UpdateKeypairNameResponse(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.UpdateKeypairNameResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.UpdateKeypairNameResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateKeypairnameresponse.spec.js b/test/model/UpdateKeypairnameresponse.spec.js deleted file mode 100644 index 0b153ae2..00000000 --- a/test/model/UpdateKeypairnameresponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.UpdateKeypairnameresponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateKeypairnameresponse', function() { - it('should create an instance of UpdateKeypairnameresponse', function() { - // uncomment below and update the code to test UpdateKeypairnameresponse - //var instance = new HyperstackApi.UpdateKeypairnameresponse(); - //expect(instance).to.be.a(HyperstackApi.UpdateKeypairnameresponse); - }); - - it('should have the property keypair (base name: "keypair")', function() { - // uncomment below and update the code to test the property keypair - //var instance = new HyperstackApi.UpdateKeypairnameresponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.UpdateKeypairnameresponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.UpdateKeypairnameresponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateVolumeAttachmentPayload.spec.js b/test/model/UpdateVolumeAttachmentPayload.spec.js new file mode 100644 index 00000000..ba274c01 --- /dev/null +++ b/test/model/UpdateVolumeAttachmentPayload.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.UpdateVolumeAttachmentPayload(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateVolumeAttachmentPayload', function() { + it('should create an instance of UpdateVolumeAttachmentPayload', function() { + // uncomment below and update the code to test UpdateVolumeAttachmentPayload + //var instance = new HyperstackApi.UpdateVolumeAttachmentPayload(); + //expect(instance).to.be.a(HyperstackApi.UpdateVolumeAttachmentPayload); + }); + + it('should have the property _protected (base name: "protected")', function() { + // uncomment below and update the code to test the property _protected + //var instance = new HyperstackApi.UpdateVolumeAttachmentPayload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateVolumePayload.spec.js b/test/model/UpdateVolumePayload.spec.js new file mode 100644 index 00000000..f7158aa2 --- /dev/null +++ b/test/model/UpdateVolumePayload.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.UpdateVolumePayload(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateVolumePayload', function() { + it('should create an instance of UpdateVolumePayload', function() { + // uncomment below and update the code to test UpdateVolumePayload + //var instance = new HyperstackApi.UpdateVolumePayload(); + //expect(instance).to.be.a(HyperstackApi.UpdateVolumePayload); + }); + + it('should have the property environmentName (base name: "environment_name")', function() { + // uncomment below and update the code to test the property environmentName + //var instance = new HyperstackApi.UpdateVolumePayload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateVolumeResponse.spec.js b/test/model/UpdateVolumeResponse.spec.js new file mode 100644 index 00000000..3957e7bf --- /dev/null +++ b/test/model/UpdateVolumeResponse.spec.js @@ -0,0 +1,83 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.UpdateVolumeResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateVolumeResponse', function() { + it('should create an instance of UpdateVolumeResponse', function() { + // uncomment below and update the code to test UpdateVolumeResponse + //var instance = new HyperstackApi.UpdateVolumeResponse(); + //expect(instance).to.be.a(HyperstackApi.UpdateVolumeResponse); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.UpdateVolumeResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.UpdateVolumeResponse(); + //expect(instance).to.be(); + }); + + it('should have the property updates (base name: "updates")', function() { + // uncomment below and update the code to test the property updates + //var instance = new HyperstackApi.UpdateVolumeResponse(); + //expect(instance).to.be(); + }); + + it('should have the property volume (base name: "volume")', function() { + // uncomment below and update the code to test the property volume + //var instance = new HyperstackApi.UpdateVolumeResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserInfoPostPayload.spec.js b/test/model/UserInfoPostPayload.spec.js new file mode 100644 index 00000000..ff934042 --- /dev/null +++ b/test/model/UserInfoPostPayload.spec.js @@ -0,0 +1,125 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.UserInfoPostPayload(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserInfoPostPayload', function() { + it('should create an instance of UserInfoPostPayload', function() { + // uncomment below and update the code to test UserInfoPostPayload + //var instance = new HyperstackApi.UserInfoPostPayload(); + //expect(instance).to.be.a(HyperstackApi.UserInfoPostPayload); + }); + + it('should have the property billingAddress1 (base name: "billing_address1")', function() { + // uncomment below and update the code to test the property billingAddress1 + //var instance = new HyperstackApi.UserInfoPostPayload(); + //expect(instance).to.be(); + }); + + it('should have the property billingAddress2 (base name: "billing_address2")', function() { + // uncomment below and update the code to test the property billingAddress2 + //var instance = new HyperstackApi.UserInfoPostPayload(); + //expect(instance).to.be(); + }); + + it('should have the property business (base name: "business")', function() { + // uncomment below and update the code to test the property business + //var instance = new HyperstackApi.UserInfoPostPayload(); + //expect(instance).to.be(); + }); + + it('should have the property companyName (base name: "company_name")', function() { + // uncomment below and update the code to test the property companyName + //var instance = new HyperstackApi.UserInfoPostPayload(); + //expect(instance).to.be(); + }); + + it('should have the property country (base name: "country")', function() { + // uncomment below and update the code to test the property country + //var instance = new HyperstackApi.UserInfoPostPayload(); + //expect(instance).to.be(); + }); + + it('should have the property email (base name: "email")', function() { + // uncomment below and update the code to test the property email + //var instance = new HyperstackApi.UserInfoPostPayload(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new HyperstackApi.UserInfoPostPayload(); + //expect(instance).to.be(); + }); + + it('should have the property phone (base name: "phone")', function() { + // uncomment below and update the code to test the property phone + //var instance = new HyperstackApi.UserInfoPostPayload(); + //expect(instance).to.be(); + }); + + it('should have the property state (base name: "state")', function() { + // uncomment below and update the code to test the property state + //var instance = new HyperstackApi.UserInfoPostPayload(); + //expect(instance).to.be(); + }); + + it('should have the property vatNumber (base name: "vat_number")', function() { + // uncomment below and update the code to test the property vatNumber + //var instance = new HyperstackApi.UserInfoPostPayload(); + //expect(instance).to.be(); + }); + + it('should have the property zipCode (base name: "zip_code")', function() { + // uncomment below and update the code to test the property zipCode + //var instance = new HyperstackApi.UserInfoPostPayload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserOrganizationsResponse.spec.js b/test/model/UserOrganizationsResponse.spec.js new file mode 100644 index 00000000..8d3233e5 --- /dev/null +++ b/test/model/UserOrganizationsResponse.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.UserOrganizationsResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserOrganizationsResponse', function() { + it('should create an instance of UserOrganizationsResponse', function() { + // uncomment below and update the code to test UserOrganizationsResponse + //var instance = new HyperstackApi.UserOrganizationsResponse(); + //expect(instance).to.be.a(HyperstackApi.UserOrganizationsResponse); + }); + + it('should have the property organizations (base name: "organizations")', function() { + // uncomment below and update the code to test the property organizations + //var instance = new HyperstackApi.UserOrganizationsResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserTransferPayload.spec.js b/test/model/UserTransferPayload.spec.js deleted file mode 100644 index 24152e96..00000000 --- a/test/model/UserTransferPayload.spec.js +++ /dev/null @@ -1,71 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.UserTransferPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UserTransferPayload', function() { - it('should create an instance of UserTransferPayload', function() { - // uncomment below and update the code to test UserTransferPayload - //var instance = new HyperstackApi.UserTransferPayload(); - //expect(instance).to.be.a(HyperstackApi.UserTransferPayload); - }); - - it('should have the property orgId (base name: "org_id")', function() { - // uncomment below and update the code to test the property orgId - //var instance = new HyperstackApi.UserTransferPayload(); - //expect(instance).to.be(); - }); - - it('should have the property role (base name: "role")', function() { - // uncomment below and update the code to test the property role - //var instance = new HyperstackApi.UserTransferPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Userinfopostpayload.spec.js b/test/model/Userinfopostpayload.spec.js deleted file mode 100644 index 7bd8a946..00000000 --- a/test/model/Userinfopostpayload.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.Userinfopostpayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Userinfopostpayload', function() { - it('should create an instance of Userinfopostpayload', function() { - // uncomment below and update the code to test Userinfopostpayload - //var instance = new HyperstackApi.Userinfopostpayload(); - //expect(instance).to.be.a(HyperstackApi.Userinfopostpayload); - }); - - it('should have the property billingAddress1 (base name: "billing_address1")', function() { - // uncomment below and update the code to test the property billingAddress1 - //var instance = new HyperstackApi.Userinfopostpayload(); - //expect(instance).to.be(); - }); - - it('should have the property billingAddress2 (base name: "billing_address2")', function() { - // uncomment below and update the code to test the property billingAddress2 - //var instance = new HyperstackApi.Userinfopostpayload(); - //expect(instance).to.be(); - }); - - it('should have the property business (base name: "business")', function() { - // uncomment below and update the code to test the property business - //var instance = new HyperstackApi.Userinfopostpayload(); - //expect(instance).to.be(); - }); - - it('should have the property companyName (base name: "company_name")', function() { - // uncomment below and update the code to test the property companyName - //var instance = new HyperstackApi.Userinfopostpayload(); - //expect(instance).to.be(); - }); - - it('should have the property country (base name: "country")', function() { - // uncomment below and update the code to test the property country - //var instance = new HyperstackApi.Userinfopostpayload(); - //expect(instance).to.be(); - }); - - it('should have the property email (base name: "email")', function() { - // uncomment below and update the code to test the property email - //var instance = new HyperstackApi.Userinfopostpayload(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.Userinfopostpayload(); - //expect(instance).to.be(); - }); - - it('should have the property phone (base name: "phone")', function() { - // uncomment below and update the code to test the property phone - //var instance = new HyperstackApi.Userinfopostpayload(); - //expect(instance).to.be(); - }); - - it('should have the property state (base name: "state")', function() { - // uncomment below and update the code to test the property state - //var instance = new HyperstackApi.Userinfopostpayload(); - //expect(instance).to.be(); - }); - - it('should have the property vatNumber (base name: "vat_number")', function() { - // uncomment below and update the code to test the property vatNumber - //var instance = new HyperstackApi.Userinfopostpayload(); - //expect(instance).to.be(); - }); - - it('should have the property zipCode (base name: "zip_code")', function() { - // uncomment below and update the code to test the property zipCode - //var instance = new HyperstackApi.Userinfopostpayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UsersInfoFields.spec.js b/test/model/UsersInfoFields.spec.js index 992560e3..f57d529a 100644 --- a/test/model/UsersInfoFields.spec.js +++ b/test/model/UsersInfoFields.spec.js @@ -126,6 +126,12 @@ //expect(instance).to.be(); }); + it('should have the property stripeUserId (base name: "stripe_user_id")', function() { + // uncomment below and update the code to test the property stripeUserId + //var instance = new HyperstackApi.UsersInfoFields(); + //expect(instance).to.be(); + }); + it('should have the property vatNumber (base name: "vat_number")', function() { // uncomment below and update the code to test the property vatNumber //var instance = new HyperstackApi.UsersInfoFields(); diff --git a/test/model/VMQuota.spec.js b/test/model/VMQuota.spec.js new file mode 100644 index 00000000..d8a8db52 --- /dev/null +++ b/test/model/VMQuota.spec.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.VMQuota(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('VMQuota', function() { + it('should create an instance of VMQuota', function() { + // uncomment below and update the code to test VMQuota + //var instance = new HyperstackApi.VMQuota(); + //expect(instance).to.be.a(HyperstackApi.VMQuota); + }); + + it('should have the property availableVms (base name: "available_vms")', function() { + // uncomment below and update the code to test the property availableVms + //var instance = new HyperstackApi.VMQuota(); + //expect(instance).to.be(); + }); + + it('should have the property cidr (base name: "cidr")', function() { + // uncomment below and update the code to test the property cidr + //var instance = new HyperstackApi.VMQuota(); + //expect(instance).to.be(); + }); + + it('should have the property currentVms (base name: "current_vms")', function() { + // uncomment below and update the code to test the property currentVms + //var instance = new HyperstackApi.VMQuota(); + //expect(instance).to.be(); + }); + + it('should have the property maxVms (base name: "max_vms")', function() { + // uncomment below and update the code to test the property maxVms + //var instance = new HyperstackApi.VMQuota(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.VMQuota(); + //expect(instance).to.be(); + }); + + it('should have the property percentageUsed (base name: "percentage_used")', function() { + // uncomment below and update the code to test the property percentageUsed + //var instance = new HyperstackApi.VMQuota(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.VMQuota(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/VMUsageRequestPayload.spec.js b/test/model/VMUsageRequestPayload.spec.js deleted file mode 100644 index 95e64419..00000000 --- a/test/model/VMUsageRequestPayload.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.VMUsageRequestPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('VMUsageRequestPayload', function() { - it('should create an instance of VMUsageRequestPayload', function() { - // uncomment below and update the code to test VMUsageRequestPayload - //var instance = new HyperstackApi.VMUsageRequestPayload(); - //expect(instance).to.be.a(HyperstackApi.VMUsageRequestPayload); - }); - - it('should have the property vmIds (base name: "vm_ids")', function() { - // uncomment below and update the code to test the property vmIds - //var instance = new HyperstackApi.VMUsageRequestPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/VMUsageResponse.spec.js b/test/model/VMUsageResponse.spec.js deleted file mode 100644 index 41555075..00000000 --- a/test/model/VMUsageResponse.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.VMUsageResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('VMUsageResponse', function() { - it('should create an instance of VMUsageResponse', function() { - // uncomment below and update the code to test VMUsageResponse - //var instance = new HyperstackApi.VMUsageResponse(); - //expect(instance).to.be.a(HyperstackApi.VMUsageResponse); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.VMUsageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property orgId (base name: "org_id")', function() { - // uncomment below and update the code to test the property orgId - //var instance = new HyperstackApi.VMUsageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.VMUsageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property virtualMachines (base name: "virtual_machines")', function() { - // uncomment below and update the code to test the property virtualMachines - //var instance = new HyperstackApi.VMUsageResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/VerifyApiKeyPayload.spec.js b/test/model/VerifyApiKeyPayload.spec.js deleted file mode 100644 index f6273abf..00000000 --- a/test/model/VerifyApiKeyPayload.spec.js +++ /dev/null @@ -1,65 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.VerifyApiKeyPayload(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('VerifyApiKeyPayload', function() { - it('should create an instance of VerifyApiKeyPayload', function() { - // uncomment below and update the code to test VerifyApiKeyPayload - //var instance = new HyperstackApi.VerifyApiKeyPayload(); - //expect(instance).to.be.a(HyperstackApi.VerifyApiKeyPayload); - }); - - it('should have the property apiKey (base name: "api_key")', function() { - // uncomment below and update the code to test the property apiKey - //var instance = new HyperstackApi.VerifyApiKeyPayload(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/VerifyApiKeyResponseModel.spec.js b/test/model/VerifyApiKeyResponseModel.spec.js deleted file mode 100644 index db144cc1..00000000 --- a/test/model/VerifyApiKeyResponseModel.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.VerifyApiKeyResponseModel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('VerifyApiKeyResponseModel', function() { - it('should create an instance of VerifyApiKeyResponseModel', function() { - // uncomment below and update the code to test VerifyApiKeyResponseModel - //var instance = new HyperstackApi.VerifyApiKeyResponseModel(); - //expect(instance).to.be.a(HyperstackApi.VerifyApiKeyResponseModel); - }); - - it('should have the property apiKey (base name: "api_key")', function() { - // uncomment below and update the code to test the property apiKey - //var instance = new HyperstackApi.VerifyApiKeyResponseModel(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.VerifyApiKeyResponseModel(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.VerifyApiKeyResponseModel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/VirtualMachineUsage.spec.js b/test/model/VirtualMachineUsage.spec.js deleted file mode 100644 index 723e4011..00000000 --- a/test/model/VirtualMachineUsage.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.VirtualMachineUsage(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('VirtualMachineUsage', function() { - it('should create an instance of VirtualMachineUsage', function() { - // uncomment below and update the code to test VirtualMachineUsage - //var instance = new HyperstackApi.VirtualMachineUsage(); - //expect(instance).to.be.a(HyperstackApi.VirtualMachineUsage); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.VirtualMachineUsage(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.VirtualMachineUsage(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.VirtualMachineUsage(); - //expect(instance).to.be(); - }); - - it('should have the property totalUsageTime (base name: "total_usage_time")', function() { - // uncomment below and update the code to test the property totalUsageTime - //var instance = new HyperstackApi.VirtualMachineUsage(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/VolumeAttachmentFields.spec.js b/test/model/VolumeAttachmentFields.spec.js index 3ae72464..cfbd77fb 100644 --- a/test/model/VolumeAttachmentFields.spec.js +++ b/test/model/VolumeAttachmentFields.spec.js @@ -66,6 +66,18 @@ //expect(instance).to.be(); }); + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.VolumeAttachmentFields(); + //expect(instance).to.be(); + }); + + it('should have the property _protected (base name: "protected")', function() { + // uncomment below and update the code to test the property _protected + //var instance = new HyperstackApi.VolumeAttachmentFields(); + //expect(instance).to.be(); + }); + it('should have the property status (base name: "status")', function() { // uncomment below and update the code to test the property status //var instance = new HyperstackApi.VolumeAttachmentFields(); diff --git a/test/model/VolumeFields.spec.js b/test/model/VolumeFields.spec.js index c651b7db..132ccabc 100644 --- a/test/model/VolumeFields.spec.js +++ b/test/model/VolumeFields.spec.js @@ -54,6 +54,12 @@ //expect(instance).to.be.a(HyperstackApi.VolumeFields); }); + it('should have the property attachments (base name: "attachments")', function() { + // uncomment below and update the code to test the property attachments + //var instance = new HyperstackApi.VolumeFields(); + //expect(instance).to.be(); + }); + it('should have the property bootable (base name: "bootable")', function() { // uncomment below and update the code to test the property bootable //var instance = new HyperstackApi.VolumeFields(); diff --git a/test/model/VolumeFieldsForInstance.spec.js b/test/model/VolumeFieldsForInstance.spec.js new file mode 100644 index 00000000..6f8917bb --- /dev/null +++ b/test/model/VolumeFieldsForInstance.spec.js @@ -0,0 +1,95 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.VolumeFieldsForInstance(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('VolumeFieldsForInstance', function() { + it('should create an instance of VolumeFieldsForInstance', function() { + // uncomment below and update the code to test VolumeFieldsForInstance + //var instance = new HyperstackApi.VolumeFieldsForInstance(); + //expect(instance).to.be.a(HyperstackApi.VolumeFieldsForInstance); + }); + + it('should have the property bootable (base name: "bootable")', function() { + // uncomment below and update the code to test the property bootable + //var instance = new HyperstackApi.VolumeFieldsForInstance(); + //expect(instance).to.be(); + }); + + it('should have the property description (base name: "description")', function() { + // uncomment below and update the code to test the property description + //var instance = new HyperstackApi.VolumeFieldsForInstance(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.VolumeFieldsForInstance(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new HyperstackApi.VolumeFieldsForInstance(); + //expect(instance).to.be(); + }); + + it('should have the property size (base name: "size")', function() { + // uncomment below and update the code to test the property size + //var instance = new HyperstackApi.VolumeFieldsForInstance(); + //expect(instance).to.be(); + }); + + it('should have the property volumeType (base name: "volume_type")', function() { + // uncomment below and update the code to test the property volumeType + //var instance = new HyperstackApi.VolumeFieldsForInstance(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/VolumeFieldsforInstance.spec.js b/test/model/VolumeFieldsforInstance.spec.js deleted file mode 100644 index 146c5ce7..00000000 --- a/test/model/VolumeFieldsforInstance.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.VolumeFieldsforInstance(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('VolumeFieldsforInstance', function() { - it('should create an instance of VolumeFieldsforInstance', function() { - // uncomment below and update the code to test VolumeFieldsforInstance - //var instance = new HyperstackApi.VolumeFieldsforInstance(); - //expect(instance).to.be.a(HyperstackApi.VolumeFieldsforInstance); - }); - - it('should have the property bootable (base name: "bootable")', function() { - // uncomment below and update the code to test the property bootable - //var instance = new HyperstackApi.VolumeFieldsforInstance(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new HyperstackApi.VolumeFieldsforInstance(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.VolumeFieldsforInstance(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new HyperstackApi.VolumeFieldsforInstance(); - //expect(instance).to.be(); - }); - - it('should have the property size (base name: "size")', function() { - // uncomment below and update the code to test the property size - //var instance = new HyperstackApi.VolumeFieldsforInstance(); - //expect(instance).to.be(); - }); - - it('should have the property volumeType (base name: "volume_type")', function() { - // uncomment below and update the code to test the property volumeType - //var instance = new HyperstackApi.VolumeFieldsforInstance(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/VolumeStatusChangeFields.spec.js b/test/model/VolumeStatusChangeFields.spec.js deleted file mode 100644 index 010861e3..00000000 --- a/test/model/VolumeStatusChangeFields.spec.js +++ /dev/null @@ -1,89 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.VolumeStatusChangeFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('VolumeStatusChangeFields', function() { - it('should create an instance of VolumeStatusChangeFields', function() { - // uncomment below and update the code to test VolumeStatusChangeFields - //var instance = new HyperstackApi.VolumeStatusChangeFields(); - //expect(instance).to.be.a(HyperstackApi.VolumeStatusChangeFields); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new HyperstackApi.VolumeStatusChangeFields(); - //expect(instance).to.be(); - }); - - it('should have the property currentStatus (base name: "current_status")', function() { - // uncomment below and update the code to test the property currentStatus - //var instance = new HyperstackApi.VolumeStatusChangeFields(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.VolumeStatusChangeFields(); - //expect(instance).to.be(); - }); - - it('should have the property previousStatus (base name: "previous_status")', function() { - // uncomment below and update the code to test the property previousStatus - //var instance = new HyperstackApi.VolumeStatusChangeFields(); - //expect(instance).to.be(); - }); - - it('should have the property volumeId (base name: "volume_id")', function() { - // uncomment below and update the code to test the property volumeId - //var instance = new HyperstackApi.VolumeStatusChangeFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Volumes.spec.js b/test/model/Volumes.spec.js index c59b7f0b..3bd2b7c7 100644 --- a/test/model/Volumes.spec.js +++ b/test/model/Volumes.spec.js @@ -54,20 +54,38 @@ //expect(instance).to.be.a(HyperstackApi.Volumes); }); + it('should have the property count (base name: "count")', function() { + // uncomment below and update the code to test the property count + //var instance = new HyperstackApi.Volumes(); + //expect(instance).to.be(); + }); + it('should have the property message (base name: "message")', function() { // uncomment below and update the code to test the property message //var instance = new HyperstackApi.Volumes(); //expect(instance).to.be(); }); + it('should have the property page (base name: "page")', function() { + // uncomment below and update the code to test the property page + //var instance = new HyperstackApi.Volumes(); + //expect(instance).to.be(); + }); + + it('should have the property pageSize (base name: "page_size")', function() { + // uncomment below and update the code to test the property pageSize + //var instance = new HyperstackApi.Volumes(); + //expect(instance).to.be(); + }); + it('should have the property status (base name: "status")', function() { // uncomment below and update the code to test the property status //var instance = new HyperstackApi.Volumes(); //expect(instance).to.be(); }); - it('should have the property volume (base name: "volume")', function() { - // uncomment below and update the code to test the property volume + it('should have the property volumes (base name: "volumes")', function() { + // uncomment below and update the code to test the property volumes //var instance = new HyperstackApi.Volumes(); //expect(instance).to.be(); }); diff --git a/test/model/VolumesFields.spec.js b/test/model/VolumesFields.spec.js new file mode 100644 index 00000000..a6792c14 --- /dev/null +++ b/test/model/VolumesFields.spec.js @@ -0,0 +1,137 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.VolumesFields(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('VolumesFields', function() { + it('should create an instance of VolumesFields', function() { + // uncomment below and update the code to test VolumesFields + //var instance = new HyperstackApi.VolumesFields(); + //expect(instance).to.be.a(HyperstackApi.VolumesFields); + }); + + it('should have the property attachments (base name: "attachments")', function() { + // uncomment below and update the code to test the property attachments + //var instance = new HyperstackApi.VolumesFields(); + //expect(instance).to.be(); + }); + + it('should have the property bootable (base name: "bootable")', function() { + // uncomment below and update the code to test the property bootable + //var instance = new HyperstackApi.VolumesFields(); + //expect(instance).to.be(); + }); + + it('should have the property callbackUrl (base name: "callback_url")', function() { + // uncomment below and update the code to test the property callbackUrl + //var instance = new HyperstackApi.VolumesFields(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new HyperstackApi.VolumesFields(); + //expect(instance).to.be(); + }); + + it('should have the property description (base name: "description")', function() { + // uncomment below and update the code to test the property description + //var instance = new HyperstackApi.VolumesFields(); + //expect(instance).to.be(); + }); + + it('should have the property environment (base name: "environment")', function() { + // uncomment below and update the code to test the property environment + //var instance = new HyperstackApi.VolumesFields(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.VolumesFields(); + //expect(instance).to.be(); + }); + + it('should have the property imageId (base name: "image_id")', function() { + // uncomment below and update the code to test the property imageId + //var instance = new HyperstackApi.VolumesFields(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new HyperstackApi.VolumesFields(); + //expect(instance).to.be(); + }); + + it('should have the property size (base name: "size")', function() { + // uncomment below and update the code to test the property size + //var instance = new HyperstackApi.VolumesFields(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.VolumesFields(); + //expect(instance).to.be(); + }); + + it('should have the property updatedAt (base name: "updated_at")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new HyperstackApi.VolumesFields(); + //expect(instance).to.be(); + }); + + it('should have the property volumeType (base name: "volume_type")', function() { + // uncomment below and update the code to test the property volumeType + //var instance = new HyperstackApi.VolumesFields(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/VolumesLastStatusChangeResponse.spec.js b/test/model/VolumesLastStatusChangeResponse.spec.js deleted file mode 100644 index 38ddd1ec..00000000 --- a/test/model/VolumesLastStatusChangeResponse.spec.js +++ /dev/null @@ -1,77 +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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.VolumesLastStatusChangeResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('VolumesLastStatusChangeResponse', function() { - it('should create an instance of VolumesLastStatusChangeResponse', function() { - // uncomment below and update the code to test VolumesLastStatusChangeResponse - //var instance = new HyperstackApi.VolumesLastStatusChangeResponse(); - //expect(instance).to.be.a(HyperstackApi.VolumesLastStatusChangeResponse); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.VolumesLastStatusChangeResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.VolumesLastStatusChangeResponse(); - //expect(instance).to.be(); - }); - - it('should have the property volumeStatusList (base name: "volume_status_list")', function() { - // uncomment below and update the code to test the property volumeStatusList - //var instance = new HyperstackApi.VolumesLastStatusChangeResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Voucher.spec.js b/test/model/Voucher.spec.js new file mode 100644 index 00000000..4cbf3679 --- /dev/null +++ b/test/model/Voucher.spec.js @@ -0,0 +1,95 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.Voucher(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Voucher', function() { + it('should create an instance of Voucher', function() { + // uncomment below and update the code to test Voucher + //var instance = new HyperstackApi.Voucher(); + //expect(instance).to.be.a(HyperstackApi.Voucher); + }); + + it('should have the property code (base name: "code")', function() { + // uncomment below and update the code to test the property code + //var instance = new HyperstackApi.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new HyperstackApi.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property maxRedemptionCount (base name: "max_redemption_count")', function() { + // uncomment below and update the code to test the property maxRedemptionCount + //var instance = new HyperstackApi.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property redemptionCount (base name: "redemption_count")', function() { + // uncomment below and update the code to test the property redemptionCount + //var instance = new HyperstackApi.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property remainingRedemptions (base name: "remaining_redemptions")', function() { + // uncomment below and update the code to test the property remainingRedemptions + //var instance = new HyperstackApi.Voucher(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.Voucher(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/VoucherRedeemResponseSchema.spec.js b/test/model/VoucherRedeemResponseSchema.spec.js new file mode 100644 index 00000000..33eee28d --- /dev/null +++ b/test/model/VoucherRedeemResponseSchema.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.VoucherRedeemResponseSchema(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('VoucherRedeemResponseSchema', function() { + it('should create an instance of VoucherRedeemResponseSchema', function() { + // uncomment below and update the code to test VoucherRedeemResponseSchema + //var instance = new HyperstackApi.VoucherRedeemResponseSchema(); + //expect(instance).to.be.a(HyperstackApi.VoucherRedeemResponseSchema); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.VoucherRedeemResponseSchema(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new HyperstackApi.VoucherRedeemResponseSchema(); + //expect(instance).to.be(); + }); + + it('should have the property voucher (base name: "voucher")', function() { + // uncomment below and update the code to test the property voucher + //var instance = new HyperstackApi.VoucherRedeemResponseSchema(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/WarningMailLogFields.spec.js b/test/model/WarningMailLogFields.spec.js deleted file mode 100644 index bee53ed4..00000000 --- a/test/model/WarningMailLogFields.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.WarningMailLogFields(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('WarningMailLogFields', function() { - it('should create an instance of WarningMailLogFields', function() { - // uncomment below and update the code to test WarningMailLogFields - //var instance = new HyperstackApi.WarningMailLogFields(); - //expect(instance).to.be.a(HyperstackApi.WarningMailLogFields); - }); - - it('should have the property content (base name: "content")', function() { - // uncomment below and update the code to test the property content - //var instance = new HyperstackApi.WarningMailLogFields(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new HyperstackApi.WarningMailLogFields(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new HyperstackApi.WarningMailLogFields(); - //expect(instance).to.be(); - }); - - it('should have the property organizationId (base name: "organization_id")', function() { - // uncomment below and update the code to test the property organizationId - //var instance = new HyperstackApi.WarningMailLogFields(); - //expect(instance).to.be(); - }); - - it('should have the property threshold (base name: "threshold")', function() { - // uncomment below and update the code to test the property threshold - //var instance = new HyperstackApi.WarningMailLogFields(); - //expect(instance).to.be(); - }); - - it('should have the property topic (base name: "topic")', function() { - // uncomment below and update the code to test the property topic - //var instance = new HyperstackApi.WarningMailLogFields(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updated_at")', function() { - // uncomment below and update the code to test the property updatedAt - //var instance = new HyperstackApi.WarningMailLogFields(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/WarningMailLogResponse.spec.js b/test/model/WarningMailLogResponse.spec.js deleted file mode 100644 index 0bd9d642..00000000 --- a/test/model/WarningMailLogResponse.spec.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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.HyperstackApi); - } -}(this, function(expect, HyperstackApi) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new HyperstackApi.WarningMailLogResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('WarningMailLogResponse', function() { - it('should create an instance of WarningMailLogResponse', function() { - // uncomment below and update the code to test WarningMailLogResponse - //var instance = new HyperstackApi.WarningMailLogResponse(); - //expect(instance).to.be.a(HyperstackApi.WarningMailLogResponse); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new HyperstackApi.WarningMailLogResponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new HyperstackApi.WarningMailLogResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new HyperstackApi.WarningMailLogResponse(); - //expect(instance).to.be(); - }); - - it('should have the property total (base name: "total")', function() { - // uncomment below and update the code to test the property total - //var instance = new HyperstackApi.WarningMailLogResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/WorkloadBillingHistoryResponse.spec.js b/test/model/WorkloadBillingHistoryResponse.spec.js new file mode 100644 index 00000000..8d491a26 --- /dev/null +++ b/test/model/WorkloadBillingHistoryResponse.spec.js @@ -0,0 +1,77 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.HyperstackApi); + } +}(this, function(expect, HyperstackApi) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new HyperstackApi.WorkloadBillingHistoryResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('WorkloadBillingHistoryResponse', function() { + it('should create an instance of WorkloadBillingHistoryResponse', function() { + // uncomment below and update the code to test WorkloadBillingHistoryResponse + //var instance = new HyperstackApi.WorkloadBillingHistoryResponse(); + //expect(instance).to.be.a(HyperstackApi.WorkloadBillingHistoryResponse); + }); + + it('should have the property billingHistoryFineTuning (base name: "billing_history_fine_tuning")', function() { + // uncomment below and update the code to test the property billingHistoryFineTuning + //var instance = new HyperstackApi.WorkloadBillingHistoryResponse(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new HyperstackApi.WorkloadBillingHistoryResponse(); + //expect(instance).to.be(); + }); + + it('should have the property success (base name: "success")', function() { + // uncomment below and update the code to test the property success + //var instance = new HyperstackApi.WorkloadBillingHistoryResponse(); + //expect(instance).to.be(); + }); + + }); + +}));